/* Sive website — shared styles. Light only (owner decision, 2026-09-27).
   Tokens mirror the app's asset catalog; roles are documented in ColorTokens.md.
   Rule carried over from the app: the accent IS the ink — no brand hue.
   Approve / revise / reject colours appear only inside mock app UI. */

@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/PlusJakartaSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #FAF9F5;
  --surface: #FFFFFF;
  --surface-alt: #F0EEE8;
  --ink: #14141A;
  --ink-2: #5C5C66;
  --ink-3: #94949E;
  --hairline: #E4E1D9;
  --icon-bg: #E4E1DA;
  --approve: #2E7D5B;
  --revise: #B08034;
  --reject: #B3402F;

  --gutter: 16px;
  --max: 1240px;
  --radius: 14px;
  --radius-lg: 24px;
  --display: "Jakarta", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.18; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--canvas); padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- icons: the app's own Lucide SVGs, tinted with currentColor via mask ---------- */
.i {
  display: inline-block; width: 1em; height: 1em; flex: none;
  background-color: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
          mask: var(--src) center / contain no-repeat;
}
.i-calendar   { --src: url("/assets/icons/calendar.svg"); }
.i-bell       { --src: url("/assets/icons/remindersBell.svg"); }
.i-mic        { --src: url("/assets/icons/microphone.svg"); }
.i-send       { --src: url("/assets/icons/send.svg"); }
.i-check      { --src: url("/assets/icons/check.svg"); }
.i-home       { --src: url("/assets/icons/Home.svg"); }
.i-badge      { --src: url("/assets/icons/badge-check.svg"); }
.i-shield     { --src: url("/assets/icons/shield.svg"); }
.i-pencil     { --src: url("/assets/icons/pencil.svg"); }
.i-chat       { --src: url("/assets/icons/ChatBubble.svg"); }
.i-ask        { --src: url("/assets/icons/message-circle-question-mark.svg"); }
.i-circle-check { --src: url("/assets/icons/circle-check.svg"); }
.i-list       { --src: url("/assets/icons/list.svg"); }
.i-shield-lock { --src: url("/assets/icons/shield-lock.svg"); }
.i-wifi-off   { --src: url("/assets/icons/wifi-off.svg"); }

/* ---------- the dotted trail: the tail of the Sive "S", reused as the site's motif ---------- */
.trail { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.trail i { display: block; border-radius: 50%; background: currentColor; }
.trail i:nth-child(1) { width: 3px; height: 3px; opacity: .45; }
.trail i:nth-child(2) { width: 4px; height: 4px; opacity: .6; }
.trail i:nth-child(3) { width: 6px; height: 5px; opacity: .75; }
.trail i:nth-child(4) { width: 9px; height: 6px; opacity: .9; }
.trail i:nth-child(5) { width: 14px; height: 7px; border-radius: 4px; }


/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
          backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }
.site-header .container { display: flex; align-items: center; gap: 12px; height: 60px; max-width: calc(var(--max) + 200px); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  min-height: 44px; margin-right: auto;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(20,20,26,.06); }
.brand span { font-family: var(--display); font-size: 1.28rem; letter-spacing: -0.04em; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-size: .94rem;
  padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-alt); }

/* ---------- App Store badge ----------
   Apple's official "Download on the App Store" artwork (black, en-us), unmodified, from
   toolbox.marketingtools.apple.com. Apple's rules: never alter it, keep clear space around it
   of at least a quarter of its height, and never show it below 40px tall on screen. */
.store-badge {
  display: inline-flex; flex: none; text-decoration: none; border-radius: 8px;
  transition: transform .2s var(--ease);
}
.store-badge:active { transform: scale(.97); }
.store-badge img { height: 48px; width: auto; }
.store-badge.sm img { height: 40px; }

/* ---------- placeholders: everything the owner still has to supply ---------- */
.ph {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 20px;
  background: repeating-linear-gradient(135deg, var(--surface-alt) 0 10px, #ECE9E2 10px 20px);
  border: 1.5px dashed #CFCABF; border-radius: var(--radius);
  color: var(--ink-2); font-size: .82rem; line-height: 1.4;
}
.ph .i { font-size: 22px; color: var(--ink-3); }
.ph b { color: var(--ink); font-weight: 600; font-size: .9rem; }
.ph em { font-style: normal; color: var(--ink-3); font-size: .75rem; }

/* ---------- device: Apple's official iPhone 17 frame (Apple Design Resources) ----------
   The PNG was scaled from 1350x2760 to 900x1840; its screen opening is x 48, y 46, 804 x 1748
   in that image. The percentages below are that rectangle. Anything on screen sits UNDER the
   frame, so the frame's own rounded corners and Dynamic Island do the clipping. */
.device {
  position: relative; width: 100%; max-width: 300px; margin: 0 auto;
  aspect-ratio: 900 / 1840;
  filter: drop-shadow(0 28px 36px rgba(20,20,26,.22)) drop-shadow(0 8px 12px rgba(20,20,26,.12));
}
.device > .bezel { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; user-select: none; }
.display {
  position: absolute; left: 5.3333%; top: 2.5%; width: 89.3333%; height: 95%;
  overflow: hidden; border-radius: 13% / 6%; background: var(--canvas);
  container-type: inline-size;
}
.display > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.display > .ph { position: absolute; inset: 0; border: 0; border-radius: 0; }

/* ---------- sections ---------- */
section { position: relative; }
.band { padding: 72px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 14px;
}
.eyebrow .trail { color: var(--ink-3); }
.h2 { font-size: clamp(1.9rem, 7.4vw, 3rem); line-height: 1.08; letter-spacing: -.04em; margin-bottom: 14px; }
.lead { color: var(--ink-2); font-size: 1.06rem; max-width: 36rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
/* ---------- the owner's + / x pattern ----------
   assets/pattern-tile.png is one seamless repeat rebuilt from Pattern.png (a "+" and a "x" cut
   from the original, laid out in its checkerboard). It is a MASK: the colour comes from
   background-color, and a second mask layer (--fade) fades it out, so each use below sets only those two.
   Layers are intersected, so the pattern shows only where the fade is opaque. */
.hero::before, .tabs-wrap::after, .final::before, .row-feature .media::after {
  -webkit-mask: url("/assets/pattern-tile.png") 0 0 / 68px 58px repeat, var(--fade);
  -webkit-mask-composite: source-in;
          mask: url("/assets/pattern-tile.png") 0 0 / 68px 58px repeat, var(--fade);
          mask-composite: intersect;
}
.hero { padding: 28px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background-color: #D8D3C8;
  --fade: radial-gradient(ellipse 75% 50% at 50% 74%, #000 25%, transparent 78%);
}
.hero-grid { display: grid; gap: 40px; }
.hero h1 {
  font-size: clamp(2.5rem, 11.5vw, 4.4rem);
  line-height: 1.02; letter-spacing: -.05em; margin: 6px 0 18px;
}
.hero h1 .soft { color: var(--ink-3); }
.hero .definition { font-size: 1.1rem; color: var(--ink-2); max-width: 30rem; margin-bottom: 26px; }
.hero .definition strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.facts {
  display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; padding: 0; margin: 22px 0 0;
  font-size: .82rem; color: var(--ink-2);
}
.facts li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px; padding: 5px 11px;
}
.facts .i { font-size: 14px; color: var(--ink-3); }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--ink-2); font-size: .95rem; text-decoration: none; border-bottom: 1px solid transparent;
}
.text-link:hover { color: var(--ink); }

/* ---------- hero demo: the app's real chat, rebuilt ----------
   Measured against a 440 x 956 pt iPhone screenshot of the app, so every size below is in
   iOS points: --pt is one point at whatever width the phone is drawn. Sources: ChatOverlayView,
   ChatTranscriptView, ReviewCardView, BottomBarView. The status bar and the Calendar behind
   the frosted box are the real screenshot (assets/shots/calendar.webp). */
.ios {
  --pt: calc(100cqw / 440);
  position: absolute; inset: 0; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0; -webkit-font-smoothing: antialiased;
}
.ios .ico { display: block; flex: none; background-color: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.ios .bar-cover { position: absolute; left: 0; right: 0; bottom: 0; height: calc(110 * var(--pt)); background: var(--canvas); }
.ios .col {
  position: absolute; top: calc(62 * var(--pt)); bottom: calc(39 * var(--pt));
  left: calc(16 * var(--pt)); right: calc(16 * var(--pt));
  display: flex; flex-direction: column; gap: calc(10 * var(--pt));
}
/* ChatOverlayView: .ultraThinMaterial, 24pt corners, ink stroke at 35%, soft shadow */
.chat-box {
  position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column;
  border-radius: calc(24 * var(--pt));
  background: rgba(236, 235, 234, .62);
  -webkit-backdrop-filter: blur(calc(22 * var(--pt)));
          backdrop-filter: blur(calc(22 * var(--pt)));
  box-shadow: inset 0 0 0 1px rgba(20,20,26,.35), 0 calc(6 * var(--pt)) calc(24 * var(--pt)) rgba(0,0,0,.12);
}
.chat-head {
  display: flex; justify-content: space-between; align-items: center; color: var(--ink-2);
  padding: calc(12 * var(--pt)) calc(14 * var(--pt)) calc(4 * var(--pt));
  height: calc(34 * var(--pt));
}
.chat-head .min { width: calc(16 * var(--pt)); height: calc(16 * var(--pt)); --src: url("/assets/icons/minimize.svg"); }
.chat-head .clear { width: calc(18 * var(--pt)); height: calc(18 * var(--pt)); --src: url("/assets/icons/clearChat.svg"); }
.chat-empty {
  flex: 1; display: flex; align-items: center; justify-content: center; position: relative; color: var(--ink-2);
  font-size: calc(15 * var(--pt)); line-height: 1.33; letter-spacing: calc(-0.23 * var(--pt));
}
.chat-empty .ph-line {
  position: absolute; display: flex; align-items: center; gap: calc(8 * var(--pt));
  opacity: 0; transition: opacity .6s ease-in-out;
}
.chat-empty .ph-line.on { opacity: 1; }
.chat-empty .ph-line .ico { width: calc(22 * var(--pt)); height: calc(22 * var(--pt)); --src: url("/assets/icons/SiveModel1.svg"); }
.chat-list {
  flex: 1; min-height: 0; overflow: hidden; padding: calc(16 * var(--pt));
  display: flex; flex-direction: column; gap: calc(12 * var(--pt));
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 calc(24 * var(--pt)));
          mask-image: linear-gradient(180deg, transparent 0, #000 calc(24 * var(--pt)));
}
.msg-user {
  align-self: flex-end; max-width: 100%;
  background: var(--surface); border-radius: calc(16 * var(--pt));
  padding: calc(8 * var(--pt)) calc(12 * var(--pt));
  font-size: calc(17 * var(--pt)); line-height: calc(22 * var(--pt)); letter-spacing: calc(-0.43 * var(--pt)); margin: 0;
}
.msg-bot { display: flex; flex-direction: column; gap: calc(6 * var(--pt)); align-items: flex-start; }
.msg-bot > p { margin: 0; font-size: calc(15 * var(--pt)); line-height: calc(20 * var(--pt)); letter-spacing: calc(-0.23 * var(--pt)); }
/* ReviewCardView: ink card, canvas text, 12pt padding, 14pt corners */
.review {
  align-self: stretch; background: var(--ink); color: var(--canvas);
  border-radius: calc(14 * var(--pt)); padding: calc(12 * var(--pt));
  display: flex; flex-direction: column; gap: calc(10 * var(--pt));
}
.review .group { display: flex; flex-direction: column; gap: calc(6 * var(--pt)); }
.review .label {
  display: flex; align-items: center; gap: calc(6 * var(--pt));
  font-size: calc(12 * var(--pt)); line-height: calc(15 * var(--pt)); font-weight: 600; color: rgba(250,249,245,.65);
}
.review .label .ico { width: calc(13 * var(--pt)); height: calc(13 * var(--pt)); }
.review .item { display: flex; align-items: flex-start; gap: calc(8 * var(--pt)); }
.review .tick {
  flex: none; width: calc(19 * var(--pt)); height: calc(19 * var(--pt)); margin: calc(0.5 * var(--pt)) calc(9 * var(--pt)) 0 calc(0.5 * var(--pt));
  border-radius: 50%; background: var(--canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314141A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7 9.8 16.5 5 11.8'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.review .t { font-size: calc(15 * var(--pt)); line-height: calc(20 * var(--pt)); font-weight: 500; letter-spacing: calc(-0.23 * var(--pt)); }
.review .d { font-size: calc(12 * var(--pt)); line-height: calc(15 * var(--pt)); color: rgba(250,249,245,.65); }
.review .foot { display: flex; align-items: center; gap: calc(10 * var(--pt)); min-height: calc(44 * var(--pt)); }
.review .approve, .review .revise {
  border-radius: 999px; font-size: calc(15 * var(--pt)); line-height: calc(20 * var(--pt)); letter-spacing: calc(-0.23 * var(--pt)); position: relative; overflow: hidden;
  transition: transform .12s ease-out, opacity .12s ease-out;
}
.review .approve { background: var(--canvas); color: var(--ink); font-weight: 600; padding: calc(11 * var(--pt)) calc(18 * var(--pt)); }
.review .revise { color: var(--canvas); font-weight: 500; padding: calc(10 * var(--pt)) calc(16 * var(--pt));
  background: rgba(250,249,245,.28); box-shadow: inset 0 0 0 1px rgba(250,249,245,.3); }
.review .reject { margin-left: auto; color: var(--reject); font-size: calc(13 * var(--pt)); letter-spacing: calc(-0.08 * var(--pt)); padding-right: calc(4 * var(--pt)); }
.review .approve.pressed { transform: scale(.94); opacity: .85; }
.review .approve.flash::after { content: ""; position: absolute; inset: 0; background: var(--approve); opacity: 0; animation: flash .7s ease-out; }
@keyframes flash { from { opacity: .35; } to { opacity: 0; } }
.review .done {
  display: none; align-items: center; gap: calc(5 * var(--pt)); color: var(--approve);
  font-size: calc(12 * var(--pt)); line-height: calc(16 * var(--pt)); font-weight: 500;
}
.review .done i { width: calc(14 * var(--pt)); height: calc(14 * var(--pt)); border-radius: 50%;
  background: var(--approve) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314141A' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7 9.8 16.5 5 11.8'/%3E%3C/svg%3E") center / 62% no-repeat; }
.review.approved .tick, .review.approved .foot { display: none; }
.review.approved .done { display: inline-flex; animation: settle .35s cubic-bezier(.3,1.3,.5,1); }
@keyframes settle { from { opacity: 0; transform: scale(.85); } }
/* ThinkingIndicator: the two model marks cross-fading over 3s, a bright band sweeping the word every 1.5s */
.thinking { display: flex; align-items: center; gap: calc(8 * var(--pt)); }
.thinking .marks { position: relative; width: calc(30 * var(--pt)); height: calc(30 * var(--pt)); color: var(--ink); }
.thinking .marks .ico { position: absolute; inset: 0; }
.thinking .m1 { --src: url("/assets/icons/SiveModel1.svg"); animation: m1 3s ease-in-out infinite; }
.thinking .m2 { --src: url("/assets/icons/SiveModel2.svg"); animation: m2 3s ease-in-out infinite; }
@keyframes m1 { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes m2 { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.thinking .word { position: relative; font-size: calc(16 * var(--pt)); line-height: calc(21 * var(--pt)); letter-spacing: calc(-0.31 * var(--pt)); font-weight: 600; color: rgba(20,20,26,.4); }
.thinking .word::after {
  content: attr(data-word); position: absolute; inset: 0; color: var(--ink);
  -webkit-mask: linear-gradient(90deg, transparent, #000, transparent) no-repeat;
          mask: linear-gradient(90deg, transparent, #000, transparent) no-repeat;
  -webkit-mask-size: calc(55 * var(--pt)) 100%; mask-size: calc(55 * var(--pt)) 100%;
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer {
  from { -webkit-mask-position: calc(-55 * var(--pt)) 0; mask-position: calc(-55 * var(--pt)) 0; }
  to   { -webkit-mask-position: calc(100% + 55 * var(--pt)) 0; mask-position: calc(100% + 55 * var(--pt)) 0; }
}
/* PopIn: rise from 0.96 at the bottom-leading corner, spring(0.4, 0.78) */
.pop-in { animation: popin .5s cubic-bezier(.3, 1.2, .5, 1) both; transform-origin: bottom left; }
@keyframes popin { from { opacity: 0; transform: translateY(calc(8 * var(--pt))) scale(.96); } }
/* BottomBarView input capsule */
.capsule {
  display: flex; align-items: flex-end; gap: calc(10 * var(--pt));
  padding: calc(12 * var(--pt)) calc(16 * var(--pt)); border-radius: 999px;
  background: rgba(236, 235, 232, .62);
  -webkit-backdrop-filter: blur(calc(22 * var(--pt))); backdrop-filter: blur(calc(22 * var(--pt)));
  box-shadow: inset 0 0 0 1px rgba(20,20,26,.4);
}
.capsule .chev { width: calc(24 * var(--pt)); height: calc(24 * var(--pt)); color: var(--ink-2); --src: url("/assets/icons/chevron-right.svg"); margin-bottom: calc(-0.5 * var(--pt)); }
.capsule .field {
  flex: 1; min-width: 0; max-height: calc(66 * var(--pt)); overflow: hidden;
  font-size: calc(17 * var(--pt)); line-height: calc(22 * var(--pt)); letter-spacing: calc(-0.43 * var(--pt)); color: var(--ink); word-wrap: break-word;
}
.capsule .field .hint { color: var(--ink-3); }
.capsule .caret {
  display: inline-block; width: calc(2 * var(--pt)); height: calc(21 * var(--pt)); margin: 0 calc(1 * var(--pt)) calc(-4 * var(--pt)) 0;
  background: var(--ink); border-radius: 1px; animation: blink 1.1s steps(1) infinite;
}
.capsule.typing .caret { animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.capsule .trail-icons { position: relative; flex: none; width: calc(56 * var(--pt)); height: calc(26 * var(--pt)); }
.capsule .trail-icons > * { position: absolute; top: 50%; transition: opacity .3s, transform .35s cubic-bezier(.3,1.3,.5,1); }
.capsule .mic { right: calc(-1 * var(--pt)); width: calc(24 * var(--pt)); height: calc(24 * var(--pt)); color: var(--ink); --src: url("/assets/icons/audio-lines.svg"); transform: translateY(-50%); }
.capsule .xs { right: 0; display: flex; align-items: center; gap: calc(10 * var(--pt)); opacity: 0; transform: translateY(-50%) scale(.7); }
.capsule .xs .x { width: calc(20 * var(--pt)); height: calc(20 * var(--pt)); color: var(--ink-2); --src: url("/assets/icons/x.svg"); }
.capsule .xs .send { width: calc(26 * var(--pt)); height: calc(26 * var(--pt)); color: var(--ink); --src: url("/assets/icons/send.svg"); transition: transform .12s ease-out; }
.capsule .xs .send.pressed { transform: scale(.85); }
.capsule.has-text .mic { opacity: 0; transform: translateY(-50%) scale(.7); }
.capsule.has-text .xs { opacity: 1; transform: translateY(-50%) scale(1); }
.demo [hidden] { display: none !important; }
.demo-replay {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px auto 0;
  background: none; border: 0; color: var(--ink-3); font: inherit; font-size: .82rem;
  min-height: 44px; padding: 0 12px; cursor: pointer; border-radius: 10px;
}
.demo-replay:hover { color: var(--ink); }
.no-js .demo-replay { display: none; }

/* ---------- how it works ---------- */
.steps { display: grid; gap: 14px; list-style: none; padding: 0; margin: 36px 0 0; counter-reset: s; }
.steps li {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 22px 22px 20px; counter-increment: s;
}
.steps .num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--canvas); font-family: var(--display); font-size: .85rem; margin-bottom: 14px;
}
.steps h3 { font-size: 1.2rem; letter-spacing: -.025em; margin-bottom: 6px; }
.steps p { color: var(--ink-2); margin: 0; font-size: .97rem; }

/* ---------- tabs: say it however it comes out ---------- */
.tabs-wrap { background: var(--ink); color: var(--canvas); border-radius: 32px; margin: 0 var(--gutter); padding: 56px 0; overflow: hidden; position: relative; }
.tabs-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; background-color: rgba(250,249,245,.11);
  --fade: linear-gradient(180deg, #000 0%, transparent 55%);
}
.tabs-wrap .eyebrow, .tabs-wrap .eyebrow .trail { color: rgba(250,249,245,.5); }
.tabs-wrap .lead { color: rgba(250,249,245,.7); }
.tablist {
  display: flex; gap: 4px; padding: 4px; margin: 28px 0 22px;
  background: rgba(250,249,245,.08); border-radius: 999px; width: 100%; max-width: 420px;
  position: relative; z-index: 1;
}
.tablist button {
  flex: 1; min-height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: rgba(250,249,245,.7); font: inherit; font-size: .95rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .25s, color .25s;
}
.tablist button .i { font-size: 15px; }
.tablist button[aria-selected="true"] { background: var(--canvas); color: var(--ink); }
.panel { position: relative; z-index: 1; display: grid; gap: 28px; }
.panel[hidden] { display: none; }
.no-js .panel[hidden] { display: grid; margin-top: 40px; }  /* without JS, show all three stacked */
.panel h3 { font-size: 1.5rem; letter-spacing: -.03em; margin-bottom: 10px; }
.panel p { color: rgba(250,249,245,.72); }
.panel .device { max-width: 250px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.panel .ph { background: repeating-linear-gradient(135deg, #202027 0 10px, #26262e 10px 20px); color: rgba(250,249,245,.6); }
.panel .ph b { color: var(--canvas); }
.panel .ph .i { color: rgba(250,249,245,.4); }

/* ---------- alternating feature rows ---------- */
.rows { display: grid; gap: 72px; margin-top: 44px; }
.row-feature { display: grid; gap: 28px; align-items: center; }
.row-feature .device { max-width: 236px; }
/* Pattern area behind each screenshot (the pattern itself is set up under "hero"). */
.row-feature .media {
  position: relative; isolation: isolate; padding: 36px 20px;
}
/* Tile and pattern both fade into the page, so there is no hard edge around the screenshot. */
.row-feature .media::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 28px;
  background: radial-gradient(ellipse 70% 62% at 50% 50%, var(--surface-alt) 45%, transparent 100%);
}
.row-feature .media::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background-color: #C9C3B7;
  --fade: radial-gradient(ellipse 62% 56% at 50% 50%, #000 40%, transparent 100%);
}
.row-feature h3 { font-size: clamp(1.5rem, 6vw, 2rem); letter-spacing: -.035em; line-height: 1.12; margin-bottom: 12px; }
.row-feature p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.ticks .i { color: var(--ink); font-size: 16px; margin-top: 4px; }

/* ---------- feature cards ---------- */
.cards { display: grid; gap: 12px; margin-top: 36px; grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 18px; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start;
}
.card .ico { grid-row: span 2; }
.card .ico {
  width: 40px; height: 40px; border-radius: 12px; background: var(--surface-alt);
  display: grid; place-items: center;
}
.card .ico .i { font-size: 19px; }
.card h3 { font-size: 1.08rem; letter-spacing: -.02em; margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------- privacy ---------- */
.privacy-card {
  display: grid; gap: 24px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 28px; padding: 28px 22px;
}
.privacy-card .shield {
  width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: var(--canvas);
  display: grid; place-items: center;
}
.privacy-card .shield .i { font-size: 24px; }
.privacy-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.privacy-list li { padding-left: 18px; position: relative; color: var(--ink-2); font-size: .97rem; }
.privacy-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.privacy-list strong { color: var(--ink); font-weight: 600; }

/* ---------- new in sive ---------- */
.news { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 32px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 16px; scrollbar-width: none; }
.news::-webkit-scrollbar { display: none; }
.news article {
  flex: 0 0 82%; max-width: 320px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 20px;
}
.news .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; margin-bottom: 14px; }
.news .tag.new { background: var(--ink); color: var(--canvas); }
.news .tag.soon { background: var(--surface-alt); color: var(--ink-2); }
.news h3 { font-size: 1.1rem; letter-spacing: -.02em; margin-bottom: 6px; }
.news p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.news article.ph { flex-direction: column; align-items: flex-start; text-align: left; justify-content: flex-start; background: repeating-linear-gradient(135deg, var(--surface-alt) 0 10px, #ECE9E2 10px 20px); border: 1.5px dashed #CFCABF; }

/* ---------- faq ---------- */
.faq { margin-top: 32px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; min-height: 44px; font-family: var(--display); font-size: 1.06rem; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-alt)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314141A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { color: var(--ink-2); padding: 0 0 20px; max-width: 42rem; }
.faq .answer p:last-child { margin: 0; }

/* ---------- final cta ---------- */
.final {
  text-align: center; padding: 64px 22px; border-radius: 32px; margin: 0 var(--gutter);
  background: var(--surface-alt); position: relative; overflow: hidden;
}
.final::before {
  content: ""; position: absolute; inset: 0; background-color: #D9D4C9;
  --fade: radial-gradient(ellipse at center, transparent 32%, #000 92%);
}
.final > * { position: relative; }
.final .app-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 14px 30px -12px rgba(20,20,26,.3); }
.final .h2 { margin-bottom: 10px; }
.final .lead { margin: 0 auto 26px; }

/* ---------- footer ---------- */
.site-footer { padding: 56px 0 40px; font-size: .9rem; color: var(--ink-2); }
.foot-top { display: grid; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--hairline); }
.foot-brand .brand { color: var(--ink); }
.foot-brand p { margin: 12px 0 0; max-width: 22rem; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot-links h2 { font-family: var(--text); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.foot-links ul { list-style: none; margin: 0; padding: 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--ink); }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface-alt);
  color: var(--ink); text-decoration: none;
}
.socials a:hover { background: var(--hairline); }
.foot-bottom { padding-top: 22px; display: grid; gap: 8px; font-size: .78rem; color: var(--ink-3); }
.foot-bottom p { margin: 0; }

/* ---------- scroll reveals (JS adds .js; content is visible without it) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .demo-replay { display: none; }
  .thinking .ico, .thinking .word::after { animation: none; }
}

/* ---------- larger phones / small tablets ---------- */
@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { display: block; padding: 22px; }
  .card .ico { margin-bottom: 16px; }
  .row-feature .device { max-width: 260px; }
  .news article { flex-basis: 300px; }
  .foot-top { grid-template-columns: 1.2fr 1fr; }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .nav-links { display: flex; margin-right: 8px; }
  .site-header .container { height: 68px; }
  .hero { padding: 56px 0 96px; }
  .hero::before { --fade: radial-gradient(ellipse 36% 70% at 71% 50%, #000 25%, transparent 78%); }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
  .hero .device { max-width: 330px; }
  .band { padding: 112px 0; }
  .tabs-wrap { padding: 88px 0; margin: 0 auto; max-width: calc(var(--max) + 80px); border-radius: 40px; }
  .panel { grid-template-columns: 1fr 280px; align-items: start; gap: 64px; }
  .panel .device { max-width: 270px; margin-top: -250px; }  /* rise level with the heading */
  .tabs-wrap .h2 { max-width: calc(100% - 344px); }
  .tabs-wrap .lead { max-width: min(36rem, calc(100% - 344px)); }
  .row-feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .row-feature .media { padding: 56px 40px; }
  .row-feature:nth-child(even) .media { order: -1; }
  .rows { gap: 112px; margin-top: 64px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .privacy-card { grid-template-columns: 52px 1fr 1.2fr; gap: 36px; padding: 44px; align-items: start; }
  .news { margin: 40px 0 0; padding: 4px 0 16px; overflow: visible; display: grid; grid-template-columns: repeat(3, 1fr); }
  .news article { max-width: none; }
  .faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .faq-grid .faq { margin-top: 0; }
  .final { padding: 96px 40px; margin: 0 auto; max-width: calc(var(--max) + 80px); border-radius: 40px; }
  .foot-top { grid-template-columns: 1.4fr 1fr; }
  .foot-bottom { grid-template-columns: 1fr auto; }
}

/* ---------- document pages: privacy & support ---------- */
.doc { max-width: 40rem; margin: 0 auto; padding: 24px var(--gutter) 40px; }
.doc-head { padding: 24px 0 32px; margin-bottom: 36px; border-bottom: 1px solid var(--hairline); }
.doc-head h1 { font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1.08; letter-spacing: -.045em; margin: 0 0 10px; }
.doc .meta { color: var(--ink-3); font-size: .875rem; line-height: 1.5; margin: 0; }
.doc .summary {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 22px 22px 18px; margin: 0 0 40px;
}
.doc .summary .label, .doc nav.toc h2 {
  font-family: var(--text); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 .8rem; padding: 0; border: 0;
}
.doc .summary p { margin: 0 0 .85rem; }
.doc .summary p:last-child { margin-bottom: 0; }
.doc .summary strong { font-weight: 650; }
.doc .lede { color: var(--ink-2); }
.doc .email { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.02em; }
.doc nav.toc { margin: 0 0 48px; }
.doc nav.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.doc nav.toc li { counter-increment: toc; border-bottom: 1px solid var(--hairline); }
.doc nav.toc a { display: flex; gap: 14px; align-items: center; min-height: 46px; text-decoration: none; color: var(--ink); font-size: .96rem; }
.doc nav.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--ink-3); font-size: .78rem; font-variant-numeric: tabular-nums; width: 1.6rem; }
.doc nav.toc a:hover { color: var(--ink-2); }
.doc section { margin: 0 0 44px; }
.doc h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 14px; display: flex; gap: 12px; align-items: baseline; }
.doc h2 .num { flex: none; display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--surface-alt); font-size: .78rem; color: var(--ink-2); transform: translateY(-2px); }
.doc p, .doc li { color: #2C2C33; }
.doc ul { padding-left: 1.2rem; margin: 0 0 1em; }
.doc li { margin: 0 0 .45em; }
.doc li::marker { color: var(--ink-3); }
.doc strong { font-weight: 650; color: var(--ink); }
.doc main a { text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.doc main a:hover { text-decoration-color: var(--ink); }
.doc .totop { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-3); font-size: .875rem; text-decoration: none; }

@media print {
  .site-header, .site-footer, .doc nav.toc, .doc .totop { display: none; }
  body { background: #fff; font-size: 11pt; }
}
