/* Postaki website styles. Tokens and components: docs/design/DESIGN.md. Font: Commissioner (SIL OFL 1.1, fonts/OFL.txt). */
@font-face {
  font-family: "Commissioner";
  src: url("fonts/Commissioner-Variable.4273c7534d02.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  /* colour: carbon ink, paper, duplicate copies */
  --carbon-950: #12144a;
  --carbon-900: #1c1f6e;
  --carbon-700: #2b2fa3;
  --carbon-600: #3a3fc0;
  --carbon-300: #a9ace6;
  --carbon-100: #e4e5f8;
  --carbon-50:  #f2f3fb;

  --paper:        #ffffff;
  --ground:       #f1f2f6;
  --copy-yellow:  #fff0a6;
  --copy-yellow-strong: #ffe14d;
  --copy-pink:    #fbd7e1;
  --serial-red:   #c8202f;

  --ink:          #15162b;
  --ink-soft:     #45475f;
  --rule:         #c9cbe6;
  --rule-strong:  #8f93cf;

  --ok:           #17744a;
  --ok-bg:        #dff3e8;
  --wait:         #8a5a00;
  --wait-bg:      #fff1cc;

  --on-carbon:       #ffffff;
  --on-carbon-soft:  #d6d8fb;

  /* type */
  --font: "Commissioner", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.21rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.43rem + 1.4vw, 2.625rem);
  --step-4: clamp(2.125rem, 1.5rem + 3vw, 4.25rem);

  /* space */
  --s-px: 0.125rem;
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 8rem);
  --container: 75rem;

  /* radii */
  --r-paper: 0.1875rem;
  --r-control: 0.625rem;
  --r-chip: 0.375rem;

  /* depth */
  --shadow-paper: 0 0.0625rem 0.125rem rgb(18 20 74 / .10), 0 0.5rem 1.5rem -0.375rem rgb(18 20 74 / .22);
  --shadow-lift: 0 0.125rem 0.25rem rgb(18 20 74 / .12), 0 1.125rem 2.5rem -0.625rem rgb(18 20 74 / .35);

  --tap: 3rem;
  --bw-strong: 0.125rem;  /* focus rings and strong borders, no px */
  /* theme switch motion (website/theme-toggle.js reads these) */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --dur-icon: 600ms;
  --dur-reveal: 900ms;
  --dur-fade: 400ms;
  --ease-reveal: var(--ease-out);
  --bw-ring: 0.1875rem;
  --bw-mid: 0.09375rem;   /* link underline */
  /* The one allowed raw pixel in the whole codebase: a hairline. A rem hairline is unreliable (0.0625rem lands on a
     different device pixel depending on zoom and dpr and can vanish or double), so 1 CSS px is defined once here. */
  /* stylelint-disable-next-line unit-allowed-list -- the single hairline token, see the comment above */
  --bw: 1px;
  --col: minmax(0, 1fr);
  --r-focus: 0.25rem;
  --yellow-shadow: 0 0.375rem 1.125rem -0.375rem rgb(0 0 0 / .45);
  --code-bg: var(--carbon-950);
  --code-line: transparent;
  --on-carbon-tint: rgb(255 255 255 / .18);
  --on-carbon-hover: rgb(255 255 255 / .1);
  --on-carbon-line: rgb(255 255 255 / .45);
  --on-carbon-rule: rgb(255 255 255 / .15);
  /* roles (Day values; Night overrides them below) */
  --link: var(--carbon-700);
  --link-hover: var(--carbon-900);
  --focus: var(--carbon-600);
  --header-bg: var(--carbon-700);
  --primary-bg: var(--carbon-700);
  --primary-bg-hover: var(--carbon-900);
  --on-primary: var(--on-carbon);
  --primary-shadow: 0 0.0625rem 0 rgb(255 255 255 / .2) inset, 0 0.375rem 1rem -0.375rem rgb(43 47 163 / .6);
  --create-hover: #fff07a;
  --ok-ink: #0f4d31;
  --wait-ink: #5e3d00;
  --viewer-bg: #ffffff;  /* the Redoc API reference (docs.css), light in both themes */
  --viewer-ink: #15162b;
  color-scheme: light;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
/* Night, the default theme: same values as v2.css (docs/design/v2/DESIGN.md "Night"); the carbon header and footer stay. */
[data-theme="night"] {
  color-scheme: dark;
  --carbon-50: #23265a;
  --carbon-100: #2c2f66;
  --paper: #181a3d;
  --ground: #0f1029;
  --ink: #eceefb;
  --ink-soft: #b5b8dc;
  --rule: #666bb4;
  --rule-strong: #8a8fd6;
  --serial-red: #ff7a86;
  --ok: #6edba5;   --ok-bg: #123828;
  --wait: #ffcf6b; --wait-bg: #372a08;
  --link: #a9adff;
  --link-hover: #c8cbff;
  --focus: #b3b6ff;
  --header-bg: #1c1f6e;
  --primary-bg: #a9adff;
  --primary-bg-hover: #c8cbff;
  --on-primary: #12144a;
  --primary-shadow: 0 0.375rem 1rem -0.375rem rgb(0 0 0 / .6);
  --code-bg: #0f1029;
  --code-line: #666bb4;
  --ok-ink: #9fe3bf;
  --wait-ink: #ffe0a3;
  --shadow-paper: 0 0.0625rem 0.125rem rgb(0 0 0 / .4), 0 0.5rem 1.5rem -0.375rem rgb(0 0 0 / .55);
  --shadow-lift: 0 0.125rem 0.25rem rgb(0 0 0 / .45), 0 1.125rem 2.5rem -0.625rem rgb(0 0 0 / .65);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  font-variation-settings: "FLAR" 0, "VOLM" 0;
  overflow-wrap: break-word;
  hyphens: manual;
}
::selection { background: var(--copy-yellow-strong); color: var(--carbon-950); }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: var(--bw-mid); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: var(--bw-ring) solid var(--focus); outline-offset: var(--bw-ring); border-radius: var(--r-focus); }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); font-weight: 780; font-variation-settings: "FLAR" 100, "VOLM" 40; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); font-weight: 750; font-variation-settings: "FLAR" 100, "VOLM" 25; }
h3 { font-size: var(--step-1); font-weight: 680; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -624.9375rem; top: 0.5rem; }
.skip:focus { left: 0.5rem; z-index: 10; background: var(--paper); padding: var(--s-3) var(--s-4); border-radius: var(--r-control); }
/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3.5rem; padding: 0 var(--s-6);
  border-radius: var(--r-control); border: 0.125rem solid transparent;
  font: inherit; font-size: var(--step-1); font-weight: 680; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(0.0625rem); }
.btn--primary { background: var(--primary-bg); color: var(--on-primary); box-shadow: var(--primary-shadow); }
.btn--primary:hover { background: var(--primary-bg-hover); color: var(--on-primary); }
.btn--yellow { background: var(--copy-yellow-strong); color: var(--carbon-950); box-shadow: var(--yellow-shadow); }
.btn--yellow:hover { background: var(--create-hover); color: var(--carbon-950); }
.btn--sm { min-height: var(--tap); padding: 0 var(--s-4); font-size: var(--step-0); }
.btn svg { width: 1.375rem; height: 1.375rem; flex: none; }
/* ---------- header ---------- */
.site-header { background: var(--header-bg); color: var(--on-carbon); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--on-carbon); text-decoration: none; margin-right: auto; min-height: var(--tap); }
.brand:hover { color: var(--on-carbon); }
.brand__word { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.03em; font-variation-settings: "FLAR" 100, "VOLM" 60; line-height: 1; }
.brand__mark { width: 2.375rem; height: 2.375rem; flex: none; }
.header-signup { display: none; }
@media (min-width: 35em) {
  .header-signup { display: inline-flex; }
}
.site-header .wrap { gap: var(--s-3); }
@media (min-width: 35em) {
  .site-header .wrap { gap: var(--s-5); }
}
.beta-tag { font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: var(--s-1) var(--s-2); border-radius: var(--r-chip); background: var(--copy-yellow-strong); color: var(--carbon-950); line-height: 1.3; }
.login-link { border: var(--bw-strong) solid var(--on-carbon-line); }
.login-link { color: var(--on-carbon); text-decoration: none; font-weight: 560; padding: 0 var(--s-3); min-height: var(--tap); display: inline-flex; align-items: center; border-radius: var(--r-sm); }
.login-link:hover { background: var(--on-carbon-hover); color: var(--on-carbon); }
/* ---------- hero ---------- */
/* ---------- slip: the post as a duplicate-book sheet ---------- */
.field { display: grid; gap: var(--s-1); padding: var(--s-3) 0; border-bottom: var(--bw) solid var(--rule); }
.field:last-child { border-bottom: 0; padding-bottom: 0; }
.channels { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); }
.check { display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 600; font-size: .9375rem; color: var(--ink); }
.check svg { width: 1.125rem; height: 1.125rem; }
.slip--copy { position: absolute; inset: 0 0 auto var(--s-4); height: 100%; padding-top: var(--s-5); }
/* ---------- sections ---------- */
.section { padding-block: var(--section); }
/* steps: one ticket strip, three stubs, perforated between */
.step { display: grid; grid-template-columns: 3.5rem var(--col); }
.step + .step { border-top: 0.125rem dashed var(--rule-strong); }
.step h3 { font-size: var(--step-2); font-weight: 720; font-variation-settings: "FLAR" 100, "VOLM" 20; }
.step p { margin-top: var(--s-3); color: var(--ink-soft); }
@media (min-width: 51.25em) {
  .step { grid-template-columns: var(--col); grid-template-rows: auto 1fr; }
  .step + .step { border-top: 0; border-left: 0.125rem dashed var(--rule-strong); }
}
/* approval */
/* accounts: does / does not */
/* channels */
.status--open { color: var(--ok); background: var(--ok-bg); }
.channels-note { margin-top: var(--s-5); color: var(--ink-soft); max-width: 40rem; }
/* who it is for: an order list */
.order { display: grid; gap: var(--s-1); padding: var(--s-4) 0; border-bottom: var(--bw) solid var(--rule); }
@media (min-width: 51.25em) {
  .order { grid-template-columns: 15rem var(--col); gap: var(--s-6); align-items: baseline; padding: var(--s-5) 0; }
}
/* faq */
/* closing band */
/* footer */
.site-footer { background: var(--carbon-950); color: var(--on-carbon-soft); padding-block: var(--s-8) var(--s-6); font-size: .9375rem; }
.site-footer a { color: var(--on-carbon); text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer a:hover { text-decoration: underline; color: var(--on-carbon); }
.footer__grid { display: grid; gap: var(--s-6); }
.footer__grid h2 { font-size: .875rem; font-weight: 700; color: var(--on-carbon); letter-spacing: .01em; margin-bottom: var(--s-2); }
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__about p { margin-top: var(--s-3); max-width: 30ch; }
.footer__base { margin-top: var(--s-7); padding-top: var(--s-5); border-top: var(--bw) solid var(--on-carbon-rule); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: space-between; }
@media (min-width: 51.25em) {
  .footer__grid { grid-template-columns: minmax(0, 1.4fr) var(--col) var(--col) var(--col) var(--col); }
}
/* ---------- public page frame: legal documents and the waitlist (the app and sign-up flow use v2.css) ---------- */
/* ---------- page frame ---------- */
main { min-height: 60dvh; }
.page { padding-block: clamp(var(--s-6), 6vw, var(--s-8)) clamp(var(--s-7), 8vw, var(--s-9)); }
.page > * + * { margin-top: var(--s-4); }
/* ---------- messages ---------- */
.messages { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.message, .alert { padding: var(--s-3) var(--s-4); border-radius: var(--r-control); background: var(--carbon-50); border: 0.0938rem solid var(--rule-strong); color: var(--ink); line-height: 1.45; }
.message--success { background: var(--ok-bg); border-color: var(--ok); color: var(--ok-ink); }
.message--warning, .message--error, .alert { background: var(--paper); border-color: var(--wait); color: var(--wait-ink); }  /* no cream area (AI-look rules) */
/* ---------- legal documents ---------- */
.prose { max-width: 65ch; margin-inline: auto; background: var(--paper); border-radius: var(--r-paper); box-shadow: var(--shadow-paper); padding: clamp(var(--s-5), 4vw, var(--s-7)); }
.prose h1 { font-size: var(--step-3); font-weight: 750; font-variation-settings: "FLAR" 100, "VOLM" 25; margin-bottom: var(--s-5); }
.prose h2 { font-size: var(--step-2); font-weight: 720; font-variation-settings: "FLAR" 100, "VOLM" 20; margin: var(--s-7) 0 var(--s-3); }
.prose h3 { margin: var(--s-5) 0 var(--s-2); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s-4); }
.prose li { margin-bottom: var(--s-2); }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { text-align: left; padding: var(--s-2) var(--s-3); border-bottom: var(--bw) solid var(--rule); }
.doc-meta { max-width: 65ch; margin: var(--s-5) auto 0; color: var(--ink-soft); font-size: var(--step--1); }
.auth { padding-block: clamp(var(--s-6), 6vw, var(--s-8)) clamp(var(--s-7), 8vw, var(--s-9)); display: flex; flex-direction: column; align-items: center; gap: var(--s-5); }
.auth-card { width: 100%; max-width: 30rem; background: var(--paper); border-radius: var(--r-paper); box-shadow: var(--shadow-paper); padding: clamp(var(--s-5), 5vw, var(--s-7)); }
.auth-title { font-size: var(--step-2); font-weight: 720; font-variation-settings: "FLAR" 100, "VOLM" 20; padding-bottom: var(--s-3); border-bottom: 0.0938rem solid var(--rule-strong); margin-bottom: var(--s-5); }
.auth-text { color: var(--ink-soft); margin-bottom: var(--s-4); max-width: 65ch; }
.auth-card p { margin-bottom: var(--s-4); }
.auth-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); font-size: var(--step--1); }
.auth-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.form { display: grid; gap: var(--s-4); }
.field-row { display: grid; gap: var(--s-1); }
.field-row label, .fieldset legend { font-size: var(--step--1); font-weight: 600; color: var(--link); }
.field-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .field-row select, .field-row textarea {
  width: 100%; min-height: 3.25rem; padding: var(--s-3) var(--s-4); font: inherit; color: var(--ink);
  background: var(--paper); border: 0.0938rem solid var(--rule-strong); border-radius: var(--r-control);
  transition: border-color .2s, box-shadow .2s;
}
.field-row input::placeholder { color: var(--ink-soft); opacity: .8; }
.field-row input:hover:not(:focus), .field-row select:hover:not(:focus) { border-color: var(--link); }
.field-row input:focus-visible, .field-row select:focus-visible, .field-row textarea:focus-visible { outline: 0.1875rem solid var(--focus); outline-offset: var(--bw); border-color: var(--link); }
.field-row--check label { display: flex; align-items: flex-start; gap: var(--s-2); font-weight: 500; color: var(--ink); }
.field-row--check input { flex: none; inline-size: 1.15em; block-size: 1.15em; margin-block-start: .2em; accent-color: var(--link); }
.has-error input:not([type=checkbox]):not([type=radio]) { border-color: var(--serial-red); }
.field-errors, .errorlist { color: var(--serial-red); font-size: var(--step--1); font-weight: 600; }
.errorlist, .field-errors ul { list-style: none; margin: 0; padding: 0; }
.field-errors--form { padding: var(--s-3) var(--s-4); border: 0.0938rem solid var(--serial-red); border-radius: var(--r-control); }
.field-help { font-size: .8125rem; color: var(--ink-soft); line-height: 1.45; }
.form-actions { display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.form-actions .btn { width: 100%; }
.auth-card a.btn { text-decoration: none; }
.hp { position: absolute; left: -625rem; width: var(--bw); height: var(--bw); overflow: hidden; }
.waitlist-privacy { font-size: var(--step--1); color: var(--ink-soft); margin-top: var(--s-5); }
.waitlist-privacy p { margin: 0 0 var(--s-2); }
.waitlist-privacy__title { font-weight: 600; color: var(--ink); }
.waitlist-privacy ul { margin: 0 0 var(--s-2); padding-inline-start: 1.2em; }
.waitlist-privacy li + li { margin-block-start: var(--s-1); }
.waitlist-choice { margin-block-end: var(--s-5); }

/* EN / EL toggle (templates/language_toggle.html), on the dark header. Tokens and rem only. */
.langtoggle { display: inline-flex; align-items: center; gap: var(--s-1); margin: 0; }
.langtoggle__on, .langtoggle__go { min-inline-size: var(--tap); min-block-size: var(--tap); padding-inline: var(--s-2); display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-control); font: inherit; text-decoration: none; font-size: var(--step--1); font-weight: 700; letter-spacing: .02em; }
.langtoggle__on { background: var(--on-carbon-tint); color: var(--on-carbon); cursor: default; }
.langtoggle__go { background: transparent; color: var(--on-carbon-soft); cursor: pointer; }
.langtoggle__go:hover { background: var(--on-carbon-hover); color: var(--on-carbon); }
.langtoggle__go:focus-visible { outline: var(--bw-strong) solid var(--on-carbon); outline-offset: var(--bw-strong); }
@media (max-width: 29.9em) { .site-header .beta-tag { display: none; } }
/* "Back" link at the top of a legal page */
.back-link { display: inline-flex; align-items: center; min-block-size: var(--tap); color: var(--link); font-weight: 650; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.back-link:focus-visible { outline: var(--bw-strong) solid var(--focus); outline-offset: var(--bw-strong); border-radius: var(--r-chip); }
/* Very narrow phones (about 320 CSS px wide): the header may wrap instead of overflowing */
@media (max-width: 24.9em) { .site-header .wrap { flex-wrap: wrap; padding-block: var(--s-2); } }
.legal-doc { display: grid; grid-template-columns: var(--col); gap: var(--s-3); }
.legal-doc > .prose { inline-size: 100%; }  /* auto side margins would otherwise shrink it to its widest table */

/* Night / Day toggle (templates/theme_toggle.html) on the carbon header, beside the EN / EL toggle. Tokens and rem only. */
.themetoggle { display: inline-flex; margin: 0; flex: none; }
.themetoggle__btn { min-inline-size: var(--tap); min-block-size: var(--tap); display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-control); background: transparent; color: var(--on-carbon-soft); cursor: pointer; }
.themetoggle__btn:hover { background: var(--on-carbon-hover); color: var(--on-carbon); }
.themetoggle__btn:focus-visible { outline: var(--bw-strong) solid var(--on-carbon); outline-offset: var(--bw-strong); }
.themetoggle__i { inline-size: 1.25rem; block-size: 1.25rem; overflow: visible; }
.themetoggle__core { fill: currentColor; transform-box: fill-box; transform-origin: center; }
.themetoggle__rays { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transform-box: view-box; transform-origin: center; }
.themetoggle__bite { transform-box: view-box; }
/* By day the button offers Night: the core grows into a moon, the bite slides in, the rays turn away and fade. */
[data-theme="day"] .themetoggle__core { transform: scale(1.75); }
[data-theme="day"] .themetoggle__rays { transform: rotate(-90deg) scale(.5); opacity: 0; }
[data-theme="day"] .themetoggle__bite { transform: translate(-29.17%, 29.17%); }  /* 7 of the 24-unit view box */
/* Switching (website/theme-toggle.js): a circular reveal of the new page from the button, else a short colour fade.
   No motion at all under prefers-reduced-motion (owner 2026-11-26). */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
:root.theme-instant *, :root.theme-instant *::before, :root.theme-instant *::after { transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .theme-fading, .theme-fading * {
    transition: background-color var(--dur-fade) ease, color var(--dur-fade) ease, border-color var(--dur-fade) ease,
      fill var(--dur-fade) ease, stroke var(--dur-fade) ease;
  }
  .themetoggle__core, .themetoggle__rays, .themetoggle__bite {
    transition: transform var(--dur-icon) var(--ease-in-out), opacity var(--dur-icon) var(--ease-in-out);
  }
}
/* Phones: EN / EL shows only the language it switches to, so the header row fits (it still wraps at 320). */
@media (max-width: 29.9em) {
  .langtoggle__on { display: none; }
  .site-header .wrap { gap: var(--s-2); }
  .brand { gap: var(--s-2); }
  .brand__mark { inline-size: 2rem; block-size: 2rem; }
  .brand__word { font-size: 1.25rem; }
  .login-link { padding-inline: var(--s-2); }
}
