/* =========================================================================
   MARKETING — the public site (index.html, about.html) and its account pages.
   Flat poster panels, heavy Archivo, square corners. Brand colours and face
   are the same as modernist.css, which the app keeps using. The log in, sign up,
   verify and setup pages load this file too (see the end of it).
   ========================================================================= */

:root {
    --paper: #f3f2f2;
    --ink: #201e1d;
    --green: #4caf50;
    --mint: #b8e3bb;
    --stone: #d7d3d3;
    --alarm: #e15b47;
    --state-green: #cfeecf;
    --state-amber: #fce883;
    --state-red: #f6c2c2;

    --font: "Archivo", "Noto Sans Bengali", "Noto Sans Arabic", system-ui, sans-serif;

    /* The five type sizes. Nothing else on the page sets a font-size. */
    --t-name: 20vw;
    --t-big: clamp(52px, 10vw, 168px);
    --t-head: clamp(28px, 4.2vw, 68px);
    --t-body: 18px;
    --t-small: 15px;

    --margin: clamp(16px, 1.9vw, 28px);

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --t-press: 140ms;
    --t-hover: 180ms;
    --t-ui: 240ms;
    --t-reveal: 800ms;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--t-body);
    line-height: 1.5;
    overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
table { border-collapse: collapse; }

h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.03em; line-height: 0.98; text-wrap: balance; }
h2 { font-size: var(--t-head); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--paper); }
::selection { background: var(--ink); color: var(--paper); }

/* — controls — */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 28px;
    border: 0;
    background: var(--ink);
    color: var(--paper);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) linear, color var(--t-hover) linear;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:active { transform: scale(0.97); }
.on-ink .btn { background: var(--green); color: var(--ink); }
.on-ink .btn:hover { background: var(--paper); }

.text-link {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: text-underline-offset var(--t-hover) var(--ease-out);
}
.text-link:hover { text-underline-offset: 7px; }

/* — nav, sits in the hero's top-right corner — */
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); font-size: var(--t-small); font-weight: 600; }
.nav a { text-decoration: none; padding-block: 8px; position: relative; }
.nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-ui) var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* — hero — */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding: var(--margin) var(--margin) 0;
    background: var(--green);
    overflow: hidden;
    isolation: isolate;
}
/* Temperature-map bands, drawn by marketing.js over the flat green, which stays as the fallback.
   Every band keeps at least 4.5:1 with --ink, so text can sit on any of them. */
.hero-shader { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms var(--ease-out); pointer-events: none; }
.hero-shader.is-ready { opacity: 1; }
.hero-pause { min-height: 36px; margin-top: 2px; padding: 4px 0; border: 0; background: none; font-size: var(--t-small); font-weight: 700; text-decoration: underline; cursor: pointer; }
.hero-pause[hidden] { display: none; }
.hero .nav { position: relative; z-index: 2; justify-content: flex-end; }
.hero-logo { margin-right: auto; font-size: clamp(24px, 2.6vw, 40px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.nav .hero-logo::after { display: none; }
.hero h1 {
    margin-top: clamp(12px, 2.2vh, 28px);
    pointer-events: none;
    font-size: 5.7vw;
    line-height: 0.95;
    letter-spacing: -0.045em;
    transform-origin: left center;
    padding-bottom: 0.25em;
}
.hero-lower {
    position: relative;
    flex: 1;
    min-height: 400px;
    margin-top: clamp(24px, 4vh, 44px);
}
.hero-lede { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding-bottom: 28px; width: 36vw; min-width: 300px; position: absolute; inset: 0 auto 0 0; }
.hero-lede > p:first-child { margin-bottom: 20px; max-width: 42ch; }
.hero-trial { margin-top: 10px; font-size: var(--t-small); font-weight: 600; }
.hero-price { margin-top: clamp(16px, 3vh, 32px); }
.hero-price strong { display: block; font-size: clamp(24px, 2.6vw, 40px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 4px; }
.hero-records { margin-top: auto; padding-top: 16px; max-width: 42ch; font-size: var(--t-small); font-weight: 600; line-height: 1.35; }
.hero-tablet, .hero-sheet { position: absolute; top: 0; }
.hero-tablet { left: 37vw; width: 34vw; }
.hero-sheet { left: 67vw; width: 34vw; rotate: 5deg; top: 12px; }
.scene .hero-tablet { display: none; }
.scene .hero-sheet { left: 64vw; }

/* — languages: copy, the tablet, the record — */
.langs {
    --tablet-w: min(34vw, 480px, calc((100svh - 56px) * 0.74));
    --langs-top: clamp(64px, 7vw, 112px);
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--tablet-w) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: center;
    min-height: 110svh;
    padding-block: var(--langs-top);
    padding-inline: var(--margin);
    background: var(--ink);
    color: var(--paper);
}
.langs-copy, .langs-record { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.langs-note { font-size: var(--t-small); color: var(--stone); }
.langs-record h3 { font-size: var(--t-head); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
    min-height: 44px;
    padding: 8px 14px;
    border: 0;
    background: var(--paper);
    color: var(--ink);
    font-size: var(--t-small);
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) linear, color var(--t-hover) linear;
}
.seg button:hover { background: var(--stone); }
.seg button:active { transform: scale(0.96); }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--ink); }

.record { width: 100%; background: var(--paper); color: var(--ink); padding: 18px 20px; font-size: var(--t-small); }
.record table { width: 100%; }
.record caption { text-align: left; font-weight: 800; padding-bottom: 10px; }
.record th { text-align: left; font-weight: 600; padding: 6px 12px 6px 0; border-bottom: 2px solid var(--ink); }
.record td { padding: 8px 12px 2px 0; font-variant-numeric: tabular-nums; font-weight: 700; }
.record td.is-warm { color: #b3261e; }
.record-line { margin-top: 12px; padding: 10px 12px; background: var(--mint); font-weight: 700; }
.record-line.is-alert { background: var(--state-red); }
.record-again { padding: 10px 0; border: 0; background: none; cursor: pointer; }
.record-again[hidden] { display: none; }

/* — the tablet. Six flat faces; its front sits at z 0, so settled it's plain, sharp HTML. — */
.tablet-slot { width: var(--tablet-w); height: calc(var(--tablet-w) * 1.34); }
.tablet {
    --tablet-depth: 46px;
    position: relative;
    width: 100%;
    height: 100%;
    font-size: calc(var(--tablet-w) / 30);
    line-height: 1.3;
    transform-style: preserve-3d;
}
.scene .tablet { will-change: transform; pointer-events: none; }
.scene .tablet.settled { pointer-events: auto; }
.tablet-face { position: absolute; display: none; }
.scene .tablet-face { display: block; }
.tablet-right { top: 0; left: 100%; width: var(--tablet-depth); height: 100%; background: #fff; transform-origin: left center; transform: rotateY(90deg); }
.tablet-left { top: 0; right: 100%; width: var(--tablet-depth); height: 100%; background: var(--stone); transform-origin: right center; transform: rotateY(-90deg); }
.tablet-top { left: 0; bottom: 100%; width: 100%; height: var(--tablet-depth); background: #fff; transform-origin: center bottom; transform: rotateX(90deg); }
.tablet-bottom { left: 0; top: 100%; width: 100%; height: var(--tablet-depth); background: var(--stone); transform-origin: center top; transform: rotateX(-90deg); }
.tablet-back { inset: 0; background: var(--stone); transform: translateZ(calc(var(--tablet-depth) * -1)); }
.tablet-front { position: absolute; inset: 0; padding: 1.15em; background: #e6e4e1; }

/* — the staff app on its screen: same parts as the real one, sized in the tablet's own units — */
.app { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; color: #111; }
.app-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6em; padding: 0.9em 1em 0.3em; }
.app-brand { display: block; font-size: 0.68em; letter-spacing: 0.06em; text-transform: uppercase; color: #555; }
.app-title { display: block; font-weight: 700; }
.app-sync { display: inline-flex; align-items: center; flex: none; gap: 0.4em; padding: 0.15em 0.6em; background: #e8f5e9; font-size: 0.72em; font-weight: 600; }
.app-sync i, .app-done i { flex: none; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--green); }
.app-date { padding: 0 1.15em 0.6em; font-size: 0.8em; color: #333; border-bottom: 1px solid #e0e0e0; }
.app-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.55em; padding: 0.8em 1em; overflow: hidden; }
.app-screen[hidden] { display: none; }
.app-welcome { font-size: 1.3em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.app-progress { display: flex; align-items: center; gap: 0.6em; font-size: 0.78em; font-weight: 600; color: #555; }
.app-bar { flex: 1; height: 0.5em; border-radius: 1em; background: #e0e0e0; overflow: hidden; }
.app-bar div { height: 100%; background: var(--green); transition: width var(--t-ui) var(--ease-out); }
.app-card {
    display: flex;
    align-items: center;
    flex: none;
    gap: 0.75em;
    width: 100%;
    padding: 0.7em 0.75em;
    border: 1px solid #ddd;
    background: #fff;
    color: inherit;
    font-size: 1em;
    text-align: start;
}
.app-card-next { border: 2px solid var(--ink); cursor: pointer; transition: background-color var(--t-hover) linear; }
.app-card-next:hover:not(:disabled) { background: #f0f0f0; }
.app-card.is-done { border: 1px solid #ddd; background: #e8f5e9; cursor: default; }
.app-code { flex: none; padding: 0.5em 0.45em; background: #f2f2f2; font-size: 0.82em; font-weight: 700; }
.app-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25em; }
.app-name { font-weight: 700; line-height: 1.2; }
.app-badge { display: inline-block; padding: 0 0.45em; background: #ff6b6b; color: #201e1d; font-size: 0.72em; font-weight: 700; }
.is-done .app-badge { background: var(--green); }
.app-desc { font-size: 0.78em; color: #555; line-height: 1.25; }
.app-done { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.74em; font-weight: 600; color: #2e6b31; }
.app-done[hidden], .app-arrow[hidden] { display: none; }
.app-arrow { flex: none; font-size: 1.3em; }
[dir="rtl"] .app-arrow, [dir="rtl"] .app-back-arrow { display: inline-block; transform: scaleX(-1); }
.app-back { align-self: flex-start; min-height: 44px; margin-block: -0.6em -0.2em; padding: 0 0.3em; border: 0; background: none; color: inherit; font-size: 0.9em; font-weight: 600; cursor: pointer; }
.app-form-title { font-size: 1.1em; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.app-field { display: flex; flex-direction: column; padding: 0.7em 0.8em 0.5em; background: #f5f5f5; transition: background-color var(--t-ui) linear; }
.app-field label { font-size: 0.85em; font-weight: 600; }
.app-field output { font-size: 4em; font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.app-field[data-state="warm"] { background: var(--state-red); }
.app-field input { display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: grab; appearance: none; -webkit-appearance: none; touch-action: pan-y; }
.app-field input::-webkit-slider-runnable-track { height: 0.6em; background: var(--ink); }
.app-field input::-moz-range-track { height: 0.6em; background: var(--ink); }
.app-field input::-webkit-slider-thumb { -webkit-appearance: none; width: 2.6em; height: 2.6em; margin-top: -1em; border: 0; border-radius: 0; background: var(--green); outline: 2px solid var(--ink); }
.app-field input::-moz-range-thumb { width: 2.6em; height: 2.6em; border: 0; border-radius: 0; background: var(--green); outline: 2px solid var(--ink); }
.app-field :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.app-warn { display: flex; flex-direction: column; gap: 0.2em; padding: 0.55em 0.7em; background: #ffe6e6; font-size: 0.85em; line-height: 1.25; }
.app-warn[hidden], .app-summary[hidden] { display: none; }
.app-summary { margin: 0; font-size: 0.85em; }
.app-summary div { display: flex; justify-content: space-between; gap: 0.6em; padding: 0.3em 0; border-bottom: 1px solid #e0e0e0; }
.app-summary dt { color: #555; }
.app-summary dd { margin: 0; font-weight: 600; }
.app-save { flex: none; min-height: 44px; margin-top: auto; padding: 0.6em; border: 0; background: var(--green); color: var(--ink); font-weight: 800; cursor: pointer; transition: background-color var(--t-hover) linear, color var(--t-hover) linear; }
.app-save:hover { background: var(--ink); color: var(--paper); }
.app-foot { display: flex; justify-content: space-between; gap: 0.6em; padding: 0.6em 1em; border-top: 1px solid #e0e0e0; background: #fafafa; font-size: 0.78em; color: #555; }
.app-foot b { color: #111; font-weight: 600; }
.tablet :focus-visible { outline-color: var(--ink); }

/* — proof: the one real place — */
.near { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--mint); }
.near-copy { display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; margin: 0; padding: clamp(40px, 5vw, 80px) var(--margin); }
.near-copy blockquote { margin: 0; font-size: clamp(28px, 3.2vw, 52px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.04; text-wrap: pretty; }
.near-copy figcaption { font-size: 18px; }
.near-note { display: block; margin-top: 4px; font-size: 15px; }
.near-pic { position: relative; margin: 0; min-height: clamp(320px, 34vw, 560px); }
.near-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }

/* — show, don't explain: graphic left, two lines right. The graphics sit on one side because
   alternating sides costs scanning readers glances. The un-animated state of every layer is the
   last frame, so no script, reduced motion and print all get the finished picture. — */
.mo-note { position: absolute; left: var(--margin); bottom: 14px; font-size: var(--t-small); font-weight: 600; }
.show-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: clamp(24px, 3vw, 44px) var(--margin); background: var(--ink); color: var(--paper); }
.show-cta strong { display: block; font-size: var(--t-head); font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.langs-cta { margin-top: 8px; }
.show { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.show-copy { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(32px, 4vw, 72px) var(--margin) clamp(32px, 4vw, 72px) clamp(24px, 4vw, 72px); }
.show-copy p { max-width: 38ch; font-weight: 600; }
.mo { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4.4vw, 72px) var(--margin) max(48px, 4.4vw); }
.mo.is-green { background: var(--green); }
.mo.is-red { background: var(--alarm); }
.mo.is-amber { background: var(--state-amber); }
.mo.is-mint { background: var(--mint); }
.mo-tablet { width: min(100%, 680px); padding: 2.2%; background: var(--ink); container-type: inline-size; }
.mo-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; color: var(--ink); font-size: clamp(13px, 3cqw, 20px); line-height: 1.25; font-weight: 600; }
.mo-screen i, .mo-screen em, .mo-screen u { font-style: normal; text-decoration: none; }
.mo-screen b { font-weight: 900; }
.mo-toggle { position: absolute; right: var(--margin); bottom: 6px; min-height: 36px; padding: 4px 8px; border: 0; background: none; font-size: var(--t-small); font-weight: 700; text-decoration: underline; cursor: pointer; }
html:not(.js) .mo-toggle { display: none; }

.mo-mail { position: absolute; right: 4%; top: 6%; width: 62%; padding: 3% 4%; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; gap: 4px; }

/* no app: a wall sign, a phone pointed at it, then the kitchen app in the browser */
.mo-tablet.mq-wall { padding: 0; background: none; }
.mq-wall .mo-screen { background: none; overflow: visible; }
.mq-phone, .mq-poster { max-width: 100%; }
.mq-poster { position: absolute; left: 3%; top: 8%; bottom: 8%; width: 44%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5em; padding: 3%; background: #fff; text-align: center; }
.mq-poster b { font-size: 1.15em; line-height: 1.1; }
.mq-poster span { font-size: max(13px, 0.85em); }
.mq-code { width: 72%; }
.mq-phone { position: absolute; right: 5%; top: 0; bottom: 0; width: 38%; padding: 2.2% 1.8%; background: var(--ink); }
.mq-glass { position: relative; height: 100%; overflow: hidden; background: #fff; }
.mq-cam, .mq-pin, .mq-list { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 0.45em; padding: 8% 7%; }
.mq-cam { align-items: center; justify-content: center; background: var(--ink); opacity: 0; }
.mq-code-small { width: 62%; background: #fff; outline: 0.35em solid #fff; }
.mq-cam i { position: absolute; width: 11%; aspect-ratio: 1; border: 3px solid var(--green); }
.mq-cam i:nth-of-type(1) { left: 10%; top: 27%; border-width: 3px 0 0 3px; }
.mq-cam i:nth-of-type(2) { right: 10%; top: 27%; border-width: 3px 3px 0 0; }
.mq-cam i:nth-of-type(3) { left: 10%; bottom: 27%; border-width: 0 0 3px 3px; }
.mq-cam i:nth-of-type(4) { right: 10%; bottom: 27%; border-width: 0 3px 3px 0; }
.mq-url { flex: none; padding: 0.25em 0.4em; overflow: hidden; background: var(--paper); font-size: max(12px, 0.72em); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mq-pin { opacity: 0; }
.mq-pin b, .mq-list b { font-size: 1.05em; line-height: 1.15; }
.mq-dots { display: flex; justify-content: space-between; margin-top: 0.3em; }
.mq-dots i { width: 13%; aspect-ratio: 1; background: var(--ink); }
.mq-item { padding: 0.45em 0.5em; background: var(--state-green); font-size: max(13px, 0.85em); line-height: 1.15; }

/* paper log: camera, then details, then listed */
.mp-cam, .mp-form, .mp-list { position: absolute; inset: 0; }
.mp-cam { background: var(--ink); opacity: 0; }
.mp-cam i { position: absolute; width: 8%; aspect-ratio: 1; border: 3px solid var(--paper); }
.mp-cam i:nth-child(1) { left: 25%; top: 3%; border-width: 3px 0 0 3px; }
.mp-cam i:nth-child(2) { right: 25%; top: 3%; border-width: 3px 3px 0 0; }
.mp-cam i:nth-child(3) { left: 25%; bottom: 3%; border-width: 0 0 3px 3px; }
.mp-cam i:nth-child(4) { right: 25%; bottom: 3%; border-width: 0 3px 3px 0; }
.mp-paper { position: absolute; left: 50%; top: 50%; width: 38%; max-width: none; opacity: 0; transform: translate(-50%, -50%) rotate(-3deg); filter: sepia(0.35); outline: 1px solid rgba(0, 0, 0, 0.25); }
.mp-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.mp-form { display: flex; flex-direction: column; justify-content: center; gap: 0.7em; padding: 0 5% 0 38%; opacity: 0; }
.mp-form span { display: flex; flex-direction: column; font-size: 0.85em; }
.mp-form em { padding: 0.35em 0.5em; border: 1px solid var(--ink); font-size: 1.1em; font-weight: 700; }
.mp-upload { align-self: flex-start; padding: 0.45em 1.2em; background: var(--ink); color: var(--paper); font-weight: 800; }
.mp-list { display: flex; flex-direction: column; padding: 5%; }
.mp-list b { font-size: 1.5em; margin-bottom: 0.5em; }
.mp-list span { display: grid; grid-template-columns: 7em 1fr; padding: 0.6em 0.5em; border-top: 1px solid var(--stone); }
.mp-list .mp-new { background: var(--state-green); font-weight: 800; }

/* alert */
.ma-form { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.3em; padding: 5%; }
.ma-form b { font-size: 1.5em; }
.ma-input { width: 45%; min-height: 2.4em; padding: 0.3em 0.5em; border: 2px solid var(--alarm); font-size: 1.4em; font-weight: 800; }
.ma-warn { margin-top: 0.4em; padding: 0.5em 0.7em; background: var(--state-red); font-weight: 800; }

/* reminder */
.mr-board { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 5%; }
.mr-clock { position: relative; margin-bottom: 0.2em; font-size: 3.4em; font-weight: 900; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.mr-t1 { position: absolute; left: 0; top: 0; opacity: 0; }
.mr-board span { display: flex; justify-content: space-between; padding: 0.7em; border-top: 1px solid var(--stone); }
.mr-done { background: var(--state-green); }
.mr-miss { background: var(--state-red); font-weight: 800; }

@media (prefers-reduced-motion: no-preference) {
    .js .mo-screen * { animation-duration: var(--dur); animation-iteration-count: infinite; animation-timing-function: var(--ease-out); animation-fill-mode: both; animation-delay: calc(var(--dur) * -0.85); animation-play-state: paused; }
    .js .mo.is-on:not(.is-paused) .mo-screen * { animation-play-state: running; }

    .js .mq-phone { animation-name: mq-phone; }
    .js .mq-cam { animation-name: mq-cam; }
    .js .mq-pin { animation-name: mq-pin; }
    .js .mq-list { animation-name: mq-list; }
    .js .mq-dots i:nth-child(1) { animation-name: mq-d1; }
    .js .mq-dots i:nth-child(2) { animation-name: mq-d2; }
    .js .mq-dots i:nth-child(3) { animation-name: mq-d3; }
    .js .mq-dots i:nth-child(4) { animation-name: mq-d4; }
    .js .mq-dots i:nth-child(5) { animation-name: mq-d5; }
    .js .mq-dots i:nth-child(6) { animation-name: mq-d6; }

    .js .mp-cam { animation-name: mp-cam; }
    .js .mp-cam i { animation-name: mp-frame; }
    .js .mp-paper { animation-name: mp-paper; }
    .js .mp-flash { animation-name: mp-flash; }
    .js .mp-form { animation-name: mp-form; }
    .js .mp-upload { animation-name: mp-upload; }
    .js .mp-list { animation-name: mp-list; }
    .js .mp-new { animation-name: mp-new; }

    .js .ma-d1 { animation-name: ma-d1; }
    .js .ma-d2 { animation-name: ma-d2; }
    .js .ma-warn { animation-name: ma-warn; }
    .js .ma-mail, .js .mr-mail { animation-name: mo-mail; }

    .js .mr-t1 { animation-name: mr-t1; }
    .js .mr-t2 { animation-name: mr-t2; }
    .js .mr-miss { animation-name: mr-miss; }
}

/* A scene's picture holds still for the last third of each loop, so it can be read. */
@keyframes mp-cam { 0%, 26% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes mp-frame { 0% { transform: scale(1.5); opacity: 0; } 14%, 100% { transform: none; opacity: 1; } }
@keyframes mp-paper {
    0%, 26% { opacity: 1; left: 50%; width: 38%; transform: translate(-50%, -50%) rotate(-3deg); }
    36%, 60% { opacity: 1; left: 19%; width: 26%; transform: translate(-50%, -50%) rotate(0deg); }
    64%, 100% { opacity: 0; left: 19%; width: 26%; transform: translate(-50%, -50%) rotate(0deg); }
}
@keyframes mp-flash { 0%, 24% { opacity: 0; } 25% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes mp-form { 0%, 32% { opacity: 0; } 37%, 60% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes mp-upload { 0%, 54% { background: var(--ink); color: var(--paper); } 57%, 100% { background: var(--green); color: var(--ink); } }
@keyframes mp-list { 0%, 60% { opacity: 0; } 65%, 100% { opacity: 1; } }
@keyframes mp-new { 0%, 66% { background: #fff; transform: translateX(6%); opacity: 0; } 72%, 100% { background: var(--state-green); transform: none; opacity: 1; } }

@keyframes ma-d1 { 0%, 8% { opacity: 0; } 9%, 100% { opacity: 1; } }
@keyframes ma-d2 { 0%, 16% { opacity: 0; } 17%, 100% { opacity: 1; } }
@keyframes ma-warn { 0%, 26% { opacity: 0; transform: translateY(8px); } 31%, 100% { opacity: 1; transform: none; } }
@keyframes mq-phone { 0% { transform: none; } 10%, 26% { transform: translateX(-8%); } 34%, 100% { transform: none; } }
@keyframes mq-cam { 0%, 26% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes mq-pin { 0%, 26% { opacity: 0; } 30%, 62% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes mq-list { 0%, 62% { opacity: 0; } 66%, 100% { opacity: 1; } }
@keyframes mq-d1 { 0%, 34% { background: var(--stone); } 36%, 100% { background: var(--ink); } }
@keyframes mq-d2 { 0%, 38% { background: var(--stone); } 40%, 100% { background: var(--ink); } }
@keyframes mq-d3 { 0%, 42% { background: var(--stone); } 44%, 100% { background: var(--ink); } }
@keyframes mq-d4 { 0%, 46% { background: var(--stone); } 48%, 100% { background: var(--ink); } }
@keyframes mq-d5 { 0%, 50% { background: var(--stone); } 52%, 100% { background: var(--ink); } }
@keyframes mq-d6 { 0%, 54% { background: var(--stone); } 56%, 100% { background: var(--ink); } }
@keyframes mo-mail { 0%, 44% { opacity: 0; transform: translateY(-120%); } 52%, 100% { opacity: 1; transform: none; } }

@keyframes mr-t1 { 0%, 28% { opacity: 1; } 29%, 100% { opacity: 0; } }
@keyframes mr-t2 { 0%, 28% { opacity: 0; } 29%, 100% { opacity: 1; } }
@keyframes mr-miss { 0%, 28% { background: #fff; } 34%, 100% { background: var(--state-red); } }

/* — photo that bleeds off two edges, caption bar on solid colour — */
.pass { position: relative; overflow: hidden; }
.pass img { width: 100%; height: clamp(440px, 56vw, 860px); object-fit: cover; object-position: 50% 62%; }
.pass-bar {
    position: absolute;
    left: 0; bottom: 0;
    width: min(62%, 860px);
    padding: clamp(24px, 3vw, 44px) var(--margin);
    background: var(--ink);
    color: var(--paper);
}
.pass-bar p { margin-top: 14px; max-width: 58ch; }

/* — the manager demo: a laptop, with what it does on the right — */
.admin {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: clamp(28px, 3.4vw, 56px);
    align-items: center;
    padding: clamp(72px, 8vw, 128px) var(--margin);
    background: var(--paper);
}
.laptop { min-width: 0; font-size: clamp(11px, 0.95vw, 15px); line-height: 1.35; }
.laptop-lid { width: 94%; margin-inline: auto; padding: 1em 1em 1.3em; border-radius: 0.9em 0.9em 0 0; background: var(--ink); transform-origin: center bottom; }
.laptop-screen { aspect-ratio: 16 / 10; overflow: auto; background: #fff; color: #111; }
.laptop-base { position: relative; height: 1.5em; border-radius: 0 0 0.9em 0.9em; background: var(--stone); }
.laptop-base::before { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 0.5em; margin-left: -8%; border-radius: 0 0 0.5em 0.5em; background: #b5b0b0; }

.dash { display: grid; grid-template-columns: 12em minmax(0, 1fr); min-height: 100%; }
.dash-side { padding: 1.2em 0.8em; background: #f5f5f5; }
.dash-kitchen { display: block; margin: 0 0.5em 1em; font-weight: 800; }
.dash-nav { display: flex; flex-direction: column; gap: 0.25em; }
.dash-nav button { min-height: 2.8em; padding: 0.4em 0.6em; border: 0; background: transparent; font-size: 1em; font-weight: 600; text-align: left; cursor: pointer; transition: background-color var(--t-hover) linear; }
.dash-nav button:hover { background: #e8e8e8; }
.dash-nav button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.dash-main { min-width: 0; display: flex; flex-direction: column; gap: 0.8em; padding: 1.1em 1.3em; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.dash-head h3 { font-size: 1.5em; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.dash-stats { display: flex; gap: 1.4em; margin: 0; }
.dash-stats dd { margin: 0; font-size: 1.15em; font-weight: 800; white-space: nowrap; }
.dash-stats dt { font-size: 0.82em; color: #555; white-space: nowrap; }
.dash-alert { display: flex; flex-wrap: wrap; gap: 0.2em 0.8em; padding: 0.6em 0.8em; background: var(--state-red); }
.dash-alert[hidden], .dash-panel[hidden], .dash-form[hidden], .dash-btn[hidden], .dash-form-error[hidden] { display: none; }
.dash-panel { display: flex; flex-direction: column; gap: 0.8em; min-width: 0; }
.dash-clock { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 0 0.9em; }
.dash-clock label { font-weight: 600; }
.dash-clock output { font-size: 1.5em; font-weight: 900; font-variant-numeric: tabular-nums; }
.dash-clock input { width: 100%; height: 44px; margin: 0; background: transparent; cursor: grab; appearance: none; -webkit-appearance: none; touch-action: pan-y; }
.dash-clock input::-webkit-slider-runnable-track { height: 0.5em; background: var(--ink); }
.dash-clock input::-moz-range-track { height: 0.5em; background: var(--ink); }
.dash-clock input::-webkit-slider-thumb { -webkit-appearance: none; width: 2.4em; height: 2.4em; margin-top: -0.95em; border: 0; border-radius: 0; background: var(--green); outline: 2px solid var(--ink); }
.dash-clock input::-moz-range-thumb { width: 2.4em; height: 2.4em; border: 0; border-radius: 0; background: var(--green); outline: 2px solid var(--ink); }
.dash-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5em; }
.dash-sum span { display: block; }
.dash-pill.n { background: var(--paper); }
.dash-sum div { padding: 0.5em 0.7em; font-size: 0.9em; font-weight: 600; line-height: 1.2; }
.dash-sum b { display: block; font-size: 1.9em; font-weight: 900; line-height: 1.05; }
.dash-sum .g, .dash-pill.g { background: var(--state-green); }
.dash-sum .a, .dash-pill.a { background: var(--state-amber); }
.dash-sum .r, .dash-pill.r { background: var(--state-red); }
.dash-table { width: 100%; }
.dash-table th { padding: 0.4em 0.8em 0.4em 0; border-bottom: 2px solid var(--ink); font-weight: 600; text-align: left; white-space: nowrap; }
.dash-table td { padding: 0.42em 0.8em 0.42em 0; border-bottom: 1px solid #e0e0e0; }
.dash-table tr.is-new td { background: var(--state-green); }
.dash-pill { display: inline-block; padding: 0.05em 0.6em; font-weight: 700; }
.dash-btn { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 44px; padding: 0.4em 1em; border: 0; background: var(--ink); color: var(--paper); font-size: 1em; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color var(--t-hover) linear, color var(--t-hover) linear; }
.dash-btn:hover { background: var(--green); color: var(--ink); }
.dash-btn.is-quiet { background: #f2f2f2; color: var(--ink); }
.dash-btn.is-quiet:hover { background: var(--stone); }
.dash-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6em 1em; padding: 0.9em; background: #f5f5f5; }
.dash-form label, .dash-range label { display: flex; flex-direction: column; gap: 0.2em; font-weight: 600; }
.dash-form input, .dash-form select, .dash-range input { width: 100%; min-height: 44px; padding: 0.4em 0.6em; border: 2px solid var(--ink); border-radius: 0; background: #fff; font-size: 1em; font-weight: 400; }
.dash-form-error { grid-column: 1 / -1; color: #b3261e; font-weight: 700; }
.dash-range { display: grid; grid-template-columns: repeat(2, minmax(0, 11em)) minmax(0, 1fr); align-items: end; gap: 0.6em 1em; }
.dash-quick { display: flex; flex-wrap: wrap; gap: 0.3em; }
.dash-count { font-weight: 600; }
.dash-count b { font-size: 1.5em; font-weight: 900; }
.dash-download { margin-top: auto; }
.laptop :focus-visible { outline-color: var(--ink); }

.admin-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.admin-items { display: flex; flex-direction: column; gap: 6px; }
.admin-item { padding: 14px 16px; background: var(--stone); transition: background-color var(--t-hover) linear; }
.admin-item:has(button[aria-pressed="true"]) { background: var(--green); }
.admin-item h3 { font-size: var(--t-body); letter-spacing: -0.01em; line-height: 1.2; }
.admin-item button { display: block; width: 100%; min-height: 44px; margin-block: -10px 0; padding: 0; border: 0; background: none; font-weight: 900; text-align: left; cursor: pointer; }
.admin-item button:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.admin-item p { font-size: var(--t-small); line-height: 1.4; }
.admin-note { font-size: var(--t-small); }

/* — pricing: one plan on one card, the first-year saving up front — */
.price { padding: clamp(72px, 8vw, 128px) var(--margin); scroll-margin-top: 0; }
.price-head { max-width: 900px; margin: 0 auto clamp(40px, 4.5vw, 64px); text-align: center; }
.price-head p { margin-top: 16px; }
.price-figure { font-size: var(--t-big); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.price-unit { display: block; font-size: var(--t-body); font-weight: 600; letter-spacing: 0; line-height: 1.4; margin-top: 12px; }

.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1120px; margin-inline: auto; }
.plan-offer, .plan-incl { padding: clamp(24px, 3.4vw, 48px); }
.plan-offer { display: flex; flex-direction: column; background: var(--green); }
.plan-incl { display: flex; flex-direction: column; background: var(--ink); color: var(--paper); }
.plan h3 { font-size: var(--t-head); }
.plan-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.plan-save { padding: 6px 12px; background: var(--ink); color: var(--paper); font-size: var(--t-small); font-weight: 800; white-space: nowrap; }
.plan-figure { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; margin-top: clamp(32px, 4vw, 56px); font-size: clamp(56px, 7vw, 104px); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.plan-figure span { font-size: var(--t-body); font-weight: 600; letter-spacing: 0; line-height: 1.4; white-space: nowrap; }
.plan-term { margin-top: 20px; }
.plan-term s { text-decoration-thickness: 2px; }
.plan-then { margin-top: 4px; }
.plan-trial { margin-top: 12px; font-size: var(--t-small); font-weight: 600; text-align: center; }
.plan-groups { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 28px; margin-top: 32px; }
.plan-groups h4 { margin: 0 0 12px; color: var(--green); font-size: var(--t-body); font-weight: 800; line-height: 1.2; }
.plan-incl li { position: relative; padding: 0 0 10px 30px; font-weight: 600; line-height: 1.35; }
.plan-incl li:last-child { padding-bottom: 0; }
.plan-incl li::before { content: ""; position: absolute; left: 3px; top: 3px; width: 9px; height: 15px; border: solid var(--green); border-width: 0 3px 3px 0; transform: rotate(40deg); }

.plan .plan-form { grid-column: auto; align-self: stretch; max-width: none; margin-top: auto; padding: 32px 0 0; background: none; }
.plan .plan-form .btn { background: var(--ink); color: var(--paper); }
.plan .plan-form .btn:hover { background: var(--paper); color: var(--ink); }

/* — FAQ, set as one of the record sheets it's about — */
.faq { padding: clamp(72px, 8vw, 128px) var(--margin); background: var(--mint); }
.sheet { padding: clamp(24px, 3vw, 48px); background: #fff; }
.sheet h2 { margin-bottom: 24px; color: #c8124f; }
.sheet table { width: 100%; border: 2px solid var(--ink); }
.sheet thead th { padding: 10px 16px; background: var(--ink); color: var(--paper); font-weight: 800; text-align: left; }
.sheet tbody th, .sheet tbody td { padding: clamp(14px, 1.6vw, 24px) 16px; border: 1px solid var(--ink); text-align: left; vertical-align: top; }
.sheet tbody th { width: 40%; font-size: 1.4em; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.sheet .sheet-no { width: 4.5em; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet sup { font-size: 0.65em; }

/* — closing panel with the first step of sign-up already open — */
.close {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    min-height: 76svh;
    padding: clamp(40px, 4vw, 64px) var(--margin);
    background: var(--green);
}
.close-copy { grid-column: 1 / span 6; align-self: end; }
.close-copy h2 { font-size: var(--t-big); line-height: 0.92; letter-spacing: -0.045em; }
.close-copy p { margin-top: 20px; max-width: 40ch; }
.dialog { grid-column: 8 / span 4; align-self: center; background: var(--paper); padding: 28px; }
.dialog h3 { font-size: var(--t-body); font-weight: 800; letter-spacing: 0; line-height: 1.3; margin-bottom: 18px; }
.dialog label { display: block; font-size: var(--t-small); font-weight: 600; margin-bottom: 6px; }
.dialog input, .dialog select {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    margin-bottom: 18px;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 0;
}
.dialog .btn { width: 100%; background: var(--green); color: var(--ink); margin-top: 4px; }
.dialog .btn:hover { background: var(--ink); color: var(--paper); }

/* — footer: the address is the headline — */
.foot {
    display: flex;
    flex-direction: column;
    min-height: 72svh;
    padding: clamp(28px, 2.8vw, 40px) var(--margin) 24px;
    background: var(--ink);
    color: var(--paper);
}
.foot-top { display: flex; justify-content: space-between; gap: 24px; font-size: var(--t-small); }
.foot-notes { display: flex; flex-wrap: wrap; gap: 8px 48px; }
.foot-notes p { max-width: 34ch; }
.foot-word { font-weight: 800; }
.foot-mail {
    display: block;
    margin-top: auto;
    padding-top: 96px;
    font-size: var(--t-big);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 0.95;
    text-decoration: none;
    transform-origin: left bottom;
    transition: color var(--t-hover) linear;
}
.foot-mail span { display: block; }
.foot-mail:hover { color: var(--green); }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 32px; font-size: var(--t-small); }
.foot-meta nav { display: flex; gap: 20px; }
.foot-credit { flex-basis: 100%; }
.foot-legal { flex-basis: 100%; max-width: 60ch; color: var(--stone); }

/* — about page — */
.a-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 88svh;
    padding: var(--margin);
    background: var(--mint);
    overflow: hidden;
}
.a-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.wordmark { font-weight: 900; font-size: var(--t-body); letter-spacing: -0.03em; text-decoration: none; }
.a-hero h1 { margin-top: auto; font-size: var(--t-big); line-height: 0.9; letter-spacing: -0.045em; max-width: 66vw; }
.a-hero > p { margin-top: 24px; max-width: 46ch; }
.a-hero > .btn { align-self: flex-start; margin-top: 20px; }
.a-hero-sheet { position: absolute; top: 88px; right: -5vw; width: 34vw; rotate: 5deg; }

.values { display: grid; grid-template-columns: repeat(12, 1fr); }
.value { padding: clamp(32px, 3.4vw, 52px) var(--margin); min-height: 46vh; display: flex; flex-direction: column; }
.value h2 { margin-bottom: 18px; }
.value p { margin-top: auto; max-width: 44ch; }
.value:nth-child(1) { grid-column: span 7; background: var(--green); }
.value:nth-child(2) { grid-column: span 5; background: var(--ink); color: var(--paper); }
.value:nth-child(3) { grid-column: span 5; background: var(--stone); }
.value:nth-child(4) { grid-column: span 7; background: var(--paper); }

.a-phones { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: clamp(72px, 8vw, 128px) var(--margin) 0; background: var(--ink); color: var(--paper); overflow: hidden; }
.a-phones-copy { grid-column: 1 / span 5; padding-bottom: 72px; }
.a-phones-copy p { margin-top: 18px; max-width: 42ch; }
.a-phones-pics { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; height: clamp(320px, 36vw, 560px); }
.a-phones-pics img { width: 100%; }

.days { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.day { display: flex; flex-direction: column; min-height: 64svh; padding: clamp(28px, 2.8vw, 40px) var(--margin); }
.day.first { background: var(--green); }
.day.after { background: var(--stone); }
.day p { max-width: 38ch; margin-top: 16px; }
.day .price-figure { margin-top: auto; padding-top: 40px; }
.day-notes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: clamp(56px, 6vw, 96px) var(--margin); }
.day-notes h2 { grid-column: 1 / span 5; }
.day-notes ul { grid-column: 7 / -1; }
.day-notes li { padding-bottom: 14px; font-weight: 600; }

/* — entrances. Gated on .js so nothing stays hidden if the script fails. — */
.js [data-rise] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity var(--t-reveal) var(--ease-expo), transform var(--t-reveal) var(--ease-expo);
    transition-delay: calc(var(--d, 0) * 75ms);
}
.js [data-rise].in { opacity: 1; transform: none; }

/* — scroll motion, desktop only: everyone else gets the page standing still — */
@supports (animation-timeline: scroll()) {
    .scene .hero h1 { animation: settle linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .scene .foot-mail { animation: arrive linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
}
.scene .pass img { scale: 1.1; }
@keyframes settle { to { transform: scale(0.94); } }
@keyframes arrive { from { transform: scale(0.94); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-rise] { opacity: 1; transform: none; transition: none; }
    * { transition-duration: 1ms !important; }
}

@media (max-width: 1280px) {
    .langs { --tablet-w: min(38vw, calc((100svh - 56px) * 0.74)); }
}

@media (max-width: 1500px) {
    .ui-hide-sm { display: none; }
}

@media (min-width: 1001px) and (max-width: 1680px) {
    .langs h2, .langs-record h3 { font-size: 3.4vw; }
}

/* — tablet — */
@media (max-width: 1000px) {
    .hero { min-height: 0; }
    .hero-lower { min-height: 72vw; }
    .hero-tablet { left: 44vw; width: 36vw; }
    .hero-sheet { left: 69vw; width: 46vw; }
    .langs { --tablet-w: min(calc(100vw - var(--margin) * 2), 480px); grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; }
    .tablet-slot { justify-self: center; }
    .day-notes h2, .day-notes ul, .a-phones-copy { grid-column: 1 / -1; }
    .a-phones-pics { grid-column: 1 / -1; }
    .admin { grid-template-columns: minmax(0, 1fr); }
    .laptop { font-size: 13px; }
    .near { grid-template-columns: minmax(0, 1fr); }
    .show { grid-template-columns: minmax(0, 1fr); }
    .show-copy { padding-inline: var(--margin); }
    .plan { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
    .foot { min-height: 0; }
    .close { min-height: 0; }
    .day { min-height: 420px; }
    .a-hero { min-height: 640px; }
    .close-copy { grid-column: 1 / -1; align-self: start; }
    .dialog { grid-column: 1 / -1; align-self: end; max-width: 520px; }
    .pass-bar { width: 78%; }
}

/* — phone: its own composition — */
@media (max-width: 640px) {
    :root { --t-name: 18.9vw; --t-big: 11.2vw; }

    .hero h1 { margin-left: 0; }

    .mo-screen { aspect-ratio: 5 / 4; }
    .mo-mail { width: 74%; }
    .mp-form { padding-left: 36%; gap: 0.4em; }
    .mp-form span { font-size: 1em; }
    .mp-form em { font-size: 1em; }
    .mp-paper { width: 44%; }

    .hero .nav { width: 100%; }
    .hero h1 { font-size: 10.4vw; line-height: 1; }
    .hero-lower { display: flex; flex-direction: column; min-height: 0; margin-top: 14px; }
    .hero-lede { position: static; width: auto; padding-bottom: 0; height: auto; min-width: 0; }
    .hero-lede .btn { width: 100%; }
    .hero-records { margin-top: 14px; padding-top: 0; }
    .hero-tablet, .hero-sheet { position: relative; left: auto; top: auto; }
    .hero-tablet { width: min(88vw, 420px); margin: 24px auto 24px; }
    .hero-sheet { display: none; }

    .langs { padding-block: 64px 88px; }
    .tablet-slot { height: calc(var(--tablet-w) * 1.4); }
    .tablet { font-size: calc(var(--tablet-w) / 26); }


    .pass img { height: 340px; }
    .pass-bar { position: static; width: 100%; }

    .laptop-lid { width: 100%; padding: 8px 8px 12px; }
    .laptop-screen { aspect-ratio: auto; overflow: visible; }
    .dash { grid-template-columns: minmax(0, 1fr); }
    .dash-side { padding: 10px; }
    .dash-kitchen { margin: 0 0 8px; }
    .dash-nav { flex-direction: row; }
    .dash-nav button { flex: 1; min-height: 44px; text-align: center; line-height: 1.15; }
    .dash-main { padding: 12px; }
    .dash-head { flex-direction: column; align-items: flex-start; }
    .dash-clock { grid-template-columns: auto minmax(0, 1fr); }
    .dash-clock input { grid-column: 1 / -1; }
    .dash-form { grid-template-columns: minmax(0, 1fr); }
    .dash-range { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-quick { grid-column: 1 / -1; }
    .ui-hide-xs { display: none; }

    .price-figure { font-size: var(--t-name); }

    .sheet { padding: 18px 14px; }
    .sheet thead { display: none; }
    .sheet table, .sheet tbody, .sheet tr, .sheet tbody th, .sheet tbody td { display: block; width: auto; }
    .sheet tr { padding: 12px; border-bottom: 1px solid var(--ink); }
    .sheet tr:last-child { border-bottom: 0; }
    .sheet tbody th, .sheet tbody td { padding: 0; border: 0; }
    .sheet tbody td:last-child { margin-top: 6px; }
    .sheet .sheet-no { width: auto; margin-bottom: 4px; }

    .dialog { padding: 22px; }
    .dialog .btn { min-height: 52px; }

    .foot-top { flex-direction: column; }
    .foot-notes { flex-direction: column; }
    .foot-meta { flex-direction: column; }

    .a-hero { min-height: 0; }
    .a-hero h1 { max-width: none; margin-top: 24px; }
    .a-hero-sheet { position: static; width: 70vw; margin: 24px auto 0; }
    .a-hero > .btn { align-self: stretch; }
    .value { grid-column: 1 / -1 !important; min-height: 0; }
    .value p { margin-top: 8px; }
    .days { grid-template-columns: 1fr; }
    .day { min-height: 340px; }
    .day .price-figure { font-size: var(--t-name); }
    .a-phones-pics { height: 300px; }
}

/* — grain: soft colour with film grain on every panel, so nothing reads as a flat fill. Static
   CSS over each panel's own background-color, which stays as the fallback. The glows are limited
   so --ink keeps at least 4.5:1 wherever text sits; the red's darker glow stays in the corner
   behind the tablet because the base red has almost no contrast to spare. — */
:is(.mo.is-green, .mo.is-red, .mo.is-amber, .mo.is-mint, .plan-offer, .plan-incl, .close, .day.first, .day.after,
    .value, .show-copy, .price, .admin, .day-notes, .near-copy, .faq, .a-hero, .auth-page, .auth-form-side,
    .langs, .show-cta, .foot, .a-phones, .pass-bar) {
    background-image: url("assets/site/grain.png"), var(--glow-a), var(--glow-b);
    background-size: 256px 256px, 100% 100%, 100% 100%;
    background-repeat: repeat, no-repeat, no-repeat;
}
:is(.mo.is-green, .plan-offer, .close, .day.first, .value:nth-child(1)) {
    --glow-a: radial-gradient(70% 80% at 16% 6%, #5ec460, transparent 74%);
    --glow-b: radial-gradient(70% 85% at 92% 100%, #3a9a40, transparent 74%);
}
.mo.is-red {
    --glow-a: radial-gradient(80% 70% at 12% 100%, #ef8571, transparent 76%);
    --glow-b: radial-gradient(45% 50% at 92% 0%, #cf4a38, transparent 78%);
}
.mo.is-amber {
    --glow-a: radial-gradient(70% 80% at 14% 8%, #fff4b8, transparent 74%);
    --glow-b: radial-gradient(70% 85% at 92% 100%, #f4d95c, transparent 74%);
}
:is(.show-copy, .price, .admin, .day-notes, .value:nth-child(4), .auth-page, .auth-form-side) {
    --glow-a: radial-gradient(70% 70% at 22% 10%, #fff, transparent 74%);
    --glow-b: radial-gradient(65% 70% at 96% 100%, #b8e3bb, transparent 76%);
}
:is(.day.after, .value:nth-child(3)) {
    --glow-a: radial-gradient(70% 75% at 16% 6%, #eceaea, transparent 74%);
    --glow-b: radial-gradient(70% 80% at 92% 100%, #c5c0c0, transparent 74%);
}
:is(.mo.is-mint, .near-copy, .faq, .a-hero) {
    --glow-a: radial-gradient(70% 75% at 16% 6%, #dcf3de, transparent 74%);
    --glow-b: radial-gradient(70% 80% at 92% 100%, #93d198, transparent 74%);
}
:is(.langs, .show-cta, .foot, .a-phones, .pass-bar, .value:nth-child(2), .plan-incl) {
    --glow-a: radial-gradient(60% 70% at 10% 100%, #2c5a30, transparent 76%);
    --glow-b: radial-gradient(55% 60% at 92% 0%, #3b3836, transparent 76%);
}

/* — log in, sign up, verify, setup: the hero's moving green with a framed form on top — */
.auth-page { --band: max(52svh, 320px); position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100svh; }
.auth-band { position: absolute; inset: 0 0 auto; z-index: -1; height: var(--band); background: var(--green); overflow: hidden; isolation: isolate; }
.auth-page > .nav { justify-content: flex-end; padding: var(--margin) var(--margin) 0; }
.auth-main { display: flex; flex: 1; flex-direction: column; align-items: center; padding: clamp(24px, 5vh, 56px) var(--margin) 40px; }
.auth-card { width: 100%; max-width: 480px; padding: clamp(24px, 3vw, 40px); background: #fff; --field: var(--paper); }
.auth-wide { max-width: 600px; }
.auth-centre { text-align: center; }
.auth-card h1, .auth-card h2 { margin-bottom: 24px; font-size: clamp(34px, 3.2vw, 48px); }
.auth-card .lede { margin-bottom: 24px; }
.auth-after { width: 100%; max-width: 480px; margin-top: 16px; font-size: var(--t-small); line-height: 1.4; }
.auth-card a, .auth-after a, .link-btn { color: inherit; font-weight: 700; text-decoration: underline; }

.sso-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 16px; background: var(--field); border: 0; font-weight: 700; cursor: pointer; transition: background-color var(--t-hover) linear; }
.sso-btn:hover { background: var(--stone); }
.divider { margin: 14px 0; font-size: var(--t-small); font-weight: 600; text-align: center; }
.auth-feedback { margin-bottom: 16px; padding: 10px 12px; font-size: var(--t-small); font-weight: 600; line-height: 1.35; }
.auth-feedback:empty { height: 0; margin: 0; padding: 0; }
.auth-feedback-error { background: var(--state-red); }
.auth-feedback-success { background: var(--state-green); }

.field-group { display: flex; flex-direction: column; gap: 16px; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: var(--t-small); font-weight: 600; }
.auth-card .input { display: block; width: 100%; min-height: 48px; padding: 10px 12px; background: var(--field); border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; }
.auth-card input[type="file"].input { padding: 9px 12px; font-size: var(--t-small); }
.auth-card input[type="file"]::file-selector-button { margin-right: 10px; padding: 4px 10px; background: var(--ink); color: var(--paper); border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.auth-card .input[readonly] { background: transparent; }
.subdomain-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.subdomain-row .input { flex: 1 1 140px; width: auto; min-width: 0; }
.subdomain-suffix { font-size: var(--t-small); font-weight: 600; }
.field-note { margin-top: 6px; font-size: var(--t-small); line-height: 1.35; }
.auth-card .btn-primary { width: 100%; background: var(--green); color: var(--ink); }
.auth-card .btn-primary:hover { background: var(--ink); color: var(--paper); }
.auth-card .btn-primary:disabled { opacity: 0.6; cursor: wait; }
.link-row, .resend-row { margin-top: 16px; font-size: var(--t-small); }
.link-btn { padding: 0; border: 0; background: none; cursor: pointer; }
.link-btn:disabled { font-weight: 600; text-decoration: none; cursor: not-allowed; opacity: 0.7; }

.otp-row { display: flex; justify-content: center; gap: 6px; margin-bottom: 24px; }
.otp-cell { flex: 1 1 0; width: 100%; min-width: 0; max-width: 54px; height: 60px; padding: 0; background: var(--field); border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; font-size: 24px; font-weight: 800; text-align: center; }
.password-field { margin-bottom: 24px; text-align: left; }
.trial-card { margin-top: 32px; }
.trial-card h3 { margin-bottom: 8px; font-size: clamp(24px, 2.2vw, 32px); }
.trial-card .btn { margin-top: 16px; }
.trial-card .small { margin-top: 10px; font-size: var(--t-small); }
#setup-form { margin-bottom: 0; }

/* The pause sits at the foot of the moving band, clear of the centred form. */
.auth-page .hero-pause { position: absolute; left: var(--margin); top: calc(var(--band) - 44px); margin: 0; }

/* sign up: the green holds the offer and stays put while the longer form scrolls */
.auth-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100svh; }
.auth-panel { position: sticky; top: 0; isolation: isolate; display: flex; flex-direction: column; height: 100svh; padding: var(--margin); background: var(--green); overflow: hidden; }
.auth-split { position: relative; }
.auth-links { position: absolute; top: var(--margin); right: var(--margin); z-index: 2; }
.auth-panel > .hero-logo { align-self: flex-start; text-decoration: none; }
.auth-panel h1 { margin-top: clamp(20px, 4vh, 48px); font-size: clamp(44px, 5vw, 84px); line-height: 0.95; letter-spacing: -0.045em; }
.auth-panel .hero-trial { margin-top: 14px; font-size: var(--t-body); font-weight: 700; }
.auth-form-side { justify-content: center; padding-block: clamp(72px, 9vh, 96px) clamp(24px, 4vw, 56px); }
.auth-form-side .auth-card { padding: 0; background: none; --field: #fff; }

/* sign up's graphic: a reading logged in Bengali becomes an English record. As on the home page,
   each layer's own state is the last frame, for reduced motion, no script and print. */
.auth-panel .mo { flex: 1; align-items: center; justify-content: flex-start; min-height: 0; padding: clamp(16px, 3vh, 32px) 0 44px; }
.auth-panel .mo-tablet { width: min(100%, 640px, calc((100svh - 400px) * 1.56)); min-width: min(100%, 300px); }
.auth-panel .mo-note { left: 0; bottom: 8px; }
.auth-panel .mo-toggle { right: 0; bottom: 1px; padding-right: 0; }
.ms-log, .ms-record { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.5em; padding: 5% 6%; }
.ms-who { font-size: 0.85em; font-weight: 700; }
.ms-log b, .ms-record b { font-size: 1.35em; line-height: 1.15; }
.ms-log { opacity: 0; }
.ms-input { display: flex; align-items: center; width: 50%; min-height: 2.2em; padding: 0 0.5em; background: var(--paper); border-bottom: 2px solid var(--ink); font-size: 1.15em; font-weight: 800; }
.ms-save, .ms-done { align-self: flex-start; padding: 0.35em 1em; background: var(--green); font-weight: 800; }
.ms-record span { display: flex; justify-content: space-between; gap: 1em; padding: 0.35em 0.6em; background: var(--paper); }
.ms-record strong { font-weight: 900; white-space: nowrap; }
.ms-done { background: var(--state-green); }
@media (prefers-reduced-motion: no-preference) {
    .js .ms-log { animation-name: ms-log; }
    .js .ms-digit { animation-name: ms-digit; }
    .js .ms-save { animation-name: ms-save; }
    .js .ms-record { animation-name: ms-record; }
}
@keyframes ms-log { 0%, 42% { opacity: 1; transform: none; } 48%, 96% { opacity: 0; transform: translateX(-6%); } 100% { opacity: 1; transform: none; } }
@keyframes ms-record { 0%, 44% { opacity: 0; transform: translateX(6%); } 50%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ms-digit { 0%, 12% { opacity: 0; } 14%, 100% { opacity: 1; } }
@keyframes ms-save { 0%, 30% { background: var(--green); color: var(--ink); } 33%, 40% { background: var(--ink); color: var(--paper); } 44%, 100% { background: var(--green); color: var(--ink); } }
.auth-form-side .auth-card, .auth-form-side .auth-after { max-width: 620px; }
@media (max-height: 720px) { .auth-panel { position: static; height: auto; min-height: 100svh; } }

@media (max-width: 900px) {
    .auth-split { grid-template-columns: minmax(0, 1fr); }
    .auth-panel { position: relative; height: auto; min-height: 0; }
    .auth-links { top: calc(var(--margin) - 8px); }
    .auth-panel h1 { font-size: clamp(40px, 10.4vw, 72px); }
    .auth-panel .mo-tablet { width: min(100%, 520px); }
}
@media (max-width: 640px) {
    .auth-page { --band: 300px; }
    .auth-card { border-width: 6px; }
    .auth-page .hero-pause { position: static; display: block; margin-top: 8px; }
    .field-pair { grid-template-columns: minmax(0, 1fr); }
}
.auth-terms { margin-bottom: 20px; padding: 14px 16px; background: var(--state-green); font-size: var(--t-small); line-height: 1.4; }
.auth-terms strong { display: block; margin-bottom: 4px; font-size: var(--t-body); font-weight: 800; }
