/* Weekly Todo website. Tokens follow the mobile app (mobile/src/constants/theme.ts). */

:root {
  --text: #1A1A1A;
  --text-2: #5E5E59;
  --text-3: #8A8A84;
  --bg: #FAFAF8;
  --bg-alt: #F3F3EF;
  --card: #FFFFFF;
  --border: #E3E3DF;
  --hairline: #ECECE8;
  --accent: #2F5BEA;
  --accent-deep: #1F44C4;
  --accent-soft: #EAF0FE;
  --on-accent: #FFFFFF;
  --success: #2B9A66;
  --shadow: 0 1px 2px rgba(26, 26, 26, .04), 0 10px 30px rgba(26, 26, 26, .06);
  --shadow-lg: 0 2px 6px rgba(26, 26, 26, .05), 0 30px 70px rgba(26, 26, 26, .12);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #F2F2EF;
    --text-2: #A3A29C;
    --text-3: #77766F;
    --bg: #121211;
    --bg-alt: #171716;
    --card: #1C1C1A;
    --border: #2F2F2C;
    --hairline: #2A2A27;
    --accent: #7B93F2;
    --accent-deep: #5B79EC;
    --accent-soft: #1F2747;
    --success: #4CC38A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 70px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.muted { color: var(--text-2); }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
:target { scroll-margin-top: 84px; }
section[id] { scroll-margin-top: 72px; }

.wordmark { font-size: 19px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.wordmark .light { font-weight: 500; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 9px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s; }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 11px; font-size: 14px; }
.btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent), white 8%), var(--accent)); color: var(--on-accent); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent), transparent 72%); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px color-mix(in srgb, var(--accent), transparent 62%); }
.btn-ghost { background: var(--card); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #FFFFFF; color: #2F5BEA; box-shadow: 0 10px 24px rgba(10, 20, 70, .25); }
.btn-light:hover { transform: translateY(-2px); }
.btn:focus-visible, .store:focus-visible, .nav-links a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent), transparent 50%); outline-offset: 2px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg), transparent 18%); backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--hairline); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-2); font-size: 15px; font-weight: 600; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 96px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 20s ease-in-out infinite alternate; }
.orb-a { width: 520px; height: 520px; right: -120px; top: -160px; background: #9DB4FF; }
.orb-b { width: 420px; height: 420px; left: -160px; bottom: -180px; background: #A8E6D6; opacity: .45; animation-duration: 26s; }
@media (prefers-color-scheme: dark) { .orb-a { background: #24357A; } .orb-b { background: #134238; } }
.grid { position: absolute; inset: 0; background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%); opacity: .7; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--text-2); box-shadow: var(--shadow); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success), transparent 80%); }
.hero h1 { margin-top: 22px; font-size: clamp(44px, 6.4vw, 78px); line-height: 1.02; font-weight: 800; letter-spacing: -.04em; }
.grad { background: linear-gradient(100deg, #2F5BEA, #6E8BFF 60%, #2F5BEA); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .grad { background-image: linear-gradient(100deg, #8EA4FF, #C3CEFF 60%, #8EA4FF); } }
.lede { margin-top: 22px; max-width: 540px; font-size: 19px; color: var(--text-2); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 14px; border-radius: 14px; background: #111111; color: #FFFFFF; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; box-shadow: 0 10px 24px rgba(0, 0, 0, .15); }
.store svg { fill: currentColor; }
.store span { display: grid; line-height: 1.1; font-size: 17px; font-weight: 700; }
.store small { font-size: 11px; font-weight: 500; opacity: .8; }
.store:hover { transform: translateY(-2px); }
@media (prefers-color-scheme: dark) { .store { background: #F2F2EF; color: #121211; } }
.note { margin-top: 16px; font-size: 14px; color: var(--text-3); }

.hero-visual { position: relative; display: grid; place-items: center; }
.phone { position: relative; width: min(320px, 78vw); aspect-ratio: 390 / 844; border-radius: 46px; padding: 10px; background: #0F0F0F; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, var(--shadow-lg); }
.phone .screen { display: block; height: 100%; padding-top: 36px; border-radius: 37px; overflow: hidden; background: #FAFAF8; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; border-radius: 14px; background: #0F0F0F; transform: translateX(-50%); z-index: 1; }
.float { animation: float 7s ease-in-out infinite; }
.float.slow { animation-duration: 9s; }
.tilt { transform: rotate(-3deg); }

.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.25; }
.chip b { display: block; font-weight: 700; }
.chip small { color: var(--text-2); font-size: 12.5px; }
.chip-a { left: -6%; bottom: 22%; animation: bob 6s ease-in-out infinite; }
.chip-b { right: -4%; top: 16%; animation: bob 7s ease-in-out -2s infinite; }
.chip-check { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--success); color: #FFFFFF; font-weight: 800; }
.chip-badge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #1A1A1A; color: #FFFFFF; font-weight: 800; font-size: 14px; }
@media (prefers-color-scheme: dark) { .chip-badge { background: #F2F2EF; color: #121211; } }

/* Sections */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.sub { margin-top: 16px; font-size: 18px; color: var(--text-2); }
h3 { font-size: 19px; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; }

/* Why */
.problem { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.problem .sub { font-size: 19px; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.benefit { padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent), var(--border) 70%); }
.bnum { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--accent); padding: 4px 9px; border-radius: 8px; background: var(--accent-soft); }
.benefit p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }
.for { margin-top: 40px; padding: 26px 28px; border-radius: 20px; background: linear-gradient(135deg, var(--accent-soft), transparent 80%); border: 1px solid var(--border); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.for-title { font-weight: 800; font-size: 17px; white-space: nowrap; padding-top: 2px; }
.for-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.for-list li { position: relative; padding-left: 22px; color: var(--text-2); }
.for-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* How */
.how { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.steps { list-style: none; padding: 0; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 18px; box-shadow: 0 8px 18px color-mix(in srgb, var(--accent), transparent 70%); }
.step p { margin-top: 6px; color: var(--text-2); }
.how-visual .phone { width: min(300px, 70vw); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }
.ficon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 14px; background: var(--tone-soft); color: var(--tone); }
.ficon svg { fill: currentColor; }
.tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; vertical-align: 1px; }
.tone-blue { --tone: #2F5BEA; --tone-soft: #EAF0FE; }
.tone-violet { --tone: #7C4DDB; --tone-soft: #F1EAFE; }
.tone-amber { --tone: #B4570B; --tone-soft: #FEF0C7; }
.tone-green { --tone: #2B9A66; --tone-soft: #E5F5EC; }
.tone-red { --tone: #B42318; --tone-soft: #FEE4E2; }
.tone-ink { --tone: #3D3D39; --tone-soft: #EFEFEC; }
@media (prefers-color-scheme: dark) {
  .tone-blue { --tone: #7B93F2; --tone-soft: #1F2747; }
  .tone-violet { --tone: #B59BF5; --tone-soft: #2A2145; }
  .tone-amber { --tone: #F0B160; --tone-soft: #3A2A12; }
  .tone-green { --tone: #4CC38A; --tone-soft: #143223; }
  .tone-red { --tone: #F2867E; --tone-soft: #3A1D1B; }
  .tone-ink { --tone: #D0D0CB; --tone-soft: #2A2A27; }
}

/* Split */
.split { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.split-copy .sub { max-width: 520px; }
.ticks { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--success), transparent 85%); color: var(--success); font-size: 12px; font-weight: 800; }

/* Pricing */
.period { display: flex; justify-content: center; gap: 4px; width: max-content; margin: -28px auto 36px; padding: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.period button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s, color .2s; }
.period button.on { background: var(--accent); color: var(--on-accent); }
.period .save { padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--success), transparent 82%); color: var(--success); font-size: 12px; }
.period button.on .save { background: rgba(255, 255, 255, .22); color: #FFFFFF; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 24px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.plan .ticks { margin: 22px 0 28px; flex: 1; font-size: 15.5px; }
.plan-price { margin-top: 12px; font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.plan-price span { font-size: 16px; font-weight: 600; color: var(--text-2); letter-spacing: 0; margin-left: 4px; }
.plan-note { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.plan-pro { border: 2px solid var(--accent); box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow-lg); }
.ribbon { position: absolute; top: -13px; right: 24px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 800; }
.fine { margin-top: 28px; text-align: center; font-size: 14px; color: var(--text-3); }
.swap { animation: swap .35s var(--ease); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent), var(--border) 60%); box-shadow: var(--shadow); }
.faq summary { position: relative; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px; color: var(--text-2); }
.faq details[open] p { animation: rise .35s var(--ease); }

/* CTA */
.cta-wrap { padding: 0 0 104px; }
.cta { position: relative; overflow: hidden; padding: 64px 32px; border-radius: 32px; text-align: center; color: #FFFFFF; background: radial-gradient(100% 120% at 0% 0%, #5B7FF0 0%, transparent 55%), linear-gradient(150deg, #2F5BEA, #1E3FB5); box-shadow: 0 30px 70px rgba(47, 91, 234, .3); }
.cta h2 { color: #FFFFFF; }
.cta p { margin: 12px 0 28px; font-size: 18px; color: rgba(255, 255, 255, .82); }
.cta-logo { margin: 0 auto 22px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 12px 28px rgba(10, 20, 70, .35); }
.orb-c { width: 360px; height: 360px; right: -100px; bottom: -160px; background: #7FA0FF; opacity: .5; }

/* Policy and support pages */
.doc { padding-top: 40px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 8px; }
.doc h2 { font-size: 21px; letter-spacing: -.01em; margin: 36px 0 10px; }
.doc p, .doc ul { margin: 0 0 14px; color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--accent); }
.doc .table-scroll { overflow-x: auto; margin: 0 0 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.doc th { color: var(--text-2); font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--hairline); padding: 32px 0 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: var(--text); }
.footer p { font-size: 14px; }

/* Scroll reveal: elements rise in once as they come into view. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.js .reveal.d4 { transition-delay: .32s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.1); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

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

/* Responsive */
@media (max-width: 980px) {
  .hero-inner, .how, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero-copy { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .hero-visual { margin-top: 12px; }
  .benefits, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-visual, .split-visual { justify-self: center; }
  .split-copy { text-align: center; }
  .split-copy .sub { margin-left: auto; margin-right: auto; }
  .split-copy .ticks { text-align: left; max-width: 460px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .section { padding: 72px 0; }
  .head, .problem { margin-bottom: 36px; }
  .benefits, .features, .plans { grid-template-columns: 1fr; }
  .for { grid-template-columns: 1fr; gap: 14px; }
  .for-list { grid-template-columns: 1fr; }
  .chip { display: none; }
  .tilt { transform: none; }
  .cta { padding: 48px 22px; border-radius: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer nav { justify-content: center; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .store { flex: 1 1 100%; justify-content: center; }
}
