/* ============================================================
   ThinkOnce — marketing site
   Faithful to the app: black #0B0B0E + amber #F59E0B, "1°" mark
   Self-contained · no dependencies
   ============================================================ */

:root {
  /* pulled from the app theme (notes_list_screen_modern.dart) */
  --bg:        #0B0B0E;
  --bg-2:      #111116;
  --card:      #17171C;
  --card-2:    #1F1F25;
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);
  --txt:       #F0F0F8;
  --subtle:    #A6A6B0;
  --muted:     #6E6E78;
  --accent:    #F59E0B;   /* app accent */
  --accent-d:  #D97706;
  --radius:    16px;
  --radius-lg: 26px;
  --maxw:      1140px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
img, svg { display: block; }

/* ---------- background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 80%);
}
.bg-glow {
  position: fixed; top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245,158,11,0.16), transparent 70%);
  filter: blur(20px);
}

/* ---------- logo mark ---------- */
.logo-mark { width: 26px; height: 26px; color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #1a1206; font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 100px; border: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-2px); background: #ffb02e; box-shadow: 0 12px 30px rgba(245,158,11,0.3); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--txt); border: 1px solid var(--border-2); }
.btn--ghost:hover { background: var(--card); box-shadow: none; }

/* ============================================================ HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(11,11,14,0.6);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header.scrolled { background: rgba(11,11,14,0.85); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand .logo-mark { width: 22px; height: 22px; }
.brand-name { font-size: 18px; letter-spacing: -0.04em; }

.main-nav { display: flex; gap: 28px; margin-left: 24px; }
.main-nav a { color: var(--subtle); font-size: 14.5px; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover { color: var(--txt); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mafe-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--subtle); font-weight: 500;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 100px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.mafe-link:hover { color: var(--txt); border-color: var(--border-2); background: var(--card); }
.mafe-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(245,158,11,0.8); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--card); border: 1px solid var(--border); border-radius: 100px;
  padding: 5px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.lang-opt { padding: 3px 9px; border-radius: 100px; color: var(--muted); transition: all 0.2s; }
.lang-opt.active { background: var(--accent); color: #1a1206; }

/* ============================================================ HERO */
.hero { position: relative; z-index: 1; padding: 76px 0 44px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 40px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--subtle);
  background: var(--card); border: 1px solid var(--border); border-radius: 100px;
  padding: 7px 14px 7px 12px; margin-bottom: 24px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(245,158,11,0.15); }
.hero-title { font-size: clamp(40px, 6.4vw, 68px); font-weight: 900; letter-spacing: -0.045em; }
.accent-text { color: var(--accent); }
.hero-sub { font-size: clamp(16px, 2vw, 18.5px); color: var(--subtle); max-width: 510px; margin: 22px 0 30px; }

.store-badges { display: flex; gap: 13px; flex-wrap: wrap; }
.store-badges--center { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #fff; color: #000;
  border-radius: 13px; padding: 9px 17px; min-width: 165px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.5); }
.sb-text { display: flex; flex-direction: column; line-height: 1.12; }
.sb-text small { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }
.sb-text strong { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.hero-trust { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* ============================================================ PHONE (real app UI) */
.hero-phone { display: flex; justify-content: center; perspective: 1500px; }
.phone-stage { position: relative; width: 300px; }

.float-chip {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  background: rgba(23,23,28,0.92); color: var(--txt);
  border: 1px solid var(--border-2); backdrop-filter: blur(8px);
  padding: 8px 12px; border-radius: 11px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.5);
}
.fc-1 { top: 12%; left: -78px; animation: floaty 6s var(--ease) infinite; }
.fc-2 { top: 46%; right: -70px; animation: floaty 7s var(--ease) infinite 0.7s; }
.fc-3 { bottom: 12%; left: -62px; animation: floaty 6.5s var(--ease) infinite 1.3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

.phone {
  position: relative; width: 300px; z-index: 2;
  transform: rotateY(-13deg) rotateX(4deg);
  transform-style: preserve-3d;
  animation: phoneFloat 9s var(--ease) infinite;
  will-change: transform;
}
@keyframes phoneFloat {
  0%,100% { transform: rotateY(-13deg) rotateX(4deg) translateY(0); }
  50%     { transform: rotateY(-6deg)  rotateX(2deg) translateY(-14px); }
}
.phone-shell {
  position: relative; border-radius: 44px; padding: 9px;
  background: linear-gradient(155deg, #2a2a30, #0a0a0d);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 50px 100px -30px rgba(0,0,0,0.9),
    0 0 0 1px rgba(0,0,0,0.6),
    inset 0 1px 2px rgba(255,255,255,0.18);
}
.phone-island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 24px; background: #000; border-radius: 14px; z-index: 6;
}
.app {
  position: relative; border-radius: 36px; overflow: hidden;
  background: var(--bg);
  height: 600px; display: flex; flex-direction: column;
  padding: 50px 14px 14px;
}

/* app bar */
.app-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 14px; }
.app-bar-l { display: flex; align-items: center; gap: 8px; }
.app-logo { width: 18px; height: 18px; color: var(--accent); }
.app-screen-title { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.app-sort {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; color: var(--accent);
  background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.28);
  padding: 4px 9px; border-radius: 100px;
}

/* filter chips */
.app-chips { display: flex; gap: 6px; padding: 0 2px 12px; overflow: hidden; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--subtle);
  background: var(--card); border: 1px solid var(--border);
  padding: 5px 9px; border-radius: 100px; white-space: nowrap;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; }
.chip--on { color: var(--txt); border-color: var(--border-2); background: var(--card-2); }

/* note cards — mirrors the app */
.app-list { display: flex; flex-direction: column; gap: 9px; flex: 1; overflow: hidden; }
.n-card {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 12px;
}
.n-card.n-pri { border-color: rgba(245,158,11,0.35); }
.n-card.n-pri::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: 3px; background: var(--accent);
}
.n-card.n-pri { position: relative; padding-left: 14px; }
.n-check {
  flex: none; width: 19px; height: 19px; border-radius: 50%;
  border: 2px solid var(--muted); margin-top: 1px;
}
.n-card.n-pri .n-check { border-color: var(--accent); }
.n-body { flex: 1; min-width: 0; }
.n-body p { font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--txt); }
.n-tags { display: flex; gap: 5px; margin-top: 7px; }
.n-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  padding: 2px 8px; border-radius: 100px;
}
.n-meta { display: flex; gap: 11px; margin-top: 8px; font-size: 11px; color: var(--muted); font-weight: 500; }
.m-pri { color: var(--accent); }
.m-vote { color: var(--subtle); }
.m-day { color: var(--accent); }

/* quick note + mic */
.app-quick {
  display: flex; align-items: center; gap: 10px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 7px 7px 16px; margin-top: 10px;
}
.quick-hint { flex: 1; font-size: 13px; color: var(--muted); }
.quick-mic {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--accent); display: grid; place-items: center; cursor: default;
}
.mic-rings { position: absolute; inset: 0; border-radius: 50%; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

/* ============================================================ STRIP */
.strip { position: relative; z-index: 1; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 34px; background: rgba(255,255,255,0.012); }
.strip-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px; padding: 20px 24px; }
.strip-item { display: flex; align-items: center; gap: 9px; color: var(--subtle); font-weight: 500; font-size: 14.5px; }
.s-ic { font-size: 17px; }
.strip-sep { width: 1px; height: 18px; background: var(--border-2); }

/* ============================================================ SECTIONS */
.section { position: relative; z-index: 1; padding: 104px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--accent); }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 14px 0 16px; }
.section-head p { color: var(--subtle); font-size: 17px; }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.feature:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--bg-2); }
.feat-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2); font-size: 23px; margin-bottom: 16px; }
.feature h3 { font-size: 18.5px; margin-bottom: 8px; }
.feature p { color: var(--subtle); font-size: 14.5px; }

/* AI section */
.ai-section { background: radial-gradient(80% 120% at 80% 50%, rgba(245,158,11,0.06), transparent 60%); }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai-copy h2 { font-size: clamp(28px, 4vw, 42px); margin: 14px 0 16px; }
.ai-copy > p { color: var(--subtle); font-size: 17px; margin-bottom: 24px; }
.ai-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ai-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--subtle); font-size: 16px; }
.ai-ic { font-size: 19px; }
.ai-list strong { color: var(--txt); font-weight: 700; }

.ai-visual { display: flex; justify-content: center; }
.ai-card {
  width: 100%; max-width: 360px;
  background: var(--card); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 28px; text-align: center;
  box-shadow: 0 40px 90px -40px rgba(245,158,11,0.35);
}
.ai-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 46px; margin-bottom: 18px; }
.ai-wave span { width: 5px; background: var(--accent); border-radius: 5px; animation: wave 1.1s ease-in-out infinite; }
.ai-wave span:nth-child(1){height:12px;animation-delay:0s}
.ai-wave span:nth-child(2){height:28px;animation-delay:.1s}
.ai-wave span:nth-child(3){height:42px;animation-delay:.2s}
.ai-wave span:nth-child(4){height:22px;animation-delay:.3s}
.ai-wave span:nth-child(5){height:38px;animation-delay:.4s}
.ai-wave span:nth-child(6){height:16px;animation-delay:.5s}
.ai-wave span:nth-child(7){height:32px;animation-delay:.6s}
.ai-wave span:nth-child(8){height:24px;animation-delay:.7s}
.ai-wave span:nth-child(9){height:14px;animation-delay:.8s}
@keyframes wave { 0%,100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.ai-spoken { font-size: 16px; font-weight: 600; color: var(--txt); }
.ai-arrow { color: var(--accent); margin: 14px auto; display: grid; place-items: center; animation: floaty 2s ease-in-out infinite; }
.ai-result { text-align: left; margin-top: 2px; }

/* scenarios */
.scen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.scen-grid .n-card { transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s; }
.scen-grid .n-card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--bg-2); }

/* CTA */
.cta-section { padding: 112px 0; }
.cta-inner {
  text-align: center; max-width: 720px; margin: 0 auto;
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(245,158,11,0.14), transparent 58%),
    var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 56px 30px;
}
.cta-logo { width: 46px; height: 46px; color: var(--accent); margin: 0 auto 22px; }
.cta-inner h2 { font-size: clamp(28px, 4.4vw, 44px); margin-bottom: 14px; }
.cta-inner p { color: var(--subtle); font-size: 18px; margin-bottom: 30px; }

/* ============================================================ FOOTER */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding-top: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .brand .logo-mark { width: 22px; height: 22px; }
.footer-tag { color: var(--subtle); margin-top: 14px; font-size: 15px; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1.5fr; gap: 28px; }
.footer-col h4, .footer-maker h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 15px; font-weight: 700; }
.footer-col a { display: block; color: var(--subtle); font-size: 15px; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--txt); }
.footer-maker { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.maker-link { display: inline-flex; align-items: center; gap: 7px; font-size: 18px; font-weight: 800; color: var(--txt); margin-bottom: 10px; }
.maker-link .mafe-dot { width: 8px; height: 8px; }
.maker-note { color: var(--subtle); font-size: 14px; margin-bottom: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 22px 24px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.footer-id { font-family: ui-monospace, 'SF Mono', monospace; }

/* ============================================================ REVEAL */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.feature.reveal:nth-child(2) { transition-delay: 0.06s; }
.feature.reveal:nth-child(3) { transition-delay: 0.12s; }
.scen-grid .reveal:nth-child(2){transition-delay:.05s}
.scen-grid .reveal:nth-child(3){transition-delay:.1s}
.scen-grid .reveal:nth-child(4){transition-delay:.15s}

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

/* ============================================================ RESPONSIVE */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 54px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .store-badges { justify-content: center; }
  .ai-grid { grid-template-columns: 1fr; gap: 40px; }
  .ai-copy { text-align: center; }
  .ai-list { text-align: left; max-width: 420px; margin: 0 auto; }
  .ai-visual { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .scen-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 560px) {
  .mafe-link .mafe-text { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .scen-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .section { padding: 74px 0; }
  .strip-sep { display: none; }
  .float-chip { font-size: 11px; }
  .fc-1 { left: -40px; } .fc-2 { right: -34px; } .fc-3 { left: -30px; }
}
