/* Foxnudge site: built from the app's own look (Theme.swift, Design/Timeline.swift): violet accent,
   done green, overdue red, the bell's yellow, Liquid-Glass bars, white cards, the timeline, the
   violet countdown card and option tiles. Nunito (SIL Open Font License) is hosted here. */
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 500 900; font-display: optional;
  src: url(/assets/fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 500 900; font-display: optional;
  src: url(/assets/fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #F6F5F1; --card: #FFFFFF; --card-alt: #EFEEE9; --line: rgba(20, 20, 24, .08);
  --ink: #141418; --on-ink: #FFFFFF; --secondary: #6E6E78;
  --accent: #7C5CFF; --accent-soft: #ECE7FF; --light: #A28BFF; --deep: #5B3FE0; --clapper: #FFC83D;
  --done: #1DB57A; --overdue: #F0533F;
  --grad: linear-gradient(135deg, #A28BFF, #7C5CFF 50%, #5B3FE0);
  --shadow: 0 6px 14px rgba(0, 0, 0, .045);
  --glass-bg: rgba(255, 255, 255, .6); --glass-border: rgba(255, 255, 255, .7);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 8px 24px rgba(20, 20, 24, .08);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B0D; --card: #18181C; --card-alt: #242429; --line: rgba(255, 255, 255, .08);
    --ink: #F4F4F6; --on-ink: #141418; --secondary: #A3A3AD; --accent-soft: #241D3D;
    --shadow: 0 6px 14px rgba(0, 0, 0, .3);
    --glass-bg: rgba(28, 28, 32, .6); --glass-border: rgba(255, 255, 255, .12);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
/* Visible focus for keyboard users (accessibility). */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
summary:focus-visible { border-radius: 22px; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.sm { width: 16px; height: 16px; }
.i.xs { width: 14px; height: 14px; }
section { padding-block: 72px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; font-weight: 900; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 22px; font-weight: 800; }
.kicker { color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.sub { color: var(--secondary); font-size: 19px; margin-top: 14px; }
.head { margin-bottom: 40px; }

/* The app's AppBackground: a soft violet mesh at the top that fades into the page. */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 780px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 60% at 10% 0%, #D9D0FF, transparent 70%),
    radial-gradient(45% 55% at 50% 0%, #E7E1FF, transparent 70%),
    radial-gradient(50% 60% at 92% 4%, #CFE6FF, transparent 70%),
    radial-gradient(45% 50% at 80% 55%, #DCEBFF, transparent 70%);
}
@media (prefers-color-scheme: dark) { body::before { opacity: .22; } }

/* Liquid Glass, as in the app's bars and buttons. */
.glass { background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); }

/* ------------------------------------------------ top bar: a floating glass pill */
.topbar { position: sticky; top: 12px; z-index: 20; padding-inline: 20px; }
.bar { width: min(1120px, 100%); margin: 12px auto 0; display: flex; align-items: center; gap: 24px; height: 60px; padding: 0 10px 0 18px; border-radius: 999px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; font-size: 20px; text-decoration: none; letter-spacing: -.02em; }
.links { display: flex; gap: 24px; list-style: none; margin-left: auto; }
.links a { text-decoration: none; font-weight: 700; color: var(--secondary); }
.links a:hover { color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); width: 44px; height: 44px; border-radius: 50%; place-items: center; cursor: pointer; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap; color: var(--ink); }
.pill-dark { background: var(--ink); color: var(--on-ink); height: 42px; padding: 0 18px; font-size: 15px; }
@media (max-width: 760px) {
  .bar { gap: 8px; }
  .bar-cta { margin-left: auto; }
  .menu-btn { display: grid; }
  .links { display: none; position: absolute; top: 74px; left: 20px; right: 20px; flex-direction: column; gap: 0; padding: 8px; background: var(--card); border-radius: 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, .12); }
  .links.open { display: flex; }
  .links a { display: block; padding: 14px 16px; font-size: 18px; color: var(--ink); }
}

/* ------------------------------------------------ App Store badge */
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; }
.store .apple { width: 24px; height: 24px; fill: currentColor; }
.store span { display: flex; flex-direction: column; font-size: 20px; font-weight: 700; line-height: 1.05; font-family: -apple-system, system-ui, sans-serif; }
.store small { font-size: 11px; font-weight: 500; }
.store.light { background: #fff; color: #000; }

/* ------------------------------------------------ hero */
.hero { text-align: center; padding-top: 56px; padding-bottom: 40px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--accent); }
.hero h1 { font-size: clamp(44px, 7.4vw, 86px); margin: 22px auto 18px; letter-spacing: -.035em; max-width: 900px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--secondary); max-width: 620px; margin-inline: auto; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; margin-top: 22px; color: var(--secondary); font-weight: 700; font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .i { width: 18px; height: 18px; color: var(--done); stroke-width: 3; }

/* iPhone frame with a screenshot: the screen layer has the app's background, so no black flash. */
.device { position: relative; width: 270px; aspect-ratio: 600 / 1304; border-radius: 44px; padding: 5px; background: #0E0E10; box-shadow: 0 30px 60px rgba(43, 26, 120, .22), inset 0 0 0 1.5px #2A2A2E; }
/* Dynamic Island, as on Foxspend's site. */
.device::before { content: ""; position: absolute; top: 2.1%; left: 50%; translate: -50% 0; width: 31%; aspect-ratio: 84 / 24; border-radius: 999px; background: #0E0E10; z-index: 1; }
.device .screen { width: 100%; height: 100%; border-radius: 39px; overflow: hidden; background: #F6F5F1; }
.device img { width: 100%; height: 100%; object-fit: cover; }

.fan { position: relative; display: flex; justify-content: center; align-items: flex-end; margin-top: 56px; }
.fan .main { z-index: 2; width: 290px; }
.fan .side { width: 248px; }
.fan .left { transform: translateX(56px) rotate(-8deg) translateY(-14px); }
.fan .right { transform: translateX(-56px) rotate(8deg) translateY(-14px); }
.float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 800; font-size: 15px; white-space: nowrap; animation: float 4s ease-in-out infinite alternate; }
.float b { color: var(--accent); }
.float .ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--done); }
.float .ok .i { width: 12px; height: 12px; color: #fff; stroke-width: 4; }
.f1 { left: 4%; top: 18%; } .f2 { right: 3%; top: 26%; animation-delay: -1.5s; }
.f3 { left: 9%; bottom: 20%; animation-delay: -2.5s; } .f4 { right: 8%; bottom: 14%; animation-delay: -3s; }
@keyframes float { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
@media (max-width: 900px) {
  .fan .side { display: none; }
  .fan .main { width: 260px; }
  .f1 { left: 0; } .f2 { right: 0; } .f3 { left: 0; } .f4 { right: 0; }
}
/* Phones: no room beside the phone, so the chips would cover the app; hidden. */
@media (max-width: 560px) { .float { display: none; } }

/* ------------------------------------------------ feature rows (text + a piece of the app) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 48px; }
.feature.flip .feature-text { order: 2; }
/* Every feature line is about the same length, so all wrap to the same 2 lines (owner). */
.feature-text .sub { max-width: 470px; }
.feature-visual { display: flex; justify-content: center; }
.feature-visual .device { width: 270px; }
@media (max-width: 560px) { .feature-visual .device { width: 240px; } }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.ticks li { display: flex; gap: 10px; font-weight: 700; }
.ticks .i { width: 20px; height: 20px; color: var(--done); stroke-width: 3; margin-top: 2px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding-block: 36px; }
  .feature.flip .feature-text { order: 0; }
}

/* ------------------------------------------------ privacy: Settings-style rows */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.irows { list-style: none; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.irow { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.irow + .irow::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: var(--line); }
.itile { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; flex: none; }
.itile .i { width: 18px; height: 18px; }
.irow span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.irow b { font-size: 16px; }
.irow small { color: var(--secondary); font-size: 14px; }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; gap: 24px; } }

/* ------------------------------------------------ pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 20px; }
.plan { padding: 30px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow); }
.plan .price { font-size: 44px; font-weight: 900; margin-top: 8px; }
.plan .price small { font-size: 17px; color: var(--secondary); font-weight: 700; }
.plan .note { color: var(--secondary); font-weight: 700; margin-bottom: 18px; }
.plan .ticks { margin-top: 0; }
.plan.premium { background: var(--grad); color: #fff; box-shadow: 0 24px 50px rgba(91, 63, 224, .3); }
.plan.premium .price small, .plan.premium .note { color: rgba(255, 255, 255, .8); }
.premium .ticks .i { color: #fff; }
.fine { color: var(--secondary); font-size: 14px; margin-top: 18px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ------------------------------------------------ FAQ */
.faq { display: grid; gap: 12px; max-width: 800px; margin-inline: auto; }
.faq details { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 800; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .25s; color: var(--secondary); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq p { padding: 0 22px 20px; color: var(--secondary); }

/* ------------------------------------------------ CTA: the violet card */
.cta { text-align: center; padding: 56px 24px; border-radius: 36px; background: var(--grad); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: 0 30px 60px rgba(91, 63, 224, .3); }
.cta .ring, .lost .ring { transform-origin: 50% 12%; animation: ring 2.6s ease-in-out infinite; }
.cta p { font-size: 19px; color: rgba(255, 255, 255, .85); margin-bottom: 8px; }
@keyframes ring { 0%, 55%, 100% { transform: rotate(0); } 60% { transform: rotate(14deg); } 66% { transform: rotate(-12deg); } 72% { transform: rotate(9deg); } 78% { transform: rotate(-6deg); } 84% { transform: rotate(3deg); } }

/* ------------------------------------------------ footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-block: 36px 48px; border-top: 1px solid var(--line); margin-top: 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot nav a { color: var(--secondary); text-decoration: none; font-weight: 700; }
.tm { width: 100%; color: var(--secondary); font-size: 13px; }

/* ------------------------------------------------ legal pages */
.doc { max-width: 760px; padding-block: 48px 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc .updated { color: var(--secondary); margin: 10px 0 28px; font-weight: 700; }
.doc h2 { font-size: 24px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--secondary); }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.doc a { color: var(--accent); }
.note-card { padding: 22px 24px; border-radius: 22px; background: var(--accent-soft); }
.note-card p { color: var(--ink); }
.lost { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 80px; }

/* ------------------------------------------------ appear on scroll (below the fold only) */
/* Hidden from the first paint, never shown then hidden (that flashed); <noscript> shows all. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
