/* FlutterZip design system
   Shape rule: buttons and the newsletter field are pills; cards, phones and form panels use --r-card;
   inputs use --r-input. Nothing else is rounded. */

@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martian-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  --forest: #16402C;
  --night: #0C1811;
  --moss: #2E6B4C;
  --mint: #A9D4B6;
  --lichen: #DCE5D6;
  --leaf: #3F6A1B;
  --lime: #D7EFA9;
  --oxblood: #6E2A2E;
  --blush: #EBCFC6;
  --ultramarine: #2232A6;
  --periwinkle: #C3CAF8;
  --amber: #F29A33;
  --umber: #2A1705;
  --petrol: #0E313D;
  --signal: #F2501A;
  --paper: #F4F3EE;
  --ink: #1B2019;
  --input: #FBFAF6;
  --line-ui: #7D877B;

  --paper-soft: rgb(244 243 238 / .76);
  --paper-faint: rgb(244 243 238 / .2);

  --surface-paper: var(--paper);
  --surface-lichen: var(--lichen);
  --on-paper: var(--ink);
  --on-paper-soft: #4A5448;
  --on-paper-faint: rgb(27 32 25 / .16);
  --word-off: rgb(27 32 25 / .5);

  --slab-1: #16402C;
  --slab-2: #4D6E5C;
  --slab-3: #859C8B;

  --f-display: "Bricolage", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-body: "Bricolage", "Helvetica Neue", Helvetica, sans-serif;
  --f-note: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-mono: "Martian Mono", ui-monospace, Menlo, monospace;

  --r-card: 28px;
  --r-input: 14px;
  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1320px;
  --pad-block: clamp(88px, 11vw, 168px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --focus: var(--moss);

  color-scheme: light;
}

/* The marketing pages are a fixed sequence of brand colour fields, the same in light and dark mode.
   Dark-mode surfaces for account and admin pages arrive with those pages. */

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
  background: var(--forest);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--surface-paper);
  color: var(--on-paper);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.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-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--mint); color: var(--forest); padding: 12px 20px; border-radius: 999px;
  font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.note {
  font-family: var(--f-note);
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.005em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--f-body);
  font-weight: 650;
  font-stretch: 92%;
  font-size: 1.0625rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .45s var(--ease-out), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-mint { background: var(--mint); color: var(--forest); }
.btn-mint:hover { background: #BCE0C6; }
.btn-paper { background: var(--paper); color: var(--forest); }
.btn-paper:hover { background: #FFFEF9; }
.btn-forest { background: var(--forest); color: var(--paper); }
.btn-forest:hover { background: #1D5139; }
.btn-line { border-color: color-mix(in srgb, currentColor 45%, transparent); color: inherit; }
.btn-line:hover { border-color: currentColor; }
.btn-field { background: var(--btn-bg); color: var(--btn-fg); }
.btn-field:hover { filter: brightness(1.06); }
.btn-line-ink { border-color: currentColor; color: var(--on-paper); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 14px var(--gutter) auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.brand, .nav-links, .nav-toggle {
  background: var(--forest);
  box-shadow: 0 0 0 1px rgb(244 243 238 / .08), 0 12px 32px -18px rgb(6 20 13 / .7);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px 0 14px;
  border-radius: 999px;
  color: var(--paper);
  text-decoration: none;
}
.brand-mark { width: 30px; height: auto; fill: var(--paper); }
.brand-word {
  font-family: var(--f-display);
  font-weight: 760;
  font-stretch: 82%;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 8px;
  border-radius: 999px;
}
.nav-links a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--paper-soft);
  font-weight: 560;
  font-size: .98rem;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--paper); background: rgb(244 243 238 / .08); }
.nav-links-hire { display: none; }
.nav-cta { min-height: 52px; box-shadow: 0 0 0 1px rgb(22 64 44 / .14), 0 12px 32px -18px rgb(6 20 13 / .7); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-header { inset: 10px 12px auto; }
  .brand { height: 48px; padding: 0 16px 0 12px; }
  .brand-mark { width: 26px; }
  .brand-word { font-size: 1.25rem; }
  .nav-cta { min-height: 48px; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--paper);
    cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .35s var(--ease-out);
  }
  .nav-toggle-bars { position: relative; transform: translateY(-3px); }
  .nav-toggle-bars::before { content: ""; position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: translateY(0) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

  .nav-links {
    position: absolute;
    top: 58px; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 12px;
    border-radius: var(--r-card);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 16px 18px;
    font-family: var(--f-display);
    font-weight: 760;
    font-stretch: 80%;
    font-size: 2rem;
    line-height: 1;
    color: var(--paper);
  }
  .nav-links-hire { display: block; }
}
@media (max-width: 380px) {
  .nav-cta { display: none; }
}

/* ---------- Phone frame (real screenshots inside) ---------- */

/* Every measurement is a proportion of the phone's OWN size, so a 120px phone and a 400px phone have the same
   slim bezel. (Percentage padding would resolve against the parent's width, which made phones inside wide
   containers look chunky, so the screen is inset with absolute positioning instead.) The bezel is 1.9% of the
   width, like a current iPhone; the frame's aspect ratio keeps the screen at exactly the screenshots' 600 x 1304;
   the corners are concentric: outer radius 14% of the width, screen 12.1%. */
.phone {
  position: relative;
  aspect-ratio: 600 / 1277;
  padding: 0;
  border-radius: 14% / 6.58%;
  background: linear-gradient(150deg, #3A4A40 0%, #141F18 40%, #0C1811 100%);
  box-shadow:
    inset 0 0 0 1px rgb(244 243 238 / .16),
    0 60px 90px -50px rgb(3 12 7 / .85),
    0 24px 34px -26px rgb(3 12 7 / .7);
}
.phone img, .phone video {
  display: block;
  position: absolute;
  left: 1.9%;
  top: .8926%;
  width: 96.2%;
  height: 98.215%;
  object-fit: cover;
  border-radius: 12.58% / 5.79%;
  background: #E8EAE3;
}

/* ---------- Browser frame (16:10 desktop screenshots of web templates) ---------- */

/* The phone's material (gradient, hairline, shadow) around a desktop window. Inner sizes use container units of
   the frame's own width, like the phone's percentages, so the bezel and bar stay slim at any size. The address
   pill is empty on purpose. */
.browser {
  container-type: inline-size;
  position: relative;
  --bz: 1.4cqi;
  border-radius: var(--r-card);
  background: linear-gradient(150deg, #3A4A40 0%, #141F18 40%, #0C1811 100%);
  box-shadow:
    inset 0 0 0 1px rgb(244 243 238 / .16),
    0 60px 90px -50px rgb(3 12 7 / .85),
    0 24px 34px -26px rgb(3 12 7 / .7);
}
.browser-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 6.6cqi;
  padding-inline: 4.6cqi;
}
.browser-dots { display: flex; gap: 1.1cqi; }
.browser-dots span { width: 1.5cqi; aspect-ratio: 1; border-radius: 50%; background: rgb(244 243 238 / .26); }
.browser-url { width: 36cqi; height: 3.2cqi; border-radius: 999px; background: rgb(244 243 238 / .1); }
.browser img {
  display: block;
  width: calc(100% - 2 * var(--bz));
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 0 var(--bz) var(--bz);
  object-fit: cover;
  object-position: top;
  border-radius: 2px 2px calc(var(--r-card) - var(--bz)) calc(var(--r-card) - var(--bz));
  background: #E8EAE3;
}

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

@property --sp { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --mx { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --my { syntax: "<number>"; inherits: true; initial-value: 0; }

.hero {
  position: relative;
  z-index: 2;
  background:
    radial-gradient(90% 70% at 78% 40%, #1F5239 0%, rgb(31 82 57 / 0) 60%),
    var(--forest);
  color: var(--paper);
  padding: clamp(112px, 12vw, 136px) var(--gutter) clamp(150px, 15vw, 210px);
  overflow-x: clip;
  --focus: var(--mint);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: min(calc(100dvh - 300px), 760px);
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(3.6rem, 8.6vw, 8.75rem);
  line-height: .84;
  letter-spacing: -0.02em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-sub {
  margin-top: clamp(24px, 2.6vw, 36px);
  max-width: 34ch;
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  color: var(--paper-soft);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }

.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1.02;
  width: 100%;
  max-width: 680px;
  justify-self: end;
  perspective: 1800px;
}
.hero-phones {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: var(--r-card);
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--my) * -5deg)) rotateY(calc(var(--mx) * 7deg));
  transition: transform .9s var(--ease-out);
}
.hp { position: absolute; width: 41%; }
.hp-left {
  left: 3%; top: 17%;
  transform: translate3d(0, calc(var(--sp) * -50px), -90px) rotate(-13deg) rotateY(12deg);
}
.hp-right {
  right: 2%; top: 13%;
  transform: translate3d(0, calc(var(--sp) * -90px), -60px) rotate(11deg) rotateY(-12deg);
}
.hp-center {
  width: 45%; left: 28%; top: 3%;
  transform: translate3d(0, calc(var(--sp) * -170px), 40px) rotate(-3deg);
  z-index: 2;
}

.sticker {
  position: absolute;
  z-index: 3;
  display: grid;
  place-content: center;
  text-align: center;
  width: clamp(104px, 10vw, 138px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest);
  box-shadow: 0 24px 40px -24px rgb(3 12 7 / .7);
  transform:
    translate(calc(var(--mx) * var(--d, 1) * 14px), calc(var(--my) * var(--d, 1) * 14px + var(--sp) * var(--d, 1) * -160px))
    rotate(var(--r, 0deg));
  transition: transform .9s var(--ease-out);
}
.sticker strong {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.1rem, 3vw, 2.9rem);
  line-height: .85;
  letter-spacing: -0.01em;
}
.sticker span { font-size: .9rem; font-weight: 600; line-height: 1.2; margin-top: 4px; }
.sticker-free { left: -2%; top: 56%; --d: 1.6; --r: -10deg; }
.sticker-platforms { right: -1%; top: -2%; --d: 1.2; --r: 9deg; background: var(--paper); width: clamp(116px, 11vw, 150px); }
.sticker-platforms strong { font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: .95; padding: 0 12px; }
.sticker-mit { right: 14%; bottom: 0; --d: 2; --r: -6deg; background: var(--lichen); }

.hero-note {
  position: absolute;
  z-index: 3;
  left: -10%; top: 4%;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  color: var(--mint);
  rotate: -7deg;
  transform: translate(calc(var(--mx) * 8px), calc(var(--my) * 8px + var(--sp) * -60px));
  transition: transform .9s var(--ease-out);
}
.note-arrow {
  width: clamp(64px, 6vw, 92px);
  margin: 6px 0 0 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The curved marquee runs along a wave borrowed from the waves in the Strata icon. */
.wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  translate: 0 50%;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.wave-svg { width: max(100%, 1180px); height: auto; margin-left: 50%; translate: -50% 0; overflow: visible; }
.wave-band { fill: none; stroke: var(--mint); stroke-width: 74; }
.wave-text {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 42px;
  letter-spacing: .01em;
  fill: var(--forest);
  dominant-baseline: central;
}

/* Page-load choreography: one orchestrated moment. */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { animation: rise .9s var(--ease-out) both; }
  .hero-title .line:nth-child(2) > span { animation-delay: .06s; }
  .hero-sub, .hero-ctas { animation: fade-up 1s var(--ease-out) both; animation-delay: .32s; }
  .hero-ctas { animation-delay: .42s; }
  .hp { animation: phone-in 1.4s var(--ease-out) both; }
  .hp-left { animation-delay: .28s; }
  .hp-center { animation-delay: .12s; }
  .hp-right { animation-delay: .4s; }
  .sticker, .hero-note { animation: pop .9s var(--ease-out) both; animation-delay: .9s; }
  .sticker-platforms { animation-delay: 1s; }
  .sticker-mit { animation-delay: 1.1s; }
  .hero-note { animation-delay: 1.25s; }

  @supports (animation-timeline: view()) {
    .hero { animation: hero-scroll linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@keyframes rise { from { translate: 0 70%; } to { translate: 0 0; } }
@keyframes fade-up { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes phone-in { from { opacity: 0; translate: 0 160px; } to { opacity: 1; translate: 0 0; } }
@keyframes pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes hero-scroll { to { --sp: 1; } }

@media (max-width: 900px) {
  .hero { padding-top: 104px; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hero-title { font-size: clamp(3.4rem, 15.4vw, 6.5rem); }
  .hero-stage { justify-self: center; max-width: 520px; margin-top: 28px; }
  .hero-note { left: 0; top: -2%; }
  .note-arrow { margin-left: 46%; width: 56px; }
  .sticker-free { left: -1%; top: 60%; }
}

/* ---------- Story ---------- */

.story {
  position: relative;
  z-index: 1;
  background: var(--surface-paper);
  color: var(--on-paper);
  padding: calc(var(--pad-block) + 60px) var(--gutter) var(--pad-block);
}
.story-text {
  max-width: 1180px;
  margin: 0 auto;
  font-family: var(--f-display);
  font-weight: 720;
  font-stretch: 84%;
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.story-text .w { transition: color .35s; }
.js-fill .story-text .w { color: var(--word-off); }
.js-fill .story-text .w.is-on { color: var(--on-paper); }
.story-sign {
  max-width: 1180px;
  margin: clamp(32px, 4vw, 56px) auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
}
.story-name { font-size: clamp(2.2rem, 3.6vw, 3.2rem); color: var(--moss); rotate: -3deg; }
.story-sign a { font-weight: 600; text-underline-offset: 4px; }

/* ---------- Featured template (and per-template colour themes) ---------- */

.theme-moss { --field: var(--moss); --on-field: var(--paper); --on-soft: rgb(244 243 238 / .88); --word: var(--mint); --btn-bg: var(--paper); --btn-fg: var(--forest); --focus: var(--mint); }
.theme-forest { --field: var(--forest); --on-field: var(--paper); --on-soft: rgb(244 243 238 / .8); --word: var(--mint); --btn-bg: var(--mint); --btn-fg: var(--forest); --focus: var(--mint); }
.theme-night { --field: var(--night); --on-field: var(--paper); --on-soft: rgb(244 243 238 / .76); --word: var(--moss); --btn-bg: var(--mint); --btn-fg: var(--forest); --focus: var(--mint); }
.theme-mint { --field: var(--mint); --on-field: var(--forest); --on-soft: rgb(22 64 44 / .86); --word: var(--paper); --btn-bg: var(--forest); --btn-fg: var(--paper); --focus: var(--forest); }
.theme-leaf { --field: var(--leaf); --on-field: var(--paper); --on-soft: rgb(244 243 238 / .88); --word: var(--lime); --btn-bg: var(--paper); --btn-fg: #2C4713; --focus: var(--lime); }
.theme-oxblood { --field: var(--oxblood); --on-field: var(--paper); --on-soft: rgb(244 243 238 / .86); --word: var(--blush); --btn-bg: var(--paper); --btn-fg: #4A1A1D; --focus: var(--blush); }
.theme-ultramarine { --field: var(--ultramarine); --on-field: var(--paper); --on-soft: rgb(244 243 238 / .86); --word: var(--periwinkle); --btn-bg: var(--paper); --btn-fg: #1A2580; --focus: var(--periwinkle); }
.theme-amber { --field: var(--amber); --on-field: var(--umber); --on-soft: rgb(42 23 5 / .84); --word: var(--paper); --btn-bg: var(--umber); --btn-fg: var(--paper); --focus: var(--umber); }
.theme-petrol { --field: var(--petrol); --on-field: var(--paper); --on-soft: rgb(244 243 238 / .86); --word: var(--signal); --btn-bg: var(--signal); --btn-fg: var(--paper); --focus: var(--signal); }
.theme-lichen { --field: var(--lichen); --on-field: var(--forest); --on-soft: rgb(22 64 44 / .84); --word: var(--paper); --btn-bg: var(--forest); --btn-fg: var(--paper); --focus: var(--forest); }
[class*="theme-"] { background: var(--field); color: var(--on-field); --paper-soft: var(--on-soft); --paper-faint: color-mix(in srgb, var(--on-field) 22%, transparent); }

.featured {
  padding: var(--pad-block) var(--gutter);
  overflow-x: clip;
}
.stage {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  height: clamp(560px, 68vw, 940px);
}
.stage-word {
  position: absolute;
  left: 50%; top: 0;
  translate: -50% 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: min(26.5vw, 23rem);
  line-height: .8;
  letter-spacing: -0.045em;
  color: var(--word);
  white-space: nowrap;
  margin: 0;
}
.stage-phones { position: absolute; inset: 0; }
.sp { position: absolute; }
.sp-center { width: clamp(220px, 23%, 300px); left: 50%; top: 15%; translate: -50% 0; z-index: 2; }
.sp-left { width: clamp(180px, 19%, 250px); left: 50%; top: 27%; translate: -150% 0; rotate: -9deg; }
.sp-right { width: clamp(180px, 19%, 250px); left: 50%; top: 22%; translate: 50% 0; rotate: 8deg; }
.stage-note {
  position: absolute;
  right: 4%; bottom: 6%;
  z-index: 3;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  color: var(--on-field);
  rotate: -5deg;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sp-left { animation: fan-left linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    .sp-right { animation: fan-right linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    .stage-word { animation: word-spread linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  }
}
@keyframes fan-left { from { translate: -50% 8%; rotate: 0deg; } }
@keyframes fan-right { from { translate: -50% 12%; rotate: 0deg; } }
@keyframes word-spread { from { letter-spacing: -0.11em; } }

.featured-info {
  max-width: var(--max);
  margin: clamp(48px, 6vw, 88px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.featured-title {
  font-family: var(--f-display);
  font-weight: 760;
  font-stretch: 78%;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  line-height: .95;
  letter-spacing: -0.015em;
  max-width: 16ch;
}
.featured-desc { margin-top: 20px; max-width: 48ch; color: var(--paper-soft); font-size: 1.125rem; }
.featured-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.facts li { border-top: 1px solid var(--paper-faint); padding-top: 14px; display: grid; gap: 4px; }
.facts strong {
  font-family: var(--f-display);
  font-weight: 760;
  font-stretch: 78%;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  line-height: 1;
}
.facts span { color: var(--paper-soft); font-size: .98rem; }

.rail-block { margin-top: clamp(72px, 9vw, 128px); }
.rail-title {
  max-width: var(--max);
  margin: 0 auto;
  font-family: var(--f-display);
  font-weight: 760;
  font-stretch: 80%;
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  line-height: 1;
}
.rail {
  display: flex;
  gap: clamp(18px, 2vw, 28px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  margin: 28px calc(var(--gutter) * -1) 0;
  padding: 16px max(var(--gutter), calc((100vw - var(--max)) / 2)) 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--mint) transparent;
  cursor: grab;
}
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging img { pointer-events: none; }
.rail-item { flex: 0 0 clamp(168px, 17vw, 232px); scroll-snap-align: start; }
.rail-cap { display: block; margin-top: 14px; font-weight: 600; color: var(--paper-soft); }
.rp { box-shadow: inset 0 0 0 1px rgb(244 243 238 / .14), inset 0 0 0 3px #0C1811, 0 30px 50px -30px rgb(3 12 7 / .8); }
/* A web template's pages: browser windows, wider than the phones but scrolling the same way. */
.rail-web .rail-item { flex-basis: clamp(280px, 40vw, 560px); }
/* The rail scrolls, so it clips vertically: a shorter shadow than the card frames, with room below it. */
.rail-web { padding-bottom: 48px; }
.rb { box-shadow: inset 0 0 0 1px rgb(244 243 238 / .16), 0 24px 40px -28px rgb(3 12 7 / .7); }
@media (max-width: 640px) { .rail-web .rail-item { flex-basis: 82vw; } }

@media (max-width: 900px) {
  .stage { height: 150vw; max-height: 820px; }
  .sp-center { width: 46%; }
  .sp-left, .sp-right { width: 38%; }
  .sp-left { translate: -128% 0; top: 22%; }
  .sp-right { translate: 28% 0; top: 16%; }
  .stage-note { right: 0; bottom: 0; }
  .featured-info { grid-template-columns: 1fr; }
}

/* ---------- Template cards (home "More templates" and the catalog) ---------- */

.more {
  background: var(--surface-paper);
  color: var(--on-paper);
  padding: var(--pad-block) max(var(--gutter), calc((100% - var(--max)) / 2));
}
.more-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(32px, 4vw, 56px); }
.more-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.8rem, 6.4vw, 6rem);
  line-height: .86;
  letter-spacing: -0.02em;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.card-item[hidden] { display: none; }
.tcard {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: clamp(460px, 40vw, 560px);
  --tcard-pad: clamp(24px, 2.4vw, 34px);
  padding: var(--tcard-pad);
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
}
.tcard-text { position: relative; z-index: 2; display: grid; gap: 10px; justify-items: start; }
.card-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.8rem, 4.4vw, 4rem);
  line-height: .86;
  letter-spacing: -0.02em;
}
.card-tagline { max-width: 30ch; color: var(--on-soft); }
.tcard-phones { position: relative; min-height: 220px; }
.cp { position: absolute; width: 46%; max-width: 210px; transition: translate .6s var(--ease-out), rotate .6s var(--ease-out); }
.cp-back { right: 30%; top: 22%; rotate: -10deg; }
.cp-front { right: 4%; top: 10%; rotate: 7deg; z-index: 1; }
.tcard:hover .cp-back { translate: -6px -14px; rotate: -13deg; }
.tcard:hover .cp-front { translate: 4px -22px; rotate: 9deg; }
/* Web template cards: two browser windows rising out of the bottom edge, offset like the phones. The card's height
   comes from its content rather than the phone cards' minimum: the window area keeps a fixed proportion and
   reaches through the card's bottom padding, and each window is pinned to that bottom with a margin in % of the
   area's width (so of the window's own size). At any card width the same share of each window sits below the
   edge, and the windows never ride up into the title. */
.tcard-web { min-height: 0; }
.tcard-browsers { position: relative; width: 100%; aspect-ratio: 5 / 3; align-self: stretch; margin-top: 12px; margin-bottom: calc(-1 * var(--tcard-pad)); }
.cb { position: absolute; bottom: 0; width: 86%; transition: translate .6s var(--ease-out), rotate .6s var(--ease-out); }
.cb-back { left: -3%; margin-bottom: -5%; rotate: -4deg; }
.cb-front { right: -3%; margin-bottom: -19%; rotate: 3deg; z-index: 1; }
.tcard:hover .cb-back { translate: -4px -12px; rotate: -5deg; }
.tcard:hover .cb-front { translate: 4px -18px; rotate: 4deg; }
.tcard:focus-visible { outline-offset: 4px; border-radius: var(--r-card); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.1;
}
.chip-strong { background: var(--on-field, var(--ink)); color: var(--field, var(--paper)); border-color: transparent; }

/* ---------- Catalog ---------- */

.cat-head {
  background: var(--forest);
  color: var(--paper);
  padding: clamp(128px, 13vw, 168px) var(--gutter) clamp(48px, 6vw, 80px);
  --focus: var(--mint);
}
.cat-inner { max-width: var(--max); margin: 0 auto; }
/* Flutter apps or web templates: a two-part pill above the title, unlike the bordered filter chips below. */
.section-switch {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  margin-bottom: clamp(28px, 3vw, 40px);
  padding: 4px;
  border-radius: 999px;
  background: rgb(244 243 238 / .1);
}
.section-switch a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--paper-soft);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.section-switch a:hover { color: var(--paper); }
.section-switch a[aria-current="page"] { background: var(--paper); color: var(--forest); }
.section-switch span { font-weight: 500; opacity: .7; }
@media (max-width: 380px) { .section-switch a { padding: 0 14px; font-size: .95rem; } }
.cat-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(4rem, 12vw, 11rem);
  line-height: .8;
  letter-spacing: -0.03em;
}
.cat-lede { margin-top: 20px; font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--paper-soft); max-width: 44ch; }
.search {
  display: flex;
  gap: 6px;
  max-width: 640px;
  margin-top: clamp(28px, 3vw, 40px);
  padding: 6px;
  border-radius: 999px;
  background: var(--paper);
}
.search:focus-within { box-shadow: 0 0 0 4px rgb(169 212 182 / .5); }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 20px;
  color: var(--ink);
  font-size: 1.0625rem;
}
.search input::placeholder { color: #5E685C; }
.search input:focus-visible { outline: none; }
.search .btn { min-height: 52px; }
.filters { display: grid; gap: 10px; margin-top: 24px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgb(244 243 238 / .32);
  color: var(--paper);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.filter:hover { border-color: var(--paper); }
.filter.is-active { background: var(--mint); border-color: var(--mint); color: var(--forest); }
.filter-count { font-weight: 500; opacity: .7; }
.cat-body {
  background: var(--surface-paper);
  color: var(--on-paper);
  padding: clamp(40px, 5vw, 72px) max(var(--gutter), calc((100% - var(--max)) / 2)) var(--pad-block);
  min-height: 40vh;
}
.cat-count { min-height: 1.5em; margin-bottom: 20px; font-weight: 600; color: var(--on-paper-soft); }
.empty { padding: 48px 0; }
.empty-title { font-family: var(--f-display); font-weight: 760; font-stretch: 82%; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; margin-bottom: 12px; }
.empty a { font-weight: 600; text-underline-offset: 4px; }

/* ---------- Template page ---------- */

.tp-hero { padding: clamp(116px, 12vw, 152px) var(--gutter) var(--pad-block); overflow-x: clip; }
.tp-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.back { display: inline-block; margin-bottom: 20px; font-weight: 600; color: var(--on-soft); text-underline-offset: 4px;
  /* The giant title below sets line-height under 1, so its letters reach up over this link and took its clicks. */
  position: relative; z-index: 1; }
.back::before { content: "\2190\00a0"; }
.tp-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(5rem, 15vw, 13rem);
  line-height: .8;
  letter-spacing: -0.035em;
  color: var(--word);
}
.tp-tagline {
  margin-top: 18px;
  max-width: 18ch;
  font-family: var(--f-display);
  font-weight: 760;
  font-stretch: 80%;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: .98;
  letter-spacing: -0.01em;
}
.tp-inner .chips { margin-top: 24px; }
.tp-preview { margin-top: 20px; }
.tp-desc { margin-top: 24px; max-width: 52ch; color: var(--on-soft); font-size: 1.125rem; }
.tp-licence { margin-top: 12px; font-weight: 600; }

.get-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-card);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 50px 90px -50px rgb(3 12 7 / .75);
  --focus: var(--moss);
}
.get-title { font-family: var(--f-display); font-weight: 780; font-stretch: 80%; font-size: 2rem; line-height: 1; }
.get-lede, .get-small { color: #4A5448; }
.get-small a { color: var(--forest); font-weight: 600; }
.get-sent { gap: 12px; }
.get-mark { width: 52px; fill: var(--moss); margin-bottom: 4px; }
.get-card .check { padding-left: 0; }
.get-card .check input { accent-color: var(--forest); }

.form-notice {
  padding: 12px 16px;
  border-radius: var(--r-input);
  background: #F6E3D9;
  color: #6B2412;
  font-weight: 600;
  font-size: .95rem;
}
.field-error { color: #9B2C14; font-size: .92rem; font-weight: 600; }
.news .field-error { color: #6B2412; padding-left: 8px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #9B2C14; }

.tp-hero .rail-block { margin-top: clamp(72px, 9vw, 120px); }

.tp-detail {
  background: var(--surface-paper);
  color: var(--on-paper);
  padding: var(--pad-block) max(var(--gutter), calc((100% - var(--max)) / 2));
}
.tp-detail-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.8rem, 6.4vw, 6rem);
  line-height: .86;
  letter-spacing: -0.02em;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.tp-detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.features h3 { font-family: var(--f-display); font-weight: 740; font-stretch: 84%; font-size: 1.5rem; line-height: 1.05; }
.features h3::before {
  content: "";
  display: block;
  width: 36px; height: 10px;
  margin-bottom: 14px;
  background: var(--moss);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}
.features p { margin-top: 8px; color: var(--on-paper-soft); }
.tp-side { display: grid; gap: 28px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card); background: var(--lichen); color: var(--ink); }
.facts-ink { --paper-faint: rgb(27 32 25 / .16); --paper-soft: #4A5448; }
.tp-side-title { font-family: var(--f-display); font-weight: 740; font-stretch: 84%; font-size: 1.35rem; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -14px; }
.stack li { padding: 8px 14px; border-radius: 999px; background: var(--paper); font-family: var(--f-mono); font-stretch: 90%; font-size: .85rem; }

.tp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(56px, 7vw, 96px) max(var(--gutter), calc((100% - var(--max)) / 2));
}
.tp-cta-title { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .9; max-width: 16ch; letter-spacing: -0.02em; }

@media (max-width: 960px) {
  .tp-inner, .tp-detail-grid { grid-template-columns: 1fr; }
  .get-card { position: static; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
}

/* ---------- Legal pages: privacy policy, data deletion ---------- */

.legal-hero { background: var(--forest); color: var(--paper); --focus: var(--mint); }
.legal-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(136px, 14vw, 184px) var(--gutter) clamp(48px, 6vw, 80px);
  display: grid;
  gap: 22px;
}
.legal-title {
  font-family: var(--f-display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(3rem, 8vw, 6rem); line-height: .86; letter-spacing: -0.02em;
}
.legal-lede { max-width: 58ch; font-size: 1.15rem; color: var(--paper-soft); }
.legal-body {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) var(--pad-block);
  display: grid;
  gap: clamp(32px, 4vw, 48px);
}
.legal-section { display: grid; gap: 14px; max-width: 68ch; }
.legal-section h2 {
  font-family: var(--f-display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: .95; letter-spacing: -0.01em;
}
.legal-section p, .legal-section li { color: var(--on-paper-soft); }
.legal-section strong { color: var(--on-paper); font-weight: 650; }
.legal-section ul, .legal-section ol { display: grid; gap: 10px; padding-left: 1.25em; }
.legal-section ul { list-style: disc; }
.legal-section ol { list-style: decimal; }
.legal-section li::marker { color: var(--moss); }
.legal-section a { color: var(--moss); text-underline-offset: 3px; }

/* ---------- Message pages and standalone forms ---------- */

.page-message main { background: var(--forest); color: var(--paper); --focus: var(--mint); }
.message-block {
  min-height: 78dvh;
  max-width: 820px;
  margin: 0 auto;
  padding: 150px var(--gutter) 96px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
}
.message-mark { width: 64px; fill: var(--mint); margin-bottom: 12px; }
.message-title { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(3rem, 8vw, 6.4rem); line-height: .86; letter-spacing: -0.02em; }
.message-block p { max-width: 46ch; font-size: 1.15rem; color: var(--paper-soft); }
.message-block .btn { margin-top: 12px; }
.page-form main > section:first-child { padding-top: clamp(128px, 13vw, 168px); }

/* ---------- How it works: the three slabs of the mark ---------- */

.how {
  overflow-x: clip;
  background: var(--surface-lichen);
  color: var(--on-paper);
  padding: var(--pad-block) var(--gutter);
}
.how-title {
  max-width: var(--max);
  margin: 0 auto clamp(48px, 6vw, 80px);
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.8rem, 6.4vw, 6rem);
  line-height: .88;
  letter-spacing: -0.02em;
  max-inline-size: 14ch;
  margin-inline: max(0px, calc((100% - var(--max)) / 2)) auto;
}
.slabs { max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(12px, 1.6vw, 22px); --s: clamp(36px, 9vw, 150px); }
.slab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  min-height: clamp(180px, 17vw, 230px);
  padding: 32px calc(var(--s) + 24px);
  color: var(--paper);
}
.slab-1 { background: var(--slab-1); clip-path: polygon(var(--s) 0, calc(100% - var(--s)) 0, 100% 100%, 0 100%); }
.slab-2 { background: var(--slab-2); clip-path: polygon(var(--s) 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%); }
.slab-3 { background: var(--slab-3); color: var(--ink); clip-path: polygon(var(--s) 0, calc(100% - var(--s)) 0, 100% 100%, 0 100%); }
.slab-num {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(4.5rem, 9vw, 8.5rem);
  line-height: .78;
}
.slab-body { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.slab h3 {
  font-family: var(--f-display);
  font-weight: 760;
  font-stretch: 82%;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1;
}
.slab p { max-width: 50ch; opacity: .86; }
.slab-code {
  margin-top: 10px;
  justify-self: start;
  padding: 14px 20px;
  border-radius: var(--r-input);
  background: rgb(12 24 17 / .14);
  font-family: var(--f-mono);
  font-size: .92rem;
  font-stretch: 90%;
  line-height: 1.8;
  white-space: pre;
}
.slab-code span::before { content: "$ "; opacity: .55; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .slab { animation: slab-in linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    .slab-2 { --from: 10%; }
    .slab-1, .slab-3 { --from: -10%; }
  }
}
@keyframes slab-in { from { translate: var(--from, -10%) 0; opacity: 0; } }

@media (max-width: 700px) {
  .slabs { --s: 28px; }
  .slab { grid-template-columns: 1fr; padding: 28px calc(var(--s) + 12px); gap: 12px; align-content: center; }
  .slab-num { font-size: 4rem; }
}

/* ---------- Hire me ---------- */

.hire {
  background: var(--night);
  color: var(--paper);
  padding: var(--pad-block) max(var(--gutter), calc((100% - var(--max)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 580px);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
  --focus: var(--mint);
}
.hire-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(3.2rem, 7.4vw, 7rem);
  line-height: .86;
  letter-spacing: -0.02em;
  max-width: 9ch;
}
.hire-lede { margin-top: 28px; max-width: 40ch; font-size: clamp(1.125rem, 1.4vw, 1.3rem); color: var(--paper-soft); }
.services { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 24px; max-width: 520px; }
.services li { border-top: 1px solid var(--paper-faint); padding-top: 16px; }
.services h3 { font-family: var(--f-display); font-weight: 720; font-stretch: 86%; font-size: 1.35rem; line-height: 1.1; }
.services p { margin-top: 4px; color: var(--paper-soft); }

.hire-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-card);
  padding: clamp(24px, 3.2vw, 44px);
  display: grid;
  gap: 18px;
  box-shadow: 0 50px 90px -50px rgb(0 0 0 / .8);
  --focus: var(--moss);
}
.hire-form-title {
  font-family: var(--f-display);
  font-weight: 760;
  font-stretch: 82%;
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 4px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 620; font-size: .98rem; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--line-ui);
  border-radius: var(--r-input);
  background: var(--input);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.5; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%231B2019' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgb(46 107 76 / .28);
}
.field-hint { font-size: .9rem; color: #4A5448; }
.form-foot { font-size: .92rem; color: #4A5448; text-align: center; }
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 960px) {
  .hire { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Newsletter ---------- */

.news {
  background: var(--mint);
  color: var(--forest);
  padding: var(--pad-block) var(--gutter);
  text-align: center;
  --focus: var(--forest);
}
.news-title {
  max-width: 11ch;
  margin: 0 auto;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(3.4rem, 10vw, 9.5rem);
  line-height: .84;
  letter-spacing: -0.025em;
}
.news-lede { margin: 28px auto 0; font-size: clamp(1.125rem, 1.5vw, 1.35rem); font-weight: 520; }
.news-form { max-width: 640px; margin: clamp(36px, 4vw, 52px) auto 0; text-align: left; display: grid; gap: 14px; }
.news-label { font-weight: 650; padding-left: 8px; }
.news-row {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid var(--forest);
  transition: box-shadow .2s;
}
.news-row:focus-within { box-shadow: 0 0 0 4px rgb(22 64 44 / .3); }
.news-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 20px;
  font-size: 1.0625rem;
  color: var(--ink);
}
.news-row input:focus-visible { outline: none; }
.check { display: flex; gap: 12px; align-items: flex-start; padding-left: 8px; font-size: .98rem; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--forest); }

@media (max-width: 520px) {
  .news-row { flex-direction: column; border-radius: var(--r-card); padding: 8px; }
  .news-row input { min-height: 52px; }
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--surface-paper);
  color: var(--on-paper);
  padding: var(--pad-block) max(var(--gutter), calc((100% - var(--max)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
}
.faq-head { position: sticky; top: 112px; align-self: start; }
.faq-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(3.2rem, 7.4vw, 7rem);
  line-height: .86;
  letter-spacing: -0.02em;
}
.faq-more { margin-top: 20px; color: var(--on-paper-soft); }
.faq-more a { color: var(--on-paper); font-weight: 600; text-underline-offset: 4px; }

.qa { border-bottom: 1px solid var(--on-paper-faint); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-weight: 680;
  font-stretch: 88%;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.15;
}
.qa summary::-webkit-details-marker { display: none; }
.qa-icon {
  position: relative;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--forest);
  transition: rotate .45s var(--ease-out), background-color .2s;
}
.qa-icon::before, .qa-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2px;
  translate: -50% -50%;
  border-radius: 2px;
  background: var(--paper);
}
.qa-icon::after { rotate: 90deg; }
.qa[open] .qa-icon { rotate: 135deg; background: var(--moss); }
.qa p { padding: 0 64px 28px 0; max-width: 62ch; color: var(--on-paper-soft); font-size: 1.0625rem; }

@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .qa::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete; }
  .qa[open]::details-content { block-size: auto; }
}

@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .qa p { padding-right: 0; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest);
  color: var(--paper);
  padding: clamp(72px, 9vw, 128px) var(--gutter) 0;
  overflow: hidden;
  --focus: var(--mint);
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr .8fr; gap: 32px; }
.footer-lede {
  font-family: var(--f-display);
  font-weight: 720;
  font-stretch: 84%;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.05;
  max-width: 20ch;
}
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { color: var(--paper-soft); text-decoration: none; font-weight: 520; }
.footer-links a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { margin-top: clamp(48px, 6vw, 80px); font-size: .9rem; color: var(--paper-soft); }
.footer-word {
  margin: clamp(24px, 3vw, 40px) 0 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 23.2vw;
  line-height: .74;
  letter-spacing: -0.035em;
  color: var(--mint);
  text-align: center;
  white-space: nowrap;
  translate: 0 .1em;
}

@media (max-width: 860px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
}

/* ---------- Error page ---------- */

.page-error main { background: var(--forest); color: var(--paper); --focus: var(--mint); }
.error-block {
  min-height: 80dvh;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 18px;
  padding: 140px var(--gutter) 80px;
  max-width: 900px;
  margin: 0 auto;
}
.error-code { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(7rem, 22vw, 16rem); line-height: .8; color: var(--mint); }
.error-title { font-family: var(--f-display); font-weight: 780; font-stretch: 78%; font-size: clamp(2.2rem, 5vw, 4rem); line-height: .95; }
.error-block p:not(.error-code) { color: var(--paper-soft); }

/* ---------- Specimen (/design, development only) ---------- */

.spec { padding: 140px var(--gutter) 96px; }
.spec-hero { background: var(--forest); color: var(--paper); }
.spec-paper { background: var(--surface-paper); padding-top: 80px; }
.spec-brand { display: flex; align-items: center; gap: 14px; max-width: var(--max); margin: 0 auto; color: var(--paper-soft); font-weight: 600; }
.spec-mark { width: 44px; fill: var(--paper); }
.spec-xxl { max-width: var(--max); margin: 36px auto 0; font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(4rem, 12vw, 11rem); line-height: .84; letter-spacing: -0.02em; }
.spec-grid { max-width: var(--max); margin: 64px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.spec-paper .spec-grid { margin-top: 0; }
.spec-label { font-size: .9rem; font-weight: 600; opacity: .7; margin-bottom: 12px; }
.spec-display { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .9; }
.spec-serif { font-family: var(--f-note); font-style: italic; font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1; color: var(--mint); }
.spec-h2 { font-family: var(--f-display); font-weight: 760; font-stretch: 80%; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: .95; margin-bottom: 36px; }
.spec-body { max-width: 54ch; color: var(--on-paper-soft); }
.spec-mono { font-family: var(--f-mono); font-stretch: 90%; font-size: .95rem; line-height: 1.8; padding: 20px 24px; border-radius: var(--r-input); background: var(--forest); color: var(--mint); overflow-x: auto; }
.spec-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.spec-stickers { display: flex; gap: 20px; margin-top: 28px; }
.spec-stickers .sticker { position: static; transform: rotate(-8deg); }
.spec-stickers .sticker-alt { background: var(--lichen); transform: rotate(7deg); }
.swatches { max-width: var(--max); margin: 64px auto 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.swatch { aspect-ratio: 3 / 4; border-radius: var(--r-input); padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; font-size: .88rem; box-shadow: inset 0 0 0 1px rgb(27 32 25 / .1); }
.swatch strong { font-family: var(--f-display); font-stretch: 84%; font-size: 1.3rem; }
.swatch-forest { background: var(--forest); color: var(--paper); }
.swatch-night { background: var(--night); color: var(--paper); }
.swatch-moss { background: var(--moss); color: var(--paper); }
.swatch-mint { background: var(--mint); color: var(--forest); }
.swatch-lichen { background: var(--lichen); color: var(--forest); }
.swatch-paper { background: var(--paper); color: var(--ink); }
.swatch-ink { background: var(--ink); color: var(--paper); }
@media (max-width: 860px) {
  .spec-grid { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .hero-phones, .sticker, .hero-note { transform: none; }
  .hp-left { transform: rotate(-13deg); }
  .hp-right { transform: rotate(11deg); }
  .hp-center { transform: rotate(-3deg); }
  .sticker { transform: rotate(var(--r, 0deg)); }
}

/* ---------- Accounts, pricing and billing (PAID_MODE) ---------- */

.form-notice[role="status"] { background: var(--lichen); color: var(--forest); }
.acct { background: var(--surface-paper); color: var(--on-paper); padding: clamp(128px, 13vw, 168px) var(--gutter) var(--pad-block, 96px); }
.acct-inner { max-width: 1040px; margin: 0 auto; display: grid; gap: 24px; }
.acct-narrow { max-width: 520px; }
.acct-title { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(2.6rem, 7vw, 5rem); line-height: .9; letter-spacing: -0.02em; }
.acct-lede { max-width: 60ch; font-size: 1.15rem; color: var(--on-paper-soft); }
.acct-lede strong { color: var(--on-paper); overflow-wrap: anywhere; }
.acct-note { max-width: 70ch; font-size: .92rem; color: var(--on-paper-soft); }
.acct-note a { color: var(--moss); }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.acct-card { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--r-card); background: var(--input); border: 1px solid var(--on-paper-faint); }
.acct-card p { color: var(--on-paper-soft); }
.acct-card-title { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--moss); }
.acct-big { font-family: var(--f-display); font-weight: 780; font-stretch: 80%; font-size: 2.2rem; line-height: 1; color: var(--on-paper) !important; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.acct-signout { justify-self: start; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--moss); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-mint { color: var(--mint); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.plan { position: relative; display: grid; gap: 16px; align-content: start; padding: 32px 28px; border-radius: var(--r-card); background: var(--input); border: 1px solid var(--on-paper-faint); }
.plan-best { background: var(--forest); color: var(--paper); border-color: var(--forest); --focus: var(--mint); }
.plan-flag { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--mint); color: var(--forest); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.plan-name { font-family: var(--f-display); font-weight: 780; font-stretch: 80%; font-size: 2rem; line-height: 1; }
.plan-price strong { font-family: var(--f-display); font-weight: 800; font-size: 3rem; letter-spacing: -0.02em; }
.plan-price span { color: var(--on-paper-soft); }
.plan-best .plan-price span { color: var(--paper-soft); }
.plan-points { display: grid; gap: 10px; padding-left: 1.2em; list-style: disc; }
.plan-points li::marker { color: var(--moss); }
.plan-best .plan-points li::marker { color: var(--mint); }
.plan-best .btn-forest { background: var(--mint); color: var(--forest); }
.get-card .btn + form, .get-card form + .btn, .get-card .btn + .btn { margin-top: 10px; }

/* Loyalty streak ladder and the cancellation step */
.plan-streak { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: var(--lichen); }
.plan-streak-title { font-weight: 700; color: var(--forest); font-size: .95rem; }
.streak { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; padding: 0; }
.streak-step { position: relative; display: grid; gap: 2px; justify-items: center; padding: 14px 8px; border-radius: 14px; background: var(--input); border: 1px solid var(--on-paper-faint); color: var(--on-paper); text-align: center; }
.streak-step:nth-child(2) { transform: translateY(-6px); }
.streak-step:nth-child(3) { transform: translateY(-12px); }
.streak-q { font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.streak-l { font-size: .82rem; color: var(--on-paper-soft); }
.streak-step.is-done { background: var(--lichen); border-color: var(--lichen); }
.streak-step.is-now { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.streak-step.is-now .streak-l { color: var(--paper-soft); }
.streak-you { margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--mint); color: var(--forest); font-size: .72rem; font-weight: 700; }
.acct-streak .streak { margin: 14px 0 4px; }
.streak-warn { font-weight: 650; color: #9B2C14 !important; }
.acct-mid { max-width: 720px; }
.loss-list { display: grid; gap: 10px; padding-left: 1.2em; list-style: disc; color: var(--on-paper); }
.loss-list li::marker { color: #9B2C14; }
.acct-cancel { align-self: center; font-size: .95rem; }
.back-ink { color: var(--moss); }
.acct-grid .acct-streak { grid-column: 1 / -1; }
.acct-streak .streak { max-width: 560px; }
