/* Public pages use the visitor's palette, the existing DIN-style display face, and saffron for the primary action. */
.shell:has(.landing) { background: var(--bg); }
.shell:has(.landing) .topbar { background: var(--surface); border-bottom-color: var(--border); }
:root[data-theme] .shell:has(.landing) .topnav a.cta, .shell:has(.landing) .topnav a.cta { background: #F2A93B; color: #1B1405; border: 0; }
.shell:has(.landing) .page-body { padding: 0; max-width: none; }

.landing {
    --night: var(--bg); --night-2: var(--surface); --line: var(--border);
    --moon: var(--text); --mist: var(--muted); --fire: #F2A93B; --fire-ink: #1B1405; --leaf: var(--green); --ember: var(--red); --steel: var(--muted);
    --display: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
    --gutter: max(20px, calc((100% - 1120px) / 2));
    background: var(--night); color: var(--moon); overflow-x: clip;
}
.landing section { padding: 88px var(--gutter) 0; }
.landing h1, .landing h2, .landing h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0; text-wrap: balance; margin: 0; }
.landing h2 { font-size: clamp(28px, 3.6vw, 40px); font-stretch: 85%; line-height: 1.05; margin-bottom: 14px; }
.landing .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fire); margin: 0 0 18px; font-weight: 400; }
.landing .note { color: var(--mist); margin: 0; max-width: 60ch; line-height: 1.55; }

/* Buttons */
.landing .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.landing .btn-fire, .landing .btn-quiet { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 6px; font-weight: 700; text-decoration: none; font-size: 16px; }
.landing .btn-fire { background: var(--fire); color: var(--fire-ink); box-shadow: 0 10px 30px -12px rgba(242, 169, 59, .7); }
.landing .btn-fire:hover { filter: brightness(1.06); text-decoration: none; color: var(--fire-ink); }
.landing .btn-quiet { color: var(--moon); border: 1px solid var(--control-border); }
.landing .btn-quiet:hover { border-color: var(--moon); text-decoration: none; color: var(--moon); }
.landing .btn-fire:focus-visible, .landing .btn-quiet:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; }

/* The real dashboard gets the space previously occupied by the illustration. */
.landing .watch-hero { --gutter:max(20px, calc((100% - 1260px) / 2)); padding-top:clamp(32px, 5vw, 74px); padding-bottom:24px; }
.landing .hero-inner { display:grid; grid-template-columns:minmax(0, 4fr) minmax(0, 7fr); gap:clamp(24px, 3vw, 48px); align-items:center; }
.landing h1 { font-size: clamp(44px, 6.4vw, 84px); font-stretch: 80%; line-height: .96; margin: 0 0 22px; max-width: 10em; }
.landing .lede { font-size: 18px; line-height: 1.6; color: var(--mist); max-width: 46ch; margin: 0 0 30px; }
.landing .watch-hero h1 { font-size:clamp(38px, 4.15vw, 62px); line-height:1.02; margin-bottom:16px; max-width:15ch; text-wrap:wrap; }
.landing .watch-hero .lede { margin-bottom:22px; max-width:38ch; }
.landing .hero-actions { align-items:center; gap:8px 20px; }
.landing .hero-actions .btn-fire { min-height:44px; padding-inline:16px; box-shadow:none; }
.landing .hero-signin { color:var(--moon); text-decoration:underline; text-underline-offset:4px; padding-block:10px; }
.landing .hero-signin:focus-visible { outline:2px solid var(--moon); outline-offset:3px; }
.landing .hero-trial { color:var(--mist); margin:8px 0 0; font-size:14px; }
.landing .hero-overview { margin:0; min-width:0; }
.landing .hero-overview img { display:block; width:100%; height:auto; border:1px solid var(--control-border); border-radius:8px; background:#12141a; }
.landing .hero-overview figcaption { color:var(--mist); font-size:13px; margin-top:7px; }
@media (max-width: 900px) {
    .landing .hero-inner { grid-template-columns:minmax(0, 1fr); gap:22px; }
    .landing .watch-hero h1 { max-width:21ch; }
    .landing .watch-hero .lede { max-width:45ch; }
}

/* One night: a horizontal watch line on wide screens, a vertical one on phones. */
.landing .night { padding-top: 56px; }
.landing .night ol { list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px; position: relative; border-top: 1px solid var(--line); }
.landing .night li { position: relative; padding-top: 14px; }
.landing .night li::before { content: ""; position: absolute; top: -27px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--night); border: 1px solid var(--mist); }
.landing .night li.alarm::before { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 0 5px rgba(226, 85, 58, .2); }
.landing .night time { font-family: var(--mono); font-size: 13px; color: var(--mist); font-variant-numeric: tabular-nums; }
.landing .night li.alarm time { color: var(--ember); }
.landing .night p { margin: 6px 0 8px; color: var(--mist); font-size: 14px; line-height: 1.45; }
.landing .night b { display: block; font-size: 14px; line-height: 1.4; color: var(--moon); font-weight: 600; }

/* Modes: four cards, each with its own colour bar. */
.landing .mode-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 26px 0 18px; }
/* No boxes: each mode is a column under a rule, its colour only in the bullets. Reads as a printed table, not a card grid. */
.landing .mode-cards { gap: 0 28px; }
.landing .mode { border-top: 1px solid var(--line); padding: 18px 0 0; }
.landing .mode.all h3 { color: var(--fire); }
.landing .mode h3 { font-size: 26px; font-stretch: 85%; }
.landing .mode .tag { margin: 4px 0 16px; font-family: var(--mono); font-size: 12px; color: var(--mist); }
.landing .mode ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.landing .mode li { position: relative; padding-left: 18px; line-height: 1.4; font-size: 15px; }
.landing .mode li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--steel); }
.landing .mode.farm li::before { background: var(--leaf); }
.landing .mode.war li::before { background: var(--ember); }
.landing .mode.all li::before { background: var(--fire); }

/* Screens: the desktop view with the phone over its corner. */
.landing .devices { display: grid; grid-template-columns: minmax(0, 1fr) 24%; align-items: start; margin: 30px 0 0; }
.landing .desk { margin-right: -48px; margin-top: 70px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); }
.landing .desk img, .landing .phone img { display: block; width: 100%; height: auto; }
.landing .phone { position: relative; z-index: 1; min-width: 210px; border-radius: 26px; overflow: hidden; background: #fff;
    border: 7px solid #05070F; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(233, 228, 214, .15); }
.landing .phone img { aspect-ratio: 780 / 1100; object-fit: cover; object-position: top; }
.landing .screens-fine { font-family: var(--mono); font-size: 11px; color: var(--mist); margin: 18px 0 0; opacity: .8; }

/* Steps */
.landing .start ol { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.landing .start li { counter-increment: step; display: grid; gap: 6px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.landing .start li::before { content: counter(step); font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: 54px; line-height: 1; color: var(--fire); }
.landing .start b { font-size: 18px; }
.landing .start span { color: var(--mist); }

/* Plans (shown only once configured) */
.landing .plans dl { margin: 22px 0 0; border-top: 1px solid var(--line); }
.landing .plans dl > div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.landing .plans dt { font-family: var(--display); font-size: 20px; font-weight: 700; }
.landing .plans .price { display: block; font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--fire); margin-top: 2px; }
.landing .plans dd { margin: 0; color: var(--mist); }

/* Questions */
.landing .faq details { border-top: 1px solid var(--line); max-width: 820px; }
.landing .faq details:last-of-type { border-bottom: 1px solid var(--line); }
.landing .faq h2 { margin-bottom: 22px; }
.landing .faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 600; }
.landing .faq summary::-webkit-details-marker { display: none; }
.landing .faq summary::after { content: "+"; color: var(--fire); font-family: var(--mono); font-size: 20px; line-height: 1; }
.landing .faq details[open] summary::after { content: "–"; }
.landing .faq summary:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; }
.landing .faq details p { margin: 0 0 20px; color: var(--mist); line-height: 1.6; max-width: 66ch; }

/* Closing */
.landing .closing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-top: 110px; padding-bottom: 20px; }
.landing .archer-small { width: 84px; height: auto; filter: invert(1) sepia(.18); opacity: .9; }
.landing .closing p { font-family: var(--display); font-stretch: 82%; font-weight: 700; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.05; margin: 0; max-width: 16ch; }
.landing .fine { padding: 72px var(--gutter) 28px; color: var(--mist); font-size: 13px; }

@media (max-width: 1100px) {
    .landing .night ol { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 22px; margin-left: 4px; }
    .landing .night li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; padding: 0 0 18px; }
    .landing .night li::before { top: 5px; left: -27px; }
    .landing .night time { grid-row: 1 / span 2; padding-top: 1px; }
    .landing .night p { margin: 0 0 3px; }
    .landing .mode-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    /* The home page already has its trial action under the headline. */
    .shell:has(.hero-trial) .topnav a.cta { display:none; }
    .landing section { padding-top: 64px; }
    .landing .watch-hero { padding-top: 28px; }
    .landing .watch-hero h1 { font-size:clamp(32px, 7.8vw, 44px); margin-bottom:12px; }
    .landing .watch-hero .lede { margin-bottom:16px; }
    .landing .lede { font-size: 17px; }
    .landing .actions a { flex: 1 1 auto; justify-content: center; }
    .landing .hero-actions a { flex:none; }
    .landing .mode-cards { grid-template-columns: minmax(0, 1fr); }
    .landing .devices { padding-bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
    .landing .desk { display: none; }
    .landing .phone { width: 72%; max-width: 300px; }
    .landing .start ol { grid-template-columns: minmax(0, 1fr); }
    .landing .plans dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Terms and Privacy: one readable column. */
.legal { max-width: 68ch; margin: 0 auto; padding: 40px 8px 64px; line-height: 1.65; }
.legal h1 { font-family: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif; font-stretch: 82%; font-size: 40px; line-height: 1.05; margin: 0 0 6px; }
.legal .legal-date { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.legal h2 { font-size: 17px; margin: 30px 0 8px; }
.legal p, .legal li, .legal dd { color: var(--muted); }
.legal dl > div { padding: 10px 0; border-top: 1px solid var(--border); }
.legal dt { font-weight: 600; }
.legal dd { margin: 2px 0 0; }
.site-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 18px 24px 26px; font-size: 13px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); text-decoration: underline; }
/* Sign-in pages keep the ink buttons from the logo. */
.auth-page .btn-primary, .page-body:has(.form-floating) .btn-primary { background: var(--text); color: var(--bg); border: 1px solid var(--text); }
.auth-page .btn-primary:hover, .page-body:has(.form-floating) .btn-primary:hover { filter: none; opacity: .88; }

/* Features and Commands pages: the same night, with a quieter head. */
.landing.site-page .page-head { padding-top: 64px; }
.landing.site-page .page-head h1 { font-size: clamp(38px, 5vw, 64px); max-width: 14em; margin-bottom: 16px; }
.landing.site-page .page-head .lede { margin-bottom: 0; }
.landing .feature-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 48px; }
.landing .feature-groups { gap: 8px 56px; }
.landing .fg { padding: 26px 0 4px; border-top: 1px solid var(--control-border); }
.landing .feature-shot { padding-top: 40px; }
.landing .feature-shot figure { margin: 0; }
.landing .feature-shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); }
.landing .feature-shot figcaption { color: var(--mist); font-size: 14px; margin-top: 12px; max-width: 70ch; }
.landing .closing-how { color: var(--mist); max-width: 46ch; line-height: 1.5; }
.landing .fg h2 { font-size: 26px; margin-bottom: 12px; }
.landing .fg ul { list-style: none; margin: 0; padding: 0; }
.landing .fg li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.landing .fg li:first-child { border-top: 0; padding-top: 0; }
.landing .fg b { font-weight: 600; }
.landing .fg span { color: var(--mist); font-size: 15px; line-height: 1.45; }
.landing .fg a { color: var(--fire); }
.landing code { font-family: var(--mono); font-size: 14px; color: var(--fire); background: rgba(242, 169, 59, .08); border: 1px solid rgba(242, 169, 59, .18); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.landing .cmd-rules { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.landing .cmd-rules li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: baseline; color: var(--mist); line-height: 1.5; }
.landing .cmd-rules .dot { justify-self: start; width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); margin: 0 0 0 8px; }
.landing .cmd-group { padding-top: 52px; }
.landing .cmd-group h2 { font-size: 26px; }
.landing .cmd-sub { font-size: 18px; margin: 26px 0 8px; color: var(--mist); }
.landing .cmd-table { width: 100%; max-width: 900px; border-collapse: collapse; margin-top: 10px; }
.landing .cmd-table td { padding: 12px 16px 12px 0; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.landing .cmd-table tr:last-child td { border-bottom: 1px solid var(--line); }
.landing .cmd-table td:first-child { width: 42%; }
.landing .cmd-table td:first-child code { display: inline-block; margin: 0 6px 6px 0; }
.landing .cmd-table td:last-child { color: var(--mist); }
.landing .cmd-group .note { margin-top: 12px; }
@media (max-width: 760px) {
    .landing .feature-groups { grid-template-columns: minmax(0, 1fr); }
    .landing .cmd-rules li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .landing .cmd-table, .landing .cmd-table tbody, .landing .cmd-table tr, .landing .cmd-table td { display: block; width: 100%; }
    .landing .cmd-table td:first-child { width: 100%; padding-bottom: 2px; }
    .landing .cmd-table td:last-child { border-top: 0; padding-top: 0; }
    .landing code { white-space: normal; }
}
/* Public links in the top bar and footer. */
.shell:has(.landing) .topnav a.pub.active { color: var(--accent); }
/* Pricing page: three cards (trial, the plan, extra slot) and a table of what each fleet size pays. */
.landing .price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 48px; align-items: stretch; }
.landing .price-card { position: relative; display: flex; flex-direction: column; background: var(--night-2); border: 1px solid var(--line); border-radius: 10px; padding: 24px 22px 22px; }
.landing .price-card.main { border-color: rgba(242, 169, 59, .55); box-shadow: 0 0 0 1px rgba(242, 169, 59, .25) inset; }
.landing .price-card .badge { position: absolute; top: -11px; left: 20px; margin: 0; padding: 2px 10px; border-radius: 999px; background: var(--fire); color: var(--fire-ink); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.landing .price-card h2 { font-size: 24px; margin-bottom: 10px; }
.landing .price-card .amount { font-family: var(--display); font-size: 48px; font-weight: 700; line-height: 1; margin: 0; color: var(--moon); }
.landing .price-card .amount span { font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--mist); margin-left: 6px; }
.landing .price-card .per { color: var(--fire); font-family: var(--mono); font-size: 13px; margin: 8px 0 16px; }
.landing .price-card ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.landing .price-card li { padding: 8px 0; border-top: 1px solid var(--line); color: var(--mist); line-height: 1.45; }
.landing .price-card li b { color: var(--moon); font-weight: 600; }
.landing .price-card .cta, .landing .price-card .ghost-cta { display: block; text-align: center; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
:root[data-theme] .landing .price-card a.cta, .landing .price-card a.cta { background: var(--fire); color: var(--fire-ink); }
.landing .price-card .ghost-cta { border: 1px solid var(--line); color: var(--moon); }
.landing .price-card .cta:hover, .landing .price-card .ghost-cta:hover { filter: brightness(1.08); text-decoration: none; }
.landing .price-table th { text-align: left; font-weight: 600; color: var(--mist); font-size: 13px; padding: 0 16px 10px 0; }
.landing .price-table td:first-child { width: auto; }
.landing .price-table td small { display: block; color: var(--mist); font-size: 13px; }
.landing .price-table td:not(:first-child) { color: var(--moon); font-family: var(--mono); }
@media (max-width: 900px) { .landing .price-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
    .landing .price-table thead { display: none; }
    .landing .price-table td:not(:first-child)::before { font-family: system-ui, sans-serif; color: var(--mist); font-size: 13px; display: block; }
    .landing .price-table td:nth-child(2)::before { content: "First month"; }
    .landing .price-table td:nth-child(3)::before { content: "Each month after"; }
    .landing .price-table td:nth-child(4)::before { content: "First year (yearly plan)"; }
}
.landing .price-card .buy-pair { display: grid; gap: 8px; }
.landing .price-card .buy-note { margin: 10px 0 0; color: var(--mist); font-size: 13px; line-height: 1.4; }
.landing .price-table td.buy-cell { white-space: nowrap; font-family: inherit; }
.landing .price-table td.buy-cell a { color: var(--fire); font-weight: 600; margin-right: 12px; }
.landing .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { .landing .price-table td.buy-cell { padding-top: 6px; } }

:root:is([data-theme=light], [data-theme=warm_light]) .landing { --fire:#8a4705; --fire-ink:#fff9ed; }
:root:is([data-theme=light], [data-theme=warm_light]) .landing .archer-small { filter:none; }
:root[data-theme] .shell:has(.landing) .plan-notice, .shell:has(.landing) .plan-notice { margin-left: var(--gutter, 24px); margin-right: var(--gutter, 24px); }
