/* Koalaa: ideas, made real. Ink sketches on warm paper that become crisp, working interfaces. */

:root {
  --paper: #f6f1e7;
  --paper-tint: #efe8da;
  --paper-raised: #fffdf8;
  --ink: #141413;
  --ink-soft: #3a3833;
  --muted: #67635b;
  --line: rgba(20, 20, 19, 0.13);
  --line-strong: rgba(20, 20, 19, 0.5);
  --field: rgba(20, 20, 19, 0.04);
  --accent: #1f46e0;
  --accent-hover: #1838b8;
  --accent-ink: #ffffff;
  --accent-soft: rgba(31, 70, 224, 0.1);
  --accent-tint: #e3e8fb;
  --on-ink: #f6f1e7;
  --error: #b3261e;
  --success: #1d6b3a;
  --shadow: 0 1px 2px rgba(20, 20, 19, 0.06), 0 12px 32px -12px rgba(20, 20, 19, 0.18);

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --gutter: 16px;
  --max: 1180px;
  --header-h: 64px;
  --radius: 999px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131312;
    --paper-tint: #1a1a18;
    --paper-raised: #1e1e1c;
    --ink: #f3f0e8;
    --ink-soft: #d3cfc6;
    --muted: #a39f96;
    --line: rgba(243, 240, 232, 0.14);
    --line-strong: rgba(243, 240, 232, 0.55);
    --field: rgba(243, 240, 232, 0.06);
    --accent: #7f9bff;
    --accent-hover: #a3b7ff;
    --accent-ink: #0b1233;
    --accent-soft: rgba(127, 155, 255, 0.16);
    --accent-tint: #232b47;
    --on-ink: #131312;
    --error: #ff9a8f;
    --success: #86d6a2;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

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

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.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;
}

/* Small letter-spaced capitals, echoing "TECHNOLOGIES" (legal pages and labels). */
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.hand-note {
  font-family: var(--hand);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  transform: rotate(-3deg);
  transform-origin: left bottom;
  margin-bottom: 10px;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.text-link:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pill-outline { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }

.demo-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled,
.site-header.menu-open { border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.brand { display: block; flex: none; margin-right: auto; border-radius: 4px; }
.brand img { width: 96px; }
@media (min-width: 720px) { .brand img { width: 122px; } }

.site-nav { order: 2; }
.signin { order: 3; }

.nav-list a,
.footer-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-list a { display: block; padding: 8px 2px; }
.nav-list a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.45em; }

.signin {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.signin:hover { background: var(--ink); color: var(--paper); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--ink);
  font: 600 0.875rem/1 var(--sans);
  cursor: pointer;
}
.menu-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.menu-icon-close,
.menu-open .menu-icon-open { display: none; }
.menu-open .menu-icon-close { display: block; }

.nav-list {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  padding: 8px var(--gutter) 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.menu-open .nav-list { display: block; }
.menu-open .nav-list li + li { border-top: 1px solid var(--line); }
.menu-open .nav-list a { padding: 16px 0; font-size: 1.0625rem; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav-list { display: flex; position: static; gap: 32px; padding: 0; background: none; border: 0; }
  .site-nav { order: 1; margin-right: 28px; }
}
@media (max-width: 359px) {
  .signin { padding: 0 12px; }
  .menu-toggle-label { display: none; }
}

/* ---- Ink drawing (shared) ---- */

.stroke { overflow: visible; }
.stroke path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.stroke-divider { width: 160px; height: 22px; margin: 0 0 48px; color: var(--ink); }

.ink { overflow: visible; color: var(--ink); }
/* No non-scaling-stroke here: with pathLength it breaks the draw-on in Chrome. */
.ink path, .ink rect, .ink circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ink .accent { stroke: var(--accent); stroke-width: 2; }
.ink .accent-fill { fill: var(--accent); stroke: none; }
.ink .ink-fill { fill: var(--line); stroke: none; }
.ink .dashed { stroke-dasharray: 6 6; stroke-width: 1.4; }
.ink .cursor-ink { fill: var(--ink); stroke: var(--paper); stroke-width: 1; }
.ink .live-dot { fill: var(--success); stroke: none; }
.ink .w3 { --delay: 0.3s; } .ink .w4 { --delay: 0.4s; } .ink .w5 { --delay: 0.5s; } .ink .w7 { --delay: 0.7s; }
.ink .w8 { --delay: 0.8s; } .ink .w9 { --delay: 0.9s; } .ink .w10 { --delay: 1s; }
.ink-hand { font-family: var(--hand); font-size: 18px; font-weight: 600; fill: var(--accent); }
.ink-hand-lg { font-size: 26px; }
.ink-small { font-family: var(--sans); font-size: 10px; font-weight: 600; fill: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .stroke path { stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: 0; }
  .stroke.is-drawn path { animation: draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards; }

  .ink-draw path[pathLength] { stroke-dasharray: 1 1; transition: stroke-dashoffset 1.3s cubic-bezier(0.65, 0, 0.35, 1) var(--delay, 0s), opacity 0.1s linear var(--delay, 0s); }
  /* Hidden as well as undrawn: a round line end would otherwise paint a dot. */
  .ink-draw:not(.is-drawn) path[pathLength] { stroke-dashoffset: 1; opacity: 0; transition-duration: 0s; }
  .ink-draw .ink-fill, .ink-draw .accent-fill, .ink-draw .ink-hand, .ink-draw .dashed, .ink-draw .cursor-ink, .ink-draw .live-dot, .ink-draw .ink-small {
    transition: opacity 0.6s ease 0.9s;
  }
  .ink-draw:not(.is-drawn) :is(.ink-fill, .accent-fill, .ink-hand, .dashed, .cursor-ink, .live-dot, .ink-small) { opacity: 0; }
}
@keyframes draw {
  0% { stroke-dashoffset: 1; opacity: 0; }
  4% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

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

.hero { padding: 32px 0 56px; }
@media (min-width: 720px) { .hero { padding: 48px 0 80px; } }

.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; }
}

.hero h1 {
  font-size: clamp(3rem, 10.5vw, 6rem);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
}
.real { position: relative; display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; padding-right: 0.04em; }
.real .underline {
  position: absolute;
  left: -2%;
  bottom: -0.06em;
  width: 104%;
  height: 0.2em;
  color: var(--accent);
  overflow: visible;
}
.real .underline path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.real-ink { display: inline-block; }
/* The same word as a pencil sketch, laid over the inked one (hidden unless the script shows it). */
.real-sketch {
  position: absolute;
  left: -0.02em;
  bottom: 0.02em;
  font-family: var(--hand);
  font-style: normal;
  font-weight: 500;
  font-size: 1.12em;
  line-height: 1;
  letter-spacing: 0;
  color: var(--muted);
  opacity: 0;
  transform: rotate(-3deg);
  pointer-events: none;
}
.spark {
  position: absolute;
  top: 0.08em;
  right: -0.46em;
  width: 0.42em;
  height: 0.42em;
  overflow: visible;
}
.spark path { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; }
.hero h1 .w { display: inline-block; }

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .hero h1 .w, .hero h1 .real { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero h1 .w2 { animation-delay: 0.1s; }
  .hero h1 .real { animation-delay: 0.2s; }
  .real-ink { transition: opacity 0.55s ease, filter 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .real-sketch { transition: opacity 0.45s ease, transform 0.55s ease; }
  .hero h1.is-sketch .real-ink { opacity: 0; filter: blur(3px); transform: translateY(0.06em); }
  .hero h1.is-sketch .real-sketch { opacity: 1; }
  .hero h1:not(.is-sketch) .real-sketch { transform: rotate(-3deg) translateY(-0.1em); }
  .spark { transition: opacity 0.35s ease 0.55s, transform 0.5s cubic-bezier(0.3, 1.6, 0.4, 1) 0.55s; transform-origin: 0 100%; }
  .hero h1:not(.is-inked) .spark { opacity: 0; transform: scale(0.3); transition-delay: 0s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.3em); } }

.hero-sub { max-width: 34rem; font-size: 1.1875rem; color: var(--ink-soft); margin-bottom: 32px; text-wrap: pretty; }
@media (min-width: 720px) { .hero-sub { font-size: 1.3125rem; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .hero-actions .btn { flex: 1 1 100%; } }

/* The stage */
.hero-stage { margin: 0; }
.hs { width: 100%; height: auto; aspect-ratio: 600 / 470; overflow: visible; }
.hs text { font-family: var(--sans); }
.hs .hs-hand { font-family: var(--hand); font-size: 34px; font-weight: 600; fill: var(--ink); }
.hs .hs-hand-sm { font-size: 20px; fill: var(--accent); }
.hs-surface { fill: var(--paper-raised); stroke: var(--ink); stroke-width: 1.4; }
.hs-lift { filter: drop-shadow(0 10px 18px rgba(20, 20, 19, 0.14)); }
.hs-hair { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.hs-dot { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.hs-pill { fill: var(--field); stroke: none; }
.hs-url { font-size: 9.5px; fill: var(--muted); }
.hs-h { font-size: 19px; font-weight: 700; fill: var(--ink); letter-spacing: -0.02em; }
.hs-b { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.hs-b2 { font-size: 12px; font-weight: 600; fill: var(--accent); }
.hs-muted { font-size: 10.5px; fill: var(--muted); }
.hs-tiny { font-size: 9px; }
.hs-row { font-size: 11px; fill: var(--ink); }
.hs-card { fill: var(--paper-raised); stroke: var(--line-strong); stroke-width: 1; }
.hs-card.is-on { stroke: var(--accent); stroke-width: 1.6; }
.hs-accent-fill { fill: var(--accent); }
.hs-accent-t { font-size: 11px; font-weight: 700; fill: var(--accent); }
.hs-tick { fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hs-tick-lg { stroke-width: 2.2; }
.hs-wd { font-size: 9px; fill: var(--muted); text-anchor: middle; }
.hs-day { fill: var(--paper-raised); stroke: var(--line); }
.hs-day.is-on { fill: var(--accent); stroke: var(--accent); }
.hs-day.is-off { fill: var(--field); stroke: none; }
.hs-dn { font-size: 11.5px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.hs-dn.is-on { fill: var(--accent-ink); }
.hs-dn.is-off { fill: var(--muted); opacity: 0.6; }
.hs-slot { fill: var(--paper-raised); stroke: var(--line-strong); stroke-width: 1; }
.hs-slot.is-off { fill: var(--field); stroke: none; }
.hs-st { font-size: 11px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.hs-st.is-off { fill: var(--muted); text-decoration: line-through; opacity: 0.6; }
.hs-pick { fill: var(--accent); stroke: var(--accent); }
.hs-pick-t { fill: var(--accent-ink); }
.hs-btn { fill: var(--accent); }
.hs-btn-t { font-size: 12px; font-weight: 600; fill: var(--accent-ink); }
.hs-toast-bg { fill: var(--ink); filter: drop-shadow(0 10px 16px rgba(20, 20, 19, 0.2)); }
.hs-toast-h { font-size: 13px; font-weight: 700; fill: var(--paper); }
.hs-toast-s { font-size: 10.5px; fill: var(--paper); opacity: 0.8; }
.hs-new-bg { fill: var(--accent-soft); }
.hs-badge { font-size: 8.5px; font-weight: 700; fill: var(--accent-ink); }
.hs-arrow { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
.hs-cursor { opacity: 0; transform: translate(292px, 280px); }
.hs-cursor path { fill: var(--ink); stroke: var(--paper-raised); stroke-width: 1.4; stroke-linejoin: round; }
.hs-sketch { opacity: 0; }
.hs-sk { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
.hs-note-wipe { transform-box: fill-box; transform-origin: left center; }
/* Stagger steps as classes: the site's security policy blocks inline style attributes. */
.hs-part.d0 { --d: 0ms; } .hs-part.d1 { --d: 90ms; } .hs-part.d2 { --d: 180ms; } .hs-part.d3 { --d: 270ms; }

/* Motion. The finished state above is the default; the starting state only
   applies when scripts run and motion is welcome, so nothing is ever hidden
   without a script to reveal it. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .hero-stage .hs-note-wipe { transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1); }
  .hero-stage:not(.s-note) .hs-note-wipe { transform: scaleX(0); }

  .hero-stage .hs-sketch { opacity: 1; transition: opacity 0.6s ease; }
  .hero-stage.s-resolve .hs-sketch { opacity: 0; }
  .hero-stage .hs-sk { transition: stroke-dashoffset 0.6s cubic-bezier(0.45, 0, 0.3, 1) var(--delay, 0ms); }
  .hero-stage:not(.s-sketch) .hs-sk { stroke-dashoffset: 1; }

  .hero-stage .hs-final { transition: opacity 0.6s ease; }
  .hero-stage:not(.s-resolve) .hs-final { opacity: 0; }
  .hero-stage .hs-part { transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms), opacity 0.6s ease var(--d, 0ms); }
  .hero-stage:not(.s-resolve) .hs-part { opacity: 0; transform: translateY(8px); }

  .hero-stage .hs-pick, .hero-stage .hs-pick-t, .hero-stage .hs-btn, .hero-stage .hs-btn-t { transition: fill 0.25s ease, stroke 0.25s ease; }
  .hero-stage:not(.s-select) .hs-pick { fill: var(--paper-raised); stroke: var(--line-strong); }
  .hero-stage:not(.s-select) .hs-pick-t { fill: var(--ink); }
  .hero-stage:not(.s-select) .hs-btn { fill: var(--field); }
  .hero-stage:not(.s-select) .hs-btn-t { fill: var(--muted); }

  .hero-stage .hs-toast { transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
  .hero-stage:not(.s-booked) .hs-toast { opacity: 0; transform: translateY(12px); }

  .hero-stage .hs-dash { transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .hero-stage:not(.s-dash) .hs-dash { opacity: 0; transform: translate(18px, 12px); }
  .hero-stage.s-dash .hs-new-bg { animation: hs-glow 1.4s ease 0.5s 1; }

  .hero-stage .hs-anno text { transition: opacity 0.5s ease 0.3s; }
  .hero-stage:not(.s-anno) .hs-anno text { opacity: 0; }
  .hero-stage .hs-arrow { transition: stroke-dashoffset 0.7s ease; }
  .hero-stage:not(.s-anno) .hs-arrow { stroke-dashoffset: 1; }

  .hero-stage .hs-cursor { transition: transform 0.95s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s ease; transform: translate(560px, 210px); }
  .hero-stage.s-cursor .hs-cursor { transform: translate(292px, 280px); }
  .hero-stage.s-cursor:not(.s-dash) .hs-cursor { opacity: 1; }
  .hero-stage.s-select:not(.s-booked) .hs-cursor path { transform: scale(0.88); transform-box: fill-box; transform-origin: 0 0; }

  .hero-stage .hs { transition: opacity 0.6s ease; }
  .hero-stage.s-out .hs { opacity: 0; }
  .hero-stage.is-reset, .hero-stage.is-reset * { transition: none !important; animation: none !important; }
}
@keyframes hs-glow {
  0%, 100% { fill: var(--accent-soft); }
  40% { fill: rgba(31, 70, 224, 0.28); }
}

.hero-stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 14px;
  font-size: 0.9375rem;
}
.replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.replay:hover { border-color: var(--ink); }
.replay svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.replay .i-play { display: none; fill: currentColor; stroke: none; }
.replay.is-paused .i-play { display: block; }
.replay.is-paused .i-pause { display: none; }

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

.section { padding: 80px 0; }
@media (min-width: 720px) { .section { padding: 112px 0; } }
.section-tint { background: var(--paper-tint); }

.section-head { max-width: 44rem; margin-bottom: 48px; }
@media (min-width: 720px) { .section-head { margin-bottom: 64px; } }

.section h2 {
  font-size: clamp(2.125rem, 5.6vw, 3.5rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede { margin-top: 18px; font-size: 1.1875rem; color: var(--ink-soft); max-width: 38rem; text-wrap: pretty; }

.section h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }

/* ---- Work: working demos ---- */

.demo {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.demo:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 960px) {
  .demo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; padding: 56px 0; }
  .demo-flip .demo-copy { order: 2; }
}
.demo-copy h3 { font-size: clamp(1.625rem, 3vw, 2.125rem); margin: 10px 0 22px; letter-spacing: -0.03em; }
.demo-facts { display: grid; gap: 16px; }
.demo-facts > div { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.demo-facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.demo-facts dd { color: var(--ink-soft); }
.demo-facts > div:last-child dd { color: var(--ink); font-weight: 600; }

/* A clean browser window around each demo */
.ui-window {
  background: var(--paper-raised);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.9375rem;
}
.ui-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.ui-bar span { width: 9px; height: 9px; border-radius: 50%; border: 1.2px solid var(--line-strong); }
.ui-bar em {
  flex: 1;
  margin-left: 12px;
  max-width: 280px;
  padding: 2px 12px;
  border-radius: var(--radius);
  background: var(--field);
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-body { padding: 20px; }
@media (min-width: 640px) { .ui-body { padding: 24px 28px 28px; } }
.ui-brand { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.ui-brand strong { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.ui-brand span, .ui-muted { color: var(--muted); font-size: 0.8125rem; font-weight: 400; }

.ui-group { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.ui-group legend { padding: 0; margin-bottom: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ui-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ui-services { display: grid; gap: 8px; }
@media (min-width: 640px) { .ui-services { grid-template-columns: repeat(3, 1fr); } }

.ui-option, .ui-chip { position: relative; cursor: pointer; }
.ui-option input, .ui-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ui-option span {
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ui-option b { font-weight: 600; font-size: 0.9375rem; }
.ui-option small { color: var(--muted); font-size: 0.8125rem; }
.ui-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.ui-option:hover span, .ui-chip:hover span { border-color: var(--ink); }
.ui-option input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.ui-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ui-option input:focus-visible + span, .ui-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ui-chip.is-taken { cursor: not-allowed; }
.ui-chip.is-taken span { border-style: dashed; color: var(--muted); text-decoration: line-through; opacity: 0.7; }

.ui-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.ui-btn {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.ui-btn:hover { background: var(--accent-hover); }
.ui-hint { color: var(--muted); font-size: 0.875rem; }
.ui-link { padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }

.booking.is-done .ui-group, .booking.is-done .ui-actions { display: none; }
.ui-done { display: grid; justify-items: start; gap: 6px; padding: 8px 0 4px; }
.ui-done:focus { outline: none; }
.ui-done-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); margin-bottom: 6px; }
.ui-done-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ui-done-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.ui-done-text { color: var(--ink-soft); max-width: 30rem; margin-bottom: 8px; }

.ui-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.ui-chip-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ui-chip-btn:hover { border-color: var(--ink); }
.ui-chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ui-count { margin: 14px 0 12px; color: var(--muted); font-size: 0.8125rem; }
.ui-cars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .ui-cars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ui-cars li { display: grid; gap: 1px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; animation: fade-in 0.3s ease; }
.ui-cars b { font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.ui-cars small { color: var(--muted); font-size: 0.75rem; }
.ui-cars span { margin-top: 4px; color: var(--accent); font-weight: 700; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
/* Drawn through <use>, so the line style is inherited rather than selected. */
.car { width: 100%; height: auto; margin-bottom: 8px; padding: 6px 4px; border-radius: 6px; background: var(--field); color: var(--ink); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.ui-two { display: grid; gap: 20px; }
@media (min-width: 640px) { .ui-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.ui-panel-title { font-weight: 700; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ui-mini-form { display: grid; gap: 6px; align-content: start; }
.ui-mini-form label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.ui-mini-form input, .ui-mini-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9375rem;
  resize: vertical;
}
.ui-mini-form input:focus-visible, .ui-mini-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ui-mini-form .ui-btn { justify-self: start; margin-top: 8px; }
.ui-inbox { padding: 14px; border-radius: 10px; background: var(--field); }
.ui-inbox ul { display: grid; gap: 8px; }
.ui-inbox li { display: grid; gap: 1px; padding: 10px 12px; border-radius: 8px; background: var(--paper-raised); border: 1px solid var(--line); }
.ui-inbox li b { font-size: 0.875rem; }
.ui-inbox li span { font-size: 0.875rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.ui-inbox li small { font-size: 0.75rem; color: var(--muted); }
.ui-inbox li.is-new { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); animation: arrive 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ui-inbox li.is-new small { color: var(--accent); font-weight: 600; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes arrive { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ui-cars li, .ui-inbox li.is-new { animation: none; } }

/* ---- Needs ---- */

.needs { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (min-width: 800px) { .needs { grid-template-columns: repeat(2, 1fr); } }
.need { display: grid; gap: 20px; align-content: start; padding: 28px 24px 32px; background: var(--paper-tint); }
@media (min-width: 720px) { .need { padding: 40px 36px 40px; grid-template-columns: 150px 1fr; gap: 28px; } }
.need-art { width: 150px; height: auto; }
.need h3 { margin-bottom: 8px; }
.need p { color: var(--ink-soft); }
.need-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; font-size: 0.9375rem; }

.feature-list { margin-top: 32px; border-top: 1px solid var(--line-strong); }
.feature-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.feature-list summary::-webkit-details-marker { display: none; }
.feature-list summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--accent); }
.feature-list[open] summary::after { content: "\2212"; }
.features { display: grid; gap: 0 40px; padding-bottom: 8px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features li { display: grid; gap: 4px; align-content: start; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.9688rem; }
.features b { color: var(--ink); font-weight: 600; }
.features .pill { justify-self: start; }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-weight: 700;
  font-size: 0.875rem;
}

/* ---- Process: one window, four stages ---- */

.proc { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .proc { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; } }
.proc-stage { margin: 0; }
.ps { width: 100%; height: auto; aspect-ratio: 560 / 380; overflow: visible; }
.ps text { font-family: var(--sans); }

/* Which layers each step shows (the default, without JavaScript, is step 4). */
.ps .pl-sketch, .ps .pl-wire, .ps .pl-design, .ps .pl-review, .ps .pl-live, .ps .pu-3, .ps .pu-4 { opacity: 0; transition: opacity 0.5s ease; }
.ps .pl-frame { transition: opacity 0.5s ease; }
.at-1 .pl-sketch { opacity: 1; }
.at-1 .pl-frame { opacity: 0; }
.at-2 .pl-wire { opacity: 1; }
.at-3 .pl-design, .at-4 .pl-design { opacity: 1; }
.at-3 .pl-review, .at-3 .pu-3 { opacity: 1; }
.at-4 .pl-live, .at-4 .pu-4 { opacity: 1; }

.ps .ps-rough { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
.ps .ps-hand { font-family: var(--hand); font-size: 19px; font-weight: 600; fill: var(--ink); }
.ps-note { transform-box: fill-box; transform-origin: center; transform: rotate(3deg); }
.ps-sticky { fill: var(--accent-tint); }
.ps-arrow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }

.ps-surface { fill: var(--paper-raised); stroke: var(--ink); stroke-width: 1.5; }
.ps-hair { fill: none; stroke: var(--line-strong); }
.ps-dot { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.ps-pill { fill: var(--field); }
.ps-url { font-size: 9.5px; fill: var(--muted); }
.ps-lock { fill: none; stroke: var(--success); stroke-width: 1.3; stroke-linejoin: round; }

.ps-guide { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 4; opacity: 0.5; }
.pw-b { fill: var(--line); transform-box: fill-box; transform-origin: center; }
.ps-measure path { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.ps-measure text { font-size: 9.5px; font-weight: 700; fill: var(--accent); }

.ps-logo { font-size: 13px; font-weight: 700; fill: var(--ink); letter-spacing: -0.01em; }
.ps-nav { font-size: 10px; fill: var(--muted); }
.ps-img { fill: var(--field); stroke: var(--line-strong); }
.ps-line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.ps-h { font-size: 19px; font-weight: 700; fill: var(--ink); letter-spacing: -0.02em; }
.ps-body { font-size: 10.5px; fill: var(--muted); }
.ps-btn { fill: var(--accent); }
.ps-btn-t { font-size: 11px; font-weight: 600; fill: var(--accent-ink); }
.ps-cta { transform-box: fill-box; transform-origin: center; }
.ps-card { fill: var(--paper-raised); stroke: var(--line-strong); }
.ps-band { fill: var(--accent-soft); }
.ps-ct { font-size: 11px; font-weight: 700; fill: var(--ink); }
.ps-cs { font-size: 9.5px; fill: var(--muted); }

.ps-bubble { fill: var(--paper-raised); stroke: var(--accent); stroke-width: 1.4; }
.ps .ps-q { fill: var(--accent); font-size: 18px; opacity: 0; }
.ps .ps-done { fill: var(--success); font-size: 18px; }
.ps-comment { transform-box: fill-box; transform-origin: 0 100%; }
.ps-cursor { transform: translate(372px, 212px); }
.ps-cursor path { fill: var(--ink); stroke: var(--paper-raised); stroke-width: 1.4; stroke-linejoin: round; }

.ps-live { transform-box: fill-box; transform-origin: center; }
.ps-live-bg { fill: rgba(29, 107, 58, 0.12); }
.ps-live-dot { fill: var(--success); transform-box: fill-box; transform-origin: center; }
.ps-live-t { font-size: 9.5px; font-weight: 700; fill: var(--success); }
.ps-toast-bg { fill: var(--ink); filter: drop-shadow(0 8px 14px rgba(20, 20, 19, 0.2)); }
.ps-toast-dot { fill: var(--accent); }
.ps-toast-h { font-size: 11px; font-weight: 700; fill: var(--paper); }
.ps-toast-s { font-size: 9.5px; fill: var(--paper); opacity: 0.8; }

@media (prefers-reduced-motion: no-preference) {
  /* 1: the sketch draws itself, then the note and its arrow */
  .proc.is-run.at-1 .ps-rough { animation: ps-draw 1.1s cubic-bezier(0.45, 0, 0.3, 1) var(--delay, 0ms) both; }
  .proc.is-run.at-1 .ps-note { animation: ps-note 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) 1.6s both; }
  .proc.is-run.at-1 .ps-arrow { animation: ps-draw 0.6s ease 2.2s both; }

  /* 2: blocks snap into a grid, then the guides and a measurement */
  .proc.is-run.at-2 .pw-b { animation: ps-snap 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
  .proc.is-run.at-2 .q1 { animation-delay: 0.1s; }
  .proc.is-run.at-2 .q2 { animation-delay: 0.25s; }
  .proc.is-run.at-2 .q3 { animation-delay: 0.4s; }
  .proc.is-run.at-2 .q4 { animation-delay: 0.55s; }
  .proc.is-run.at-2 .q5 { animation-delay: 0.7s; }
  .proc.is-run.at-2 .q6 { animation-delay: 0.85s; }
  .proc.is-run.at-2 .ps-guide { animation: ps-fade 0.6s ease 1.3s both; }
  .proc.is-run.at-2 .ps-measure { animation: ps-fade 0.5s ease 1.8s both; }

  /* 3: the design settles in, a review note is raised and resolved, the button is tried */
  .proc.is-run.at-3 .pd { animation: ps-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .proc.is-run.at-3 .pd.q2 { animation-delay: 0.08s; }
  .proc.is-run.at-3 .pd.q3 { animation-delay: 0.16s; }
  .proc.is-run.at-3 .pd.q4 { animation-delay: 0.24s; }
  .proc.is-run.at-3 .pd.q5 { animation: ps-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.32s both, ps-press 0.3s ease 2.9s; }
  .proc.is-run.at-3 .pd.q6 { animation-delay: 0.4s; }
  .proc.is-run.at-3 .ps-comment { animation: ps-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 0.9s both; }
  .proc.is-run.at-3 .ps-q { animation: ps-ask 2.3s linear both; }
  .proc.is-run.at-3 .ps-done { animation: ps-fade 0.3s ease 2.3s both; }
  .proc.is-run.at-3 .ps-cursor { animation: ps-cursor 1.1s cubic-bezier(0.45, 0, 0.2, 1) 1.7s both; }

  /* 4: it goes live and the first bookings arrive */
  .proc.is-run.at-4 .ps-live { animation: ps-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 0.4s both; }
  .proc.at-4 .ps-live-dot { animation: ps-pulse 1.4s ease-in-out infinite; }
  .proc.is-run.at-4 .t1 { animation: ps-slide 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 1s both; }
  .proc.is-run.at-4 .t2 { animation: ps-slide 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 2s both; }
}
@keyframes ps-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ps-note { from { opacity: 0; transform: rotate(-4deg) scale(0.6); } to { opacity: 1; transform: rotate(3deg) scale(1); } }
@keyframes ps-snap { from { opacity: 0; transform: scale(0.9); } }
@keyframes ps-fade { from { opacity: 0; } }
@keyframes ps-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes ps-pop { from { opacity: 0; transform: scale(0.5); } }
@keyframes ps-ask { 0%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ps-cursor { from { transform: translate(500px, 340px); } to { transform: translate(372px, 212px); } }
@keyframes ps-press { 50% { transform: scale(0.93); } }
@keyframes ps-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(1.5); } }
@keyframes ps-slide { from { opacity: 0; transform: translateX(26px); } }

/* The steps beside it */
.proc-steps { display: grid; gap: 6px; }
.proc-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 16px 18px 20px;
  border-radius: 14px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.proc-step.is-active { background: var(--paper-raised); box-shadow: var(--shadow); }
.proc-step .step-num { margin: 0; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.proc-step.is-active .step-num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.proc-step h3 { font-size: 1.125rem; margin: 3px 0 4px; }
.proc-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.proc-btn::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.proc-btn:focus-visible { outline: none; }
.proc-btn:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.proc-step p { color: var(--muted); font-size: 0.9688rem; transition: color 0.3s ease; }
.proc-step.is-active p { color: var(--ink-soft); }
.proc-step:not(.is-active):hover { background: var(--field); }
.proc-bar { position: absolute; left: 18px; right: 18px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; opacity: 0; }
.proc-bar::after { content: ""; display: block; height: 100%; background: var(--accent); transform-origin: left; }
.proc.is-run .proc-step.is-active .proc-bar { opacity: 1; }
.proc.is-paused .proc-bar { opacity: 0 !important; }
@media (prefers-reduced-motion: no-preference) {
  .proc.is-run .proc-step.is-active .proc-bar::after { animation: ps-bar var(--step-dur, 3.8s) linear both; }
}
@keyframes ps-bar { from { transform: scaleX(0); } }
.proc-toggle { margin: 14px 0 0 18px; }
/* Phones: keep the steps short so the window and the active step fit on screen together. */
@media (max-width: 959px) {
  .proc-steps { gap: 2px; }
  .proc-step { padding: 10px 14px 14px; gap: 12px; }
  .proc-step h3 { font-size: 1.0625rem; margin: 4px 0 2px; }
  .proc-step:not(.is-active) p { display: none; }
}

/* ---- Looked after ---- */

.care { display: grid; gap: 40px; }
@media (min-width: 960px) { .care { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; } }
.care-art { width: 100%; max-width: 360px; height: auto; margin-top: 36px; }
.care-list { display: grid; gap: 0; }
.care-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.care-list li:first-child { border-top: 0; padding-top: 0; }
.care-list h3 { margin-bottom: 6px; }
.care-list p { color: var(--ink-soft); }

/* ---- Contact ---- */

.section-contact { padding-bottom: 104px; }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }
.contact-intro h2 { margin-bottom: 18px; }
.contact-intro p { color: var(--ink-soft); font-size: 1.125rem; max-width: 30rem; }
.contact-intro p + p { margin-top: 12px; }
.contact-intro .small { font-size: 0.875rem; color: var(--muted); }
.idea-art { width: 100%; max-width: 340px; height: auto; margin: 28px 0; }

.form-wrap {
  padding: 28px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  align-self: start;
}
@media (min-width: 720px) { .form-wrap { padding: 36px 36px 32px; } }

.enquiry-form { display: grid; gap: 22px 24px; }
@media (min-width: 640px) {
  .enquiry-form { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.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(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
.field select { padding-right: 40px; cursor: pointer; }
.field select option { background: var(--paper); color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12); }
.field-error { color: var(--error); font-size: 0.875rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
@media (max-width: 479px) { .form-actions .btn { width: 100%; } }
.form-status { font-size: 0.9375rem; color: var(--ink-soft); }
.form-status.is-error { color: var(--error); }

.form-success { padding: 8px 0; }
.form-success:focus { outline: none; }
.form-success .stroke { width: 160px; height: 22px; margin-bottom: 24px; color: var(--accent); }
.form-success-title { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 10px; }
.form-success-message { font-size: 1.125rem; color: var(--ink-soft); max-width: 34rem; }

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

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.footer-brand { display: block; border-radius: 4px; }
.footer-brand img { width: 96px; }
.copyright { font-size: 0.875rem; color: var(--muted); }
.company-reg { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-left: auto; }
.footer-links a { display: inline-block; padding: 6px 0; font-size: 0.875rem; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 0.4em; }
@media (max-width: 639px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; }
}

/* ---- Legal pages ---- */

.legal { padding: 48px 0 96px; }
@media (min-width: 720px) { .legal { padding: 72px 0 128px; } }
.legal-inner { max-width: 44rem; }
.legal h1 {
  font-size: clamp(2.375rem, 6vw, 3.5rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.legal .updated { color: var(--muted); font-size: 0.9375rem; }
.legal .stroke-divider { margin: 32px 0 40px; }
.legal h2 { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; margin: 48px 0 14px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0; padding-left: 1.25rem; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }
.noscript-msg { padding: 20px 0; border-top: 1px solid var(--line-strong); color: var(--ink-soft); font-size: 1.0625rem; }

.legal .clause-no { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); margin-right: 0.35em; }
.legal section { scroll-margin-top: 96px; }
.legal section + section { margin-top: 8px; }
.terms-toc { margin: 32px 0 8px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; }
.terms-toc ol { margin: 12px 0 0; padding-left: 1.4rem; columns: 2; column-gap: 32px; }
.terms-toc li { break-inside: avoid; margin: 0 0 6px; }
@media (max-width: 600px) { .terms-toc ol { columns: 1; } }
@media print {
  .site-header, .site-footer, .skip-link, .terms-toc, .stroke { display: none !important; }
  .legal { padding: 0; }
  .legal p, .legal li { color: #000; }
}
