/* ============================================
   Claude Code Notifier — shared site styles
   ============================================ */

:root {
    --bg: #0D0C0B;
    --bgFade: rgba(13, 12, 11, .78);
    --surface: #171513;
    --surface2: #221F1C;
    --code: #0A0908;
    --line: rgba(255, 245, 230, .07);
    --line2: rgba(255, 245, 230, .14);
    --ink: #F3F0EA;
    --ink2: #A9A39A;
    --ink3: #847E75;
    --accent: oklch(0.79 0.15 62);
    --accentInk: #1B1206;
    --accentSoft: oklch(0.79 0.15 62 / .1);
    --accentLine: oklch(0.79 0.15 62 / .35);
    --accentText: oklch(0.8 0.14 62);
    --green: oklch(0.78 0.15 150);
    --red: oklch(0.73 0.16 25);

    --sans: 'Geist', system-ui, -apple-system, sans-serif;
    --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --max: 1200px;
    --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: inherit; }
a:hover { color: var(--accentText); }
img { display: block; }
.mono { font-family: var(--mono); }

.page { overflow-x: clip; }

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

@keyframes ccBlink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }

/* ---------- Buttons ---------- */

.btn {
    height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--surface2);
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, filter .15s;
}
.btn:hover { color: var(--ink); background: #2c2824; }
.btn .arrow { font-family: var(--mono); color: var(--ink3); }
.btn-lg { height: 54px; padding: 0 20px; border-radius: 14px; }
.btn-accent { background: var(--accent); color: var(--accentInk); font-weight: 600; }
.btn-accent:hover { background: var(--accent); color: var(--accentInk); filter: brightness(1.06); }
.btn-ink { background: var(--ink); color: var(--bg); font-weight: 600; }
.btn-ink:hover { background: var(--ink); color: var(--bg); filter: brightness(.94); }

/* ---------- Nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
}
/* Safari 26+ tints and overlays the toolbar from the background of a pinned element at the top edge, so the nav itself stays transparent and the glass lives on a pseudo-element */
.nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bgFade);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand span { font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: -.02em; }
.nav-spacer { flex: 1; }
.nav-links {
    display: flex;
    gap: 24px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink2);
}
.nav-links a { text-decoration: none; }
.nav-cta {
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
}

/* ---------- Sections ---------- */

.section {
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 1;
    background: var(--bg);
}
.section-alt { background: var(--surface); }
.section-pad { padding-top: 96px; padding-bottom: 96px; }

.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--ink3); }
.h2 {
    margin: 0;
    font-family: var(--mono);
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -.03em;
    text-wrap: balance;
}
.lede {
    margin: 0;
    font-size: 17px;
    line-height: 26px;
    color: var(--ink2);
    text-wrap: pretty;
}
.stack { display: flex; flex-direction: column; gap: 18px; }
.fine { font-family: var(--mono); font-size: 12px; color: var(--ink3); }

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    gap: 56px;
    align-items: start;
}

/* ---------- Hero ---------- */

.hero { position: relative; }
.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--line2) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
    mask-image: linear-gradient(to bottom, #000, transparent 80%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    padding-top: 96px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: 56px;
    align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.status {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accentText);
    display: flex;
    align-items: center;
    gap: 8px;
}
.status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}
.hero h1 {
    margin: 0;
    font-family: var(--mono);
    font-size: clamp(38px, 5.4vw, 64px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.04em;
    text-wrap: balance;
}
.hero h1 span { color: var(--accentText); }
.hero-sub {
    margin: 0;
    font-size: 19px;
    line-height: 29px;
    color: var(--ink2);
    max-width: 520px;
    text-wrap: pretty;
}
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Brew command */
.brew-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; max-width: 580px; }
.brew {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 8px 20px;
    border-radius: 16px;
    background: var(--code);
    border: 1.5px solid var(--accent);
    box-shadow: 0 0 0 6px var(--accentSoft);
    max-width: 100%;
    text-align: left;
}
.brew-prompt { font-family: var(--mono); font-size: 17px; color: var(--accentText); flex: none; }
.brew-cmd {
    flex: 1;
    min-width: 0;
    font-family: var(--mono);
    font-size: 17px;
    line-height: 24px;
    overflow-wrap: anywhere;
}
.brew-copy {
    flex: none;
    height: 44px;
    min-width: 84px;
    padding: 0 14px;
    border-radius: 11px;
    border: 0;
    background: var(--accent);
    color: var(--accentInk);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.brew-copy:hover { filter: brightness(1.06); }

/* Install steps: get the phone app, then run the line on the computer */
.get-step { display: flex; flex-direction: column; gap: 10px; }
.get-step > .fine b { color: var(--accentText); font-weight: 600; margin-right: 6px; }
.hero-copy .fine a, .cta .fine a { color: var(--ink2); text-decoration-color: var(--line2); text-underline-offset: 3px; }
.hero-copy .fine a:hover, .cta .fine a:hover { color: var(--accentText); }
.install { display: flex; flex-direction: column; gap: 10px; max-width: 580px; }
.install-tabs { flex-wrap: wrap; }
.install-tabs > button { border: 0; background: none; font: inherit; cursor: pointer; }
.install-tabs > button:hover { color: var(--ink); }
.install .brew-cmd { font-size: 15px; line-height: 22px; overflow-wrap: break-word; }
.install .brew-code { color: var(--accentText); }
.install .fine code { font-family: var(--mono); color: var(--ink2); }
.lede code, .faq-item code, .plan code { font-family: var(--mono); font-size: .92em; color: var(--ink); }
.cta .install { align-items: center; width: 100%; }
.cta .install-tabs { align-self: center; }
.cta .install .brew { align-self: stretch; }

/* Hero visual */
.hero-visual { position: relative; height: 640px; display: flex; justify-content: center; }
.hero-visual .device { position: absolute; top: 0; }
.float-card {
    position: absolute;
    background: var(--surface);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6);
}
.float-notif {
    left: 0;
    top: 96px;
    width: 300px;
    border-radius: 22px;
    border: 1.5px solid var(--accent);
    padding: 14px;
    display: flex;
    gap: 12px;
}
.float-notif img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.float-status {
    right: 0;
    top: 380px;
    width: 260px;
    border-radius: 18px;
    border: 1px solid var(--line2);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Notification bits shared by hero + terminal */
.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; }
.notif-head b { font-weight: 500; }
.notif-head small { font-size: 11px; color: var(--ink3); }
.notif-text { font-size: 14px; line-height: 19px; color: var(--ink2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.dot-green { background: var(--green); }

/* ---------- Device frames ---------- */

.device {
    border-radius: 52px;
    background: var(--surface);
    border: 1px solid var(--line2);
    padding: 10px;
    width: 332px;
    height: 718px;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
.device-screen { width: 312px; height: 675px; border-radius: 43px; overflow: hidden; position: relative; }
.device-scale { position: absolute; top: 0; left: 0; width: 390px; height: 844px; transform: scale(.8); transform-origin: top left; }

.device-sm { width: 292px; height: 632px; border-radius: 46px; padding: 9px; box-shadow: none; }
.device-sm .device-screen { width: 272px; height: 612px; border-radius: 38px; }
.device-sm .device-scale { transform: scale(.6975); }

/* ---------- Phone screen (390×844 app mock) ---------- */

.phone {
    position: relative;
    width: 390px;
    height: 844px;
    overflow: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
}
.phone .mono { font-family: var(--mono); }
.phone-island {
    position: absolute;
    top: 11px;
    left: 50%;
    margin-left: -62px;
    width: 124px;
    height: 36px;
    border-radius: 20px;
    background: #000;
    z-index: 5;
}
.phone-status {
    height: 54px;
    padding: 0 30px 0 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    z-index: 4;
}
.phone-signal { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.phone-signal i { width: 3px; border-radius: 1px; background: var(--ink); }
.phone-battery {
    width: 25px;
    height: 12px;
    border-radius: 4px;
    border: 1px solid var(--line2);
    padding: 1.5px;
    display: flex;
}
.phone-battery i { width: 80%; border-radius: 2px; background: var(--ink); }
.phone-home {
    position: absolute;
    bottom: 8px;
    left: 50%;
    margin-left: -67px;
    width: 134px;
    height: 5px;
    border-radius: 3px;
    background: var(--ink);
    z-index: 6;
}
.phone-body {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 16px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.phone-title { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -.02em; }
.phone-card {
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line2);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.phone-row { display: flex; align-items: center; gap: 8px; }
.phone-proj { font-family: var(--mono); font-size: 14px; font-weight: 500; }
.phone-meta { font-family: var(--mono); font-size: 11px; color: var(--ink3); }
.phone-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    background: linear-gradient(to bottom, transparent, var(--bg) 60%);
}
.phone-tabs {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: var(--surface2);
    border: 1px solid var(--line2);
    font-family: var(--mono);
    font-size: 13px;
    white-space: nowrap;
}
.phone-tabs > div { padding: 10px 16px; color: var(--ink2); display: flex; gap: 8px; align-items: center; }
.phone-tabs > .on { border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; }
.phone-badge { font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--accentInk); }
.phone-btn {
    flex: 1;
    height: 38px;
    border-radius: 10px;
    background: var(--surface2);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone-list { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 4px 14px; }
.phone-list > div { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.phone-list > div:last-child { border-bottom: 0; }
.phone-list .dot { margin-top: 6px; }
.phone-list .dot-hollow { background: none; border: 1.5px solid var(--ink3); }
.phone-list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.phone-list-body > span { font-size: 14px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-day {
    margin: 24px 8px 8px;
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink3);
}

/* ---------- How it works ---------- */

.steps { display: flex; flex-direction: column; margin-top: 10px; border-top: 1px solid var(--line); }
.steps li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
    font-size: 16px;
    line-height: 23px;
}
.steps li span { font-family: var(--mono); font-size: 13px; color: var(--accentText); }
ol.steps { list-style: none; margin: 10px 0 0; padding: 0; }

.terminal { border-radius: 22px; background: var(--code); border: 1px solid var(--line2); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface2); }
.terminal-bar span { flex: 1; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--ink3); margin-right: 46px; }
.terminal-log { padding: 20px 22px 24px; font-family: var(--mono); font-size: 14px; line-height: 24px; display: flex; flex-direction: column; }
.terminal-log > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; min-width: 0; }
.terminal-log > div > span { overflow-wrap: anywhere; }
.t-ink { color: var(--ink); }
.t-ink2 { color: var(--ink2); }
.t-ink3 { color: var(--ink3); }
.t-accent { color: var(--accentText); }
.t-green { color: var(--green); }
.cursor { display: flex; align-items: center; margin-top: 4px; }
.cursor i { display: inline-block; width: 8px; height: 17px; margin-left: 10px; background: var(--accent); animation: ccBlink 1s step-end infinite; }
.terminal-notif {
    margin: 0 16px 16px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line2);
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.terminal-notif img { width: 34px; height: 34px; border-radius: 8px; flex: none; }

/* ---------- Mobile ---------- */

.mobile-head {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    gap: 32px 56px;
    align-items: end;
}
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.feature {
    border-radius: 22px;
    background: var(--bg);
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.feature-copy { padding: 22px 22px 0; display: flex; flex-direction: column; gap: 8px; }
.feature-copy .tag { font-family: var(--mono); font-size: 12px; color: var(--accentText); }
.feature-copy h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 24px; }
.feature-copy p { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink2); text-wrap: pretty; }
.feature-visual { position: relative; height: 380px; margin-top: 24px; display: flex; justify-content: center; }
.feature-visual .device { position: absolute; top: 0; }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.plan {
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--line2);
}
.plan-hi { background: var(--accentSoft); border: 1.5px solid var(--accent); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; font-size: 16px; font-weight: 600; }
.plan-badge {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 3px 6px;
    border-radius: 5px;
    background: var(--accent);
    color: var(--accentInk);
}
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-family: var(--mono); font-size: 40px; line-height: 44px; font-weight: 500; letter-spacing: -.03em; }
.plan-price span { font-family: var(--mono); font-size: 13px; color: var(--ink3); }
.plan p { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink2); flex: 1; }
.plan .btn { margin-top: 6px; width: 100%; }

/* ---------- FAQ ---------- */

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 40px 56px;
    align-items: start;
}
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line2); grid-column: span 2; min-width: 0; }
.faq-item { border-bottom: 1px solid var(--line2); }
.faq-item summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-size: 16px; font-weight: 400; color: var(--ink3); margin-inline-start: auto; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 40px 22px 0; font-size: 15px; line-height: 23px; color: var(--ink2); text-wrap: pretty; }

/* ---------- Download CTA ---------- */

.cta {
    padding-top: 112px;
    padding-bottom: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
}
.cta img { width: 84px; height: 84px; border-radius: 19px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); }
.cta h2 {
    margin: 0;
    font-family: var(--mono);
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -.04em;
    text-wrap: balance;
}
.cta p { margin: 0; font-size: 18px; line-height: 27px; color: var(--ink2); max-width: 520px; }
.cta .brew { margin-top: 8px; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); position: relative; z-index: 1; background: var(--bg); }
.footer-inner {
    padding-top: 40px;
    padding-bottom: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 48px;
    justify-content: space-between;
}
.footer-about { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-brand span { font-family: var(--mono); font-size: 14px; font-weight: 500; }
.footer-about p { margin: 0; font-size: 12px; line-height: 18px; color: var(--ink3); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 48px; font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { text-decoration: none; }
.footer-col .fine { margin-bottom: 0; }
.footer-col .copy { color: var(--ink3); }

/* ---------- Legal pages ---------- */

.legal-header { border-bottom: 1px solid var(--line); }
.legal-header .container { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.seg {
    display: flex;
    gap: 4px;
    padding: 3px;
    border-radius: 11px;
    background: var(--surface2);
    align-self: flex-start;
    font-family: var(--mono);
    font-size: 13px;
}
.seg > * { padding: 8px 14px; color: var(--ink2); text-decoration: none; border-radius: 8px; }
.seg > .on { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }

/* Privacy/terms tabs and the language menu, side by side */
.legal-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.legal-switch .seg { align-self: auto; }
.lang-menu { position: relative; font-family: var(--mono); font-size: 13px; }
.lang-menu > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 11px;
    background: var(--surface2);
    color: var(--ink2);
    user-select: none;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::after { content: "▾"; font-size: 11px; color: var(--ink3); }
.lang-menu[open] > summary, .lang-menu > summary:hover { color: var(--ink); }
.lang-globe { color: var(--accentText); }
.lang-list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    width: max-content;
    max-width: min(420px, calc(100vw - 2 * var(--gutter)));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    padding: 6px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}
.lang-list a {
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink2);
    text-decoration: none;
    white-space: nowrap;
}
.lang-list a:hover { background: var(--surface2); color: var(--ink); }
.lang-list a.on { color: var(--accentText); background: var(--surface2); }
/* In the nav the menu sits beside the call to action and opens towards the page's centre */
.nav .lang-menu > summary { height: 38px; padding: 0 12px; box-sizing: border-box; }
.nav .lang-list { inset-inline-start: auto; inset-inline-end: 0; }
.lang-notice { margin-top: 4px; }
.lang-notice a, .prevails a { color: var(--accentText); }
.prevails { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink3); max-width: 760px; }
.legal-header h1 {
    margin: 0;
    font-family: var(--mono);
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.04em;
    overflow-wrap: break-word;
    hyphens: auto;
    text-wrap: balance;
}
.legal-header .meta { font-family: var(--mono); font-size: 13px; color: var(--ink3); }

.legal-body { padding-bottom: 120px; display: flex; gap: 64px; align-items: flex-start; }
.toc {
    position: sticky;
    top: 72px;
    flex: 0 0 240px;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: calc(100vh - 100px);
    overflow: auto;
}
.toc > span { font-family: var(--mono); font-size: 12px; color: var(--ink3); padding: 0 10px 10px; }
.toc a {
    display: flex;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 19px;
    text-decoration: none;
    color: var(--ink3);
}
.toc a span { font-family: var(--mono); font-size: 12px; flex: none; padding-top: 1px; }
.toc a.on { color: var(--ink); background: var(--surface2); }
.toc a.on span { color: var(--accentText); }

.legal { flex: 1; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 8px; }
.legal-intro { padding-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.legal-intro > p { margin: 0; font-size: 18px; line-height: 28px; text-wrap: pretty; }
.legal section { scroll-margin-top: 80px; padding-top: 48px; display: flex; flex-direction: column; gap: 16px; }
.legal h2 {
    margin: 0;
    font-family: var(--mono);
    font-size: 24px;
    line-height: 31px;
    font-weight: 500;
    letter-spacing: -.02em;
    display: flex;
    gap: 14px;
}
.legal h2 span { color: var(--accentText); }
.legal h3 { margin: 16px 0 0; font-size: 17px; font-weight: 600; display: flex; gap: 10px; }
.legal h2 + h3 { margin-top: 8px; }
.legal h3 span { font-family: var(--mono); font-weight: 500; color: var(--ink3); }
.legal p { margin: 0; font-size: 16px; line-height: 26px; color: var(--ink2); text-wrap: pretty; }
.legal p.ink { color: var(--ink); }
.legal ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 25px; color: var(--ink2); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal p a { color: var(--accentText); }
.legal code {
    font-family: var(--mono);
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--code);
    color: var(--ink);
    overflow-wrap: anywhere;
}

.callout {
    border-radius: 16px;
    background: var(--accentSoft);
    border: 1px solid var(--accentLine);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.callout .label { font-family: var(--mono); font-size: 12px; color: var(--accentText); }
.callout .text { font-size: 16px; line-height: 25px; color: var(--ink); }
.callout ul { font-size: 15px; line-height: 23px; }

.card {
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line2);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.card .label { font-family: var(--mono); font-size: 12px; color: var(--ink3); }
.card .title { font-size: 16px; font-weight: 600; }
.card .text { font-size: 15px; line-height: 23px; color: var(--ink2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.cards-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }

.service { gap: 12px; }
.service-head { display: flex; align-items: baseline; gap: 10px; }
.service-head span { font-family: var(--mono); font-size: 12px; color: var(--accentText); }
.service-head b { font-size: 16px; font-weight: 600; line-height: 22px; }
.service dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.service dt { font-family: var(--mono); font-size: 11px; color: var(--ink3); }
.service dd { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--ink2); overflow-wrap: anywhere; }
.service > a { margin-top: auto; font-family: var(--mono); font-size: 12px; color: var(--ink2); text-decoration: none; }

.contact-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 18px 20px; }
.contact-card b { font-size: 16px; font-weight: 600; }
.contact-card a { font-family: var(--mono); font-size: 15px; color: var(--accentText); text-decoration: none; }

.never { gap: 12px; padding: 18px 20px; }
.never > span { font-size: 16px; line-height: 25px; }
.never-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 8px 20px;
    font-size: 15px;
    line-height: 22px;
    color: var(--ink2);
}
.never-grid span { display: flex; gap: 10px; }
.never-grid span::before { content: "×"; font-family: var(--mono); color: var(--red); }

.caps {
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line2);
}
.legal p.caps { font-size: 14px; line-height: 23px; letter-spacing: .01em; }

/* Data tables */
.dtable { border-radius: 14px; border: 1px solid var(--line2); overflow: hidden; font-size: 14px; line-height: 21px; background: var(--surface); }
.dtable > div {
    display: grid;
    grid-template-columns: minmax(110px, .8fr) minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
}
.dtable.retention > div { grid-template-columns: minmax(110px, .8fr) minmax(0, 1.6fr) minmax(0, .8fr); }
.dtable > div:first-child {
    border-top: 0;
    padding: 10px 16px;
    background: var(--surface2);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink3);
    text-transform: uppercase;
}
.dtable > div:not(:first-child) > :first-child { font-weight: 600; }
.dtable > div:not(:first-child) > :not(:first-child) { color: var(--ink2); }
.dtable .ret { font-family: var(--mono); font-size: 13px; }
.dtable > div > .ret.short { color: var(--accentText); }

/* Language list on legal.html */
.lang-table > div { grid-template-columns: minmax(140px, 1fr) minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; }
.lang-table a { color: var(--accentText); text-decoration: none; }

/* ---------- Right-to-left and non-Latin scripts ---------- */
/* Geist Mono has no Arabic, Hebrew or CJK glyphs, and negative tracking breaks joined scripts */
[dir="rtl"] .legal-header h1,
[dir="rtl"] .legal h2,
:lang(ja) .legal-header h1, :lang(ko) .legal-header h1, :lang(zh) .legal-header h1,
:lang(ja) .legal h2, :lang(ko) .legal h2, :lang(zh) .legal h2 { font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
[dir="rtl"] .toc a, [dir="rtl"] .dtable > div:first-child { letter-spacing: 0; }
/* The home page: same rules for its headings, and no tracking anywhere (it breaks joined Arabic and
   crowds CJK) */
[dir="rtl"] .page *, :lang(ja) .page *, :lang(ko) .page *, :lang(zh) .page * { letter-spacing: 0 !important; }
[dir="rtl"] :is(h1, h2, h3, .h2, .eyebrow, .tag, .status, .plan-top, .phone-title),
:lang(ja) :is(h1, h2, h3, .h2, .eyebrow, .tag, .status, .plan-top, .phone-title),
:lang(ko) :is(h1, h2, h3, .h2, .eyebrow, .tag, .status, .plan-top, .phone-title),
:lang(zh) :is(h1, h2, h3, .h2, .eyebrow, .tag, .status, .plan-top, .phone-title) { font-family: var(--sans); }
[dir="rtl"] :is(h1, h2, .h2), :lang(ja) :is(h1, h2, .h2), :lang(ko) :is(h1, h2, .h2), :lang(zh) :is(h1, h2, .h2) { font-weight: 600; }
/* Break Japanese and Chinese headings between phrases, not inside words */
:lang(ja) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3) { word-break: auto-phrase; text-wrap: balance; }
:lang(ja) :is(p, li, summary, .fine, .lede), :lang(zh) :is(p, li, summary, .fine, .lede) { word-break: auto-phrase; }
/* Terminal output and the install box are code: they keep their left-to-right layout */
[dir="rtl"] .terminal, [dir="rtl"] .brew { direction: ltr; text-align: left; }
/* Commands, paths and addresses stay left-to-right inside right-to-left text */
[dir="rtl"] .legal code,
[dir="rtl"] .contact-card a,
[dir="rtl"] .cli-cmd { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .cli-cmd { text-align: left; }
[dir="rtl"] .brand, [dir="rtl"] .footer-brand { direction: ltr; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .faq-list { grid-column: auto; }
}

@media (max-width: 960px) {
    .toc { display: none; }
}

@media (max-width: 768px) {
    :root { --gutter: 16px; }
    .nav-links { display: none; }
    .nav-inner { gap: 12px; }
    .brand span { font-size: 14px; }
    .section-pad { padding-top: 72px; padding-bottom: 72px; }
    .hero-grid { padding-top: 64px; }
    .dtable > div,
    .dtable.retention > div { grid-template-columns: 1fr; gap: 4px; }
    .dtable > div:first-child { display: none; }
    .legal-switch { position: relative; }
    .lang-menu { position: static; }
    .lang-list { inset-inline: 0; width: auto; max-width: none; }
    .nav .lang-list { inset-inline: 0; }
    .lang-table > div { grid-template-columns: 1fr 1fr; }
    .lang-table > div > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .brand span { display: none; }
    .nav .lang-name { display: none; }
    .brew { padding-left: 14px; gap: 10px; }
    .brew-prompt, .brew-cmd { font-size: 14px; line-height: 20px; }
    .brew-copy { min-width: 68px; }
    .install-tabs > button { padding: 7px 10px; }
    .hero-visual { height: 600px; }
    .float-notif { width: 260px; top: 72px; }
    .float-status { width: 220px; top: 400px; }
    .cta { padding-top: 80px; padding-bottom: 80px; }
    .faq-item p { padding-right: 0; }
}

/* Command lines on the CLI page */
.cli-cmd {
    margin: 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--code);
    border: 1px solid var(--line2);
    overflow-x: auto;
}
.cli-cmd code { padding: 0; background: none; font-size: 14px; line-height: 22px; white-space: pre; overflow-wrap: normal; }

/* ---------- Link pages: /p/<token> (pair.html) and /c/<token> (connect.html) ---------- */

.link-page { min-height: 100vh; display: flex; flex-direction: column; }
.link-page .footer { margin-top: auto; }
.link-main { width: 100%; max-width: 900px; padding-top: 72px; padding-bottom: 96px; }
.link-main-narrow { max-width: 560px; }
.link-card { display: flex; flex-direction: column; gap: 22px; }
.link-card[hidden] { display: none; }
.link-card h1 {
    margin: 0;
    font-family: var(--mono);
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.link-sub { margin: 0; font-size: 18px; line-height: 28px; color: var(--ink2); max-width: 640px; text-wrap: pretty; }
.link-sub code, .link-step code {
    font-family: var(--mono);
    font-size: .9em;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--code);
    color: var(--ink);
}
.link-line { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.link-line .brew-cmd { font-size: 15px; line-height: 23px; overflow-wrap: anywhere; }
.link-line .brew-copy { min-width: 96px; height: 48px; font-size: 14px; }

/* Waiting for the terminal */
.link-live {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line2);
}
.link-live > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.link-live b { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.link-pulse {
    flex: none;
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accentLine);
    animation: linkPulse 1.6s ease-out infinite;
}
@keyframes linkPulse { 0% { box-shadow: 0 0 0 0 var(--accentLine); } 100% { box-shadow: 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: reduce) { .link-pulse { animation: none; } }
.link-reconnecting { margin: -10px 0 0; color: var(--accentText); }

/* Other systems and install methods */
.link-more { border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.link-more > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    padding: 18px 28px 18px 0;
    cursor: pointer;
    list-style: none;
    position: relative;
    font-size: 16px;
    font-weight: 500;
}
.link-more > summary::-webkit-details-marker { display: none; }
.link-more > summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 18px; font-family: var(--mono); color: var(--ink3); }
.link-more[open] > summary::after { content: "−"; }
.link-more-body { display: flex; flex-direction: column; gap: 16px; padding-bottom: 22px; }
.link-more .seg > button { border: 0; background: none; font: inherit; cursor: pointer; }
.link-more .seg > button.on { background: var(--surface); color: var(--ink); }
.link-alts { display: flex; flex-direction: column; gap: 14px; }
.link-alt { display: flex; flex-direction: column; gap: 8px; }
.brew-sm { border-width: 1px; border-color: var(--line2); box-shadow: none; padding: 6px 6px 6px 16px; border-radius: 14px; }
.brew-sm .brew-prompt, .brew-sm .brew-cmd { font-size: 14px; line-height: 21px; }
.brew-sm .brew-cmd { overflow-wrap: anywhere; }
.brew-sm .brew-copy { height: 38px; min-width: 72px; background: var(--surface2); color: var(--ink); }
.link-what a { color: var(--ink2); text-underline-offset: 3px; }
.link-what a:hover { color: var(--accentText); }

/* Connected, expired, error */
.link-next { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.link-next .steps li { font-size: 17px; line-height: 25px; }
.steps li .link-step { font-family: var(--sans); font-size: inherit; color: var(--ink); }
.link-done {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 26px;
    background: oklch(0.78 0.15 150 / .12);
    color: var(--green);
    border: 1px solid oklch(0.78 0.15 150 / .4);
}
.link-done-off { background: var(--surface2); color: var(--ink2); border-color: var(--line2); }

/* /c: centred, phone first */
.link-center { align-items: center; text-align: center; }
.link-center .link-sub { font-size: 17px; line-height: 26px; }
.link-icon { width: 84px; height: 84px; border-radius: 19px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); }
.link-stores { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 360px; }
.link-stores .btn { width: 100%; }
.link-stores .btn[hidden] { display: none; }
.link-after { width: 100%; max-width: 420px; margin: 0; text-align: start; }
.link-after li { font-size: 16px; line-height: 23px; }
.link-open { width: 100%; max-width: 360px; background: none; border: 1px solid var(--line2); }
.link-center .fine { max-width: 420px; line-height: 18px; }

/* Footer: legal links and the language picker */
.link-footer { align-items: center; padding-top: 28px; padding-bottom: 32px; }
.link-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 14px; color: var(--ink2); }
.link-footer-links a { text-decoration: none; }
.link-lang { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; height: 36px; border-radius: 10px; background: var(--surface2); }
.link-lang select { background: none; border: 0; color: var(--ink2); font-family: var(--sans); font-size: 14px; cursor: pointer; }
.link-lang select option { background: var(--surface); color: var(--ink); }

[dir="rtl"] .link-line .brew, [dir="rtl"] .link-alt .brew { direction: ltr; }
/* Geist Mono has no Arabic, Hebrew or CJK glyphs: the small mono labels switch to the sans face */
[dir="rtl"] .link-page :is(.fine, .link-live b),
:lang(ja) .link-page :is(.fine, .link-live b), :lang(ko) .link-page :is(.fine, .link-live b),
:lang(zh) .link-page :is(.fine, .link-live b) { font-family: var(--sans); }

@media (max-width: 768px) {
    .link-main { padding-top: 40px; padding-bottom: 64px; }
    .link-sub { font-size: 16px; line-height: 25px; }
}
@media (max-width: 480px) {
    .link-line .brew { flex-wrap: wrap; align-items: flex-start; padding: 14px; }
    .link-line .brew-cmd { flex-basis: calc(100% - 30px); font-size: 14px; line-height: 21px; }
    .link-line .brew-copy { width: 100%; }
    .brew-sm { align-items: flex-start; }
    .brew-sm .brew-prompt { padding-top: 9px; }
    .brew-sm .brew-cmd { font-size: 13px; line-height: 19px; padding-top: 9px; }
    .link-card .btn-row { flex-direction: column; align-items: stretch; }
}
[dir="rtl"] .link-after li > span:first-child { display: inline-block; transform: scaleX(-1); }

/* ---------- /licence ---------- */
.licence-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.licence-plan {
    display: flex; flex-direction: column; gap: 8px; padding: 20px;
    background: var(--surface); border: 1px solid var(--line2); border-radius: 12px;
}
.licence-plan b { font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--ink2); }
.licence-price { font-family: var(--mono); font-size: 26px; letter-spacing: -.02em; }
.licence-plan .btn { margin-top: 8px; justify-content: center; }
.licence-key .brew-cmd { font-size: 18px; letter-spacing: .04em; overflow-wrap: anywhere; }
.licence-error { color: var(--accentText); }
.licence-tools { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 16px; }
.licence-tools h2 { margin: 12px 0 0; font-family: var(--mono); font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
.licence-form { display: flex; gap: 10px; flex-wrap: wrap; }
.licence-form input {
    flex: 1 1 260px; min-width: 0; padding: 12px 14px; font: 15px var(--mono); color: var(--ink);
    background: var(--surface); border: 1px solid var(--line2); border-radius: 8px;
}
.licence-form input:focus { outline: none; border-color: var(--accentLine); }
.licence-computers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.licence-computers li {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.licence-computers li > span:first-child { flex: 1; overflow-wrap: anywhere; }
.licence-erase { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line2); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.licence-erase-panel {
    display: flex; flex-direction: column; gap: 10px; align-items: flex-start; width: 100%;
    padding: 16px 18px; background: var(--surface); border: 1px solid var(--line2); border-radius: 8px;
}
.licence-erase-panel[hidden] { display: none; }
.licence-erase-panel > * { margin: 0; }
.licence-erase-panel b { font-family: var(--mono); font-weight: 500; color: var(--ink); outline: none; }
.licence-erase-panel p:not(.fine) { color: var(--ink2); }
.licence-erase-confirm { color: var(--red); border-color: currentColor; }
[dir="rtl"] .licence-erase-panel b, :lang(ja) .licence-erase-panel b, :lang(ko) .licence-erase-panel b, :lang(zh) .licence-erase-panel b { font-family: var(--sans); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
@media (max-width: 640px) {
    .licence-plans { grid-template-columns: 1fr; }
    .licence-computers li { flex-wrap: wrap; }
}
.licence-row {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 18px 22px; border: 1px dashed var(--line2); border-radius: 12px;
}
.licence-row p { margin: 0; max-width: 720px; color: var(--ink2); }
.licence-row b { color: var(--ink); font-weight: 600; }

/* ---------- Guides (articles-src/, built by scripts/build_guides.py) ---------- */
.dtable.cols-2 > div { grid-template-columns: minmax(110px, .8fr) minmax(0, 1.6fr); }
.dtable.cols-4 > div { grid-template-columns: minmax(100px, .8fr) repeat(3, minmax(0, 1fr)); }
.dtable.cols-5 > div { grid-template-columns: minmax(100px, .8fr) repeat(4, minmax(0, 1fr)); }
.dtable code { white-space: normal; overflow-wrap: anywhere; }
.legal ol { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 25px; color: var(--ink2); }
.legal li a, .legal .callout a, .dtable a { color: var(--accentText); }
.legal h3[id] { scroll-margin-top: 80px; }
.legal-intro > p + p { font-size: 16px; line-height: 26px; color: var(--ink2); }
.legal-header .guide-crumb { font-family: var(--mono); font-size: 13px; color: var(--accentText); text-decoration: none; align-self: flex-start; }
.legal-header .guide-crumb::before { content: "← "; }
[dir="rtl"] .legal-header .guide-crumb::before { content: "→ "; }
.guide .faq-list { margin-top: 4px; }
.guide .faq-item p { padding-inline-end: 40px; padding-right: 0; }
.guide-cta { padding-top: 56px; }
.guide-cta .btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.guide-related { padding-top: 48px; }
.guide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.legal .guide-list { padding: 0; gap: 0; }
.guide-list li { padding: 18px 0; border-bottom: 1px solid var(--line2); display: flex; flex-direction: column; gap: 4px; }
.guide-list li a { font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
.guide-list li a:hover { color: var(--accentText); }
.guide-list li span { font-size: 15px; line-height: 23px; color: var(--ink2); }
.guide-draft { font-family: var(--mono); font-size: 11px; font-style: normal; color: var(--accentText); text-transform: uppercase; }
.draft-banner { background: var(--accent); color: #000; font-family: var(--mono); font-size: 12px; text-align: center; padding: 6px 16px; }

/* ============================================
   Selling: in-app guard, /pro page, home pricing (3 Nov 2026)
   ============================================ */

/* Opened from inside the apps (assets/inapp.js): nothing that sells off the app store */
.in-app [data-sell] { display: none !important; }
button.btn { border: 0; cursor: pointer; font: inherit; }
button.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero strip pointing to Pro */
.pro-strip {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    padding: 12px 16px; border: 1px solid var(--accentLine); border-radius: 12px; background: var(--accentSoft);
    font-size: 14px; line-height: 20px; color: var(--ink2);
}
.pro-strip b { color: var(--ink); font-weight: 600; }
.pro-strip a { color: var(--accentText); font-weight: 600; white-space: nowrap; }
.pro-strip a:hover { text-decoration: underline; }
.nav-links a.nav-pro { color: var(--accentText); }

/* Home pricing: web plans, then the app store row */
.pricing-groups { display: flex; flex-direction: column; gap: 16px; }
.plan-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; flex: 1; }
.plan-list li { display: flex; gap: 8px; }
.plan-list li::before { content: "+"; font-family: var(--mono); color: var(--accentText); }
.plan .fine { flex: 0; }
.app-plans {
    display: flex; align-items: center; justify-content: space-between; gap: 16px 20px; flex-wrap: wrap;
    padding: 18px 22px; border: 1px dashed var(--line2); border-radius: 12px;
}
.app-plans p { margin: 0; max-width: 720px; color: var(--ink2); font-size: 15px; line-height: 22px; }
.app-plans b { color: var(--ink); font-weight: 600; }
@media (max-width: 768px) {
    /* On a phone the app store (with its free trial) is the easier first step */
    .pricing-groups .app-plans { order: -1; }
}

/* /pro */
.pro-hero h1 { font-size: clamp(44px, 7vw, 76px); }
.pro-visual { height: 420px; align-items: center; }
.key-card {
    width: min(100%, 440px); padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line2);
    display: flex; flex-direction: column; gap: 26px; transform: rotate(-2deg); box-shadow: 0 30px 50px -24px rgba(0,0,0,.6);
}
.key-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.key-card-top img { width: 30px; height: 30px; border-radius: 7px; }
.key-card-key { font-family: var(--mono); font-size: clamp(20px, 3vw, 28px); letter-spacing: .04em; direction: ltr; }
.key-card-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.key-card-facts div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.key-card-facts small { font-family: var(--mono); font-size: 11px; color: var(--ink3); }
.pro-notif { left: auto; top: auto; bottom: 10px; inset-inline-end: 0; }
.pro-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.pro-feature { padding: 22px; border: 1px solid var(--line2); border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
.pro-feature h3 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.pro-feature p { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink2); }
.pro-plans .plan { gap: 12px; }
.pro-cli { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; margin-top: 24px; }
.pro-cli code { font-family: var(--mono); color: var(--ink); }
.team-form {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px;
    padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line2);
}
.team-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.team-form input[type=text], .team-form input[type=email], .team-form input[type=number], .team-form textarea {
    font: inherit; font-weight: 400; font-size: 15px; color: var(--ink); background: var(--code);
    border: 1px solid var(--line2); border-radius: 10px; padding: 11px 13px; min-width: 0;
}
.team-form textarea { resize: vertical; }
.team-form input:focus, .team-form textarea:focus { outline: none; border-color: var(--accentLine); }
.team-plan { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-content: flex-start; }
.team-plan legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.team-plan label { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; font-size: 14px; color: var(--ink2); }
.team-wide { grid-column: 1 / -1; }
.team-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.team-sent { margin: 0; color: var(--green); font-weight: 600; }
.team-form .fine a { color: var(--ink); text-decoration: underline; }
@media (max-width: 768px) {
    .pro-cli, .team-form { grid-template-columns: 1fr; }
    .pro-visual { height: auto; padding: 24px 0 64px; }
    .team-form { padding: 20px; }
}
