/* ============================================================
   ThinkOnce — editorial cream meets a midnight, glowing hero.
   Live UI fragments instead of screenshots; motion everywhere,
   all of it respecting prefers-reduced-motion.
   ============================================================ */

:root {
  --bg: #FAF9F5;
  --bg-soft: #F1EFE7;
  --card: #FFFFFF;
  --ink: #1A1915;
  --ink-2: #55534A;
  --ink-3: #8C897C;
  --line: #E7E4D8;
  --accent: #C9603C;
  --accent-soft: #F4E3DB;

  /* the app's flowing-ribbon palette */
  --rb-gold: #FFD787;
  --rb-amber: #F59E0B;
  --rb-purple: #C57AFF;
  --rb-blue: #5BA3FF;

  /* dark hero */
  --night: #15140F;
  --night-2: #1E1C15;
  --night-card: rgba(255, 255, 255, .045);
  --night-line: rgba(250, 249, 245, .12);
  --night-text: #FAF9F5;
  --night-text-2: #B9B6AA;

  --radius: 22px;
  --radius-sm: 14px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .26, .99);
  --spring: cubic-bezier(.34, 1.45, .4, 1);
  --shadow: 0 1px 2px rgba(26,25,21,.05), 0 12px 40px -12px rgba(26,25,21,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; }
h3 { font-size: 24px; line-height: 1.25; }

.eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 14px;
}
.section { padding: 110px 0; }
.section--alt { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-sub { color: var(--ink-2); font-size: 17px; margin: 18px 0 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--accent); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--rb-gold); box-shadow: 0 8px 30px -8px rgba(255,215,135,.5); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-dark { background: transparent; color: var(--night-text); border-color: rgba(250,249,245,.3); }
.btn--ghost-dark:hover { border-color: var(--night-text); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--night-text);
  transition: background .3s, border-color .3s, box-shadow .3s, color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  color: var(--ink);
  background: rgba(250, 249, 245, .82);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { border-radius: 8px; }
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 14.5px; font-weight: 500; color: inherit; opacity: .72; text-decoration: none;
  transition: opacity .2s;
}
.main-nav a:hover { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.site-header .btn--primary { background: var(--bg); color: var(--ink); }
.site-header.scrolled .btn--primary { background: var(--ink); color: var(--bg); }
.site-header .btn--primary:hover { background: var(--accent); color: var(--bg); }
.lang-toggle {
  display: inline-flex; padding: 3px; gap: 2px;
  background: rgba(250,249,245,.08); border: 1px solid var(--night-line); border-radius: 999px; cursor: pointer;
  transition: background .3s, border-color .3s;
}
.site-header.scrolled .lang-toggle { background: var(--bg-soft); border-color: var(--line); }
.lang-opt {
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: inherit; opacity: .6; transition: background .25s, color .25s, opacity .25s;
}
.lang-opt.active { background: var(--bg); color: var(--ink); opacity: 1; }
.site-header.scrolled .lang-opt.active { background: var(--ink); color: var(--bg); }

/* ---------- hero (midnight) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 18% -10%, #221F15 0%, transparent 60%),
    radial-gradient(900px 480px at 88% 12%, #1D1A22 0%, transparent 55%),
    var(--night);
  color: var(--night-text);
  padding: 178px 0 130px;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: .22; pointer-events: none;
}
.hero-glow--a { width: 520px; height: 520px; left: -160px; top: 60px; background: var(--rb-purple); animation: glowDrift 14s ease-in-out infinite alternate; }
.hero-glow--b { width: 460px; height: 460px; right: -120px; bottom: -180px; background: var(--rb-amber); animation: glowDrift 17s ease-in-out infinite alternate-reverse; }
@keyframes glowDrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(40px,-30px,0) scale(1.12); } }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 64px; align-items: center;
}
.hero .eyebrow { color: var(--rb-gold); }
.hero-title { font-size: clamp(42px, 6.2vw, 74px); line-height: 1.04; margin: 8px 0 0; }
.accent-text {
  font-style: italic;
  background: linear-gradient(100deg, var(--rb-gold), var(--rb-amber) 35%, var(--rb-purple) 75%, var(--rb-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 19px; color: var(--night-text-2); max-width: 460px; margin: 26px 0 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-trust { font-size: 13.5px; color: rgba(250,249,245,.45); margin-top: 22px; }

/* line-reveal for hero text */
/* padding-bottom + negatif margin: overflow hidden, g/y gibi harflerin kuyruğunu kesmesin */
.lines { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
/* padding-bottom: background-clip:text'li degrade, g'nin kuyruğunda da boyansın */
.line-inner { display: inline-block; transform: translateY(115%); padding-bottom: .14em; margin-bottom: -.14em; }
.loaded .line-inner { animation: lineUp .9s var(--ease) forwards; }
.hero-title .lines .line-inner { animation-delay: .1s; }
.hero-title .lines:nth-child(2) .line-inner { animation-delay: .22s; }
@keyframes lineUp { to { transform: translateY(0); } }

/* ---------- hero live demo ---------- */
.hero-demo { position: relative; }
.demo-shell {
  position: relative;
  background: var(--night-card);
  border: 1px solid var(--night-line);
  border-radius: 26px;
  padding: 18px 22px 20px;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
}
.demo-topbar { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.demo-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(250,249,245,.18); }
.demo-app { margin-left: auto; font-family: var(--serif); font-size: 14px; color: rgba(250,249,245,.55); }

.demo-prompt {
  font-family: var(--serif); font-size: clamp(20px, 2.2vw, 25px); font-weight: 400;
  color: rgba(250,249,245,.8); text-align: center; margin: 0 0 6px;
}

.demo-ribbon-wrap { height: 90px; position: relative; }
.ribbon-canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s var(--ease); }
.ribbon-canvas.on { opacity: 1; }

.demo-transcript {
  min-height: 56px; margin: 4px 0 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 17.5px; line-height: 1.55;
  color: var(--night-text);
}
.demo-transcript .w { opacity: 0; display: inline-block; transform: translateY(8px) scale(.96); filter: blur(3px); }
.demo-transcript .w.in { animation: wordIn .45s var(--ease) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
.demo-caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -0.18em;
  background: var(--rb-gold); opacity: 0; border-radius: 2px;
}
.demo-caret.on { opacity: 1; animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

.demo-result { height: 0; overflow: hidden; transition: height .6s var(--spring); }
.demo-result-inner { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.demo-result .note-card { animation: demoCardIn .6s var(--spring) backwards; }
@keyframes demoCardIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }

.demo-micbar { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.demo-state { font-size: 13px; letter-spacing: .04em; color: rgba(250,249,245,.5); transition: color .3s; }
.demo-state.hot { color: var(--rb-gold); }
.demo-mic {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--night-line); cursor: default;
  background: linear-gradient(135deg, rgba(255,215,135,.16), rgba(197,122,255,.16));
  color: var(--night-text);
  display: inline-flex; align-items: center; justify-content: center;
}
.demo-mic-ring { position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--rb-gold); opacity: 0; }
.listening .demo-mic-ring { animation: micPulse 1.6s var(--ease) infinite; }
@keyframes micPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.75); opacity: 0; } }

/* note card (shared live fragment) */
.note-card {
  display: flex; gap: 12px; align-items: flex-start; width: 100%;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.35);
  position: relative;
}
.nc-check {
  flex: none; width: 19px; height: 19px; margin-top: 2px;
  border: 2px solid var(--ink-3); border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--bg); transition: background .3s, border-color .3s;
}
.nc-check svg { width: 12px; height: 12px; opacity: 0; }
.nc-check--done { background: var(--ink); border-color: var(--ink); }
.nc-check--done svg { opacity: 1; }
.nc-body { flex: 1; min-width: 0; }
.nc-title { margin: 0 0 7px; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.nc-title--done { text-decoration: line-through; color: var(--ink-3); }
.nc-meta { display: flex; flex-wrap: wrap; gap: 7px; font-size: 12px; color: var(--ink-3); align-items: center; }
.nc-chip { background: var(--bg-soft); padding: 2px 9px; border-radius: 999px; }
.nc-prio {
  font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.nc-label { font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.nc-label--teal { background: #DDF3EE; color: #0E8A72; }
.nc-label--amber { background: #FCF0D8; color: #B97A0A; }
.nc-label--rose { background: #FBE3E8; color: #C04566; }
.nc-label--indigo { background: #E5E5FB; color: #5B5BD6; }
.nc-spark {
  position: absolute; top: -9px; right: 12px; font-size: 15px; color: var(--rb-amber);
  animation: sparkSpin 3.4s ease-in-out infinite;
}
@keyframes sparkSpin { 0%,100% { transform: rotate(0) scale(1); } 50% { transform: rotate(35deg) scale(1.25); } }

/* ---------- ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  padding: 18px 0; overflow: hidden; background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track { display: flex; gap: 14px; width: max-content; animation: ticker 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.t-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
  transition: transform .3s var(--ease), border-color .3s;
}
.t-chip:hover { transform: translateY(-3px); border-color: var(--accent); }
.t-chip i { font-style: normal; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 34px; position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              opacity .8s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num {
  font-family: var(--serif); font-size: 15px; color: var(--ink-3);
  display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px; margin-bottom: 22px;
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 15px; margin: 0; }
.step-demo {
  min-height: 100px; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius-sm);
  margin-bottom: 24px; padding: 16px;
}
.step-demo .note-card { box-shadow: 0 4px 14px -6px rgba(26,25,21,.12); }

.wave { display: flex; align-items: center; gap: 4px; height: 26px; margin-right: 12px; flex: none; }
.wave span { width: 3.5px; border-radius: 4px; background: var(--accent); height: 30%; animation: wave 1.3s ease-in-out infinite; }
.wave span:nth-child(2) { animation-delay: .12s; } .wave span:nth-child(3) { animation-delay: .24s; }
.wave span:nth-child(4) { animation-delay: .36s; } .wave span:nth-child(5) { animation-delay: .48s; }
.wave span:nth-child(6) { animation-delay: .6s; }  .wave span:nth-child(7) { animation-delay: .72s; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.step-demo--voice { justify-content: flex-start; }
.spoken { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-2); margin: 0; }

.demo-push {
  display: flex; gap: 10px; align-items: center; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; box-shadow: 0 4px 14px -6px rgba(26,25,21,.12);
}
.demo-push img { border-radius: 6px; }
.demo-push-body { flex: 1; min-width: 0; }
.demo-push-body strong { font-size: 12.5px; display: block; }
.demo-push-body p { margin: 1px 0 0; font-size: 13px; color: var(--ink-2); }
.demo-push-time { font-size: 11px; color: var(--ink-3); align-self: flex-start; }

/* ---------- bento (live UI fragments) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.bento-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 30px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .8s var(--ease);
}
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.bento-card h3 { font-size: 21px; margin: 22px 0 8px; }
.bento-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
/* Two balanced rows: row 1 = notes + calendar (the wide interactive cards),
   row 2 = map + labels + smart. `order` re-flows them without touching the
   HTML, so the "reminder engine" card no longer sits alone on its own row. */
.bento-card--notes  { grid-column: span 3; order: 1; }
.bento-card--cal    { grid-column: span 3; order: 2; }
.bento-card--map    { grid-column: span 2; order: 3; }
.bento-card--labels { grid-column: span 2; order: 4; }
.bento-card--smart  { grid-column: span 2; order: 5; }

.try-hint { margin-top: 12px !important; font-size: 12.5px !important; color: var(--accent) !important; font-weight: 600; }

.bc-demo {
  background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius-sm);
  padding: 18px; min-height: 120px;
  display: flex; align-items: center; justify-content: center;
}

/* notes stack */
.note-stack { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.note-stack .note-card { box-shadow: 0 6px 18px -8px rgba(26,25,21,.16); }
.in .ns-1, .in .ns-2, .in .ns-3 { animation: nsIn .7s var(--spring) backwards; }
.in .ns-1 { animation-delay: .15s; } .in .ns-2 { animation-delay: .3s; } .in .ns-3 { animation-delay: .45s; }
@keyframes nsIn { from { opacity: 0; transform: translateY(22px) scale(.97); } }
.ns-1 .nc-check--done { animation: checkPop 4s ease-in-out infinite; }
@keyframes checkPop { 0%, 6%, 100% { transform: scale(1); } 3% { transform: scale(1.25); } }

/* map fragment */
.bc-demo--map { padding: 0; overflow: hidden; position: relative; }
.map-frag {
  position: relative; width: 100%; height: 168px; overflow: hidden;
  border-radius: calc(var(--radius-sm) - 1px);
  background: linear-gradient(135deg, #EDEBDF 0%, #E4E6D6 55%, #DFE5D2 100%);
}
.map-road { position: absolute; background: #FAF9F5; box-shadow: 0 0 0 1px #DDDACB; }
.map-road--h { left: -5%; right: -5%; top: 52%; height: 13px; transform: rotate(-4deg); }
.map-road--h2 { left: -5%; right: 30%; top: 22%; height: 8px; transform: rotate(3deg); }
.map-road--v { top: -5%; bottom: -5%; left: 30%; width: 10px; transform: rotate(8deg); }
.map-road--v2 { top: 35%; bottom: -5%; left: 72%; width: 8px; transform: rotate(-6deg); }
.map-park { position: absolute; right: 6%; top: 8%; width: 70px; height: 46px; border-radius: 14px; background: #D3E3C2; }
.map-block { position: absolute; background: #E9E6D8; border-radius: 6px; box-shadow: 0 0 0 1px #DEDBCC; }
.mb-1 { left: 8%; top: 30%; width: 44px; height: 30px; transform: rotate(-4deg); }
.mb-2 { left: 44%; top: 64%; width: 56px; height: 34px; transform: rotate(2deg); }
.mb-3 { left: 48%; top: 10%; width: 38px; height: 26px; transform: rotate(5deg); }
.map-pin {
  position: absolute; left: 50%; top: 38%; transform: translate(-50%, -90%);
  font-size: 26px; filter: drop-shadow(0 6px 8px rgba(26,25,21,.3));
  animation: pinDrop 3.6s var(--spring) infinite;
}
@keyframes pinDrop {
  0%, 12% { transform: translate(-50%, -240%); opacity: 0; }
  22% { transform: translate(-50%, -86%); opacity: 1; }
  26% { transform: translate(-50%, -96%); }
  30%, 88% { transform: translate(-50%, -90%); opacity: 1; }
  100% { transform: translate(-50%, -90%); opacity: 0; }
}
.map-geofence { position: absolute; left: 50%; top: 38%; }
.geo-ring {
  position: absolute; left: -10px; top: -10px; width: 20px; height: 20px;
  border-radius: 50%; border: 2px solid var(--accent); opacity: 0;
  animation: geoPulse 3.6s ease-out infinite;
}
.geo-ring--late { animation-delay: 1.2s; }
@keyframes geoPulse { 20% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(4.6); opacity: 0; } }
.map-tag {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  padding: 5px 13px; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(26,25,21,.25);
}

/* interactive note cards (tap to complete) */
.note-card--live { cursor: pointer; user-select: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .35s; }
.note-card--live:hover { transform: translateY(-3px); box-shadow: 0 10px 26px -10px rgba(26,25,21,.25); }
.note-card--live:active { transform: scale(.985); }
.note-card--live.done .nc-check { background: var(--ink); border-color: var(--ink); }
.note-card--live.done .nc-check svg { opacity: 1; }
.note-card--live.done .nc-title { text-decoration: line-through; color: var(--ink-3); }
.note-card--live.done { opacity: .65; }
.note-card--live.pop .nc-check { animation: ncPop .45s var(--spring); }
@keyframes ncPop { 40% { transform: scale(1.35) rotate(-6deg); } }

/* calendar — replica of the in-app Calendar screen */
.bc-demo--cal { padding: 16px 14px; align-items: stretch; }
.appcal { width: 100%; }
.appcal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding: 0 2px;
}
.appcal-title { font-family: var(--sans); font-size: 15.5px; font-weight: 600; }
.appcal-nav {
  width: 32px; height: 32px; border-radius: 50%; border: none; background: none;
  font-size: 20px; line-height: 1; color: var(--ink-2); cursor: pointer;
  transition: background .2s, transform .2s var(--ease);
}
.appcal-nav:hover { background: var(--bg-soft); transform: scale(1.1); }
.appcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.appcal-cell {
  position: relative; aspect-ratio: 1 / .92;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--ink); border-radius: 10px;
  border: 1.5px solid transparent; cursor: pointer; background: none;
  font-family: var(--sans); padding: 0;
  transition: background .2s, border-color .2s, transform .15s var(--ease);
}
.appcal-cell:hover { background: var(--bg-soft); }
.appcal-cell:active { transform: scale(.92); }
.appcal-cell--head { aspect-ratio: auto; padding: 3px 0 5px; font-size: 10.5px; font-weight: 500; color: var(--ink-3); cursor: default; }
.appcal-cell--head:hover { background: none; }
.appcal-cell--out { color: #C9C6B8; }
.appcal-cell--dot::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--rb-purple);
}
.appcal-cell--sel { border-color: #7C5CD6; font-weight: 700; }
.appcal-cell--sel::after { content: none; }
.appcal-badge {
  position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: #4A5560; color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  animation: badgeIn .35s var(--spring);
}
@keyframes badgeIn { from { transform: translateX(-50%) scale(0); } }
.appcal-sub { margin: 16px 2px 9px; font-family: var(--sans); font-size: 13.5px; font-weight: 700; }
.appcal-notes { display: flex; flex-direction: column; gap: 8px; min-height: 96px; }
.appcal-note {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; box-shadow: 0 3px 10px -5px rgba(26,25,21,.1);
  animation: anIn .4s var(--ease) backwards;
}
@keyframes anIn { from { opacity: 0; transform: translateY(10px); } }
.appcal-note.leaving { opacity: 0; transform: translateX(24px); transition: opacity .3s, transform .3s var(--ease); }
.an-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #4A5560; }
.an-text { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; transition: color .25s; }
.appcal-note.done .an-text { text-decoration: line-through; color: var(--ink-3); }
.an-box {
  flex: none; width: 21px; height: 21px; border-radius: 7px;
  border: 2px solid var(--ink-3); background: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; color: var(--bg);
  transition: background .25s, border-color .25s, transform .2s var(--spring);
}
.an-box svg { width: 12px; height: 12px; opacity: 0; }
.appcal-note.done .an-box { background: var(--ink); border-color: var(--ink); }
.appcal-note.done .an-box svg { opacity: 1; }
.appcal-note.pop .an-box { animation: ncPop .45s var(--spring); }
.an-trash {
  flex: none; border: none; background: none; cursor: pointer; padding: 4px;
  color: var(--ink-3); transition: color .2s, transform .2s var(--ease);
}
.an-trash:hover { color: var(--accent); transform: scale(1.15); }
.appcal-empty {
  font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--ink-3);
  text-align: center; padding: 22px 0; margin: 0;
}

/* labels fragment — tap to select */
.bc-demo--labels { flex-wrap: wrap; gap: 10px; }
.big-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line);
  cursor: pointer; user-select: none;
  transition: transform .3s var(--spring), background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.big-label:hover { transform: scale(1.07); }
.big-label:active { transform: scale(.94); }
.big-label.sel {
  background: var(--ink); border-color: var(--ink); color: var(--bg);
  box-shadow: 0 8px 20px -8px rgba(26,25,21,.45);
}
.big-label.sel i { box-shadow: 0 0 0 3px rgba(250,249,245,.25); }
.big-label i { width: 9px; height: 9px; border-radius: 50%; transition: box-shadow .25s; }
.bl-1 i { background: #5B5BD6; } .bl-2 i { background: #C04566; } .bl-3 i { background: #0E8A72; }
.bl-4 i { background: #B97A0A; } .bl-5 i { background: #C9603C; }
.in .big-label { animation: nsIn .6s var(--spring) backwards; }
.in .bl-1 { animation-delay: .1s; } .in .bl-2 { animation-delay: .18s; } .in .bl-3 { animation-delay: .26s; }
.in .bl-4 { animation-delay: .34s; } .in .bl-5 { animation-delay: .42s; }

/* smart timing fragment */
.bc-demo--smart { flex-direction: column; gap: 14px; }
.smart-toast {
  display: flex; gap: 10px; align-items: center; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; box-shadow: 0 4px 14px -6px rgba(26,25,21,.12);
}
.in .smart-toast { animation: toastIn .8s .3s var(--spring) backwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-18px) scale(.96); } }
.smart-toast img { border-radius: 6px; }
.st-body { flex: 1; min-width: 0; }
.st-body strong { font-size: 12px; display: block; }
.st-body p { margin: 1px 0 0; font-size: 12.5px; color: var(--ink-2); }
.st-time { font-size: 11px; color: var(--ink-3); align-self: flex-start; }
.smart-bars { display: flex; align-items: flex-end; gap: 7px; height: 44px; width: 100%; padding: 0 6px; }
.smart-bars span {
  flex: 1; border-radius: 6px 6px 2px 2px; background: var(--line);
  height: calc(var(--h) * 100%); transition: height .6s var(--ease);
}
.smart-bars .sb-peak { background: linear-gradient(180deg, var(--rb-amber), var(--accent)); animation: peakGlow 2.6s ease-in-out infinite; }
@keyframes peakGlow { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
.smart-cap { margin: 0; font-size: 12px; color: var(--ink-3); }

/* ---------- scenarios ---------- */
.scen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scen-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.scen-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.scen-card h3 { font-size: 18.5px; margin-bottom: 12px; }
.scen-said {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: 15.5px; line-height: 1.6; color: var(--ink-2);
}

/* the notes that sentence became — open on hover or tap */
.scen-detail {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease), margin-top .5s var(--ease), opacity .4s;
  margin-top: 0; opacity: 0;
}
.scen-detail > div { overflow: hidden; }
.scen-card.open .scen-detail { grid-template-rows: 1fr; margin-top: 16px; opacity: 1; }
@media (hover: hover) {
  .scen-card:hover .scen-detail { grid-template-rows: 1fr; margin-top: 16px; opacity: 1; }
}
.scen-detail h5 {
  margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent);
}
.scen-notes { display: flex; flex-direction: column; gap: 8px; padding-bottom: 2px; }
.scen-notes .note-card { padding: 11px 13px; box-shadow: 0 4px 12px -6px rgba(26,25,21,.14); }
.scen-notes .nc-title { font-size: 13.5px; margin-bottom: 5px; }
.scen-notes .nc-meta { font-size: 11.5px; }

/* ---------- privacy ---------- */
.privacy-strip { background: var(--night); color: var(--night-text); }
.privacy-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: start; }
.privacy-copy .eyebrow { color: var(--rb-gold); }
.privacy-copy h2 { color: var(--night-text); }
.privacy-copy p { color: var(--night-text-2); font-size: 16.5px; margin: 18px 0 30px; max-width: 480px; }
.privacy-points { list-style: none; margin: 6px 0 0; padding: 0; }
.privacy-points li {
  padding: 22px 0; border-bottom: 1px solid rgba(250,249,245,.14);
  display: flex; flex-direction: column; gap: 5px;
}
.privacy-points li:first-child { padding-top: 0; }
.privacy-points li:last-child { border-bottom: 0; }
.privacy-points strong { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.privacy-points span { font-size: 14.5px; color: var(--night-text-2); }

/* ---------- CTA ---------- */
.cta-section { text-align: center; padding: 130px 0; position: relative; overflow: hidden; }
.cta-ribbon { position: absolute; left: 0; right: 0; top: 40px; height: 120px; opacity: .6; pointer-events: none; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-logo { border-radius: 14px; margin-bottom: 26px; }
.cta-section h2 { font-size: clamp(34px, 5vw, 54px); }
.cta-section p { color: var(--ink-2); font-size: 17px; margin: 16px 0 34px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: var(--bg); text-decoration: none;
  padding: 11px 20px; border-radius: 14px;
  transition: transform .25s var(--ease), background .25s;
}
.store-badge:hover { transform: translateY(-3px); background: var(--accent); }
.sb-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.sb-text small { font-size: 10.5px; opacity: .75; }
.sb-text strong { font-size: 16px; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 36px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--ink-2); margin: 16px 0 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  margin: 0 0 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.footer-col a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.maker-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink) !important; }
.maker-note { font-size: 13px; color: var(--ink-3); margin: 4px 0 0; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.steps .step:nth-child(2), .privacy-points li:nth-child(2) { transition-delay: .12s; }
.steps .step:nth-child(3), .privacy-points li:nth-child(3) { transition-delay: .24s; }
.bento .bento-card:nth-child(2) { transition-delay: .08s; }
.bento .bento-card:nth-child(3) { transition-delay: .16s; }
.bento .bento-card:nth-child(4) { transition-delay: .24s; }
.bento .bento-card:nth-child(5) { transition-delay: .32s; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .hero { padding: 140px 0 110px; }
  .hero-grid { grid-template-columns: 1fr; gap: 80px; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-demo { max-width: 480px; margin: 0 auto; }

  .steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .bento { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .bento-card { grid-column: span 1 !important; grid-row: span 1 !important; }
  .scen-grid { grid-template-columns: 1fr 1fr; }
  .privacy-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .main-nav { display: none; }
}
@media (max-width: 600px) {
  .scen-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }

  .demo-shell { padding: 16px 16px 18px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line-inner { transform: none !important; opacity: 1 !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track, .wave span, .map-pin, .geo-ring, .nc-spark, .hero-glow,
  .demo-mic-ring, .smart-bars .sb-peak, .cal-cell--today { animation: none !important; }
  .demo-transcript .w { opacity: 1; transform: none; filter: none; }
  .ribbon-canvas { opacity: 1; }
  * { transition-duration: .01ms !important; }
}
