/* ==========================================================================
   Hattefisk - coming soon
   Tokens: black bg matches the hat-tile sprites exactly (no seams, no
   gradient behind them - see .hero). Warm white for content cards, brand
   red for accents. Buttons default to --red-deep (white text >= 4.5:1);
   bright --red is reserved for decorative/large type.
   Type: Permanent Marker (brush, latin-only, brand wordmark stays English
   in every language) for the poster-style Hattefisk lockup (set in caps
   via text-transform, see .brush-heading), Caveat
   (handwritten, Cyrillic) for the small eyebrow labels, Inter (Cyrillic +
   Latin Extended) for body/UI, including the COMING SOON badge. All three
   self-hosted in assets/fonts/.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Inter-latin.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+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext (round 9, i18n expansion): covers the Latin diacritics that
   plain latin-1 doesn't - Polish ł ś ź ż ć ń, Latvian ā ē ī ū ķ ļ ņ š ž ģ č,
   Lithuanian ą ę ė į ų ū, Romanian ș ț ă, Turkish ğ ı İ ş. Ukrainian і ї є ґ
   and Belarusian ў are already covered by the existing cyrillic subset
   above (U+0400-045F, U+0490-0491), so no cyrillic-ext was needed. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/Caveat-latin.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;
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/Caveat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/Caveat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/PermanentMarker-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2122;
}

:root {
  --black: #000000;
  --ink: #141210;
  --warm-white: #f7f1e4;
  --warm-white-dim: #e9e0cd;
  --red: #ef3d20;
  --red-deep: #b32914;
  --red-deep-hover: #8f2000;
  --accent: #e8a83e;
  --grey: #9a9186;
  --grey-dim: #5c584f;
  --line: rgba(247, 241, 228, 0.14);

  --font-display: "Permanent Marker", "Segoe Script", cursive;
  --font-script: "Caveat", "Segoe Script", cursive;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);

  /* Design tokens (round 10, owner feedback): one small scale shared by
     hero, catering card, catering form and the language sheet, so the
     same-weight elements (hero tagline vs catering heading, hero line vs
     catering body) actually render at the same size instead of drifting
     apart one-off value at a time. */
  --fs-script: clamp(1.5rem, 6.5vw, 2.3rem); /* script headings: hero tagline, catering heading */
  --lh-script: 1.05;
  --fs-body: clamp(0.9rem, 3vw, 1.02rem); /* lead body copy: hero line, catering body */
  --lh-body: 1.55;
  --fs-small: 0.85rem; /* secondary copy: hints, notes, email-or line */
  --fs-label: 0.82rem; /* form labels */

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;

  /* Background pattern (owner reference: black poster with a faint seigaiha
     wave pattern, darker toward the centre so the mascot/wordmark/form stay
     clean - see .hero::before/.hero::after). Tunable without touching the
     rules below. */
  --pattern-tile-size: 84px;
  --pattern-opacity: 0.16;
  --field-on-pattern: rgba(0, 0, 0, 0.72); /* inputs over the wave pattern stay legible */
  --vignette-inner: 72%; /* horizontal radius of the soft centre darkening */
  --vignette-outer: 62%; /* vertical radius of the soft centre darkening */
}

@media (min-width: 720px) {
  :root {
    --gutter: 40px;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 64px;
  }
}

/* ---- Reset ------------------------------------------------------------ */

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

/* Black on <html> AND <body>, not just the sections: on iOS Safari
   (and desktop Safari) an overscroll/rubber-band past the top or
   bottom of the document reveals the viewport background, not any
   section's background - without this, that reveals white/default
   instead of a seamless black. */
html {
  /* Plain black: matches the iOS status-bar and Safari toolbar safe zones,
     so the page edges never show a band. The seigaiha lives on the hero only
     and fades into this black at its top and bottom (owner 25.09). */
  background: #000000;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: transparent; /* page pattern lives on html */
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1, h2, h3, p, figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Visible focus ring everywhere, no silent removal */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 100;
  background: var(--red-deep);
  color: var(--warm-white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: calc(var(--safe-t) + 10px);
}

/* ---- Hero --------------------------------------------------------------- */

.hero {
  /* Capped, not a pure 100vh: on a tall phone (844px+) with the sticky
     topbar taking its own space above, a pure 100vh hero plus flex
     centering left a huge dead-air gap below the form note before the
     catering card (round 4 fix - was ~171px, well past a comfortable
     section break). The cap keeps the poster-style vertical centering
     on short/typical screens while stopping the hero from ballooning on
     tall ones. */
  /* Round 9: no min-height. With content pinned to the top, a 720px floor
     just moved the dead air below the form; the catering card peeking in
     at the bottom is the scroll cue instead. */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Round 9 (owner feedback): content starts near the top, not floating in
     the vertical middle of a 720px-capped hero with dead air above. */
  justify-content: flex-start;
  text-align: center;
  padding: calc(var(--safe-t) + 8px) calc(var(--gutter) + var(--safe-r)) calc(var(--safe-b) + 56px) calc(var(--gutter) + var(--safe-l));
  position: relative;
  background: transparent; /* page-wide seigaiha on html shows through */
  isolation: isolate; /* keep ::before/::after from bleeding stacking context into the rest of the page */
}

/* (Superseded 25.09: the pattern is page-wide on html now.)
   Seigaiha wave tile, warm-white stroke, very low opacity - visible mostly
   toward the edges once the vignette (::after) darkens the centre back to
   near-solid black. Sits behind all hero content (z-index: 0 vs. children
   below getting position: relative from their own layout, HTML order keeps
   these two pseudo-elements first). */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("pattern-seigaiha.svg?v=48d57ee4");
  background-repeat: repeat;
  background-position: center top;
  background-size: var(--pattern-tile-size) calc(var(--pattern-tile-size) / 2);
  pointer-events: none;
  /* Fade into black at the top (status-bar safe zone) and at the bottom
     (before the catering card), so no edge of the pattern is ever visible. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 72%, transparent 100%);
}

/* Radial vignette: near-solid black at the centre (where the mascot,
   wordmark and form live) fading out toward the edges so the pattern only
   reads at the corners/sides. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Soft, not solid: the centre column is darkened enough for text and the
     mascot, but the waves still read through it, like the reference poster. */
  background: radial-gradient(ellipse var(--vignette-inner) var(--vignette-outer) at 50% 50%, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  pointer-events: none;
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hat-stage-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0 0;
}

@media (min-width: 1024px) {
  .hat-stage-wrap {
    margin: 16px 0 0;
  }
}

.hat-stage {
  position: relative;
  width: clamp(150px, 34vw, 190px);
  height: clamp(150px, 34vw, 190px);
}

.hat-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hat-frame.is-active {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .hat-frame {
    transition: none;
  }
}

/* Three motion strokes on each side of the mascot, poster-style (owner
   reference: _preview/owner-ref/before-desktop-old-layout.png). No vertical
   kanji beside them - that element stays retired. */
.motion-strokes {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--warm-white);
  opacity: 0.9;
  pointer-events: none;
}

.motion-strokes--left {
  left: clamp(-44px, -13vw, -32px);
}

.motion-strokes--right {
  right: clamp(-44px, -13vw, -32px);
}

/* Hattefisk brand lockup (round 8): reuses the tilted poster treatment that
   used to carry "COMING SOON" (owner reference:
   _preview/owner-ref/before-desktop-old-layout.png) - same rotate, same
   font-size, same white color, same red brush-stroke swash sized to the
   word. The old separate, unrotated red .wordmark is retired. The markup
   is typed as "Hattefisk"; caps come from text-transform here, not from
   typed text - the logo image is the only place caps are baked in. */
.brush-heading {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--warm-white);
  text-transform: uppercase;
  /* +~11% over the initial round-8 pass (owner feedback): on a 390px phone
     the word should nearly fill the content width, not sit with visible
     side margins. */
  font-size: clamp(2.4rem, 13.5vw, 3.8rem);
  line-height: 0.85;
  transform: rotate(-3deg);
  position: relative;
  /* Bottom margin clears the red brush-stroke underline (it extends to
     -0.32em below the text, see .brush-stroke) before the badge below
     starts - otherwise the stroke and "COMING SOON" collide. */
  margin: 0 0 0.95em;
  text-wrap: balance;
}

.brush-heading .brush-stroke {
  position: absolute;
  left: 50%;
  bottom: -0.32em;
  transform: translateX(-50%);
  /* Narrower than the word, not wider (owner feedback): the swash must not
     poke out past the outer letters. */
  width: 87%;
  color: var(--red);
  z-index: -1;
}

/* COMING SOON: a small uppercase pill label, not a second brush-lettered
   headline - it needs to read as a status tag under the wordmark, not
   compete with it. Accent amber (round 8), not brand red: the red is
   already busy carrying the wordmark's brush-stroke underline right above
   this pill, and a second red shape that close reads as one blob. */
.coming-soon-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  /* Owner mockup 24.09: denser outline in a darker amber, a dim amber fill,
     and only the text in the bright accent. */
  background: rgba(232, 168, 62, 0.14);
  border: 2px solid #8a6424;
  border-radius: 999px;
  padding: 0.4em 0.95em;
  margin: 0 0 26px;
}

.hero-tagline {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: var(--fs-script);
  line-height: var(--lh-script);
  color: var(--warm-white);
  /* Round 10: wide enough that a short one-line phrase (owner rule: one
     line at 390px in every language) never wraps for want of room - the
     actual line-fitting lever is the copy length + the vw-driven clamp
     above, not this ceiling. */
  max-width: 30ch;
  margin: 0 auto 26px;
  text-wrap: balance;
}

.hero-line {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 500;
  color: var(--warm-white-dim);
  max-width: 34ch;
  margin: 0 auto var(--space-4);
  text-wrap: balance;
}

.hero-form {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

/* ---- Shared form styles -------------------------------------------------- */

/* Every element on this page is centered (round 4 feedback) - labels,
   field text, hints - so a plain .field-row centers by default. */
.field-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

/* Hero newsletter field: its own label is visually hidden (the placeholder
   + button carry the meaning), so the visible pieces - input, button, hint
   text below - also center horizontally as a group, not just their text. */
.field-row--center {
  align-items: center;
  text-align: center;
}

.optional-marker {
  font-weight: 400;
  color: var(--grey-dim);
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

@media (max-width: 420px) {
  .inline-form {
    flex-direction: column;
  }
}

label {
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--grey);
}

/* Round 10 (owner feedback): the default field style is now built for a
   DARK background (the hero) - transparent fill, a visible warm-white
   border, warm-white text - so an input never reads as a filled button.
   Any field placed on a light surface (the catering dialog / language
   sheet) gets the inverse treatment below instead of this default. */
input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 16px; /* never smaller: prevents iOS auto-zoom */
  background: transparent;
  color: var(--warm-white);
  border: 1.5px solid rgba(247, 241, 228, 0.55);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  width: 100%;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* <select> is the odd one out: `text-align` alone centers the dropdown's
   own popup list in some engines but not the closed control's chosen
   value - WebKit/Blink need `text-align-last` for that closed-state text. */
select {
  text-align-last: center;
}

/* Native <select>/<option> popups always render on a light system surface
   regardless of the trigger's own color scheme - force dark text there so
   the chosen/hovered value stays legible instead of warm-white-on-white. */
select option {
  color: var(--ink);
  background: var(--warm-white);
}

input::placeholder,
textarea::placeholder {
  color: rgba(247, 241, 228, 0.5);
  text-align: center;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

/* Fields on a light surface (catering dialog, language sheet): inverse of
   the dark default - transparent fill, dark border, dark text. */
.on-light input,
.on-light select,
.on-light textarea {
  color: var(--ink);
  border-color: rgba(20, 18, 16, 0.28);
}

.on-light input::placeholder,
.on-light textarea::placeholder {
  color: var(--grey-dim);
}

.on-light select option {
  color: var(--ink);
  background: #ffffff;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--red-deep);
  color: var(--warm-white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  background: var(--red-deep-hover);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.form-note {
  font-size: 0.78rem;
  color: var(--grey);
  margin-top: 4px;
  text-align: center;
}

/* Consent line under the hero newsletter button: readable size (not the
   10px-ish micro-copy this could have shrunk to), light grey on the black
   hero background. No /privacy link here (round 8) - the policy link lives
   only in the footer now. */
.form-consent {
  font-size: 0.76rem;
  line-height: 1.45;
  color: #7d766d;
  max-width: 34ch;
  margin: 16px auto 0;
  text-align: center;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

.form-status:empty {
  /* Round 9: the empty status line (min-height + margin) pushed the consent
     line away from the Sign up button. It only takes space once it has text. */
  display: none;
}

.form-status--success {
  color: #8fd18f;
}

.form-status--error {
  color: #ff8a73;
}

/* Honeypot: present in the DOM/tab order removed, hidden visually and from
   assistive tech (parent is aria-hidden). No visible label text needed. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Sections ------------------------------------------------------------- */

.section {
  padding: 56px calc(var(--gutter) + var(--safe-r)) 56px calc(var(--gutter) + var(--safe-l));
}

.section-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  /* Caveat, not Permanent Marker: these headings are localized (about,
     catering), and Permanent Marker has no Cyrillic glyphs - Russian
     text would silently fall back to a mismatched generic cursive font.
     Permanent Marker stays reserved for the English-only brand lockup
     (.brush-heading). */
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(2.1rem, 7.5vw, 2.9rem);
  /* Body copy's 1.5 line-height is much too loose for this large brush
     script when it wraps (e.g. the two-line catering heading) - tighten
     to match the display type's own proportions. */
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--warm-white);
}

.section-body {
  font-size: 1.02rem;
  line-height: var(--lh-body);
  color: var(--warm-white-dim);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Catering / B2B -------------------------------------------------------- */

/* The page is black everywhere outside the hero (round 4 feedback: the
   black background must be unbroken, so nothing but black can show
   during an iOS Safari rubber-band overscroll top or bottom). The
   catering block used to be a full-bleed warm-white section; now the
   section stays black and only a centered card inside it carries the
   warm-white surface. */
.section--catering {
  background: transparent;
  /* Tighter than the default .section 56px: the hero above already ends
     with its own note/breathing room, so the full section padding on
     top of that made too large a gap before the catering card. */
  padding-top: 40px;
}

.catering-card {
  background: var(--warm-white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  max-width: 480px;
  margin: 0 auto;
}

/* Round 10 (owner feedback): the catering heading and body sit at the same
   hierarchy level as the hero tagline and hero line, so they now share the
   exact same tokens instead of the generic .section-title/.section-body
   sizes (which stay as-is for the dialog title elsewhere on the page). */
.catering-card .section-title {
  font-size: var(--fs-script);
  line-height: var(--lh-script);
  color: var(--ink);
}

.catering-card .section-body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--grey-dim);
}

.catering-cta {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

/* "or email" plus the address on its own line below the CTA button - the
   address is hardcoded (not translated), b2b.or_email only carries the
   short lead-in text. More air above it than the default gap (owner
   feedback, round 10): it reads as a secondary fallback, not glued to
   the primary button. */
.catering-or-email {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  color: var(--grey-dim);
}

.catering-direct {
  color: var(--red-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Fullscreen sheet (shared: catering enquiry + language picker) -------
   Round 10: both were bottom sheets/dropdowns before; the owner asked for
   one consistent fullscreen-sheet pattern instead - fixed header (title +
   close), a scrollable body, and (for the catering form) a sticky bottom
   action bar that keeps Send visible no matter how long the form gets. */

.sheet {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--ink);
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  inset: 0;
}

.sheet::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.sheet[open] {
  animation: sheet-in 200ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .sheet[open] {
    animation: none;
  }
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sheet-inner {
  background: var(--warm-white);
  color: var(--ink);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sheet-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: calc(var(--safe-t) + var(--space-3)) calc(var(--gutter) + var(--safe-r)) var(--space-3) calc(var(--gutter) + var(--safe-l));
  border-bottom: 1px solid rgba(20, 18, 16, 0.1);
}

.sheet-title {
  flex: 1 1 auto;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: var(--fs-script);
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}

/* Balance the close button on the right with an equal empty slot on the
   left so the sheet title is optically centred. */
.sheet-header::before {
  content: "";
  flex: 0 0 36px;
}

.sheet-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(20, 18, 16, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.sheet-close:hover {
  background: rgba(20, 18, 16, 0.12);
}

.sheet-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-4) calc(var(--gutter) + var(--safe-r)) var(--space-4) calc(var(--gutter) + var(--safe-l));
  text-align: center;
}

.sheet-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) calc(var(--gutter) + var(--safe-r)) calc(var(--safe-b) + var(--space-3)) calc(var(--gutter) + var(--safe-l));
  background: var(--warm-white);
  border-top: 1px solid rgba(20, 18, 16, 0.1);
}

.sheet-actions .btn {
  width: 100%;
  max-width: 420px;
}

.sheet-actions .form-status {
  width: 100%;
}

/* [hidden] vs a class-based `display` rule of equal specificity, same
   caveat as .catering-fields[hidden] above - needs an explicit override. */
.sheet-actions[hidden] {
  display: none;
}

.catering-dialog-intro {
  margin: 0 auto var(--space-4);
  color: var(--grey-dim);
}

.catering-form {
  display: block;
}

.catering-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

/* [hidden] and a class-based `display` rule have equal specificity, and
   this stylesheet loads after the UA default - without this, toggling
   the `hidden` property from JS would silently do nothing. */
.catering-fields[hidden] {
  display: none;
}

@media (min-width: 640px) {
  .catering-fields {
    grid-template-columns: 1fr 1fr;
    max-width: 640px;
  }
  .catering-fields .field-row--full {
    grid-column: 1 / -1;
  }
}

.catering-success {
  text-align: center;
  padding: var(--space-4) 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.catering-success[hidden] {
  display: none;
}

.catering-success-title {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--red-deep);
}

.catering-success-text {
  font-size: 1.02rem;
  color: var(--grey-dim);
  margin-bottom: var(--space-1);
}

/* The B2B form lives inside the sheet, on the warm-white panel - not on the
   black page; it carries .on-light (see the shared input rules above) for
   the inverse dark-on-light field treatment. */
.catering-dialog label {
  color: var(--grey-dim);
}

.catering-dialog .form-note {
  color: var(--grey-dim);
  text-align: center;
}

/* Date input (round 10 fix): iOS renders its own control wider than the
   text it shows, which pushed the field row past the sheet's edge and
   caused a horizontal scroll inside the fields grid. min-width: 0 lets a
   grid/flex item shrink below its content's intrinsic width, and the
   iOS-specific appearance reset stops Safari from padding the calendar
   icon area beyond the box. */
.catering-fields input[type="date"] {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

/* ---- Dark sheet variant (owner 24.09: language picker is dark, same layout
   as the catering sheet but on the page's black instead of warm white). ---- */
.sheet--dark .sheet-inner {
  background: var(--black);
  color: var(--warm-white);
}
.sheet--dark .sheet-header {
  border-bottom-color: rgba(245, 239, 228, 0.12);
}
.sheet--dark .sheet-title {
  color: var(--warm-white);
}
.sheet--dark .sheet-close {
  background: rgba(245, 239, 228, 0.1);
  color: var(--warm-white);
}
.sheet--dark .sheet-close:hover {
  background: rgba(245, 239, 228, 0.18);
}
.sheet--dark .lang-sheet-option {
  color: var(--warm-white);
}
.sheet--dark .lang-sheet-option:hover,
.sheet--dark .lang-sheet-option:focus-visible {
  background: rgba(245, 239, 228, 0.07);
}
.sheet--dark .lang-sheet-code {
  color: var(--grey);
}
.sheet--dark .lang-sheet-option[aria-checked="true"] {
  background: rgba(232, 168, 62, 0.12);
}
.sheet--dark .lang-sheet-option[aria-checked="true"] .lang-sheet-code,
.sheet--dark .lang-sheet-option[aria-checked="true"] .lang-sheet-name {
  color: var(--accent);
}

/* ---- Language sheet -------------------------------------------------------- */

.lang-sheet-body {
  padding-top: var(--space-2);
}

.lang-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Centred block sized to its content (owner 25.09), rows stay aligned. */
  width: fit-content;
  min-width: 240px;
  max-width: 100%;
  margin: 0 auto;
}

.lang-sheet-option {
  display: grid;
  grid-template-columns: 34px 28px 1fr;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.lang-sheet-option:hover,
.lang-sheet-option:focus-visible {
  background: rgba(20, 18, 16, 0.06);
  outline: none;
}

.lang-sheet-code {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--grey-dim);
}

.lang-sheet-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.lang-sheet-name {
  font-size: 0.98rem;
  font-weight: 600;
}

.lang-sheet-option[aria-checked="true"] {
  background: rgba(179, 41, 20, 0.08);
}

.lang-sheet-option[aria-checked="true"] .lang-sheet-code,
.lang-sheet-option[aria-checked="true"] .lang-sheet-name {
  color: var(--red-deep);
}

/* Footer's single entry point into the sheet (round 10: the header
   switcher is retired, this pill is the only trigger left). */
.footer-lang-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 241, 228, 0.04);
  color: var(--grey);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.footer-lang-trigger:hover {
  color: var(--warm-white);
  border-color: rgba(247, 241, 228, 0.3);
}

/* ---- Footer -------------------------------------------------------------
   Compact and centered: email, location, language, social (hidden while
   empty), copyright. One column, small type, ~200px tall on mobile.
   Black, like the rest of the page (round 4 fix): a cream full-width
   footer was the other spot where the black background broke, right
   before the very bottom edge an iOS Safari overscroll would reveal. */

.footer {
  background: transparent;
  color: var(--warm-white);
  padding: 22px calc(var(--gutter) + var(--safe-r)) calc(var(--safe-b) + 20px) calc(var(--gutter) + var(--safe-l));
  border-top: 1px solid var(--line);
  position: relative;
  isolation: isolate;
}

/* Same seigaiha tile as .hero, no vignette here - the footer is short and
   text-light, so a flat low-opacity wash keeps the wordmark/links readable
   without needing a second radial gradient tuned for this section's size. */
.footer::before {
  content: none; /* footer stays plain black, same as the bottom safe zone */
}

.footer-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-inquiries {
  font-size: 0.78rem;
  color: var(--grey);
}

.footer-email {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-location {
  font-size: 0.85rem;
  color: var(--grey);
}

.footer-privacy {
  font-size: 0.78rem;
  color: var(--grey);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 2px;
}

.footer-privacy:hover {
  color: var(--warm-white);
}

.footer-inner .footer-lang-trigger {
  margin-top: 6px;
}

.social-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.social-row[hidden] {
  display: none;
}

.social-link {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--warm-white);
  color: var(--ink);
  transition: background-color 0.15s ease;
}

.social-link:hover {
  background: var(--red);
}

.footer-fine {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--grey);
  opacity: 0.8;
}

/* ---- Privacy page --------------------------------------------------------- */

/* Black page background (same as everywhere else, see .hero for why), a
   single narrow reading column inside a warm-white card so ten sections of
   legal text stay comfortable to read, left-aligned (unlike the rest of the
   site, which centers everything - a wall of centered paragraphs is much
   harder to read than a left-aligned column). */
.privacy-page {
  min-height: 100dvh;
  background: var(--black);
}

.privacy-main {
  padding: calc(var(--safe-t) + 32px) calc(var(--gutter) + var(--safe-r)) calc(var(--safe-b) + 48px) calc(var(--gutter) + var(--safe-l));
  display: flex;
  justify-content: center;
}

.privacy-card {
  background: var(--warm-white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  padding: 32px 24px 40px;
}

@media (min-width: 720px) {
  .privacy-card {
    padding: 48px 56px 56px;
  }
}

.privacy-title {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.6rem);
  line-height: 1.1;
  color: var(--red-deep);
  text-align: left;
  margin-bottom: 6px;
}

.privacy-updated {
  font-size: 0.85rem;
  color: var(--grey-dim);
  margin-bottom: 20px;
}

.privacy-intro {
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 32px;
}

.privacy-section {
  margin-bottom: 28px;
}

.privacy-section-title {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
}

.privacy-section-body {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--grey-dim);
  /* Source copy uses a plain "\n" between paragraphs/list lines (see
     _tools/privacy-source.json) - pre-line turns each newline into a
     visual break without needing to split the string into <p> tags on
     every language switch. */
  white-space: pre-line;
}

.privacy-back {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--red-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Corner smoothing (owner rule) ---------------------------------------
   iOS/Figma-style superellipse corners on every rounded rectangle: buttons,
   inputs, cards, pills, sheets. Chromium supports `corner-shape` behind the
   feature query; Safari has no support yet and simply keeps the plain
   `border-radius` set elsewhere on each selector - this block only adds the
   shape plus a touch more radius so the corner doesn't read as smaller once
   it's cut more aggressively. */
@supports (corner-shape: squircle) {
  .btn,
  .btn--outline,
  input,
  select,
  textarea,
  .coming-soon-badge,
  .footer-lang-trigger,
  .catering-card,
  .privacy-card,
  .skip-link,
  .sheet-inner,
  .lang-sheet-option,
  .consent-banner {
    corner-shape: superellipse(1.6);
  }

  .btn,
  .btn--outline,
  input,
  select,
  textarea {
    border-radius: 16px;
  }

  .consent-banner {
    border-radius: 24px;
  }

  .catering-card,
  .privacy-card {
    border-radius: 34px;
  }

  .lang-sheet-option {
    border-radius: 16px;
  }
}

/* ---- Desktop composition ------------------------------------------------------ */

@media (min-width: 1024px) {
  /* Desktop hero stays on the same vertical, centered axis as the poster:
     mascot, Hattefisk, COMING SOON, subhead, form - one column, just
     scaled up. No side-by-side split. */
  .hero {
    padding-top: calc(var(--safe-t) + 20px);
  }

  .hero-main {
    margin-top: 0;
    gap: 40px;
  }

  /* Capped at 260px (owner reference: before-desktop-old-layout.png) - the
     mascot stays a poster accent, not a giant hero image. */
  .hat-stage {
    width: clamp(200px, 18vw, 260px);
    height: clamp(200px, 18vw, 260px);
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 560px;
  }

  .brush-heading {
    font-size: clamp(3.3rem, 6.6vw, 5.1rem);
  }

  .hero-tagline {
    font-size: clamp(2rem, 3.4vw, 2.6rem);
    max-width: 26ch;
  }

  .hero-line {
    margin: 0 auto 34px;
  }

  .hero-form {
    margin: 0 auto;
  }

  .section-inner {
    max-width: 640px;
  }

  .catering-card {
    max-width: 760px;
  }

  .footer-inner {
    max-width: 640px;
  }
}

/* ---- Cookie consent banner (round 11: PostHog analytics) ------------------
   Injected by assets/analytics.js only once a POSTHOG_KEY is set - while
   the key is empty this markup never exists, so the page looks exactly as
   before. Slides in from the bottom after a short delay (see analytics.js)
   so it never covers the hero's Sign up button on first paint. */

.consent-banner {
  position: fixed;
  left: calc(var(--gutter) + var(--safe-l));
  right: calc(var(--gutter) + var(--safe-r));
  bottom: calc(var(--safe-b) + var(--space-3));
  z-index: 60;
  max-width: 440px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--warm-white);
  border: 1px solid rgba(247, 241, 228, 0.16);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.consent-banner-text {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--warm-white);
}

.consent-banner-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-banner-actions {
  display: flex;
  gap: var(--space-2);
}

/* Equal size/weight for both choices (GDPR: accept and decline must not be
   visually biased) - same padding and font-size as .btn, just outlined. */
.consent-banner-actions .btn,
.consent-banner-actions .btn--outline {
  flex: 1 1 0;
  font-size: 0.85rem;
  padding: 10px 14px;
  text-align: center;
}

.btn--outline {
  appearance: none;
  border: 1.5px solid rgba(247, 241, 228, 0.55);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--warm-white);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.btn--outline:hover {
  background: rgba(247, 241, 228, 0.08);
  border-color: rgba(247, 241, 228, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner {
    transition: none;
  }
}

/* "Cookie settings" link injected into the footer alongside the privacy
   link - same treatment as .footer-privacy, but a <button> (reopens the
   banner) instead of a link. */
.footer-cookie-settings {
  appearance: none;
  border: none;
  background: none;
  color: var(--grey);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
  margin-top: 2px;
  font-family: inherit;
}

.footer-cookie-settings:hover {
  color: var(--warm-white);
}

/* Transparent inputs on the hero sit over the wave pattern: give them a dark
   backing so the placeholder/text never fights the waves. */
.hero input[type="email"],
.hero input[type="text"] {
  background-color: var(--field-on-pattern);
}

/* Privacy policy and Cookies on one small line (common footer pattern). */
.footer-legal {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}
.footer-legal .footer-privacy,
.footer-legal .footer-cookie-settings {
  margin-top: 0;
  font-size: 0.78rem;
}
.footer-legal-sep {
  color: var(--grey);
  font-size: 0.78rem;
}

/* Owner 25.09 (iPhone 17 screenshot): on phones the hero fills the visible
   viewport (svh = with Safari toolbars shown) and the composition sits a
   bit lower, so the catering card only just peeks at the bottom edge
   instead of taking a third of the first screen. Desktop unchanged. */
@media (max-width: 1023px) {
  .hero {
    min-height: 100svh;
    padding-top: calc(var(--safe-t) + 40px);
  }
}
