:root {
  --bg: #f6f7fb; --band: rgba(20, 40, 80, .035); --card: #ffffff; --line: #e1e1e6; --text: #1d1d1f; --dim: #6b6b72;
  --glass: rgba(255, 255, 255, .62); --glass-line: rgba(255, 255, 255, .85); --field: rgba(20, 40, 80, .06); --page-glow: rgba(90, 140, 230, .12);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a;
  --sky: linear-gradient(180deg, #d6e4f6 0%, #e9eef7 45%, #f6e9da 78%, var(--bg) 100%);
  --star: transparent; --glow: rgba(255, 166, 92, .32); --ridge1: #c8d2e2; --ridge2: #dbe1eb; --veg: #aeb9cb;
  --uluru-top: #db7a4c; --uluru-base: #b04f2e; --uluru-shadow: rgba(95, 32, 18, .38); --uluru-groove: rgba(120, 38, 18, .5); --uluru-lit: rgba(255, 214, 176, .8); --uluru-haze: .62;
  --accent: #0b63ce; --accent-ink: #ffffff; --accent-soft: #e8f1fc; --ok: #1a8a4c; --warn: #9a5b00; --bad: #b3372f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06080f; --band: rgba(140, 170, 255, .028); --card: #12151d; --line: #262b38; --text: #f5f5f7; --dim: #a3a7b3;
    --glass: rgba(22, 27, 40, .5); --glass-line: rgba(255, 255, 255, .09); --field: rgba(255, 255, 255, .065); --page-glow: rgba(70, 110, 220, .16);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70;
    --sky: linear-gradient(180deg, #04060d 0%, #081127 42%, #142039 70%, #2a2232 88%, var(--bg) 100%);
    --star: #ffffff; --glow: rgba(255, 138, 64, .26); --ridge1: #263150; --ridge2: #161d33; --veg: var(--bg);
    --uluru-top: #a3442a; --uluru-base: #5e2519; --uluru-shadow: rgba(12, 5, 10, .6); --uluru-groove: rgba(42, 12, 8, .8); --uluru-lit: rgba(255, 152, 92, .55); --uluru-haze: .58;
    --accent: #4c9bff; --accent-ink: #00122b; --accent-soft: #10233d; --ok: #4fd08a; --warn: #e5ad52; --bad: #ff7a70;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: radial-gradient(1400px 520px at 50% -160px, var(--page-glow), transparent 70%) no-repeat, var(--bg); color: var(--text); font: 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
/* Frosted glass: panels let the scene and the page's colour show through. */
.tile, .card, .demo, .panel, .proof, .feat-box {
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}

/* hero scene: a southern night sky (with the Southern Cross) over outback ridges, drawn in SVG */
.hero { position: relative; overflow: hidden; background: var(--sky); }
.hero > .wrap { position: relative; z-index: 1; }
.scene { position: absolute; inset: 0; pointer-events: none; }
.scene .sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky circle { fill: var(--star); }
.sky .crux circle { filter: drop-shadow(0 0 3px rgba(190, 215, 255, .9)); }
.sky .tw { animation: twinkle 7s ease-in-out infinite; }
.sky .tw.d0 { animation-delay: 0.0s; }
.sky .tw.d1 { animation-delay: 1.1s; }
.sky .tw.d2 { animation-delay: 2.2s; }
.sky .tw.d3 { animation-delay: 3.3s; }
.sky .tw.d4 { animation-delay: 4.4s; }
.sky .tw.d5 { animation-delay: 5.5s; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
.scene .glow { position: absolute; left: 50%; bottom: 4%; width: 140%; height: 60%; transform: translateX(-50%);
               background: radial-gradient(closest-side, var(--glow), transparent 75%); }
.scene .ridges { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(150px, 20vw, 290px); }
.ridges .r1 { fill: var(--ridge1); }
.ridges .r2 { fill: var(--ridge2); }
.ridges .r3 { fill: var(--veg); }
.ridges .r3 .ground { fill: var(--bg); }
.ridges .rim { fill: none; stroke: var(--glow); stroke-width: 1.6; opacity: .9; }
.ridges .rim.faint { opacity: .45; }
/* distance haze: the far rock lets the sky through, so it sits behind the ridges */
.uluru { opacity: var(--uluru-haze); }
.uluru .rock { fill: url(#uluru-body); }
.uluru .shade { fill: url(#uluru-shade); }
.ridges .u-top { stop-color: var(--uluru-top); }
.ridges .u-base { stop-color: var(--uluru-base); }
.ridges .u-clear { stop-color: transparent; }
.ridges .u-dark { stop-color: var(--uluru-shadow); }
.uluru .gullies { fill: none; stroke: var(--uluru-groove); stroke-width: 1.1; stroke-linecap: round; }
.uluru .caves { fill: var(--uluru-groove); }
.uluru .lit { fill: none; stroke: var(--uluru-lit); stroke-width: 1.5; stroke-linecap: round; }
.proof { border-radius: 24px; padding: 18px 10px; box-shadow: var(--shadow); }
/* our model: Apple-style headline numbers */
#model { padding-top: clamp(56px, 8vw, 96px); }
.benches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.bench { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 18px 22px; border-radius: 22px;
         background: var(--glass); border: 1px solid var(--glass-line);
         -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.bench b { font-size: clamp(40px, 5.4vw, 60px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums;
           background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--accent) 70%, var(--text))); -webkit-background-clip: text;
           background-clip: text; color: transparent; }
.bench .bench-name { margin-top: 12px; font-weight: 600; font-size: 15.5px; }
.bench .bench-what { margin-top: 4px; color: var(--dim); font-size: 14px; }
.bench-note { text-align: center; color: var(--dim); font-size: 14px; margin-top: 22px; }
@media (max-width: 820px) { .benches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#plans { position: relative; }
#plans::before { content: ""; position: absolute; inset: 0 0 auto; height: 70%; pointer-events: none; z-index: -1;
                 background: radial-gradient(60% 50% at 50% 40%, rgba(76, 155, 255, .10), transparent 70%); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }
#plans .wrap { max-width: 1120px; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { letter-spacing: -0.022em; margin: 0; }
h1 { font-size: clamp(42px, 8.2vw, 88px); line-height: 1.03; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; font-weight: 700; text-align: center; text-wrap: balance; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--field); border-radius: 6px; padding: 1px 6px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 78%, transparent);
       backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
       border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-in { display: flex; align-items: center; gap: 22px; height: 52px; }
.brand { font-weight: 650; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; }
/* The wordmark decodes to ASC and back (assets/brand.js); scrambled characters are code-coloured. */
.brand .glitch { font-family: var(--mono); font-weight: 500; font-size: .92em; color: var(--accent); opacity: .85; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--dim); }
.nav-links a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; font: 600 17px var(--sans);
       background: var(--accent); color: var(--accent-ink); border-radius: 980px; padding: 13px 26px; transition: transform .15s, opacity .15s; }
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }
.btn.small { font-size: 14px; padding: 7px 15px; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }
.btn[disabled], .btn.off { opacity: .45; cursor: default; pointer-events: none; }

/* hero */
.hero { text-align: center; padding: clamp(64px, 11vw, 132px) 0 clamp(150px, 19vw, 250px); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.lede { font-size: clamp(19px, 2.3vw, 24px); color: var(--dim); max-width: 34em; margin: 22px auto 0; text-wrap: balance; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; max-width: 960px; margin: 64px auto 0; }
.proof div { padding: 6px 8px; }
.proof dt { font-size: clamp(30px, 5vw, 52px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.proof dd { margin: 4px 0 0; color: var(--dim); font-size: 14.5px; }

/* sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.band { background: linear-gradient(180deg, transparent, var(--band) 140px); }
.sub { text-align: center; color: var(--dim); font-size: 19px; max-width: 36em; margin: 16px auto 0; text-wrap: balance; }
.fine { color: var(--dim); font-size: 13.5px; margin-top: 22px; text-align: center; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.tile { border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.tile p { color: var(--dim); margin-top: 8px; }
.tile .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft);
             color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.tile.big { padding: 34px; }
.tile.big h3 { font-size: 26px; }
.tile.big .price-note { color: var(--accent); font-weight: 600; margin-top: 6px; }
.tile ul { margin: 18px 0 0; padding-left: 20px; color: var(--dim); }
.tile li { margin: 9px 0; }

/* plan picker */
.seg { display: flex; width: fit-content; margin: 34px auto 0; background: var(--field); border-radius: 980px; padding: 4px; }
.seg button { border: 0; background: transparent; color: var(--dim); font: 600 15px var(--sans); padding: 9px 22px; border-radius: 980px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.class-line { text-align: center; color: var(--dim); margin-top: 16px; min-height: 1.5em; }
.incl { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 14px auto 0; padding: 0;
        color: var(--dim); font-size: 14.5px; }
.incl:empty { display: none; }
.incl li::before { content: "\2713"; color: var(--accent); font-weight: 700; margin-right: 7px; }

/* plan rail: three cards in view, the rest a swipe or an arrow away */
.rail { position: relative; margin-top: 26px; }
.cards { --gap: 18px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); gap: var(--gap);
         overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
         padding: 6px 0 24px; scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.cards:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 26px; }
.cards.few { justify-content: center; }
.rail-btn { position: absolute; top: calc(50% - 9px); transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
            border: 1px solid var(--line); background: var(--card); color: var(--text); box-shadow: var(--shadow);
            font: 400 30px/1 var(--sans); padding-bottom: 4px; cursor: pointer; transition: opacity .2s; }
.rail-btn.prev { left: -24px; }
.rail-btn.next { right: -24px; }
.rail-btn:disabled { opacity: 0; pointer-events: none; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 2px; min-height: 8px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.dots span.on { background: var(--dim); }

.card { border-radius: 24px; padding: 26px 24px 24px; display: flex; flex-direction: column;
        scroll-snap-align: start; min-width: 0; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card .size { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.card .size small { font-size: 15px; font-weight: 500; color: var(--dim); letter-spacing: 0; margin-left: 6px; }
.pill { font-size: 13px; font-weight: 600; white-space: nowrap; border-radius: 980px; padding: 4px 11px;
        color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.pill.few { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.pill.soon { color: var(--dim); background: var(--field); }
.card .price { margin-top: 14px; font-size: 44px; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.card .price small { font-size: 15px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.card .facts { list-style: none; margin: 18px 0 0; padding: 0; color: var(--dim); font-size: 15px; }
.card .facts li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.card .facts b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.card .per { color: var(--dim); font-size: 13.5px; margin-top: 2px; }
.card .facts { margin-bottom: 20px; }
.tile.big { display: flex; flex-direction: column; }
.tile .tile-fit { color: var(--text); font-weight: 600; font-size: 15px; margin-top: auto; padding-top: 16px; }
.co-qty { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 14px 16px;
          background: var(--field); border-radius: 14px; }
.co-qty b { display: block; font-size: 15.5px; }
.co-qty small { color: var(--dim); font-size: 13px; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text);
              font-size: 18px; line-height: 1; cursor: pointer; }
.qty button:disabled { opacity: .35; cursor: default; }
.qty output { min-width: 1.4em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.co-promo-toggle { margin-top: 14px; font-size: 14px; }
.co-period { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.co-period button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px;
                    border-radius: 14px; border: 1.5px solid var(--line); background: var(--field); color: var(--text); font: inherit;
                    text-align: left; cursor: pointer; }
.co-period button[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.co-period b { font-size: 14.5px; }
.co-period span { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.co-period em { position: absolute; top: -9px; right: 10px; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--accent-ink);
                background: var(--accent); border-radius: 999px; padding: 2px 8px; }
.card .price .from { display: block; font-size: 13px; font-weight: 600; color: var(--dim); letter-spacing: 0; margin-bottom: -4px; }
#co-promo { margin-top: 12px; }
.card.soon { border-style: dashed; background: transparent; }
.card.soon:hover { transform: none; box-shadow: none; }
.card.soon .price { color: var(--dim); }
.card.soon .note { color: var(--dim); font-size: 14.5px; margin: -8px 0 16px; }
.card .btn { margin-top: auto; width: 100%; padding-left: 12px; padding-right: 12px; }
.sold { text-align: center; color: var(--dim); margin-top: 30px; }

/* checkout */
dialog.sheet { border: 0; border-radius: 24px; padding: 30px 28px 26px; width: min(460px, calc(100vw - 28px)); background: var(--card);
               color: var(--text); box-shadow: var(--shadow); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.co { position: relative; }
.co[hidden] { display: none; }
.co h3 { font-size: 26px; }
.co .x { position: absolute; top: -8px; right: -6px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--field);
         color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; }
.co-plan { color: var(--dim); margin-top: 6px; }
.co label { display: block; font-size: 14px; color: var(--dim); margin: 16px 0 6px; }
.co label span { opacity: .7; }
.co input, .co select { display: block; width: 100%; font: 16px var(--sans); color: var(--text); background: var(--field);
                        border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.co input:focus, .co select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.co-code { display: flex; gap: 8px; }
.co-code input { flex: 1; min-width: 0; }
.co-code .btn { padding: 0 18px; }
.co-msg { font-size: 14px; min-height: 1.5em; margin-top: 8px; }
.co-msg.ok { color: var(--ok); }
.co-msg.err { color: var(--bad); }
.co-sum { margin: 6px 0 0; }
.co-sum div { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); color: var(--dim); }
.co-sum div[hidden] { display: none; }
.co-sum dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.co-sum .tot { font-weight: 700; color: var(--text); font-size: 19px; }
.co > .btn { width: 100%; margin-top: 16px; }
.co pre { margin-top: 16px; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.co .fine { margin-top: 12px; }

/* account */
.acct { min-height: 70vh; }
.acct h2 { margin-top: 8px; }
.acct-h { margin: 44px 0 14px; }
.panel { border-radius: 22px; padding: 24px; margin-top: 14px; }
.acct #auth { max-width: 440px; margin: 34px auto 0; }
.acct #auth .seg { margin: 0 auto 6px; }
.keycard .kc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.keycard .kc-top b { font-size: 19px; overflow-wrap: anywhere; }
.keycard .kc-id { font: 13px var(--mono); color: var(--dim); }
.keycard p { color: var(--dim); margin-top: 6px; font-size: 15px; }
.keycard .kc-plan { color: var(--text); }
.keycard .kc-act { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.co-who { color: var(--dim); font-size: 14px; margin-top: 4px; }
.row-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.banner { margin: 22px auto 0; max-width: 560px; text-align: center; border-radius: 14px; padding: 12px 16px; font-weight: 600;
          background: var(--field); color: var(--text); }
.banner.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.banner.wait { color: var(--dim); }
.keycard .kc-state { font-size: 14.5px; font-weight: 600; margin-top: 10px; }
.keycard .kc-state.pending { color: var(--dim); }
.keycard .kc-state.paused { color: var(--warn); }
.keycard .kc-state.ready { color: var(--ok); }
.usekey p { color: var(--dim); font-size: 15px; }
.usekey dl { margin: 8px 0 0; }
.usekey dl div { display: flex; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; flex-wrap: wrap; }
.usekey dt { color: var(--dim); min-width: 80px; }
.usekey dd { margin: 0; overflow-wrap: anywhere; }
.help { margin-top: 44px; }
.help h3 { font-size: 21px; }
.help .chips { margin-top: 14px; }
.help .log { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; max-height: 460px; overflow-y: auto; }
.help .log:empty { display: none; }
.msg { max-width: 92%; border-radius: 16px; padding: 10px 14px; font-size: 15.5px; overflow-wrap: anywhere; }
.msg p { white-space: pre-wrap; margin: 0; }
.msg p + p, .msg pre + p, .msg p + pre { margin-top: 8px; }
.msg pre { font-size: 12.5px; padding: 12px; border-radius: 10px; margin: 6px 0; white-space: pre; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.msg.bot { align-self: flex-start; background: var(--field); }
.msg.wait { color: var(--dim); }
.msg.err { color: var(--bad); }
/* account page */
.acct-wrap { max-width: 1180px; }
.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.acct-head h2 { text-align: left; }
.acct-head .who { color: var(--dim); margin-top: 6px; }
.acct-head-act { display: flex; gap: 10px; }
.acct .banner { margin-top: 22px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.kpis div { padding: 18px 18px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line);
            -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.kpis dt { color: var(--dim); font-size: 13.5px; }
.kpis dt span { opacity: .7; }
.kpis dd { margin: 6px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.keys { display: grid; gap: 16px; }
/* two columns: keys on the left, quick start / help / account on the right */
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; margin-top: 28px; align-items: start; }
.acct-main > .fresh { margin: 0 0 16px; }
.acct-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.side-card { padding: 20px; margin: 0; min-width: 0; }
#sample { max-width: 100%; }
.link { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; }
.side-card h3 { font-size: 18px; }
.side-note { color: var(--dim); font-size: 13.5px; margin-top: 6px; }
.side-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.account-card #pw { margin-top: 6px; }
.keys-h { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 12px; }
.keys-h h3 { font-size: 21px; }
.keys-h h3 span { color: var(--dim); font-weight: 500; font-size: 16px; margin-left: 4px; }
/* a key: one row, opened for the detail */
.key { padding: 0; overflow: hidden; }
.key-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 16px; align-items: center; gap: 18px; width: 100%;
           padding: 16px 20px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.key-row:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.key-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 22px; }
.key-title b { display: block; font-size: 17px; font-weight: 650; overflow-wrap: anywhere; }
.key-title small { display: block; color: var(--dim); font-size: 13.5px; margin-top: 2px; }
.key-nums { display: flex; align-items: center; gap: 18px; }
.key-num { text-align: right; min-width: 64px; }
.key-num b { display: block; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.key-num small { color: var(--dim); font-size: 12px; }
.key-unused { color: var(--dim); font-size: 13.5px; }
svg.mini { width: 90px; height: 24px; display: block; }
svg.mini .bar { fill: var(--s1); opacity: .75; }
svg.mini .bar.zero { fill: var(--line); opacity: 1; }
.chev { width: 9px; height: 9px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg) translate(-2px, -2px);
        transition: transform .2s; justify-self: end; }
.key.open .chev { transform: rotate(225deg) translate(-2px, -2px); }
.key-detail { padding: 2px 20px 20px; border-top: 1px solid var(--line); }
.key-detail > .key-note:first-child { margin-top: 16px; }
.start { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--field); }
.start h5 { margin: 0; font-size: 15px; }
.start ol { margin: 10px 0 0; padding-left: 20px; color: var(--dim); font-size: 14.5px; }
.start li { margin: 5px 0; }
.key-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.key-name { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.key-meta { color: var(--dim); font-size: 14.5px; margin-top: 4px; }
.key-note { font-size: 14.5px; font-weight: 600; margin-top: 12px; color: var(--dim); }
.key-note.paused { color: var(--warn); }
.key-note.ready { color: var(--ok); }
.key-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 20px; }
.key-body .kstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usage-h { display: flex; justify-content: space-between; align-items: baseline; color: var(--dim); font-size: 14px; }
.usage-h b { color: var(--text); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stack { display: flex; gap: 2px; height: 12px; margin-top: 10px; border-radius: 6px; overflow: hidden; background: var(--field); }
.stack .part { min-width: 3px; }
.part.s1, .dot.s1 { background: var(--s1); }
.part.s2, .dot.s2 { background: var(--s2); }
.part.s3, .dot.s3 { background: var(--s3); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; font-size: 13.5px; color: var(--dim); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.legend b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.spark { position: relative; margin-top: 20px; }
.spark svg { display: block; width: 100%; height: 56px; cursor: crosshair; }
.spark .bar { fill: var(--s1); opacity: .8; }
.spark .bar.zero { fill: var(--line); opacity: 1; }
.spark .bar.on { opacity: 1; }
.spark .tip { position: absolute; top: -34px; padding: 5px 9px; border-radius: 8px; font-size: 12.5px; white-space: nowrap; pointer-events: none;
              background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.spark-axis { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; margin-top: 5px; }
.usage-empty { color: var(--dim); font-size: 13.5px; margin-top: 10px; }
.kstats { display: grid; gap: 10px; margin: 0; align-content: start; }
.kstats div { padding: 12px 14px; border-radius: 14px; background: var(--field); }
.kstats dt { color: var(--dim); font-size: 13px; }
.kstats dd { margin: 2px 0 0; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kstats small { color: var(--dim); font-size: 12px; }
.controls { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.ctl { display: flex; align-items: center; gap: 10px; font-size: 14.5px; flex-wrap: wrap; }
.ctl-l { font-weight: 600; }
.ctl-sub { display: flex; align-items: center; gap: 8px; color: var(--dim); }
.ctl-off { color: var(--dim); }
.ctl small { color: var(--dim); font-size: 13px; }
.ctl input { width: 112px; font: 15px var(--sans); color: var(--text); background: var(--field); border: 1px solid var(--line);
             border-radius: 10px; padding: 7px 10px; font-variant-numeric: tabular-nums; }
.ctl input:disabled { opacity: .4; }
.ctl input:focus, .set-row input:focus, .set-row select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input.bad { outline: 2px solid var(--bad) !important; }
.switch { position: relative; width: 44px; height: 26px; flex: none; border: 0; border-radius: 999px; background: var(--line); cursor: pointer;
          transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
                 box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.key-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.key-act .key-id { margin-left: auto; font: 12px var(--mono); color: var(--dim); }
.saved { font-size: 13px; }
.saved.ok { color: var(--ok); }
.saved.err { color: var(--bad); }
.saved.wait { color: var(--dim); }
.connect dl { margin: 12px 0 0; }
.connect dl div { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.connect dt { color: var(--dim); min-width: 64px; }
.connect code { font-size: 12.5px; }
.connect .tabs { display: flex; align-items: center; gap: 4px; margin: 14px 0 8px; }
.connect .tabs .copy { margin-left: auto; }
#sample { font-size: 11.5px; line-height: 1.55; padding: 14px; border-radius: 12px; max-height: 240px; overflow: auto; white-space: pre; }
.help .chips button { font-size: 13px; padding: 6px 11px; }
.help .log { max-height: 380px; }
.help .ask input { font-size: 15px; padding: 10px 13px; }
.help .msg { font-size: 14.5px; }
.connect dd { margin: 0; display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.copy { border: 1px solid var(--line); background: transparent; color: var(--accent); font: 600 12.5px var(--sans); padding: 3px 10px;
        border-radius: 999px; cursor: pointer; }
.acct .empty { text-align: center; padding: 34px 24px; }
.acct .empty h4 { margin: 0; font-size: 19px; }
.acct .empty p { color: var(--dim); margin: 8px auto 18px; max-width: 30em; }
@media (max-width: 1040px) {
  .acct-grid { grid-template-columns: minmax(0, 1fr); }
  .acct-side { position: static; max-height: none; overflow: visible; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 760px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .key-row { grid-template-columns: minmax(0, 1fr) auto 14px; gap: 12px; padding: 14px 16px; }
  .key-nums { display: none; }
  .key-detail { padding: 2px 16px 16px; }
  .acct-side { grid-template-columns: minmax(0, 1fr); }
  .key-body { grid-template-columns: minmax(0, 1fr); }
  .kstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kstats dd { font-size: 17px; }
  .kstats small { display: none; }
  .key-act .key-id { margin-left: 0; width: 100%; }
}
.co .link { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }

/* legal pages */
.legal { padding: 56px 0 24px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; }
.legal .updated { color: var(--dim); margin-top: 8px; font-size: 14.5px; }
.legal h2 { text-align: left; font-size: 22px; margin-top: 34px; }
.legal p, .legal li { color: var(--text); margin-top: 12px; font-size: 16.5px; }
.legal ul { padding-left: 22px; }
.legal p:first-of-type { margin-top: 28px; }
.settings { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.settings[hidden] { display: none; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4px 14px; align-items: center; padding: 8px 0; font-size: 15px; }
.set-row span { color: var(--dim); }
.set-row small { grid-column: 2; color: var(--dim); font-size: 12.5px; }
.set-row input, .set-row select { width: 100%; font: 15px var(--sans); color: var(--text); background: var(--field);
                                  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.set-note { color: var(--dim); font-size: 13.5px; margin-top: 8px; }
.settings .btn { margin-top: 12px; }
.cancel-box h4 { font-size: 16px; margin-bottom: 4px; }
.cancel-opt { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cancel-opt > div { flex: 1; min-width: 0; }
.cancel-opt b { font-size: 15px; }
.cancel-opt p { color: var(--dim); font-size: 14px; margin-top: 2px; }
.cancel-opt .btn { margin-top: 0; flex: none; }
@media (max-width: 640px) { .cancel-opt { flex-direction: column; align-items: stretch; gap: 10px; } }
@media (max-width: 640px) { .set-row { grid-template-columns: minmax(0, 1fr); } .set-row small { grid-column: 1; } }
.notfound { text-align: center; padding: clamp(70px, 12vw, 140px) 0 60px; }
.notfound .nf-code { font: 700 15px var(--mono); color: var(--accent); margin: 0; letter-spacing: .1em; }
.notfound h1 { margin-top: 10px; }
.notfound p:first-of-type { margin-top: 0; }
.notfound .nf-cta { margin-top: 28px; }
.notfound .nf-help { color: var(--dim); font-size: 14.5px; margin-top: 34px; }
.consent { color: var(--dim); font-size: 13.5px; margin-top: 10px; text-align: center; }

/* demo */
.demo { margin-top: 38px; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line); background: var(--field); color: var(--text); font: 14px var(--sans); padding: 7px 13px; border-radius: 980px; cursor: pointer; }
.ask { display: flex; gap: 10px; margin-top: 14px; }
.ask input { flex: 1; min-width: 0; font: 17px var(--sans); color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; }
.ask input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.meter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; text-align: center; }
.meter b { display: block; font-size: clamp(26px, 5vw, 40px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.meter div:first-child b { color: var(--accent); }
.meter span { color: var(--dim); font-size: 13px; }
.answer { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 16px; min-height: 1.5em; font-size: 16.5px; }
.answer.err { color: var(--bad); }
.answer.wait { color: var(--dim); }
.answer:empty { display: none; }

/* developers */
.code-two { align-items: start; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs button { border: 0; background: transparent; color: var(--dim); font: 600 14px var(--sans); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--text); }
pre { margin: 0; background: #111114; color: #eaeaf0; border-radius: 18px; padding: 20px; overflow-x: auto; font: 13.5px/1.6 var(--mono); }
.feat { list-style: none; margin: 0; padding: 0; }
.feat li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--dim); }
.feat b { color: var(--text); }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { margin-top: 34px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--dim); font-weight: 400; font-size: 24px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--dim); margin-top: 12px; }

/* Apple-style footnotes: small numbered superscripts on claims, the notes in fine print at the foot */
sup.fn { font-size: .55em; line-height: 0; vertical-align: super; margin-left: 1px; letter-spacing: 0; font-weight: 500; }
sup.fn a { color: inherit; opacity: .8; }
sup.fn a:hover { color: var(--accent); opacity: 1; }
.footnotes { text-align: left; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 26px; }
.footnotes ol { margin: 0; padding-left: 18px; color: var(--dim); font-size: 12px; line-height: 1.55; }
.footnotes li { margin: 0 0 9px; padding-left: 4px; }
.footnotes li:target { color: var(--text); }
.footnotes a { color: var(--dim); text-decoration: underline; }
footer { padding: 44px 0 64px; text-align: center; color: var(--dim); font-size: 14.5px; }
footer .fine { margin-top: 10px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-in { gap: 10px; }
  .nav-in .btn { margin-left: auto; white-space: nowrap; }
  .brand { font-size: 15px; white-space: nowrap; }
  .three, .two { grid-template-columns: minmax(0, 1fr); }
  .proof { gap: 4px; }
}
@media (max-width: 1000px) { .cards { grid-auto-columns: calc((100% - var(--gap)) / 2); } }
@media (max-width: 1180px) { .rail-btn.prev { left: -12px; } .rail-btn.next { right: -12px; } }
@media (max-width: 640px) {
  .cards { grid-auto-columns: 86%; --gap: 12px; }
  .rail-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { html, .cards { scroll-behavior: auto; } .card, .btn { transition: none; } .sky .tw { animation: none; } }

/* ---- owner analytics dashboard (/admin, tailnet only) */
.admin main { padding-top: 32px; padding-bottom: 48px; }
.admin section { padding: 0; }
.admin h2 { text-align: left; }
.ad-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ad-head h1 { font-size: 34px; letter-spacing: -.02em; margin: 0; }
.ad-head .sub { margin: 4px 0 0; color: var(--dim); font-size: 15px; }
.ad-head .seg { margin: 0; }
.ad-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ad-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; min-width: 0; }
.ad-kpi small { color: var(--dim); font-size: 13px; }
.ad-kpi b { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ad-kpi span { color: var(--dim); font-size: 12.5px; }
.ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin .ad-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; min-width: 0; }
.ad-card h2 { font-size: 17px; margin: 0 0 12px; }
.ad-wide { grid-column: 1 / -1; }
.ad-chart svg { display: block; }
.ad-grid-line { stroke: var(--line); stroke-width: 1; }
.ad-base { stroke: var(--dim); stroke-width: 1; }
.ad-axis { fill: var(--dim); font: 11px var(--sans); }
.ad-col { fill: var(--s1); }
.ad-hit { fill: transparent; }
.ad-hit:hover { fill: var(--field); }
.ad-tip { position: fixed; z-index: 10; pointer-events: none; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; font-size: 13px; color: var(--text); }
.ad-tip[hidden] { display: none; }
.ad-tip span { color: var(--dim); }
.ad-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.ad-table th { text-align: left; font-weight: 600; color: var(--dim); font-size: 12.5px; padding: 0 6px 6px; border-bottom: 1px solid var(--line); }
.ad-table td { padding: 6px; border-bottom: 1px solid var(--line); }
.ad-table td:first-child { max-width: 0; width: 60%; }
.ad-cell { position: relative; }
.ad-cell span { position: relative; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.ad-table .r { text-align: right; white-space: nowrap; }
.ad-bar { position: absolute; left: 0; top: -2px; bottom: -2px; background: var(--accent-soft); border-radius: 4px; }
.ad-funnel { display: grid; gap: 8px; }
.ad-step { position: relative; display: grid; grid-template-columns: 1fr auto; padding: 8px 10px; font-size: 14.5px; }
.ad-step span, .ad-step b, .ad-step small { position: relative; }
.ad-step small { grid-column: 1 / -1; color: var(--dim); font-size: 12.5px; }
.ad-step .ad-bar { top: 0; bottom: 0; }
.ad-note, .ad-empty { color: var(--dim); font-size: 13.5px; margin: 8px 0 0; }
.ad-foot { margin-top: 20px; color: var(--dim); font-size: 13px; }
@media (max-width: 760px) { .ad-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- guide pages (/ios) */
.guide .eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; margin: 0; }
.guide h1 { margin-top: 6px; }
.guide .lead { font-size: 19px; color: var(--dim); }
.guide pre { margin-top: 14px; font-size: 12.5px; }
.guide pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.guide .btn { margin: 6px 8px 0 0; }
.guide .checks li { margin-top: 14px; }
.guide .fine { color: var(--dim); font-size: 14px; text-align: left; }

/* ---- image capabilities (recorded examples under the benchmarks) */
.vision, .vision:first-of-type { margin: 34px auto 0; max-width: 1000px; border: 0; padding: 0; }
.vision > summary { display: block; list-style: none; cursor: pointer; width: fit-content; margin: 0 auto; padding: 11px 22px;
  border-radius: 999px; font-weight: 600; font-size: 16px; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent);
  transition: background .2s, color .2s; }
.vision > summary:hover { background: var(--accent); color: var(--accent-ink); }
.vision > summary::-webkit-details-marker { display: none; }
.vision > summary::after, .vision[open] > summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 2px 3px 10px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; color: inherit; font-size: 0; }
.vision[open] > summary::after { transform: rotate(-135deg); margin-bottom: -1px; }
.vision-in { margin-top: 24px; }
.vision-lede { text-align: center; color: var(--dim); font-size: 15px; margin: 0 0 14px; }
.vision .seg { margin: 0 auto 22px; }
.vx { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 20px; align-items: stretch; text-align: left; }

/* the photo */
.dm-photo { position: sticky; top: 84px; align-self: start; margin: 0; border-radius: 22px; overflow: hidden; background: #0b0d12;
  box-shadow: 0 1px 0 var(--glass-line) inset, var(--shadow); }
.dm-photo img { display: block; width: 100%; height: auto; }
.dm-photo figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; font-size: 11px;
  color: rgba(255, 255, 255, .86); background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dm-scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.dm-scan::before { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 28%, transparent) 70%, color-mix(in srgb, var(--accent) 85%, white) 100%); }
.dm-photo.scanning .dm-scan { opacity: 1; }
.dm-photo.scanning .dm-scan::before { animation: dm-scan 1.3s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes dm-scan { to { top: 100%; } }

/* the card */
.dm-card { display: flex; flex-direction: column; min-width: 0; border-radius: 22px; padding: 20px 22px 18px; background: var(--glass);
  border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: var(--shadow); }
.dm-eyebrow { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.dm-ask { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.dm-chip { font-size: 15px; font-weight: 600; padding: 7px 13px; border-radius: 14px 14px 14px 4px; background: var(--accent); color: var(--accent-ink); }
.dm-link { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--dim); cursor: pointer;
  text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.dm-link:hover { color: var(--text); }
.dm-sys { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--field); font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.dm-sys[hidden] { display: none; }

/* the steps */
.dm-steps { display: flex; list-style: none; padding: 0; margin: 18px 0 4px; counter-reset: s; }
.dm-steps li { flex: 1; position: relative; min-width: 0; }
.dm-steps li + li::before { content: ""; position: absolute; top: 12px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px;
  border-radius: 2px; background: var(--line); transition: background .4s; }
.dm-steps li.done + li::before, .dm-steps li.now::before { background: var(--accent); }
.dm-steps button { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 0;
  font: inherit; color: var(--dim); cursor: default; }
.dm-steps button:not(:disabled) { cursor: pointer; }
.dm-steps button:not(:disabled):hover .dm-label { color: var(--text); }
.dm-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 700;
  background: var(--field); color: var(--dim); transition: background .3s, color .3s, box-shadow .3s; }
.dm-label { font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.25; transition: color .3s; }
.dm-steps li.done .dm-dot { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.dm-steps li.now .dm-dot { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent); }
.dm-steps li.now .dm-label { color: var(--text); }

/* the stage */
.dm-body { flex: 1; min-height: 330px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line);
  transition: opacity .16s ease, transform .16s ease; }
.dm-body.out { opacity: 0; transform: translateY(6px); }
.dm-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.dm-tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); flex: none; }
.dm-tick svg, .dm-ok svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dm-spin { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 2.5px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-top-color: var(--accent); animation: dm-spin .8s linear infinite; }
@keyframes dm-spin { to { transform: rotate(360deg); } }
.dm-sub { margin: 6px 0 0 32px; font-size: 13.5px; color: var(--dim); }
.dm-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.dm-row, .dm-macro, .dm-kcal, .dm-conf, .dm-feedback > * { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.dm-row.in, .dm-macro.in, .dm-kcal.in, .dm-conf.in, .dm-feedback > .in { opacity: 1; transform: none; }
.dm-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line); font-size: 14.5px; min-width: 0; }
.dm-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-col { flex: 1; min-width: 0; display: grid; gap: 1px; }
.dm-dim { color: var(--dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-pill { flex: none; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); }
.dm-warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.dm-math .dm-calc { flex: none; font: 12.5px var(--mono); color: var(--dim); }
.dm-math .dm-eq { flex: none; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.dm-ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); flex: none; }

/* the result */
.dm-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.dm-kcal b { display: block; font-size: clamp(48px, 6vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: .95;
  font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--accent) 70%, var(--text)));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.dm-kcal span { font-size: 12.5px; color: var(--dim); font-weight: 600; }
.dm-macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dm-macro { display: grid; gap: 3px; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.dm-mname { font-size: 11.5px; color: var(--dim); font-weight: 600; }
.dm-macro b { font-size: 17px; font-variant-numeric: tabular-nums; }
.dm-track { height: 4px; border-radius: 4px; background: var(--field); overflow: hidden; }
.dm-track i { display: block; height: 100%; border-radius: 4px; }
.dm-track .s1 { background: var(--s1); } .dm-track .s2 { background: var(--s2); } .dm-track .s3 { background: var(--s3); }
.dm-share { font-size: 11px; color: var(--dim); }
.dm-item { padding: 8px 12px; }
.dm-item b { flex: none; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.dm-item .dm-dim { flex: none; }
.dm-conf { margin: 12px 0 0; font-size: 12.5px; color: var(--dim); line-height: 1.5; }

/* the tutor's feedback */
.dm-feedback { margin-top: 2px; font-size: 14.5px; line-height: 1.55; }
.dm-feedback p { margin: 0 0 8px; }
.dm-feedback h5 { margin: 14px 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.dm-feedback ul { margin: 0 0 8px; padding-left: 18px; }
.dm-feedback li { margin-top: 4px; }

/* the footer */
.dm-foot { margin-top: 16px; display: grid; gap: 10px; }
.dm-foot:empty { display: none; }
.dm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-stat { font-size: 12.5px; color: var(--dim); padding: 4px 10px; border-radius: 999px; background: var(--field); }
.dm-stat b { color: var(--text); font-variant-numeric: tabular-nums; }
.dm-footline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dm-note { font-size: 12px; color: var(--dim); margin: 0; }
.dm-replay { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 2px; font: 600 13px var(--sans);
  color: var(--accent); cursor: pointer; }
.dm-replay svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 820px) {
  .vx { grid-template-columns: minmax(0, 1fr); }
  .dm-photo { position: relative; top: 0; max-height: 420px; }
  .dm-photo img { max-height: 420px; object-fit: contain; }
  .dm-hero { grid-template-columns: minmax(0, 1fr); }
  .dm-math .dm-calc { display: none; }
  .dm-name { white-space: normal; }
}
@media (max-width: 420px) { .dm-macros { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .dm-macro { padding: 8px; } .dm-label { font-size: 10.5px; } }
@media (prefers-reduced-motion: reduce) {
  .dm-photo.scanning .dm-scan::before, .dm-spin { animation: none; }
  .dm-row, .dm-macro, .dm-kcal, .dm-conf, .dm-feedback > *, .dm-body { transition: none; }
}

/* ---- founding offer (before launch) */
.founding { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy go" "meter meter"; gap: 14px 20px;
  align-items: center; max-width: 760px; margin: 26px auto 0; padding: 18px 22px; border-radius: 20px; text-align: left;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--glass)), var(--glass));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--glass-line)); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.founding[hidden] { display: none; }
.founding-copy { grid-area: copy; display: grid; gap: 2px; min-width: 0; }
.founding-tag { width: fit-content; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.founding-copy b { font-size: 22px; letter-spacing: -0.02em; }
.founding-copy span:last-child { color: var(--dim); font-size: 14.5px; }
.founding .btn { grid-area: go; white-space: nowrap; }
.founding-meter { grid-area: meter; height: 6px; border-radius: 6px; background: var(--field); overflow: hidden; }
.founding-meter i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--accent); transition: width .6s ease; }
@media (max-width: 640px) { .founding { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "meter" "go"; } .founding .btn { justify-self: start; } }
.founding-card { display: grid; gap: 4px; padding: 18px 20px; margin-bottom: 16px; border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--card)), var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.founding-card[hidden] { display: none; }
.founding-card b { font-size: 20px; letter-spacing: -0.02em; }
.founding-card p { margin: 0; color: var(--dim); font-size: 14.5px; }
.founding-card .btn { justify-self: start; margin-top: 8px; }
.keys-h[hidden] { display: none; }

/* ---- pricing calculator (/compare) */
.calc-page .wrap { max-width: 1080px; }
.calc-page h1 { max-width: 760px; }
.calc-page .lead { max-width: 720px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 30px; align-items: start; }
.calc-in, .calc-out { border-radius: 22px; padding: 22px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.calc-in h2 { font-size: 15px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.calc-in h2 + .calc-f { margin-top: 0; }
.calc-in h2:not(:first-child) { margin-top: 22px; }
.calc-f { display: grid; gap: 5px; margin-top: 12px; font-size: 14.5px; }
.calc-f span { font-weight: 600; }
.calc-f span small, .calc-f > small { display: block; font-weight: 400; color: var(--dim); font-size: 12.5px; }
.calc-f input { width: 100%; box-sizing: border-box; font: 600 16px var(--sans); font-variant-numeric: tabular-nums; color: var(--text);
  background: var(--field); border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; }
.calc-f input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-seg { margin: 4px 0 0; }
.calc-seg button { padding: 8px 14px; font-size: 13.5px; }
.calc-note { color: var(--dim); font-size: 12.5px; margin: 10px 0 0; line-height: 1.5; }
.calc-more { margin-top: 14px; padding: 0; border: 0; }
.calc-more summary { font-size: 13.5px; font-weight: 600; color: var(--dim); }
.calc-more summary::after { content: none; }
.calc-out { position: sticky; top: 84px; display: grid; gap: 16px; }
.calc-big { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.calc-sub { margin: 6px 0 0; color: var(--dim); font-size: 14.5px; }
.calc-bars { display: grid; gap: 12px; }
.calc-bar-h { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.calc-bar-h b { font-variant-numeric: tabular-nums; }
.calc-track { height: 10px; margin-top: 5px; border-radius: 6px; background: var(--field); overflow: hidden; }
.calc-track i { display: block; height: 100%; border-radius: 6px; transition: width .35s ease; }
.calc-track .s1 { background: var(--s1); } .calc-track .s2 { background: var(--s2); } .calc-track .s3 { background: var(--s3); }
.calc-bar small { display: block; margin-top: 3px; color: var(--dim); font-size: 12px; }
.calc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.calc-facts dt { font-size: 12px; color: var(--dim); }
.calc-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-out .btn { justify-self: start; }
.calc-text { margin-top: 40px; }
@media (max-width: 820px) { .calc { grid-template-columns: minmax(0, 1fr); } .calc-out { position: static; } }
