/* brainix.work (Phase 12): the V2 design (docs/mockups/public-website/desktop.html and phone.html).
   Also styles the help centre (/help), which Django serves with this file (/site.css). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-greek-wght-normal.woff2) format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/space-grotesk-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --ink: #0D1222; --amber: #F2B544; --violet: #5B4BB7; --green: #0E7C66; --red: #C2341F;
  --bg: #F7F6F2; --surface: #FFFFFF; --line: #E5E3DC; --field-line: #8F94A3; --fg: #0D1222; --fg-2: #3A4052; --fg-3: #5A6072; --chip: #EFEDE6;
  --green-soft: #E0F2EE; --green-ink: #0B5A4A; --violet-soft: #E8E5FA; --violet-ink: #3F33A0; --violet-text: #5B4BB7; --error: #C2341F;
  --hero-fg: #F4F2EC; --hero-fg-2: #A9B0C4;
  --round-bg: #FFFFFF; --round-line: #E5E3DC; --round-fg: #0D1222;
  --card-edge: transparent;
  --focus-light: #9A6400; --focus: var(--focus-light);
  --font-display: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0F1C; --surface: #141A2C; --line: #262E46; --field-line: #59627D; --fg: #EEF0F6; --fg-2: #C4C9D8; --fg-3: #9AA2B8; --chip: #1D2438;
    --green-soft: #11302B; --green-ink: #8ADBC8; --violet-soft: #29244F; --violet-ink: #C9C1FF; --violet-text: #B3A9FF; --error: #FF8B7B;
    --round-bg: #1D2438; --round-line: #46507A; --round-fg: #FFFFFF; --card-edge: rgba(255, 255, 255, .14); --focus-light: #F2B544; --focus: #F2B544;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0F1C; --surface: #141A2C; --line: #262E46; --field-line: #59627D; --fg: #EEF0F6; --fg-2: #C4C9D8; --fg-3: #9AA2B8; --chip: #1D2438;
  --green-soft: #11302B; --green-ink: #8ADBC8; --violet-soft: #29244F; --violet-ink: #C9C1FF; --violet-text: #B3A9FF; --error: #FF8B7B;
  --round-bg: #1D2438; --round-line: #46507A; --round-fg: #FFFFFF; --card-edge: rgba(255, 255, 255, .14); --focus-light: #F2B544; --focus: #F2B544;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--font-body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
section[id], [id^="ag-"] { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 68px); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.top, .hero, .tour, .ag-hero, .join, footer, .example, .plan, .menu { --focus: var(--amber); }
.join .form, .lang-pick ul { --focus: var(--focus-light); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--amber); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
main:focus { outline: none; }
.grow { flex-grow: 1; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; font: 600 15px var(--font-body); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 6px 20px rgba(242, 181, 68, .28); }
.btn-amber:hover { filter: brightness(1.05); }
.btn-green { background: var(--green); color: #FFFFFF; }
.btn-green:hover { filter: brightness(1.08); }
.btn-green[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn-line { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.btn-ghost { background: transparent; color: var(--hero-fg); border: 1px solid rgba(255, 255, 255, .32); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.eyebrow { font: 700 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--violet-text); }
.eyebrow.on-ink { color: #C9C1FF; }
.eyebrow.amber { color: var(--amber); }
.small { font-size: 13px; color: var(--fg-3); }

/* Header */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hero-fg); min-height: 44px; }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: #F2B544; display: flex; align-items: center; justify-content: center; }
.logo-mark .lm-b { position: relative; font: 700 19px/1 "Space Grotesk", sans-serif; color: #0D1222; padding-right: 3px; }
.logo-mark .lm-dot { position: absolute; right: -3px; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: #0D1222; }
.wm { display: flex; align-items: center; gap: 8px; }
.wm b { font: 700 22px "Space Grotesk", sans-serif; letter-spacing: -0.3px; color: #FFFFFF; }
.wm i { width: 8px; height: 8px; border-radius: 50%; background: #F2B544; margin-top: 6px; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--hero-fg); }
.top > .wrap { display: flex; align-items: center; gap: 12px; height: 68px; }
.mainnav { display: flex; gap: 4px; margin-right: auto; margin-left: 24px; }
.mainnav a { height: 36px; padding: 0 12px; border-radius: 18px; display: flex; align-items: center; color: var(--hero-fg-2); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.mainnav a:hover { color: var(--hero-fg); }
.mainnav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: var(--hero-fg); }
.acts { display: flex; gap: 10px; align-items: center; }
.acts .btn { min-height: 40px; height: 40px; padding: 0 16px; font-size: 14px; }
.login-link { color: var(--hero-fg); font: 600 14px var(--font-body); text-decoration: none; padding: 8px; border-radius: 8px; }
.login-link:hover { text-decoration: underline; }
.lang-pick { position: relative; }
.lang-pick summary { list-style: none; display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px 0 10px; border-radius: 18px; cursor: pointer; color: var(--hero-fg-2); font: 600 13px var(--font-body); letter-spacing: .04em; }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary:hover, .lang-pick[open] summary { color: var(--hero-fg); background: rgba(255, 255, 255, .08); }
.lang-pick summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lang-pick ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); z-index: 30; }
.lang-pick a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; }
.lang-pick a:hover { background: var(--chip); }
.lang-pick a[aria-current="true"] { font-weight: 700; }
.lang-pick a[aria-current="true"]::after { content: "✓"; margin-left: auto; color: var(--green); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: var(--hero-fg); cursor: pointer; place-items: center; flex-shrink: 0; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn .m-close { display: none; }
.menu-btn[aria-expanded="true"] .m-open { display: none; }
.menu-btn[aria-expanded="true"] .m-close { display: inline; }
.menu { border-top: 1px solid rgba(255, 255, 255, .08); background: var(--ink); }
.menu .wrap { display: flex; flex-direction: column; gap: 14px; padding-block: 12px 20px; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: center; min-height: 48px; color: var(--hero-fg); text-decoration: none; font: 600 17px var(--font-body); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.menu nav a[aria-current="page"] { color: var(--amber); }
.menu-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-langs a { min-height: 44px; display: flex; align-items: center; padding: 0 16px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .2); color: var(--hero-fg-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.menu-langs a[aria-current="true"] { background: rgba(255, 255, 255, .12); color: var(--hero-fg); border-color: transparent; }
@media (max-width: 899px) {
  .mainnav, .lang-pick, .acts .login-link { display: none; }
  .menu-btn { display: grid; }
  .acts { margin-left: auto; }
  .top > .wrap { gap: 10px; }
  .acts[hidden] + .menu-btn { margin-left: auto; }
}
/* Greek labels are longer: the menu takes over below 1024 px there. */
@media (min-width: 900px) and (max-width: 1023px) {
  html[lang="el"] .mainnav, html[lang="el"] .lang-pick, html[lang="el"] .acts .login-link { display: none; }
  html[lang="el"] .menu-btn { display: grid; }
  html[lang="el"] .acts { margin-left: auto; }
  html[lang="el"] .acts[hidden] + .menu-btn { margin-left: auto; }
}
@media (max-width: 380px) { .top .wm { display: none; } }

/* Hero */
.hero { background: var(--ink); color: var(--hero-fg); padding-block: 96px 120px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(ellipse at 50% 100%, rgba(242, 181, 68, .22), rgba(242, 181, 68, 0) 60%); pointer-events: none; }
.hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero h1 { font-size: clamp(48px, 9vw, 112px); line-height: .95; letter-spacing: -0.03em; }
.hero h1 span { color: var(--amber); display: inline-block; animation: wake 2.4s ease-in-out .3s 1 both; }
@keyframes wake { 0% { opacity: .25; filter: blur(2px); } 40% { opacity: 1; filter: none; } 100% { opacity: 1; } }
.hero .lines { display: flex; flex-direction: column; gap: 6px; font: 500 clamp(19px, 2.4vw, 28px)/1.3 var(--font-display); color: var(--hero-fg-2); }
.hero .lines b { color: var(--hero-fg); font-weight: 600; }
.chan-icons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chan-icons li { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c); transition: transform .15s ease; }
.chan-icons li:hover { transform: translateY(-2px); }
.chan-icons li::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 4px); white-space: nowrap; padding: 8px 12px; border-radius: 10px; background: #FFFFFF; color: #0D1222; font: 600 13px var(--font-body); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 5; }
.chan-icons li::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 6px); width: 12px; height: 12px; background: #FFFFFF; transform: translate(-50%, 4px) rotate(45deg); border-radius: 2px; opacity: 0; transition: opacity .15s ease, transform .15s ease; z-index: 5; }
.chan-icons li:hover::after { opacity: 1; transform: translate(-50%, 0); }
.chan-icons li:hover::before { opacity: 1; transform: translate(-50%, 0) rotate(45deg); }
.chan-icons li:first-child::after { left: 0; transform: translate(-12px, 4px); }
.chan-icons li:first-child:hover::after { transform: translate(-12px, 0); }
.chan-icons li:last-child::after { left: auto; right: 0; transform: translate(12px, 4px); }
.chan-icons li:last-child:hover::after { transform: translate(12px, 0); }
.chan-icons svg { width: 22px; height: 22px; fill: none; stroke: #FFFFFF; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-cta.start { justify-content: flex-start; }
.down { margin-top: 18px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06); display: grid; place-items: center; color: var(--amber); animation: nudge 2s ease-in-out infinite; }
.down:hover { background: rgba(255, 255, 255, .12); }
.down svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Feature tour */
.tour { padding-block: 64px 72px; background: var(--ink); color: var(--hero-fg); border-top: 1px solid rgba(255, 255, 255, .08); }
.tour-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 26px; }
.tour-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.05; color: #FFFFFF; letter-spacing: -0.02em; }
.chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; margin: 0 auto 22px; max-width: 980px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.chapters button { position: relative; overflow: hidden; min-height: 76px; padding: 12px 14px 16px; border-radius: 15px; border: 0; background: transparent; color: #C9CFDD; font: 500 14px var(--font-body); cursor: pointer; display: flex; align-items: center; gap: 12px; text-align: left; transition: background .2s ease, color .2s ease; }
.chapters button:hover { background: rgba(255, 255, 255, .06); color: #FFFFFF; }
.chapters .ci { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.chapters .ci svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chapters .ct { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chapters .ct b { font: 600 16px/1.3 var(--font-display); color: inherit; }
.chapters .ct small { font-size: 12.5px; line-height: 1.35; color: #A9B0C4; }
.chapters .cp { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.chapters .cp i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .4s ease; }
.chapters button[aria-selected="true"] { background: #FFFFFF; color: #0D1222; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.chapters button[aria-selected="true"] .ci { background: var(--amber); color: #0D1222; }
.chapters button[aria-selected="true"] .ct small { color: #5A6072; }
.chapters button[aria-selected="true"] .cp { background: #EFEDE6; }
.slider { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 12px; align-items: center; }
.slide-col { min-width: 0; }
.arrow, .round { border-radius: 50%; border: 1px solid var(--round-line); background: var(--round-bg); color: var(--round-fg); cursor: pointer; display: grid; place-items: center; padding: 0; }
.arrow { width: 52px; height: 52px; box-shadow: 0 6px 20px rgba(13, 18, 34, .12); }
.arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.round { flex-shrink: 0; width: 44px; height: 44px; }
.round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.round.pause svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.round.pause .i-play, .round.pause.paused .i-pause { display: none; }
.round.pause.paused .i-play { display: inline; }
.round.inline { display: none; }
.cap-over { position: relative; z-index: 4; min-height: 54px; display: flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 22px 22px 0 0; border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05)); }
.cap-over p { max-width: 84ch; margin: 0 auto; text-align: center; color: #FFFFFF; font: 600 clamp(13px, 1.65vw, 19px)/1.3 var(--font-display); text-wrap: balance; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.cap-over p.anim { animation: cap .5s ease both; }
@keyframes cap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stage-wrap { position: relative; aspect-ratio: 16 / 10; border-radius: 0 0 22px 22px; overflow: hidden; background: #DCE3EC; box-shadow: 0 30px 70px rgba(13, 18, 34, .18); container-type: inline-size; }
.shotwrap { position: absolute; inset: 0; overflow: hidden; background: #0D1222; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; user-select: none; }
.shot.kb { animation: kb 7s ease-out both; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.035); } }
.shot.after { opacity: 0; animation: fadein .45s ease 2.35s forwards; }
@keyframes fadein { to { opacity: 1; } }
.cursor { position: absolute; width: 26px; height: 26px; z-index: 5; pointer-events: none; animation: move 1.6s cubic-bezier(.4, .1, .2, 1) .4s both, fadec .4s ease 2.6s forwards; }
.cursor svg { width: 26px; height: 26px; }
.cursor::after { content: ""; position: absolute; left: -12px; top: -12px; width: 26px; height: 26px; border-radius: 50%; background: rgba(242, 181, 68, .55); transform: scale(0); animation: click .5s ease-out 2.05s both; }
@keyframes move { from { transform: translate(-32cqw, -36cqw); } to { transform: translate(0, 0); } }
@keyframes fadec { to { opacity: 0; } }
@keyframes click { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.phone-scene { position: absolute; inset: 0; background: linear-gradient(135deg, #1D2440, #0D1222); display: flex; align-items: center; justify-content: center; gap: 6cqw; }
.phone { height: 91%; aspect-ratio: 262 / 548; border-radius: 4.2cqw; background: #0A0D18; padding: 1cqw; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 2px #2A3350; animation: rise .6s ease both; flex-shrink: 0; }
.phone .screen { width: 100%; height: 100%; border-radius: 3.2cqw; background: #F6F5F1; overflow: hidden; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.phone-side { color: #FFFFFF; max-width: 31cqw; display: flex; flex-direction: column; gap: 1cqw; animation: rise .6s ease .2s both; }
.phone-side b { font: 600 2.9cqw/1.15 var(--font-display); }
.phone-side span { color: #A9B0C4; font-size: max(12px, 1.56cqw); }
.shotwrap.fit { background: linear-gradient(160deg, #1D2440, #0D1222); display: grid; place-items: center; }
.shotwrap.fit .shot { position: static; height: auto; object-fit: contain; }
.controls { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.controls .step { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--hero-fg-2); font-variant-numeric: tabular-nums; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; flex-grow: 1; }
.dots button { width: 26px; height: 24px; border: 0; background: transparent; cursor: pointer; padding: 9px 0; }
.dots button span { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .32); position: relative; overflow: hidden; }
.dots button.on span { background: var(--chip); }
.dots button.on span::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform-origin: 0 0; animation: fill var(--dur, 5s) linear both; }
.dots.paused button span::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Bands, pricing */
.band { padding-block: 80px; }
.band.surface { background: var(--surface); border-block: 1px solid var(--line); }
.band.no-top { padding-top: 0; }
.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.sec-head.center { align-items: center; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); }
.lead { font-size: 18px; color: var(--fg-2); max-width: 62ch; }
.br-phone { display: none; }
.pricing { background: var(--surface); border-block: 1px solid var(--line); }
.price-center { max-width: 760px; margin: 0 auto; }
.plan { position: relative; overflow: hidden; background: var(--ink); color: var(--hero-fg); display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 48px; padding: 40px 56px; border-radius: 28px; box-shadow: 0 30px 80px rgba(13, 18, 34, .28), inset 0 0 0 1px var(--card-edge); }
.plan::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 181, 68, .28), rgba(242, 181, 68, 0) 65%); pointer-events: none; }
.plan::after { content: ""; position: relative; order: 1; width: 1px; align-self: stretch; background: rgba(255, 255, 255, .14); }
.amount { position: relative; display: flex; align-items: center; gap: 14px; }
.amount b { font: 700 clamp(76px, 11vw, 120px)/1 var(--font-display); color: var(--amber); letter-spacing: -0.04em; min-width: 2.2ch; text-align: right; }
.amount span { display: flex; flex-direction: column; font-size: 18px; line-height: 1.2; color: var(--hero-fg-2); }
.amount em { font-style: normal; font: 700 22px var(--font-display); color: var(--hero-fg); }
.plan .btn { position: relative; order: 2; min-height: 60px; padding: 0 34px; font-size: 17px; border-radius: 16px; }
.waiting [data-needs="prices"] { visibility: hidden; }

/* Forms */
.form { background: var(--surface); color: var(--fg); border-radius: 22px; padding: 26px; }
.form > div { display: flex; flex-direction: column; gap: 14px; }
.card-title { font-size: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field input { height: 46px; border-radius: 10px; border: 1px solid var(--field-line); background: var(--bg); color: var(--fg); padding: 0 14px; font: 400 16px var(--font-body); width: 100%; }
.field input::placeholder { color: var(--fg-3); opacity: 1; }
.field input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.err { font-size: 13px; color: var(--error); }
.form-msg { font-size: 14px; color: var(--error); background: color-mix(in srgb, var(--error) 10%, transparent); border-radius: 10px; padding: 10px 12px; }
.form-msg.ok { color: var(--green-ink); background: var(--green-soft); }
.form-msg a { font-weight: 600; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.trial { color: var(--fg-2); font-size: 15px; margin-top: -4px; }
.terms a { color: var(--fg-2); }
.login-pill { display: inline-flex; align-items: center; margin-left: 6px; min-height: 28px; padding: 0 12px; border-radius: 14px; background: var(--amber); color: var(--ink); font: 700 13px var(--font-body); text-decoration: none; }
.login-pill:hover { filter: brightness(1.05); }
.done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.done .k { width: 48px; height: 48px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; font: 700 22px var(--font-display); }
.done-text { color: var(--fg-2); }
.done-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.done .card-title:focus { outline: none; }
.su-page { min-height: calc(100vh - 68px - 90px); display: flex; align-items: center; background: var(--bg); }
.su-page .wrap { width: 100%; display: flex; justify-content: center; }
.su-page .form { width: 100%; max-width: 480px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(13, 18, 34, .12); }

/* Agencies */
.ag-hero { background: var(--ink); color: var(--hero-fg); padding-block: 88px 96px; position: relative; overflow: hidden; }
.ag-hero::before { content: ""; position: absolute; right: -20%; top: -40%; width: 80%; height: 160%; background: radial-gradient(circle closest-side, rgba(91, 75, 183, .45), rgba(91, 75, 183, 0)); pointer-events: none; }
.ag-hero .wrap { position: relative; display: flex; flex-direction: column; gap: 20px; }
.ag-hero h1 { font-size: clamp(40px, 6.5vw, 80px); line-height: 1; letter-spacing: -0.03em; max-width: 14ch; }
.ag-hero h1 span { color: var(--amber); }
.ag-hero .lead { color: var(--hero-fg-2); }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.st4 { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.st4::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--amber); display: grid; place-items: center; font: 700 15px var(--font-display); box-shadow: inset 0 0 0 1px var(--card-edge); }
.st4 h3 { font-size: 18px; }
.st4 p { font-size: 14px; color: var(--fg-2); }
.models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.model { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.model.feat { border: 2px solid var(--violet-text); }
.model .share { font: 700 54px/1 var(--font-display); color: var(--violet-text); min-height: 54px; }
.model .share small { font: 600 15px var(--font-body); color: var(--fg-3); margin-left: 6px; }
.model h3 { font-size: 22px; }
.model ul { display: flex; flex-direction: column; gap: 8px; color: var(--fg-2); }
.model li { display: flex; gap: 10px; }
.model li::before { content: "✓"; color: var(--green); font-weight: 700; }
.ribbon { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 12px; background: var(--violet-soft); color: var(--violet-ink); }
.panel-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pf { border-radius: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pf b { font: 600 18px var(--font-display); }
.pf span { color: var(--fg-2); font-size: 14px; }
.example { background: var(--ink); color: var(--hero-fg); border-radius: 22px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; box-shadow: inset 0 0 0 1px var(--card-edge); }
.ex-text { display: flex; flex-direction: column; gap: 12px; }
.ex-text h2 { font-size: clamp(26px, 3.4vw, 34px); }
.muted-ink { color: var(--hero-fg-2); }
.ex-lines { margin: 0; }
.ex-lines .ln { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 15px; }
.ex-lines dt { margin: 0; }
.ex-lines dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-lines .ln.tot { border: 0; font-size: 18px; color: var(--amber); }
.ex-note { margin-top: 10px; }
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; min-height: 58px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font: 600 22px var(--font-display); color: var(--violet-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--fg-2); }
.join { background: var(--ink); color: var(--hero-fg); box-shadow: inset 0 1px 0 var(--card-edge); }
.join .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.join h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 12px; }
.join .lead { color: var(--hero-fg-2); margin-top: 14px; }

/* 404 */
.nf-box { max-width: 640px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; margin: 0 auto; }
.nf-code { font: 700 96px/1 var(--font-display); color: var(--amber); letter-spacing: -0.04em; }
.nf h1 { font-size: clamp(28px, 4vw, 40px); }

/* Footer */
footer { background: var(--ink); color: var(--hero-fg-2); border-top: 1px solid rgba(255, 255, 255, .08); }
footer .wrap { display: flex; gap: 14px 20px; flex-wrap: wrap; align-items: center; padding-block: 28px; font-size: 13px; }
footer .logo-mark { width: 32px; height: 32px; }
footer .logo-mark .lm-b { font-size: 15px; }
footer .wm b { font-size: 18px; }
footer .wm i { width: 6px; height: 6px; margin-top: 5px; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--hero-fg); text-decoration: underline; }
.foot-links, .langs { display: flex; gap: 4px 16px; flex-wrap: wrap; }
.foot-links a, .langs a { min-height: 32px; display: inline-flex; align-items: center; }
.langs a[aria-current="true"] { color: var(--hero-fg); font-weight: 700; }

/* Toast */
.toast { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 50; background: var(--ink); color: #FFFFFF; border-radius: 12px; padding: 12px 16px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .16); max-width: calc(100vw - 32px); }

/* Help centre (Django templates support/help_*.html) */
.help-hero { background: var(--ink); color: var(--hero-fg); padding-block: 64px 56px; }
.help-hero .wrap { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.help-hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.02em; }
.help-hero .lead { color: var(--hero-fg-2); }
.help-search { width: 100%; max-width: 560px; margin-top: 10px; }
.help-search input { width: 100%; height: 52px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .25); background: #FFFFFF; color: #0D1222; padding: 0 18px; font: 400 16px var(--font-body); }
.help-search input::placeholder { color: #5A6072; opacity: 1; }
.help-search input:focus-visible { outline-color: var(--amber); }
.help-list { padding-block: 48px 72px; }
.help-empty { color: var(--fg-2); text-align: center; margin-bottom: 20px; }
.help-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.help-section { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.help-section h2 { font-size: 20px; margin-bottom: 10px; }
.help-section li a { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.help-section li:first-child a { border-top: 0; }
.help-section li a b { font-weight: 600; color: var(--fg); }
.help-section li a span { font-size: 14px; color: var(--fg-3); }
.help-section li a:hover b { text-decoration: underline; }
.help-article { padding-block: 48px 80px; }
.help-columns { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.help-main h1 { font-size: clamp(30px, 4vw, 40px); margin-block: 10px 6px; }
.crumbs { font-size: 14px; color: var(--fg-3); }
.crumbs a { color: var(--fg-2); }
.help-meta { font-size: 13px; color: var(--fg-3); margin-bottom: 20px; }
.help-body { font-size: 17px; line-height: 1.7; color: var(--fg); max-width: 72ch; }
.help-body > * + * { margin-top: 14px; }
.help-body h2 { font-size: 24px; margin-top: 30px; }
.help-body h3 { font-size: 19px; margin-top: 24px; }
.help-body ul, .help-body ol { padding-left: 1.4em; }
.help-body ul { list-style: disc; }
.help-body ol { list-style: decimal; }
.help-body li + li { margin-top: 6px; }
.help-body a { color: var(--violet-text); }
.help-body code { font-size: .9em; background: var(--chip); padding: 1px 6px; border-radius: 6px; }
.help-body img { border-radius: 12px; border: 1px solid var(--line); }
.help-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
.help-side > h2, .help-still h2 { font-size: 16px; }
.help-side ul { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.help-side ul a { color: var(--fg-2); }
.help-still { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.help-still p { color: var(--fg-2); font-size: 15px; }

/* Narrower screens (breakpoints of the design) */
@media (max-width: 900px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .panel-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .help-columns { grid-template-columns: minmax(0, 1fr); } .help-side { position: static; } }
@media (max-width: 880px) { .join .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) { .example { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .models { grid-template-columns: minmax(0, 1fr); } }
/* The phone layout of the tour (phone.html): chapters stacked without their lines, the picture
   full width with one fixed height for every slide, the caption above it, the arrows in the row
   under it. */
@media (max-width: 699px) {
  .chapters { grid-template-columns: minmax(0, 1fr); }
  .chapters button { min-height: 60px; padding: 10px 12px 14px; }
  .chapters .ct small { display: none; }
  .slider { display: block; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); }
  .slider .side { display: none; }
  .round.inline { display: grid; }
  .cap-over { border: 0; background: none; border-radius: 0; min-height: 66px; align-items: flex-end; padding: 0 18px 14px; }
  .cap-over p { font-size: 15px; line-height: 1.4; text-shadow: none; }
  .stage-wrap { aspect-ratio: 4 / 5; border-radius: 0; box-shadow: none; }
  .shot.kb { animation: none; }
  .phone { height: 92%; border-radius: 9cqw; padding: 2.2cqw; }
  .phone .screen { border-radius: 7cqw; }
  .phone-side { display: none; }
  .controls { padding: 0 16px; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: flex-end; }
  .dots { gap: 4px; flex-basis: 100%; order: -1; }
  .dots button { width: 9px; height: 24px; padding: 10px 0; }
  .dots button span { height: 4px; }
}
@media (max-width: 640px) {
  .band { padding-block: 52px; }
  .band.no-top { padding-top: 0; }
  .hero { padding-block: 56px 64px; }
  .hero h1 { font-size: 50px; }
  .hero .lines { font-size: 19px; }
  .down { margin-top: 8px; }
  .tour { padding-block: 44px 52px; }
  .tour-title { font-size: 34px; }
  .sec-head h2 { font-size: 28px; line-height: 1.6; }
  .br-phone { display: inline; }
  .plan { flex-direction: column; gap: 22px; padding: 32px 24px; }
  .plan::after { width: 100%; height: 1px; align-self: auto; }
  .amount b { font-size: 76px; }
  .ag-hero { padding-block: 56px 64px; }
  .ag-hero h1 { font-size: 42px; }
  .ex-text h2 { font-size: 28px; }
  .join .wrap { gap: 28px; }
  .su-page { padding-block: 52px; }
  .chan-icons li::after { white-space: normal; width: max-content; max-width: 170px; text-align: center; }
}
@media (max-width: 540px) { .steps4, .panel-feats { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .pair { grid-template-columns: minmax(0, 1fr); } }

/* Reduced motion: no movement at all (the design's down arrow kept twitching). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .shot.after { opacity: 1; }
  .cursor { display: none; }
  html { scroll-behavior: auto; }
}
