/* ==========================================================================
   Artrela.tv — site styles (v2)
   Breakpoints: ≥1680 wide · 1361–1679 desktop · 1101–1360 laptop
                861–1100 tablet landscape · 601–860 tablet portrait · ≤600 phone
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
    font-family: "Geist";
    src: url("../fonts/geist.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    --brand-a: #602a7a;
    --brand-b: #a61e56;
    --brand-c: #d75758;
    --brand-d: #17426a;
    --brand-e: #11b1bf;
    --brand-gradient: linear-gradient(90deg, #602a7a 0%, #a61e56 25%, #17426a 50%, #11b1bf 75%, #602a7a 100%);

    --font-body: "Geist", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Montserrat", "Geist", Arial, sans-serif;

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    --page-pad: 40px;
    --container: 1360px;
    --nav-width: 1360px;
    --section-gap: 200px;
    --section-gap-sm: 120px;
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 12px;
}

/* Light theme (default) */
:root, body.theme-light {
    color-scheme: light;
    --bg: #FAFAFA;
    --fg: #0F0F0F;
    --fg-2: #3C3C3C;
    --fg-3: #8a8a8a;
    --tile: #EBEBEB;
    --rule: #E2E2E2;
    --surface: #FFFFFF;
    --panel: #141414;        /* dark feature panels on a light page */
    --panel-fg: #FFFFFF;
    --panel-fg-2: #a3a3a3;
    --panel-rule: #2b2b31;
    --frame: #141414;        /* photo / video frames */
    --accent: #0F0F0F;       /* primary button */
    --accent-fg: #FFFFFF;
    --nav-bg: #FFFFFF;
    --nav-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    --chip: #EBEBEB;
    --toggle-track: #EBEBEB;
    --toggle-active: #FFFFFF;
}
body.theme-dark {
    color-scheme: dark;
    --bg: #0F0F0F;
    --fg: #FAFAFA;
    --fg-2: #B6B6B6;
    --fg-3: #8a8a8a;
    --tile: #1E1E1E;
    --rule: #3C3C3C;
    --surface: #1E1E1E;
    --panel: #FAFAFA;
    --panel-fg: #0F0F0F;
    --panel-fg-2: #3C3C3C;
    --panel-rule: #D6D6D6;
    --frame: #262626;
    --accent: #FAFAFA;
    --accent-fg: #0F0F0F;
    --nav-bg: #1E1E1E;
    --nav-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --chip: #1E1E1E;
    --toggle-track: #1E1E1E;
    --toggle-active: #3C3C3C;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); }
html:has(> body.theme-dark) { background: #0F0F0F; color-scheme: dark; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
a, button { transition: opacity 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
a:hover, button:hover { opacity: 0.8; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 3px;
    border-radius: 6px;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { max-width: 100%; display: block; }
main { flex: 1; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--page-pad); width: 100%; }
.section { padding-top: var(--section-gap); }
.section--related { padding-top: var(--section-gap-sm); }
.section--split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: center; }
.section--split .text { padding: 0 40px; display: flex; flex-direction: column; gap: 20px; }
.section--split .text p { max-width: 520px; }
.section--split.section--photo-first .frame { order: -1; }

.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.h2 { font-size: 40px; font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: 26px; font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; }
.lede { font-size: 16px; line-height: 1.55; color: var(--fg-2); }

.frame { background: var(--frame); border-radius: var(--radius-xl); overflow: hidden; position: relative; }
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--21x9 { aspect-ratio: 21 / 9; }
.frame > img, .frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 14px; color: #8a8a8a; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.btn--primary { background: var(--accent); color: var(--accent-fg); }
.btn--secondary { background: var(--tile); color: var(--fg); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }

.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; background: var(--chip); border-radius: 999px; font-size: 13px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.tile { background: var(--tile); border-radius: var(--radius-lg); padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; }
.tile .eyebrow { margin-bottom: 4px; }
.h4 { font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: -0.015em; }
.tile p { font-size: 14px; line-height: 1.5; color: var(--fg-2); }

/* ---------- Header ---------- */
.site-header { padding: 20px var(--page-pad) 0; }
.nav {
    max-width: var(--nav-width); margin: 0 auto; height: 56px; padding: 0 12px 0 24px;
    background: var(--nav-bg); border-radius: 999px; box-shadow: var(--nav-shadow);
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav__left { display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: flex-end; gap: 1px; font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; color: var(--fg); }
.brand img { height: 14px; width: auto; margin-bottom: 2px; }
.nav__links { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.nav__right { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 500; }
.nav__right .nav__login { color: var(--fg-2); }
.nav__menu-btn { display: none; width: 36px; height: 36px; border-radius: 999px; background: var(--tile); color: var(--fg); align-items: center; justify-content: center; }
.nav__menu { display: none; }
/* logged-in state: driven by body.logged-in (set from Artrela.auth) */
.user-logged-in { display: none; }
body.logged-in .user-logged-in { display: inline-flex; }
body.logged-in .user-logged-out { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding: var(--section-gap) var(--page-pad) 40px; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.site-footer__top { display: flex; justify-content: space-between; gap: 48px; font-size: 13px; }
.site-footer__cols { display: flex; gap: 96px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col strong { font-weight: 500; color: var(--fg-3); margin-bottom: 4px; }
.site-footer__col a { color: var(--fg); white-space: nowrap; }
.site-footer__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; color: var(--fg-2); }
.site-footer__meta .copyright { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.theme-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--toggle-track); }
.theme-toggle button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; color: #8a8a8a; }
.theme-toggle button[aria-pressed="true"] { background: var(--toggle-active); color: var(--fg); }
.site-footer__wordmark { display: block; width: 100%; height: auto; overflow: visible; }

/* compact footer (inner pages) */
.site-footer--compact { padding: 0 var(--page-pad) 28px; margin-top: auto; }
.site-footer--compact .site-footer__inner { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; font-size: 12px; color: var(--fg-2); }
.site-footer--compact .site-footer__links { display: flex; gap: 20px; }
.site-footer--compact .copyright { display: flex; align-items: center; gap: 16px; }

/* ---------- Hero ---------- */
.hero { padding-top: 88px; text-align: center; }
.hero__inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--page-pad); display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero__title { font-size: 64px; font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero__word { font-family: var(--font-display); font-weight: 800; font-size: 96px; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; display: block; animation: wordfade 3.6s ease-in-out infinite; }
@keyframes wordfade { 0% { opacity: 0; } 22% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
.hero__lede { max-width: 560px; font-size: 18px; line-height: 1.5; color: var(--fg-2); }
.hero__actions { display: flex; gap: 12px; }
.hero__showpiece { max-width: var(--container); margin: 0 auto; padding: 64px var(--page-pad) 0; position: relative; }

/* ---------- Logo strip ---------- */
.logos { max-width: 1280px; margin: 0 auto; padding: var(--section-gap-sm) var(--page-pad) 0; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.logos__strip { width: 100%; max-width: 1014px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos__track { display: flex; align-items: center; gap: 120px; width: max-content; padding-right: 120px; animation: logos-marquee 26s linear infinite; }
.logos__track img { height: auto; display: block; opacity: 0.9; }
.logos__track .logo--designtv { width: 108px; }
.logos__track .logo--tobin { width: 180px; }
.logos__track .logo--sandow { width: 111px; }
.logos__track .logo--surround { width: 135px; }
.logos__track .logo--dark { display: none; }
body.theme-dark .logos__track .logo--light { display: none; } body.theme-dark .logos__track .logo--dark { display: block; }
@keyframes logos-marquee { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }

/* ---------- Statement ---------- */
.statement { max-width: 1100px; margin: 0 auto; padding: var(--section-gap) var(--page-pad) 0; }
.statement p { font-size: 44px; font-weight: 500; line-height: 1.3; letter-spacing: -0.03em; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 0.28em; row-gap: 0.1em; }
.statement .w { display: inline-flex; align-items: center; gap: 0.28em; opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.statement.is-in .w { opacity: 1; transform: none; }
.statement .w:nth-child(2) { transition-delay: 0.08s; } .statement .w:nth-child(3) { transition-delay: 0.16s; }
.statement .w:nth-child(4) { transition-delay: 0.24s; } .statement .w:nth-child(5) { transition-delay: 0.32s; } .statement .w:nth-child(6) { transition-delay: 0.4s; }
.statement .ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--fg); color: var(--bg); }
.statement .ic svg { width: 22px; height: 22px; }

/* ---------- Live credit ---------- */
.credit { padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; max-width: 440px; }
.credit .eyebrow { font-size: 11px; }
.credit p { font-size: 14px; font-weight: 500; line-height: 1.5; max-width: none; }

/* ---------- CMS tiles ---------- */
.cms { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--page-pad) 0; }
.cms__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.cms__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cms__grid .tile .h4 .b { display: block; }
.cms__grid .tile p { max-width: 250px; }

/* ---------- Editor ---------- */
.editor { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--page-pad) 0; }
.editor__inner { padding: 0 40px; display: flex; flex-direction: column; gap: 56px; }
.editor__head { display: flex; flex-direction: column; gap: 12px; }
.editor__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.editor__col { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--rule); }
.editor__col .num { font-size: 12px; color: var(--fg-3); font-weight: 500; }
.editor__col p { font-size: 15px; color: var(--fg-2); max-width: 560px; }

/* ---------- Media assets panel ---------- */
.assets { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--page-pad) 0; }
.assets__panel { background: var(--panel); color: var(--panel-fg); border-radius: var(--radius-xl); padding: 48px; display: flex; flex-direction: column; gap: 40px; }
.assets__panel .eyebrow { color: var(--panel-fg-2); }
.assets__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.assets__top .h2 { color: var(--panel-fg); }
.assets__top p { color: var(--panel-fg-2); font-size: 15px; }
.stepper { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 4px 0; }
.stepper__line { position: absolute; left: 16.667%; right: 16.667%; top: 19px; height: 4px; border-radius: 2px; background: var(--brand-gradient); background-size: 200% 100%; animation: flow 6s linear infinite; }
.stepper__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.stepper__step .dot { width: 42px; height: 42px; border-radius: 999px; background: var(--panel); border: 2px solid var(--panel-fg); display: flex; align-items: center; justify-content: center; font-size: 13px; }
@keyframes flow { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
.assets__generated { display: flex; align-items: center; gap: 16px; }
.assets__generated .bar { display: none; flex: 1; max-width: 120px; height: 3px; border-radius: 2px; background: var(--brand-gradient); background-size: 200% 100%; animation: flow 6s linear infinite; }
.assets__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.assets__card { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--panel-rule); }
.assets__card .h4 { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.assets__card p { font-size: 14px; line-height: 1.55; color: var(--panel-fg-2); }
.assets__swipe-hint { display: none; }

/* ---------- Monetize ---------- */
.monetize { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--page-pad) 0; }
.monetize__inner { padding: 0 40px; display: flex; flex-direction: column; gap: 48px; }
.monetize__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.monetize__col { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--rule); }
.monetize__col .h3 { font-size: 24px; }
.monetize__col p { font-size: 15px; color: var(--fg-2); max-width: 560px; }
.why { max-width: 880px; width: 100%; margin: 24px auto 0; border-radius: var(--radius-lg); background: var(--panel); color: var(--panel-fg); padding: 4px 32px; }
.why__toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; text-align: left; }
.why__toggle .label { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.why__toggle .chev { width: 40px; height: 40px; border-radius: 999px; background: var(--panel-fg); color: var(--panel); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: transform 0.3s var(--ease); }
.why[aria-expanded="true"] .why__toggle .chev, .why__toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.why__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.why__body > div { overflow: hidden; }
.why.is-open .why__body { grid-template-rows: 1fr; }
.why__content { padding: 4px 0 32px; display: flex; flex-direction: column; gap: 28px; }
.why__content > p { font-size: 15px; line-height: 1.6; color: var(--panel-fg-2); max-width: 700px; }
.why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.why__item { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--panel-rule); }
.why__item .h4 { font-size: 15px; font-weight: 500; }
.why__item p { font-size: 13px; line-height: 1.5; color: var(--panel-fg-2); }

/* ---------- Use cases ---------- */
.usecases { max-width: var(--container); margin: 0 auto; padding: var(--section-gap-sm) var(--page-pad) 0; display: flex; flex-direction: column; gap: 40px; align-items: center; }
.usecases__head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.usecases__video { width: 100%; }
.usecases__grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.usecase { background: var(--tile); border-radius: var(--radius-xl); padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.usecase .h3 { font-size: 20px; }
.usecase p { font-size: 14px; line-height: 1.55; color: var(--fg-2); max-width: 340px; }
.usecase__toggle { display: none; }
.story { background: var(--panel); color: var(--panel-fg); border-radius: var(--radius-xl); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.story__top { display: flex; align-items: center; gap: 16px; }
.story__top img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.story__top .eyebrow { color: #8a8a8a; }
.story__top .h3 { font-size: 18px; line-height: 1.3; }
.story__sub { font-size: 14px; line-height: 1.5; color: var(--panel-fg-2); margin-top: 6px; }
.story--cta .story__top .h3 { font-size: 22px; letter-spacing: -0.02em; }
.story--cta .story__link > span:first-child { position: relative; padding-bottom: 6px; }
.story--cta .story__link > span:first-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 1px; background: var(--brand-gradient); background-size: 200% 100%; animation: flow 6s linear infinite; }
.story__link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }

/* ---------- Getting started ---------- */
.start { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--page-pad) 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.start__text { padding: 0 40px; display: flex; flex-direction: column; gap: 20px; }
.start__text p { max-width: 440px; }
.steps { background: var(--tile); border-radius: var(--radius-xl); padding: 8px 32px; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--rule); }
.step:first-child { border-top: 0; }
.step .num { font-size: 12px; color: var(--fg-3); font-weight: 500; padding-top: 3px; }
.step .h4 { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.step p { font-size: 13px; line-height: 1.5; color: var(--fg-2); }
.start__toggle { display: none; }

/* ---------- Contact section ---------- */
.cta { max-width: 1280px; margin: 0 auto; padding: var(--section-gap) var(--page-pad) 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cta .h2 { font-size: 56px; }
.cta p { max-width: 560px; color: var(--fg-2); }
.cta .btn { margin-top: 8px; }

/* ---------- Wide screens ---------- */
@media (min-width: 1680px) {
    :root { --container: 1600px; --nav-width: 1520px; }
    .hero__inner, .logos, .cta { max-width: 1440px; }
    .statement { max-width: 1240px; }
    .logos__strip { max-width: 1268px; }
    .logos__track { gap: 150px; padding-right: 150px; }
    .logos__track .logo--designtv { width: 135px; }
    .logos__track .logo--tobin { width: 225px; }
    .logos__track .logo--sandow { width: 139px; }
    .logos__track .logo--surround { width: 169px; }
    .why { max-width: 1040px; }
    .cms__grid .tile p { max-width: 260px; }
    .site-footer { padding-bottom: 54px; }
    .site-footer__wordmark { width: calc(100vw - 80px); max-width: none; margin-left: calc(50% - 50vw + 40px); }
}

/* ---------- Laptop (1101–1360) ---------- */
@media (max-width: 1360px) {
    .cms__grid .tile { padding: 28px 16px; }
    .site-footer { padding-bottom: 36px; }
}

/* ---------- Tablet landscape (861–1100) ---------- */
@media (max-width: 1100px) {
    :root { --page-pad: 32px; --section-gap: 140px; --section-gap-sm: 84px; }
    .h2 { font-size: 36px; }
    .h3 { font-size: 23px; }
    .monetize__col .h3 { font-size: 22px; }
    .hero { padding-top: 88px; }
    .hero__title { font-size: 54px; }
    .hero__word { font-size: 80px; }
    .logos__strip { max-width: 953px; }
    .logos__track { gap: 113px; padding-right: 113px; }
    .logos__track .logo--designtv { width: 101px; }
    .logos__track .logo--tobin { width: 169px; }
    .logos__track .logo--sandow { width: 104px; }
    .logos__track .logo--surround { width: 127px; }
    .statement p { font-size: 40px; }
    .section--split .text { padding: 0 24px; }
    .editor__inner, .monetize__inner, .start__text { padding: 0 24px; }
    .cms__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cms__grid .tile { padding: 28px 24px; }
    .cms__grid .tile .h4 .b { display: inline; }
    .cms__grid .tile p { max-width: none; }
    .usecases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .usecase { padding: 28px; }
    .usecase p { max-width: 396px; }
    .story { padding: 28px; }
    .why { max-width: 640px; }
    .cta .h2 { font-size: 48px; }
    .site-footer { padding-bottom: 28px; }
}

/* ---------- Tablet portrait (601–860) ---------- */
@media (max-width: 860px) {
    :root { --page-pad: 24px; --section-gap: 110px; --section-gap-sm: 66px; }
    .h2 { font-size: 30px; }
    .h3 { font-size: 20px; }
    .monetize__col .h3 { font-size: 20px; }
    .site-header { padding: 16px 16px 0; }
    .nav { padding: 0 12px 0 24px; gap: 20px; }
    .nav__links { gap: 14px; font-size: 12px; }
    .nav__right { gap: 16px; }
    .hero { padding-top: 72px; }
    .hero__title { font-size: 40px; }
    .hero__word { font-size: 60px; }
    .hero__lede { font-size: 16px; }
    .hero__showpiece { padding-top: 48px; }
    .logos__strip { max-width: 716px; }
    .logos__track { gap: 85px; padding-right: 85px; }
    .logos__track .logo--designtv { width: 76px; }
    .logos__track .logo--tobin { width: 127px; }
    .logos__track .logo--sandow { width: 78px; }
    .logos__track .logo--surround { width: 95px; }
    .statement { padding-top: 110px; }
    .statement p { font-size: 32px; }
    .statement .ic { width: 32px; height: 32px; border-radius: 8px; }
    .statement .ic svg { width: 18px; height: 18px; }
    .section--split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .section--split .text { padding: 0; }
    .section--split .text p { max-width: 560px; }
    .section--split.section--photo-first .frame { order: 0; }
    .credit { max-width: 560px; }
    .cms__head { margin-bottom: 32px; }
    .cms__grid { gap: 16px; }
    .cms__grid .tile .h4 .b { display: block; }
    .editor__inner, .monetize__inner { padding: 0; }
    .editor__cols { gap: 24px; }
    .assets__panel { padding: 32px; }
    .assets__top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .assets__cards { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .assets__card { padding: 20px 0; }
    .why { max-width: 580px; padding: 4px 24px; }
    .why__toggle .label { font-size: 20px; }
    .why__list { grid-template-columns: minmax(0, 1fr); }
    .usecases__grid { gap: 16px; }
    .usecase { padding: 24px; }
    .usecase p { max-width: none; }
    .story { padding: 24px; }
    .story__top img { width: 44px; height: 44px; }
    .story__top .h3 { font-size: 16px; }
    .start { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .start__text { padding: 0; }
    .start__text p { max-width: 560px; }
    .start__text p.pad_bottom { max-width: 560px; padding-bottom: 24px; }
    .steps { padding: 4px 24px; }
    .cta .h2 { font-size: 42px; }
    .site-footer { padding-bottom: 22px; }
    .site-footer__top { flex-direction: column; gap: 32px; }
    .site-footer__cols { gap: 64px; }
}

/* ---------- Phone (≤600) ---------- */
@media (max-width: 600px) {
    :root { --page-pad: 20px; --section-gap: 80px; --section-gap-sm: 48px; }
    .h2 { font-size: 26px; line-height: 1.15; }
    .h3 { font-size: 18px; }
    .monetize__col .h3 { font-size: 18px; }
    .eyebrow { font-size: 11px; }
    .btn { height: 44px; padding: 0 18px; font-size: 14px; }

    /* sticky nav with hamburger */
    .site-header { position: sticky; top: 0; z-index: 50; padding: 12px 16px 0; background: var(--bg); }
    .nav { height: 52px; padding: 0 8px 0 18px; gap: 12px; }
    .nav__links { display: none; }
    .nav__right .nav__login { display: none; }
    .nav__menu-btn { display: inline-flex; }
    .nav__menu { display: none; max-width: var(--nav-width); margin: 8px auto 0; background: var(--nav-bg); border-radius: 20px; box-shadow: var(--nav-shadow); padding: 8px 18px; flex-direction: column; }
    .nav__menu.is-open { display: flex; }
    .nav__menu a { display: block; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; font-weight: 500; }
    .nav__menu a:first-child { border-top: 0; }
    .nav__menu a.user-logged-in { display: none; }
    body.logged-in .nav__menu a.user-logged-in { display: block; }

    .hero { padding-top: 48px; }
    .hero__inner { gap: 20px; }
    .hero__title { font-size: 34px; letter-spacing: -0.03em; gap: 4px; }
    .hero__word { font-size: 44px; }
    .hero__lede { font-size: 16px; }
    .hero__actions { flex-wrap: wrap; justify-content: center; }
    .hero__showpiece { padding-top: 40px; }

    .logos { gap: 20px; }
    .logos .eyebrow { text-align: center; line-height: 1.6; }
    .logos__track { gap: 40px; padding-right: 40px; }
    .logos__track .logo--designtv { width: 78px; }
    .logos__track .logo--tobin { width: 130px; }
    .logos__track .logo--sandow { width: 80px; }
    .logos__track .logo--surround { width: 97px; }

    .statement { padding: 80px 14px 0; }
    .statement p { font-size: 22px; line-height: 1.4; column-gap: 0.3em; }
    .statement .ic { width: 26px; height: 26px; border-radius: 7px; }
    .statement .ic svg { width: 16px; height: 16px; }
    .statement .br { flex-basis: 100%; height: 0; }

    .section--split { gap: 32px; }
    .credit { max-width: none; }

    .cms__head { margin-bottom: 24px; }
    .cms__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .cms__grid .tile { padding: 24px 20px; }
    .cms__grid .tile .h4 .b { display: inline; }

    .editor__inner { gap: 32px; }
    .editor__cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .editor__col { gap: 10px; }

    .assets__panel { padding: 24px 20px; border-radius: 20px; gap: 24px; }
    .stepper { display: none; }
    .assets__cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 4px; scroll-padding-left: 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .assets__cards::-webkit-scrollbar { display: none; }
    .assets__card { flex: 0 0 86%; scroll-snap-align: start; padding: 20px; border-top: 0; border-radius: 16px; background: var(--tile); color: var(--fg); }
    .assets__card .h4 { color: var(--fg); }
    .assets__card p { color: var(--fg-2); }
    .assets__cards-wrap { margin: 0 -20px; }
    .assets__generated .bar { display: block; }
    .assets__swipe-hint { display: block; text-align: center; font-size: 12px; color: var(--fg-3); margin-top: 10px; }

    .monetize__inner { gap: 28px; }
    .monetize__cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .why { max-width: none; padding: 4px 20px; border-radius: 16px; }
    .why__toggle { padding: 18px 0; gap: 16px; }
    .why__toggle .label { font-size: 18px; }
    .why__toggle .chev { width: 36px; height: 36px; }

    .usecases { gap: 28px; }
    .usecases__video { aspect-ratio: 16 / 9; }
    .usecases__grid { display: flex; flex-direction: column; gap: 10px; }
    .usecase { padding: 0 20px; gap: 0; }
    .usecase__title { display: none; }
    .usecase__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; text-align: left; }
    .usecase__toggle .h3 { font-size: 18px; }
    .usecase__toggle .chev { width: 32px; height: 32px; border-radius: 999px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: transform 0.3s var(--ease); }
    .usecase.is-open .usecase__toggle .chev { transform: rotate(180deg); }
    .usecase__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
    .usecase__body > div { overflow: hidden; }
    .usecase.is-open .usecase__body { grid-template-rows: 1fr; }
    .usecase__body p { padding-bottom: 20px; max-width: none; }
    .story { padding: 14px 16px; flex-direction: row; align-items: center; gap: 14px; }
    .story__top { gap: 12px; flex: 1; min-width: 0; }
    .story__top img { width: 36px; height: 36px; }
    .story__top .h3 { font-size: 14px; }
    .story__link span { display: none; }
    .story--cta .story__link > span:first-child { display: inline-block; }
    .story__link .arrow { width: 32px; height: 32px; border-radius: 999px; background: var(--panel-fg); color: var(--panel); display: inline-flex; align-items: center; justify-content: center; }

    .start { gap: 0; }
    .start__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: var(--tile); border-radius: 16px; text-align: left; font-size: 18px; font-weight: 500; transition: border-radius 0.3s var(--ease); }
    .start.is-open .start__toggle { border-radius: 16px 16px 0 0; }
    .start__toggle .chev { width: 32px; height: 32px; border-radius: 999px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: transform 0.3s var(--ease); }
    .start.is-open .start__toggle .chev { transform: rotate(180deg); }
    .steps { display: grid; grid-template-rows: 0fr; padding: 0 20px; border-radius: 0 0 16px 16px; transition: grid-template-rows 0.4s var(--ease), padding 0.3s var(--ease); }
    .steps .step:first-child { border-top: 1px solid var(--rule); }
    .steps > div { overflow: hidden; }
    .start.is-open .steps { grid-template-rows: 1fr; padding: 4px 20px; }
    .step { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 18px 0; }

    .cta .h2 { font-size: 34px; }
    .cta p { font-size: 15px; }

    .site-footer { padding-bottom: 10px; }
    .site-footer__inner { gap: 32px; }
    .site-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
    .site-footer__meta { font-size: 12px; }

    .site-footer--compact .site-footer__inner { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
    .site-footer--compact { padding: 24px 20px 28px; }
}

/* ---------- Small phones (≤380) ---------- */
@media (max-width: 380px) {
    .statement p { font-size: 19px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .logos__track, .stepper__line, .assets__generated .bar { animation: none; }
    .hero__word { animation: none; }
    .statement .w, .why__body, .usecase__body, .steps, .why__toggle .chev, .usecase__toggle .chev, .start__toggle .chev { transition: none; }
    .statement .w { opacity: 1; transform: none; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* ---------- Page scaffold ---------- */
.page { max-width: var(--container); margin: 0 auto; padding: 72px var(--page-pad) 96px; width: 100%; }
.page__head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.page__head .h1 { font-size: 44px; font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; }
.page__head .lede { font-size: 17px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--fg-2); margin-bottom: 24px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.contact__intro { display: flex; flex-direction: column; gap: 32px; }
.contact__points { display: flex; flex-direction: column; }
.contact__point { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-top: 1px solid var(--rule); }
.contact__point .num { font-size: 12px; color: var(--fg-3); font-weight: 500; padding-top: 3px; }
.contact__point .h4 { margin-bottom: 4px; }
.contact__point p { font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.form { border-radius: var(--radius-xl); background: var(--tile); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.field .optional { font-weight: 400; color: var(--fg-3); }
.field input, .field select, .field textarea {
    width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--rule); border-radius: var(--radius-md);
    background: var(--surface); color: var(--fg); font-family: inherit; font-size: 15px; font-weight: 400;
}
.field select { padding-right: 36px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%238a8a8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field textarea { height: auto; min-height: 104px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); border-radius: var(--radius-md); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.form__submit { margin-top: 4px; }
.form__note { font-size: 12px; line-height: 1.5; color: var(--fg-3); text-align: center; }
.form__note a { color: var(--fg-2); text-decoration: underline; }
.form__error { font-size: 13px; color: var(--brand-c); text-align: center; }
.form__error[hidden] { display: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sent { border-radius: var(--radius-xl); background: var(--tile); padding: 48px 36px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.sent .check { width: 56px; height: 56px; border-radius: 999px; border: 2px solid transparent; background: linear-gradient(var(--tile), var(--tile)) padding-box, var(--brand-gradient) border-box; display: flex; align-items: center; justify-content: center; }
.sent .h2 { font-size: 32px; }
.sent p { max-width: 400px; color: var(--fg-2); }
.sent .btn { margin-top: 8px; }
[hidden] { display: none !important; }

/* ---------- Case study ---------- */
.case { max-width: 980px; margin: 0 auto; padding: 56px var(--page-pad) 0; }
.case__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.case__meta img { width: 36px; height: 36px; object-fit: contain; }
.case__head { display: flex; flex-direction: column; gap: 18px; }
.case__head .h1 { font-size: 48px; font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; max-width: 820px; }
.case__head .lede { font-size: 18px; max-width: 760px; }
.case__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.case__fact { display: flex; flex-direction: column; gap: 6px; }
.case__fact dd { margin: 0; }
.case__facts { margin-bottom: 0; }
.case__fact span:last-child { font-size: 15px; font-weight: 500; }
.case__hero { margin-top: 48px; }
.case__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.case__tiles .tile { padding: 28px; gap: 10px; }
.case__tiles .tile .h4 { font-size: 18px; }
.case__tiles .tile p { font-size: 14px; }
.case__section { padding-top: 72px; max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.case__section .h3 { font-size: 28px; }
.case__section p { font-size: 17px; line-height: 1.6; color: var(--fg-2); }
.quote { margin-top: 72px; border-radius: var(--radius-xl); background: var(--panel); color: var(--panel-fg); padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.quote .bar { width: 48px; height: 4px; border-radius: 2px; background: var(--brand-gradient); background-size: 200% 100%; animation: flow 6s linear infinite; }
.quote blockquote { margin: 0; font-size: 26px; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; max-width: 760px; }
.quote cite { font-style: normal; font-size: 14px; color: var(--panel-fg-2); }
.case .cta { padding-top: 120px; }

/* ---------- Legal ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 72px var(--page-pad) 96px; display: flex; flex-direction: column; gap: 32px; }
.legal__head { display: flex; flex-direction: column; gap: 12px; }
.legal__head .h1 { font-size: 44px; font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; }
.legal__updated { font-size: 13px; color: var(--fg-3); }
.legal__intro { font-size: 17px; line-height: 1.6; color: var(--fg-2); }
.legal__draft { border-radius: var(--radius-md); background: var(--tile); padding: 14px 18px; font-size: 13px; line-height: 1.5; color: var(--fg-2); }
.toc { border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 0 18px; }
.toc summary { cursor: pointer; padding: 14px 0; font-size: 14px; font-weight: 500; list-style: none; display: flex; align-items: center; gap: 8px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before { content: ""; width: 0; height: 0; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform 0.2s var(--ease); }
.toc[open] summary::before { transform: rotate(90deg); }
.toc ol { margin: 0; padding: 0 0 16px 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.toc a { color: var(--fg-2); }
.legal__section { padding-top: 28px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 24px; }
.legal__section .h3 { font-size: 22px; }
.legal__section p { font-size: 16px; line-height: 1.6; color: var(--fg-2); }
.legal__section .pending { font-size: 13px; color: var(--fg-3); }
.legal__section .h4 { font-size: 17px; margin-top: 10px; }
.legal__section ul, .legal__section ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.6; color: var(--fg-2); }
.legal__section li { padding-left: 2px; }
.legal__intro { display: flex; flex-direction: column; gap: 12px; }
.legal__intro p { font-size: 17px; line-height: 1.6; color: var(--fg-2); }
.legal__section a, .legal__intro a { text-decoration: underline; }
.legal__contact { font-size: 15px; color: var(--fg-2); }
.legal__contact a { text-decoration: underline; }

@media (max-width: 1100px) {
    .page__head .h1, .legal__head .h1 { font-size: 40px; }
    .case__head .h1 { font-size: 44px; }
    .contact { gap: 40px; }
}
@media (max-width: 860px) {
    .page { padding: 56px var(--page-pad) 72px; }
    .page__head .h1, .legal__head .h1 { font-size: 32px; }
    .case__head .h1 { font-size: 36px; }
    .case__head .lede { font-size: 16px; }
    .contact { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .form { padding: 28px 24px; }
    .case__tiles { grid-template-columns: minmax(0, 1fr); }
    .case__section .h3 { font-size: 24px; }
    .case__section p { font-size: 16px; }
    .quote { padding: 32px; }
    .quote blockquote { font-size: 22px; }
    .case .cta { padding-top: 88px; }
    .legal { padding: 56px var(--page-pad) 72px; }
}
@media (max-width: 600px) {
    .page { padding: 32px var(--page-pad) 48px; }
    .page__head .h1, .legal__head .h1 { font-size: 32px; }
    .case { padding-top: 32px; }
    .case__head .h1 { font-size: 32px; }
    .case__facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .case__section { padding-top: 48px; }
    .quote { margin-top: 48px; padding: 24px; }
    .quote blockquote { font-size: 20px; }
    .form { padding: 24px 20px; gap: 16px; }
    .field input, .field select, .field textarea { font-size: 16px; }
    .sent { padding: 40px 24px; }
    .legal { padding: 32px var(--page-pad) 48px; gap: 24px; }
    .legal__section .h3 { font-size: 20px; }
}

/* ==========================================================================
   Auth, status and maintenance pages
   ========================================================================== */
.nav--minimal .nav__links { display: none; }
.nav--minimal .nav__aside { font-size: 13px; color: var(--fg-2); display: flex; align-items: center; gap: 16px; }
.auth { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px var(--page-pad) 64px; }
.auth__card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 22px; }
.auth__head { display: flex; flex-direction: column; gap: 8px; }
.auth__head .h1 { font-size: 32px; font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.auth__head p { font-size: 15px; color: var(--fg-2); }
.auth__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--tile); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.auth form { display: flex; flex-direction: column; gap: 16px; }
.field__row { display: flex; justify-content: space-between; align-items: center; }
.field__row a { font-weight: 400; color: var(--fg-2); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-2); cursor: pointer; font-weight: 400; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--fg); }
.reqs { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--fg-3); }
.auth__divider { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 12px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.auth__providers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.auth__provider { width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--surface); display: flex; align-items: center; justify-content: center; transition: border-color .15s ease, background-color .15s ease; }
.auth__provider:hover { border-color: var(--fg-3); background: var(--tile); }
.auth__provider img { width: 22px; height: 22px; object-fit: contain; }
.auth__foot { font-size: 13px; line-height: 1.5; color: var(--fg-2); text-align: center; }
.auth__foot a, .auth__foot strong { font-weight: 500; color: var(--fg); }
.auth__back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 500; }
.auth__center { text-align: center; align-items: center; }
.auth__center .auth__head { align-items: center; text-align: center; }
.auth [hidden] { display: none !important; }

/* status (404 / 500) and maintenance */
.status { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px var(--page-pad) 64px; text-align: center; }
.status__card { width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.status__code { font-family: var(--font-display); font-weight: 800; font-size: 136px; line-height: 0.9; letter-spacing: -0.02em; }
.status__bar { width: 110px; height: 4px; border-radius: 2px; background: var(--brand-gradient); background-size: 200% 100%; animation: flow 6s linear infinite; }
.status__card .h1 { font-size: 32px; font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.status__card p { font-size: 16px; color: var(--fg-2); max-width: 420px; }
.status__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; margin: 6px auto 0; }
.status__hint { font-size: 12px; color: var(--fg-3); }
.status__hint a { text-decoration: underline; }
.status__hint code { font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
.access-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 40px; font-weight: 500; letter-spacing: 0.18em; line-height: 1.2; margin: 8px 0 4px; color: var(--fg); user-select: all; }
#contact-info p { font-size: 15px; color: var(--fg-2); }
@media (max-width: 600px) { .access-code { font-size: 30px; letter-spacing: 0.12em; } }

/* loading overlay (same idea as the current preloader-container) */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); opacity: 0.7; display: flex; align-items: center; justify-content: center; transition: opacity 0.3s var(--ease), visibility 0.3s; }
.loader.opaque { opacity: 1; }
.loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader__mark { width: 64px; height: auto; }
.loader__track { position: relative; width: 120px; height: 3px; border-radius: 2px; background: rgba(127, 127, 127, 0.18); overflow: hidden; }
.loader__track::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; border-radius: 2px; background: var(--brand-gradient); background-size: 260px 100%; animation: loader-run 1.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes loader-run { 0% { left: -45%; } 100% { left: 100%; } }

@media (max-width: 600px) {
    .auth { padding: 32px var(--page-pad) 48px; align-items: flex-start; }
    .auth__head .h1, .status__card .h1 { font-size: 32px; }
    .status { padding: 40px var(--page-pad) 48px; align-items: flex-start; }
    .status__code { font-size: 84px; }
    .nav--minimal .nav__aside span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .status__bar { animation: none; } .loader__track::after { animation: none; left: 0; width: 100%; } }

/* ==========================================================================
   Register, help, signed-out
   ========================================================================== */
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help { max-width: var(--container); margin: 0 auto; padding: 72px var(--page-pad) 96px; width: 100%; display: flex; flex-direction: column; gap: 40px; }
.help__head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.help__head .h1 { font-size: 44px; font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; }
.help__search { position: relative; max-width: 560px; }
.help__search input { width: 100%; height: 52px; padding: 0 16px 0 46px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--fg); font: inherit; font-size: 15px; }
.help__search input:focus-visible { outline: none; border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.help__search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--fg-3); }
.help__status { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--tile); font-size: 12px; font-weight: 500; color: var(--fg-2); }
.help__status .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--brand-gradient); background-size: 200% 100%; animation: flow 6s linear infinite; }
.help__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.help__tile { background: var(--tile); border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 196px; color: var(--fg); }
.help__tile .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--fg); }
.help__tile .h3 { font-size: 18px; }
.help__tile p { font-size: 14px; line-height: 1.5; color: var(--fg-2); flex: 1; }
.help__tile .count { font-size: 12px; color: var(--fg-3); }
.help__foot { display: flex; flex-direction: column; gap: 6px; padding-top: 32px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--fg-2); }
.help__foot a { text-decoration: underline; }
@media (max-width: 1100px) { .help__head .h1 { font-size: 40px; } .help__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .help { padding: 56px var(--page-pad) 72px; gap: 32px; } .help__head .h1 { font-size: 32px; } .help__tile { min-height: 0; padding: 24px; } }
@media (max-width: 600px) { .help { padding: 32px var(--page-pad) 48px; gap: 24px; } .help__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } .field--row { grid-template-columns: minmax(0, 1fr); } }

/* Form and account pages: squared buttons inside the page (nav and footer keep the pills) */
body.ui-form main .btn { border-radius: 8px; }
body.ui-form main .pill { border-radius: 4px; }
body.ui-form .field input, body.ui-form .field select, body.ui-form .field textarea { border-radius: 8px; }
body.ui-form .field input:focus-visible, body.ui-form .field select:focus-visible, body.ui-form .field textarea:focus-visible { border-radius: 8px; }
body.ui-form .form, body.ui-form .sent, body.ui-form .auth__icon { border-radius: 14px; }
body.ui-form .auth__icon { border-radius: 10px; }
