/* Q/T site. Landing (index) and documents (privacy, support) share these tokens, the header, and the footer. */
:root {
  --bg: #fafafa; --surface: #ffffff; --fg: #171717; --muted: #6b6b70; --faint: #a3a3a8;
  --line: #e7e7ea; --line-strong: #d6d6db; --card: #f4f4f6;
  --accent: #0a6cff; --accent-soft: rgba(10, 108, 255, .12); --green: #1fa463; --green-soft: rgba(31, 164, 99, .13);
  --red: #e5484d; --red-soft: rgba(229, 72, 77, .12);
  --key: #202020; --key-fg: #fcfcfc;
  --glass: rgba(255, 255, 255, .72); --glass-line: rgba(0, 0, 0, .08);
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 1px 2px rgba(0,0,0,.06), 0 24px 60px rgba(20,30,80,.14);
  --aurora-blue: #5c8cff; --aurora-purple: #b36bff; --aurora-pink: #ff7ab3; --aurora-teal: #4dd9d9;
  --grid: rgba(0, 0, 0, .045);
  --frame: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg); overflow-x: hidden;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Pretendard", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
}
header.site .bar { max-width: var(--frame); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
header.site .brand { display: flex; align-items: center; color: var(--fg); }
header.site .brand:hover { text-decoration: none; }
.logo { height: 22px; width: auto; display: block; }
header.site nav { display: flex; gap: 4px; margin: 0 auto; font-size: 14px; }
header.site nav a { color: var(--muted); padding: 6px 12px; border-radius: 999px; }
header.site nav a:hover { color: var(--fg); background: var(--card); text-decoration: none; }
header.site .end { display: flex; align-items: center; gap: 8px; }
.lang { font-size: 14px; color: var(--muted); padding: 6px 10px; }
.lang:hover { color: var(--fg); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--fg); color: var(--bg); box-shadow: var(--shadow); }
.btn.secondary { background: var(--surface); color: var(--fg); border-color: var(--line-strong); }
.btn.small { height: 34px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }
.btn .soon { font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 22%, transparent); }
.btn.secondary .soon { background: var(--card); color: var(--muted); }

/* ---------- Frame: centered column with hairline rails (Dub style) ---------- */
.frame { max-width: var(--frame); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); position: relative; }
.frame + .frame { border-top: 1px solid var(--line); }
.section { padding: 96px 24px 64px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 5px 12px 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: 20px;
}
.eyebrow svg { width: 18px; height: 18px; }
.eyebrow .mascot { height: 18px; width: auto; }
.eyebrow.plain { border: 0; background: none; padding: 0; }
h1, h2, h3 { letter-spacing: -0.022em; font-weight: 600; }
/* Even out line lengths so a sentence never leaves one or two words alone on the last line */
h1, h2, h3, .hero .lead, .section-head p, .final p, .iphone-copy p { text-wrap: balance; }
p, li { text-wrap: pretty; }
/* Korean: wrap between words, not in the middle of one */
:lang(ko) { word-break: keep-all; }
.section-head h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; margin: 0 0 16px; }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }
.pro-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; color: #fff; background: linear-gradient(135deg, var(--aurora-blue), var(--aurora-purple)); vertical-align: 2px; letter-spacing: .02em; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 24px 0; text-align: center; }
.hero > * { position: relative; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.03; margin: 0 auto 20px; max-width: 820px; letter-spacing: -0.035em; }
.hero h1 .grad { background: linear-gradient(100deg, var(--accent), var(--aurora-purple) 55%, var(--aurora-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 800px; margin: 0 auto 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero .hint { margin: 18px 0 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.stage { position: relative; max-width: 680px; margin: 64px auto 0; padding-bottom: 72px; }

/* Aurora: four slow blobs, like ResultAura in the app */
.aurora { position: absolute; inset: -60px -80px -20px; pointer-events: none; filter: blur(48px); opacity: .55; transition: opacity 1.2s ease, transform 1.2s ease; z-index: 0; }
.aurora i { position: absolute; width: 46%; height: 60%; border-radius: 50%; mix-blend-mode: normal; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: var(--aurora-blue); left: 4%; top: 18%; }
.aurora i:nth-child(2) { background: var(--aurora-purple); right: 6%; top: 8%; animation-duration: 22s; animation-delay: -6s; }
.aurora i:nth-child(3) { background: var(--aurora-pink); left: 30%; bottom: 0; animation-duration: 20s; animation-delay: -11s; }
.aurora i:nth-child(4) { background: var(--aurora-teal); right: 18%; bottom: 6%; width: 32%; animation-duration: 25s; animation-delay: -3s; }
.aurora.working { opacity: .9; transform: scale(1.06); }
.aurora.soft { opacity: .32; inset: -30px; filter: blur(36px); }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8%, -10%) scale(1.12); }
  66% { transform: translate(-10%, 6%) scale(.92); }
  100% { transform: translate(6%, 10%) scale(1.06); }
}

/* ---------- Real screenshots ---------- */
/* Panel screenshots are transparent PNGs of the actual window; the drop shadow stands in for the system one. */
/* Animated panels carry their shadow inside the image: a CSS drop-shadow on an animated image is redrawn each frame and flickers. */
.shot { display: block; }
.shotstack { position: relative; width: 100%; z-index: 1; }
.shotstack .shot { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; opacity: 0; transition: opacity .45s ease; }
.shotstack .shot.on { opacity: 1; }
.hero-shot { position: relative; z-index: 1; width: 100%; max-width: 680px; height: auto; margin: 0 auto; }
/* Above the soft aurora in the card, as in the app where the aurora sits behind the panel */
.viz .shot.still { position: relative; z-index: 1; width: 100%; }
.viz .shot.still { height: auto; }
/* iPhone settings screenshots: shown at phone scale, fading out at the bottom of the card */
.viz.ios-crop { place-items: start center; padding-top: 28px; }
.viz.ios-crop.centered { place-items: center; padding-top: 0; }
.viz.ios-crop.centered img { mask-image: none; -webkit-mask-image: none; }
.viz.ios-crop img { display: block; width: min(300px, 82%); height: auto; border-radius: 22px; box-shadow: 0 0 0 1px var(--line), var(--shadow);
  mask-image: linear-gradient(to bottom, #000 70%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.mac .drop .shot { width: 100%; height: auto; filter: drop-shadow(0 6px 14px rgba(20,30,80,.18)); }
.hwin-shot { position: relative; width: 100%; max-width: 420px; }
.hwin-shot img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.row-flash.mac { position: absolute; left: .9%; right: .9%; top: 13.24%; height: 9.52%; border-radius: 6px; background: var(--accent); opacity: 0; mix-blend-mode: multiply; }
.row-flash.mac.go { animation: rowflash 1.6s ease; }

/* ---------- Mac panel (mirrors PanelView) ---------- */
.panel {
  position: relative; z-index: 1; text-align: left; border-radius: 22px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
}
.panel .toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--glass-line); }
.seg { display: inline-flex; padding: 2px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 7%, transparent); }
.seg button { border: 0; background: none; padding: 5px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.langpill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 999px; margin: 0 auto; color: var(--fg); }
.langpill svg { width: 10px; height: 10px; color: var(--muted); }
.tools { display: flex; gap: 4px; }
.tool { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s, transform .2s; }
.tool svg { width: 16px; height: 16px; }
.tool.active { color: var(--accent); background: var(--accent-soft); }
.tool.pulse { animation: pulse .6s ease; }
@keyframes pulse { 50% { transform: scale(1.18); color: var(--accent); background: var(--accent-soft); } }
.panel .io { display: grid; grid-template-rows: auto auto; }
.panel .pane { padding: 18px 20px; min-height: 96px; font-size: 18px; line-height: 1.5; }
.panel .pane + .pane { border-top: 1px solid var(--glass-line); }
.panel .input .placeholder { color: var(--faint); }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--accent); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.panel .output { position: relative; }
.panel .output .text { transition: opacity .35s ease, filter .35s ease; padding-right: 72px; }
.panel .output .text.draft { color: var(--muted); }
.panel .output .text.swap { opacity: 0; filter: blur(4px); }
.panel .output .src { position: absolute; right: 16px; top: 14px; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; background: var(--card); color: var(--muted); opacity: 0; transition: opacity .3s; }
.panel .output .src.show { opacity: 1; }
.panel .output .src.ai { color: #fff; background: linear-gradient(135deg, var(--aurora-blue), var(--aurora-purple)); }
mark.add { background: var(--accent-soft); color: inherit; border-radius: 4px; padding: 0 2px; animation: markin .5s ease both; }
mark.del { background: none; color: var(--red); text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: .75; padding: 0 1px; animation: markin .5s ease both; }
@keyframes markin { from { background-color: transparent; opacity: 0; } }
.panel .foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--glass-line); font-size: 12px; color: var(--muted); }
.panel .foot .status { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.panel .foot .status .mascot { height: 18px; width: auto; }
.panel .foot .left { justify-self: center; }
.panel .foot .copyhint { justify-self: end; display: flex; align-items: center; gap: 6px; }
kbd, .kbd { font: 500 11px/1 -apple-system, BlinkMacSystemFont, sans-serif; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; background: var(--surface); border: 1px solid var(--line-strong); border-bottom-width: 2px; color: var(--fg); }

/* ---------- Mascot (큐티) ---------- */
.mascot { display: inline-block; color: var(--fg); overflow: visible; height: 1.2em; width: auto; aspect-ratio: 48.12 / 30; vertical-align: middle; }
.mascot .eye { fill: var(--bg); }
.mascot .mouth { fill: none; stroke: var(--bg); stroke-width: 1.5; stroke-linecap: round; }
.mascot.big { height: 56px; }
.panel .mascot .eye, .mini .mascot .eye { fill: var(--surface); }
.panel .mascot .mouth { stroke: var(--surface); }
.mascot .eye { transform-box: fill-box; transform-origin: center; animation: eyeblink 3.6s infinite; }
@keyframes eyeblink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(.12); } }
.mascot .k { transition: transform .2s; }
.mascot.thinking .k { animation: keypress .9s ease-in-out infinite; }
.mascot.thinking .k2 { animation-delay: .15s; }
.mascot.thinking .k3 { animation-delay: .3s; }
@keyframes keypress { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
.mascot.listening .k { animation: bounce .35s ease-in-out infinite alternate; }
.mascot.listening .k2 { animation-delay: .1s; }
.mascot.listening .k3 { animation-delay: .2s; }
@keyframes bounce { to { transform: translateY(-4px); } }

/* ---------- Strip of surfaces ---------- */
.surfaces { display: grid; grid-template-columns: repeat(6, 1fr); }
.surface { padding: 22px 12px; text-align: center; font-size: 13px; color: var(--muted); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.surface:last-child { border-right: 0; }
.surface svg { width: 22px; height: 22px; color: var(--fg); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.bento.four { grid-template-columns: repeat(4, 1fr); }
.bento.three { grid-template-columns: repeat(3, 1fr); }
.cell { padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.bento > .cell:nth-child(2n) { border-right: 0; }
.cell.span2 { grid-column: 1 / -1; border-right: 0; }
.bento.four > .cell { border-right: 1px solid var(--line); }
.bento.four > .cell:nth-child(4n) { border-right: 0; }
.bento.three > .cell { border-right: 1px solid var(--line); }
.bento.three > .cell:nth-child(3n) { border-right: 0; }
.bento.no-bottom > .cell { border-bottom: 0; }
.cell h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.01em; }
.cell p { margin: 0; color: var(--muted); font-size: 15px; }
.cell .ico { width: 20px; height: 20px; color: var(--accent); margin-bottom: 14px; }
.viz {
  position: relative; height: 300px; margin-bottom: 28px; border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center;
}
.viz.tall { height: 340px; }
.viz.bare { background: none; border: 0; }
.viz.dotted { background: var(--surface); }

/* Card inside a viz: small glass window */
.mini { position: relative; z-index: 1; width: min(88%, 380px); border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-size: 14px; }
.mini .row { padding: 12px 14px; }
.mini .row + .row { border-top: 1px solid var(--glass-line); }
.mini .label { font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--card); color: var(--muted); }
.chip.blue { background: var(--accent-soft); color: var(--accent); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.grad { color: #fff; background: linear-gradient(135deg, var(--aurora-blue), var(--aurora-purple)); }

/* Draft → refine timeline */
.timeline { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.timeline .bar { flex: 1; height: 4px; border-radius: 4px; background: var(--card); overflow: hidden; }
.timeline .bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--aurora-blue), var(--aurora-purple)); }
.play .timeline .bar i { animation: fill 2.4s ease-in-out infinite; }
@keyframes fill { 0% { width: 0; } 70%, 100% { width: 100%; } }

/* Tone switcher */
.tone-out { min-height: 46px; transition: opacity .3s; }

/* Language list */
.langlist { list-style: none; margin: 0; padding: 6px; }
.langlist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; transition: background .3s, transform .5s cubic-bezier(.3,1.4,.5,1); }
.langlist li .check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.langlist li.on .check { background: var(--accent); border-color: var(--accent); }
.langlist li .check svg { width: 10px; height: 10px; color: #fff; opacity: 0; transition: opacity .2s; }
.langlist li.on .check svg { opacity: 1; }
.langlist li .grip { margin-left: auto; color: var(--faint); }
.langlist li.lift { background: var(--surface); box-shadow: var(--shadow); }

/* Voice */
.wave { display: flex; align-items: center; gap: 4px; height: 56px; }
.wave i { width: 5px; border-radius: 3px; background: var(--accent); height: 20%; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-duration: .9s; }
.wave i:nth-child(3n) { animation-duration: 1.3s; }
@keyframes wave { 50% { height: 100%; } }
.voice-text { font-size: 15px; margin-top: 18px; min-height: 22px; text-align: center; }
.voice-text .vol { color: var(--faint); }

/* OCR scan */
.scan { position: relative; width: 76%; max-width: 280px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #ffe6c7, #ffc9dd 60%, #d6d2ff); box-shadow: var(--shadow); }
.scan .sign { position: absolute; z-index: 1; left: 14%; top: 24%; right: 14%; padding: 10px 12px; border-radius: 8px; background: #2b2f3a; color: #fff; font-size: 13px; line-height: 1.4; text-align: center; }
.scan .sign b { display: block; font-size: 16px; }
.scan .box { position: absolute; inset: -6px; border: 2px solid var(--accent); border-radius: 11px; background: rgba(10,108,255,.12); opacity: 0; }
.scan .beam { position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(to bottom, transparent, rgba(77,155,255,.35), transparent); }
.play .scan .beam { animation: beam 3.2s ease-in-out infinite; }
.play .scan .box { animation: boxin 3.2s ease-in-out infinite; }
@keyframes beam { 0% { top: -40%; } 55%, 100% { top: 110%; } }
@keyframes boxin { 0%, 40% { opacity: 0; } 55%, 90% { opacity: 1; } 100% { opacity: 0; } }
.scan-out { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 2; }

/* Screen capture selection */
.desk { position: relative; width: 86%; height: 78%; border-radius: 10px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.desk .menubar { height: 18px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 8px; }
.desk .menubar img { height: 9px; }
.desk .doc { position: absolute; left: 12%; top: 26%; width: 62%; display: grid; gap: 7px; }
.desk .doc i { display: block; height: 7px; border-radius: 4px; background: var(--line-strong); }
.desk .sel { position: absolute; left: 10%; top: 22%; width: 0; height: 0; border: 1.5px dashed var(--accent); background: rgba(10,108,255,.08); border-radius: 4px; }
.play .desk .sel { animation: select 3.4s ease-in-out infinite; }
@keyframes select { 0%, 10% { width: 0; height: 0; opacity: 1; } 45%, 85% { width: 66%; height: 34%; opacity: 1; } 100% { width: 66%; height: 34%; opacity: 0; } }

/* Clipboard keycaps */
.keys { display: flex; gap: 10px; }
.keycap { width: 64px; height: 64px; border-radius: 16px; background: var(--key); color: var(--key-fg); display: grid; place-items: center; font-size: 22px; font-weight: 600; box-shadow: 0 4px 0 color-mix(in srgb, var(--key) 60%, #888), var(--shadow); transition: transform .12s, box-shadow .12s; }
.keycap.wide { width: 128px; font-size: 16px; }
.keycap.down { transform: translateY(4px); box-shadow: 0 0 0 color-mix(in srgb, var(--key) 60%, #888), var(--shadow); }

/* ---------- Mac mockups: a close crop of a MacBook so the real panel keeps its true size relative to the screen ---------- */
/* The crop shows about 980pt of a 1512pt-wide display; the panel is 640pt wide, so it fills about 65% of the width. */
.mac-wrap { display: grid; justify-items: center; gap: 22px; margin-bottom: 28px; }
.mac-crop { position: relative; width: 100%; max-width: 520px; }
/* Same height as the bottom crop (which adds the 16px base) so both cards line up */
.mac-crop.notch { padding-bottom: 16px; }
.mac-crop .bezel { position: relative; background: #0d0d0f; box-shadow: 0 0 0 1.5px #c9cbd1, var(--shadow-lg); }
.mac-crop .screen { position: relative; aspect-ratio: 980 / 400; overflow: hidden; background: linear-gradient(160deg, #bcd3ff, #e2cdff 50%, #ffd2e4); }
/* The cut edges fade out so the crop reads as intentional */
.mac-crop.notch .bezel { padding: 10px 10px 0; border-radius: 22px 22px 0 0; mask-image: linear-gradient(to bottom, #000 72%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.mac-crop.notch .screen { border-radius: 12px 12px 0 0; }
.mac-crop.bottom .bezel { padding: 0 10px 14px; border-radius: 0 0 6px 6px; mask-image: linear-gradient(to top, #000 72%, transparent); -webkit-mask-image: linear-gradient(to top, #000 72%, transparent); }
.mac-crop .base { position: relative; height: 16px; margin: 0 -6%; border-radius: 2px 2px 16px 16px; background: linear-gradient(#e4e5e9, #b9bbc2); }
.mac-crop .base::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 20%; height: 5px; border-radius: 0 0 6px 6px; background: #a7a9b0; }
/* Menu bar is 24pt and the notch about 190pt wide on a 980pt crop */
.mac-crop .mbar { height: 6%; min-height: 12px; background: rgba(255,255,255,.5); display: flex; align-items: center; padding: 0 10px; gap: 10px; font-size: 9px; font-weight: 500; color: #1d1d1f; }
.mac-crop .mbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mac-crop .mbar .qt-ico { height: 8px; }
.mac-crop .notch { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 19.4%; height: 6%; min-height: 12px; background: #0d0d0f; border-radius: 0 0 8px 8px; z-index: 3; }
/* The panel image carries a 64px shadow margin on a 1408px canvas; 1280px of it is the 640pt panel */
.mac-crop .drop { position: absolute; left: 50%; width: 71.8%; opacity: 0; z-index: 2; transition: transform .55s cubic-bezier(.2,1.15,.4,1), opacity .25s; }
.mac-crop .drop .shot { display: block; width: 100%; height: auto; filter: none; }
.mac-crop.bottom .drop { bottom: 0; transform: translate(-50%, 40%) scale(.92); }
[data-mac].open .mac-crop.bottom .drop { transform: translate(-50%, 0) scale(1); opacity: 1; }
.mac-crop.notch .drop { top: 0; margin-top: -4.5%; transform-origin: top center; transform: translate(-50%, -100%) scale(.5); }
[data-mac].open .mac-crop.notch .drop { transform: translate(-50%, 0) scale(1); opacity: 1; }
.mac-wrap .press { display: flex; gap: 8px; }
.mac-wrap .press .keycap { width: 46px; height: 46px; font-size: 17px; border-radius: 12px; }
.mac-wrap .press .keycap.wide { width: 120px; font-size: 13px; }

/* ---------- iPhone ---------- */
.iphone-wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 0 24px 96px; }
.iphone-copy h3 { font-size: 26px; margin: 0 0 12px; }
.iphone-copy p { color: var(--muted); font-size: 17px; margin: 0 0 22px; }
.iphone-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.iphone-copy li { display: flex; gap: 12px; font-size: 15px; }
.iphone-copy li svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.iphone-copy li b { display: block; font-weight: 600; }
.iphone-copy li span { color: var(--muted); }
.phone-stage { position: relative; display: grid; place-items: center; padding: 20px 0; }
/* iPhone frame: titanium band, black bezel, side buttons; the screen shows real screenshots of the app */
.iphone { position: relative; z-index: 1; width: 290px; padding: 11px; border-radius: 58px; background: #0b0b0c;
  box-shadow: 0 0 0 2.5px #a9acb3, 0 0 0 4px #6e7178, 0 0 0 4.5px rgba(0,0,0,.25), var(--shadow-lg); }
.iphone::before { content: ""; position: absolute; left: -6.5px; top: 17%; width: 3px; height: 5%; border-radius: 2px 0 0 2px; background: #8f9299;
  box-shadow: 0 calc(290px * .16) 0 #8f9299, 0 calc(290px * .29) 0 #8f9299; }
.iphone::after { content: ""; position: absolute; right: -6.5px; top: 27%; width: 3px; height: 11%; border-radius: 0 2px 2px 0; background: #8f9299; }
.iphone-screen { position: relative; aspect-ratio: 1206 / 2622; border-radius: 47px; overflow: hidden; background: #fff; }
.iphone .screen-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.iphone .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.iphone .shot.on { opacity: 1; }
.iphone .island { position: absolute; left: 50%; top: 1.6%; width: 23.6%; height: 4.15%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.iphone.small { width: 250px; border-radius: 50px; padding: 10px; }
.iphone.small .iphone-screen { border-radius: 40px; }
.iphone .row-flash { position: absolute; left: 3.98%; right: 4.15%; top: 19.76%; height: 13.35%; border-radius: 10px 10px 0 0; background: var(--accent); opacity: 0; mix-blend-mode: multiply; }
.iphone .row-flash.go { animation: rowflash 1.6s ease; }
@keyframes rowflash { 15%, 55% { opacity: .16; } 100% { opacity: 0; } }

/* Small iPhone surfaces */
.widget { width: 150px; height: 150px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; border: 1px solid var(--line); }
.widget .mascot { height: 22px; width: auto; }
.widget b { font-size: 14px; }
.widget .wbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.widget .wbtns span { height: 34px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.widget .wbtns span.g { background: var(--green-soft); color: var(--green); }
.cc { display: grid; grid-template-columns: repeat(2, 64px); gap: 12px; }
.cc span { width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 10%, transparent); display: grid; place-items: center; transition: background .3s, color .3s; color: var(--fg); }
.cc span.on { background: var(--accent); color: #fff; }
.cc span img, .cc span svg { width: 26px; height: 26px; }
.cc span img { filter: none; transition: filter .3s; }
.cc span.on img { filter: invert(1); }
.action { position: relative; width: 120px; height: 200px; border-radius: 30px; border: 3px solid var(--line-strong); }
.action .btnside { position: absolute; left: -7px; top: 44px; width: 5px; height: 30px; border-radius: 3px; background: var(--fg); }
.play .action .btnside { animation: sidepress 2.6s ease-in-out infinite; }
@keyframes sidepress { 0%, 30%, 100% { transform: translateX(0); background: var(--fg); } 35%, 45% { transform: translateX(3px); background: var(--accent); } }
.action .flash { position: absolute; inset: 10px; border-radius: 22px; background: var(--card); display: grid; place-items: center; }
.action .flash .mascot { height: 24px; width: auto; opacity: .25; transition: opacity .3s; }
.play .action .flash .mascot { animation: appear 2.6s ease-in-out infinite; }
@keyframes appear { 0%, 38% { opacity: .2; transform: scale(.9); } 50%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: .2; } }
.siri { display: grid; gap: 8px; width: min(86%, 260px); }
.siri .bubble { padding: 10px 14px; border-radius: 16px; background: var(--card); font-size: 13px; }
.siri .bubble.me { justify-self: end; background: var(--accent); color: #fff; }

/* ---------- History & sync ---------- */
/* The Mac window, the iCloud link, and the iPhone sit together in the middle with equal gaps */
.sync { position: relative; display: flex; justify-content: center; align-items: center; gap: 28px; padding: 0 24px 96px; }
.sync .hwin-shot { flex: 0 1 420px; }
.sync .iphone { flex: none; }
.hwin { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.hwin .hbar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.hwin .hbar .dots { display: flex; gap: 6px; margin-right: 6px; }
.hwin .hbar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.hwin .hbar .dots i:nth-child(2) { background: #febc2e; }
.hwin .hbar .dots i:nth-child(3) { background: #28c840; }
.hwin .hbar .filter { margin-left: auto; font-weight: 500; color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.hwin .hbar .filter svg { width: 10px; height: 10px; }
.hlist { list-style: none; margin: 0; padding: 4px 0; }
.hitem { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 10px 14px; transition: background .6s; }
.hitem + .hitem { border-top: 1px solid var(--line); }
.hitem .kind { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.hitem .kind.g { background: var(--green-soft); color: var(--green); }
.hitem .kind svg { width: 15px; height: 15px; }
.hitem .meta { font-size: 11px; color: var(--faint); display: flex; gap: 6px; align-items: center; }
.hitem .meta svg { width: 12px; height: 12px; }
.hitem .src { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hitem .res { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hitem .time { font-size: 11px; color: var(--faint); }
.hitem.new { animation: slidein .6s cubic-bezier(.2,1,.3,1) both; background: var(--accent-soft); }
@keyframes slidein { from { opacity: 0; transform: translateY(-12px); } }
.cloud { display: grid; place-items: center; gap: 8px; color: var(--muted); font-size: 12px; text-align: center; }
.cloud .orb { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--accent); }
.cloud .orb svg { width: 30px; height: 30px; }
.cloud .orb.ping { animation: ping .9s ease; }
@keyframes ping { 40% { box-shadow: 0 0 0 10px var(--accent-soft), var(--shadow); transform: scale(1.06); } }
.cloud .link { display: flex; align-items: center; gap: 10px; }
.cloud .lane { width: 44px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); position: relative; }
.cloud .lane i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); opacity: 0; }
.cloud .lane.go i { animation: travel 1.4s ease-in-out; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 24px 96px; max-width: 900px; margin: 0 auto; }
.plan { position: relative; border-radius: 22px; padding: 30px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.pro { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--aurora-blue), var(--aurora-purple), var(--aurora-pink)) border-box; border: 1.5px solid transparent; box-shadow: var(--shadow-lg); overflow: hidden; }
.plan h3 { font-size: 20px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.plan .price { font-size: 40px; font-weight: 650; letter-spacing: -0.03em; margin: 14px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .alt { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.plan.free li svg { color: var(--muted); }
.plan .ribbon { position: absolute; top: 18px; right: 18px; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; text-align: center; padding: 110px 24px; }
.final .aurora { inset: 10% 10% -40% 10%; opacity: .35; }
.final h2 { position: relative; font-size: clamp(34px, 5.5vw, 56px); line-height: 1.05; margin: 22px 0 16px; }
.final p { position: relative; color: var(--muted); font-size: 18px; margin: 0 0 30px; }
.final .mascot-big { position: relative; height: 64px; width: auto; }
.final .cta { position: relative; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .bar { max-width: var(--frame); margin: 0 auto; padding: 28px 20px 48px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--fg); }
footer.site .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Documents (privacy, support) ---------- */
main.doc { max-width: 720px; margin: 0 auto; padding: 40px 20px 72px; }
main.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.03em; margin: 20px 0 8px; }
main.doc h2 { font-size: 21px; margin: 40px 0 10px; }
main.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
main.doc ul { padding-left: 22px; }
main.doc li { margin: 6px 0; }
main.doc p, main.doc li { line-height: 1.65; }
.note { background: var(--card); border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  header.site nav { display: none; }
  header.site .end { margin-left: auto; }
  .bento.four { grid-template-columns: 1fr 1fr; }
  .bento.four > .cell:nth-child(2n) { border-right: 0; }
  .bento.three { grid-template-columns: 1fr; }
  .bento.three > .cell { border-right: 0; }
  .surfaces { grid-template-columns: repeat(3, 1fr); }
  .surface:nth-child(3) { border-right: 0; }
  .surface:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .iphone-wrap { grid-template-columns: 1fr; }
  .sync { flex-direction: column; gap: 24px; }
  .sync .hwin-shot { flex: none; }
  .cloud .link { flex-direction: column; }
  .cloud .lane { width: 2px; height: 32px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
  .cloud .lane i { display: none; }
}
@media (max-width: 680px) {
  .frame { border-left: 0; border-right: 0; }
  .section { padding: 72px 16px; }
  .hero { padding: 48px 16px 0; }
  .bento, .bento.four { grid-template-columns: 1fr; }
  .cell { border-right: 0 !important; padding: 24px 16px; }
  .pricing { grid-template-columns: 1fr; padding: 0 16px 72px; }
  .iphone-wrap, .sync { padding: 0 16px 72px; }
  .panel .pane { font-size: 16px; padding: 14px 16px; min-height: 80px; }
  .panel .foot { grid-template-columns: 1fr auto; }
  .panel .foot .left { display: none; }
  .langpill { margin: 0 0 0 auto; }
  .panel .tools .tool:first-child { display: none; }
  .iphone { width: 260px; }
  .btn { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
