/* Duotop website. Tokens mirror Shared/Design.swift (Palette, AccentTheme.aurora). */
:root {
  --ink: #09090C;
  --surface: #15151B;
  --raised: #1E1E27;
  --stroke: rgba(255, 255, 255, .09);
  --text: #fff;
  --text-2: rgba(255, 255, 255, .66);
  --text-3: rgba(255, 255, 255, .42);
  --a1: #8B6CFF;
  --a2: #FF5FA2;
  --glow: #B07CFF;
  --good: #4ADE80;
  --grad: linear-gradient(135deg, var(--a1), var(--a2));
  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--round); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 36em; }
.eyebrow { font: 700 .8rem/1 var(--round); letter-spacing: .14em; text-transform: uppercase; color: var(--glow); margin-bottom: 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }

/* Aurora: the accent colours drift like light on a wall. */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); pointer-events: none; }
.aurora i { position: absolute; width: 84vmax; height: 84vmax; border-radius: 50%; opacity: .36; will-change: transform;
  margin: -42vmax 0 0 -42vmax; animation: drift 38s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { left: 22%; top: 18%; background: radial-gradient(circle, var(--a1) 0%, transparent 62%); }
.aurora i:nth-child(2) { left: 80%; top: 30%; background: radial-gradient(circle, var(--a2) 0%, transparent 62%); animation-duration: 46s; animation-delay: -12s; }
.aurora i:nth-child(3) { left: 55%; top: 92%; background: radial-gradient(circle, var(--glow) 0%, transparent 62%); animation-duration: 54s; animation-delay: -25s; }
.aurora i:nth-child(4) { left: 10%; top: 85%; background: radial-gradient(circle, #2A3BFF 0%, transparent 62%); animation-duration: 62s; animation-delay: -8s; }
.aurora::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(9, 9, 12, .25), rgba(9, 9, 12, .82)); }
@keyframes drift {
  0% { transform: translate(-9vw, 7vh) scale(1); }
  50% { transform: translate(7vw, -5vh) scale(1.08); }
  100% { transform: translate(11vw, 9vh) scale(.96); }
}

/* Header */
.top { position: sticky; top: 0; z-index: 20; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.stuck { background: rgba(9, 9, 12, .72); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-color: var(--stroke); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.25rem/1 var(--round); letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-2); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: #fff; }
@media (max-width: 820px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* Buttons (GlowButtonStyle) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 22px; border-radius: 999px;
  font: 600 1rem/1.1 var(--round); text-decoration: none; color: #fff; border: 0; cursor: pointer;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s, background .2s; }
.btn-glow { background: var(--grad); box-shadow: 0 6px 22px rgba(176, 124, 255, .45); }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(176, 124, 255, .6); }
.btn-soft { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--stroke); }
.btn-soft:hover { background: rgba(255, 255, 255, .16); }
.btn:active { transform: scale(.96); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .92rem; }
.btn[aria-disabled="true"] { cursor: default; opacity: .78; }
.btn[aria-disabled="true"]:hover { transform: none; background: rgba(255, 255, 255, .1); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Sections */
section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; }

/* Hero */
.hero { padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 90px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .lead { margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.status { margin-top: 22px; display: grid; gap: 8px; font-size: .93rem; color: var(--text-2); }
.status span { display: flex; gap: 10px; align-items: baseline; }
.status b { color: #fff; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; transform: translateY(-1px); box-shadow: 0 0 10px var(--glow); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding: 0; list-style: none; }
.pills li { font-size: .84rem; color: var(--text-2); padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--stroke); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta, .pills { justify-content: center; }
  .status { justify-items: center; }
}

/* Devices: Apple's official product bezels with real Duotop screens inside. The artwork is shown as supplied:
   it only moves as a whole (rise, float, scroll drift), it is never bent, tilted or recoloured. */
.device { position: relative; margin-inline: auto; isolation: isolate; }
.device::before { content: ""; position: absolute; inset: 8% 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 108, 255, .55), rgba(255, 95, 162, .22) 60%, transparent); filter: blur(46px); }
.device img { display: block; width: 100%; height: auto; filter: drop-shadow(0 34px 44px rgba(0, 0, 0, .6)); }
.device-duo { width: min(420px, 78vw); }
.device-closed { width: min(290px, 62vw); }
.device-open { width: min(540px, 90vw); }
.hero .device { animation: rise 1.3s cubic-bezier(.2, .9, .25, 1) both .15s, float 9s ease-in-out 1.5s infinite; }
.hero .device img { transform: translateY(calc(var(--p, 0) * -22px)) scale(calc(1 + var(--p, 0) * .035)); }
.hero .device::before { animation: glow 7s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(46px) scale(.93); filter: brightness(.4); } to { opacity: 1; transform: none; filter: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes glow { 0%, 100% { opacity: .75; scale: 1; } 50% { opacity: 1; scale: 1.06; } }

/* Postures */
.posture { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; padding: clamp(28px, 5vw, 60px) 0; }
.posture:nth-of-type(even) .posture-art { order: 2; }
.posture-copy .num { font: 800 .82rem/1 var(--round); letter-spacing: .12em; color: var(--text-3); text-transform: uppercase; }
.posture-copy h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 12px 0 14px; letter-spacing: -.02em; line-height: 1.1; }
.posture-copy p { color: var(--text-2); max-width: 30em; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; color: var(--text-2); font-size: .98rem; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; transform: translateY(-2px); }
@media (max-width: 820px) {
  .posture { grid-template-columns: 1fr; text-align: left; }
  .posture:nth-of-type(even) .posture-art { order: 0; }
}

/* Cards */
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g3, .g2 { grid-template-columns: 1fr; } }
.card { background: rgba(21, 21, 27, .72); border: 1px solid var(--stroke); border-radius: 24px; padding: 26px; position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, background .3s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -40%), rgba(176, 124, 255, .16), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .16); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--text-2); font-size: .97rem; }
.ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(139, 108, 255, .28), rgba(255, 95, 162, .22)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tag { display: inline-block; font: 700 .68rem/1 var(--round); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--grad); margin-left: 8px; vertical-align: middle; }

/* Agents */
.agent { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .agent { grid-template-columns: 1fr; } }
.agent-screen { border-radius: 26px; padding: 3px; background: conic-gradient(from var(--ang, 0deg), var(--a1), var(--a2), #2A3BFF, var(--a1)); animation: rim 6s linear infinite; box-shadow: 0 0 60px rgba(176, 124, 255, .4); }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rim { to { --ang: 360deg; } }
.agent-inner { border-radius: 23px; background: #0d0d12; overflow: hidden; }
.agent-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font: 600 .92rem/1.2 var(--round); background: rgba(139, 108, 255, .16); border-bottom: 1px solid var(--stroke); }
.agent-banner .pause { margin-left: auto; font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.agent-log { padding: 18px 18px 22px; font: .84rem/1.9 var(--mono); color: var(--text-2); min-height: 190px; }
.agent-log b { color: var(--glow); font-weight: 500; }
.agent-log div { opacity: 0; animation: logline .5s forwards; }
.agent-log div:nth-child(1) { animation-delay: .2s; } .agent-log div:nth-child(2) { animation-delay: 1s; }
.agent-log div:nth-child(3) { animation-delay: 1.8s; } .agent-log div:nth-child(4) { animation-delay: 2.6s; }
.agent-log div:nth-child(5) { animation-delay: 3.4s; }
@keyframes logline { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.code { display: flex; align-items: center; gap: 12px; margin-top: 22px; background: #0d0d12; border: 1px solid var(--stroke); border-radius: 14px; padding: 12px 12px 12px 16px; font: .82rem/1.5 var(--mono); color: #e7e3ff; overflow: hidden; }
.code code { overflow-x: auto; white-space: nowrap; flex: 1; scrollbar-width: none; }
.copy { flex: none; font: 600 .78rem/1 var(--round); color: #fff; background: rgba(255, 255, 255, .1); border: 0; border-radius: 9px; padding: 8px 11px; cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, .18); }

/* Steps */
.steps { counter-reset: s; }
.step { counter-increment: s; }
.step::after { content: counter(s); position: absolute; right: 18px; top: 6px; font: 800 5.2rem/1 var(--round); color: rgba(255, 255, 255, .05); }
.code-digits { display: flex; gap: 6px; margin-top: 18px; }
.code-digits i { font: 700 1.25rem/1 var(--round); font-style: normal; width: 34px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--stroke); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 32px; border-radius: 28px; }
.plan h3 { margin: 0; font-size: 1.5rem; }
.plan .price { font: 800 2.6rem/1 var(--round); margin: 16px 0 6px; letter-spacing: -.02em; }
.plan .sub { color: var(--text-2); font-size: .95rem; }
.plan-pro { border: 0; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 0 70px rgba(176, 124, 255, .22); }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 4px; }
.prices div { border-radius: 16px; padding: 14px 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--stroke); text-align: center; }
.prices b { display: block; font: 800 1.35rem/1.1 var(--round); }
.prices span { font-size: .8rem; color: var(--text-2); }
.prices em { display: block; font-style: normal; font-size: .72rem; color: var(--good); margin-top: 4px; min-height: 1.2em; }
@media (max-width: 420px) { .prices { grid-template-columns: 1fr; } }
.fine { font-size: .84rem; color: var(--text-3); margin-top: 18px; }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: rgba(21, 21, 27, .72); border: 1px solid var(--stroke); border-radius: 18px; padding: 0 22px; transition: border-color .3s; }
.faq details[open] { border-color: rgba(176, 124, 255, .4); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 700 1.05rem/1.3 var(--round); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--glow); border-bottom: 2px solid var(--glow); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s; flex: none; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq p { color: var(--text-2); padding-bottom: 20px; }

/* Download */
.get { text-align: center; border-radius: 36px; padding: clamp(40px, 7vw, 80px) 24px; background: linear-gradient(rgba(21, 21, 27, .8), rgba(21, 21, 27, .8)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; position: relative; overflow: hidden; }
.get img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 16px 50px rgba(176, 124, 255, .45); }
.get .cta { justify-content: center; }
.get .lead { margin: 16px auto 0; }

/* Footer */
footer { border-top: 1px solid var(--stroke); padding: 44px 0 56px; color: var(--text-3); font-size: .9rem; background: rgba(9, 9, 12, .6); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: #fff; }
footer small { display: block; max-width: 46em; margin-top: 10px; line-height: 1.5; font-size: .8rem; }

/* Inner pages */
.page { padding: clamp(40px, 7vw, 84px) 0 clamp(60px, 9vw, 110px); }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page .lead { margin-top: 18px; }
.prose { max-width: 760px; margin-top: 44px; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 12px; letter-spacing: -.01em; }
.prose h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 12px 0; display: grid; gap: 8px; }
.prose a { color: #cdbdff; text-underline-offset: 3px; }
.prose strong { color: #fff; font-weight: 600; }
.prose code { font: .88em var(--mono); background: rgba(255, 255, 255, .08); padding: 2px 6px; border-radius: 6px; color: #e7e3ff; }
.note { border: 1px solid var(--stroke); background: rgba(139, 108, 255, .1); border-radius: 18px; padding: 18px 20px; margin: 24px 0; color: var(--text-2); }
.note strong { color: #fff; }
.updated { color: var(--text-3); font-size: .9rem; margin-top: 14px; }
.mac-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.mac-hero img { width: 128px; height: 128px; }
@media (max-width: 620px) { .mac-hero { grid-template-columns: 1fr; } }
.steps-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; counter-reset: n; max-width: 760px; }
.steps-list li { counter-increment: n; position: relative; padding: 22px 22px 22px 74px; background: rgba(21, 21, 27, .72); border: 1px solid var(--stroke); border-radius: 20px; color: var(--text-2); }
.steps-list li::before { content: counter(n); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 800 1rem/1 var(--round); }
.steps-list b { display: block; color: #fff; font: 700 1.08rem/1.3 var(--round); margin-bottom: 4px; }

/* Reveal on scroll (only when scripting is on) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

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

/* Footer link rows, comparison table, press kit */
.foot-links { display: grid; gap: 14px; }
.fine a { color: #cdbdff; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin-top: 36px; border: 1px solid var(--stroke); border-radius: 20px; background: rgba(21, 21, 27, .72); }
.cmp { border-collapse: collapse; width: 100%; min-width: 860px; font-size: .95rem; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--stroke); color: var(--text-2); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { color: #fff; font: 700 1rem/1.2 var(--round); }
.cmp th[scope="row"] { color: #fff; font-weight: 600; width: 15%; }
.cmp .us { background: rgba(139, 108, 255, .12); color: #fff; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 24px; max-width: 900px; }
.press-item { display: grid; gap: 14px; align-content: space-between; justify-items: center; padding: 22px 16px 18px; border: 1px solid var(--stroke); border-radius: 20px;
  background: rgba(21, 21, 27, .72); text-decoration: none; color: #fff; font: 700 1rem/1.2 var(--round); text-align: center; transition: border-color .2s, transform .2s; }
.press-item:hover { border-color: rgba(139, 108, 255, .7); transform: translateY(-2px); }
.press-item img { width: auto; max-width: 100%; height: 190px; object-fit: contain; }
.press-item small { display: block; margin-top: 4px; font: 400 .8rem/1.2 var(--sans, inherit); color: var(--text-3); }
.page .device { margin-inline: 0; }
