/* Friendly Home Daycare
   One motif: the crayon smiley's circle. It is the hero, every picture frame, the buttons,
   the bullets, the coupon's notches and the letters of the footer. Everything else is flat. */

/* ---------- tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #f1f3f7;
  --ink: #17171f;
  --ink-soft: #4a4d5c;
  --white: #ffffff;

  /* the smiley, and the crayon colours of the wordmark */
  --sun: #ffd21f;
  --sun-strong: #f5c400;
  --sun-pale: #fff1b0;
  --red: #d42a22;
  --red-deep: #a81d17;
  --orange: #ff8a1f;
  --orange-deep: #d96a00;
  --green: #1fa65a;
  --green-deep: #13773d;
  --blue: #2160d8;
  --blue-deep: #163f9e;
  --sky-pale: #dde8fb;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* five sizes */
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --step-head: clamp(1.5rem, 1rem + 1.95vw, 2.25rem);
  --step-display: clamp(3rem, 0.6rem + 6.4vw, 7.25rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 12vw, 12.5rem);
  --bar-h: 5.25rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
img, video, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 5rem; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.defs { position: absolute; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nums { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.skip {
  position: absolute; left: var(--margin); top: -4rem; z-index: 20;
  padding: 0.75rem 1.25rem; border-radius: 999px;
  background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

.head { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.035em; }
.lead { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; }
.big { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.05em; }

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--ink); color: var(--white);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.96); }
.button--sun { background: var(--sun); color: var(--ink); }
.button--small { min-height: 2.75rem; padding: 0 1.15rem; }
a[href^="tel:"] { white-space: nowrap; }
.link-plain {
  font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.2em;
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #000; }
  .button--sun:hover { background: var(--sun-strong); }
  .link-plain:hover { text-decoration-color: var(--sun-strong); }
}

/* ---------- bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto; z-index: 5;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.25rem var(--margin);
}
.bar__mark { display: block; border-radius: 50%; transition: transform var(--t-press) var(--ease-out); }
.bar__mark:active { transform: scale(0.92); }
.bar__nav { display: flex; gap: 0.25rem 1.75rem; margin-left: auto; font-weight: 600; }
.bar__nav a { padding: 0.6rem 0; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 0.09em; text-underline-offset: 0.3em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover { text-decoration-color: currentColor; } }

/* ---------- the slim bar (shown by script once the hero's buttons scroll away) ---------- */
.slim {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; gap: 1.75rem;
  height: 3.5rem; padding: 0 var(--margin);
  background: var(--ink); color: var(--white);
  transform: translateY(-100%); visibility: hidden;
  transition: transform 240ms var(--ease-out), visibility 0s linear 240ms;
}
.slim.is-shown { transform: none; visibility: visible; transition: transform 320ms var(--ease-out), visibility 0s; }
html:not(.js) .slim { display: none; }
.slim__mark {
  display: flex; align-items: center; gap: 0.6rem; flex: none; min-width: 2.75rem; min-height: 2.75rem;
  font-weight: 800; letter-spacing: -0.02em; text-decoration: none;
}
.slim__nav { display: flex; gap: 1.5rem; margin-left: auto; font-weight: 600; }
.slim__nav a {
  padding: 0.5rem 0;
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 0.14em; text-underline-offset: 0.4em;
  transition: text-decoration-color var(--t-hover) ease;
}
.slim__nav a[aria-current="true"] { text-decoration-color: var(--sun); }
.slim__cta { flex: none; min-height: 2.5rem; padding: 0 1.15rem; }
.slim__menu { display: none; }
@media (hover: hover) and (pointer: fine) {
  .slim__nav a:not([aria-current="true"]):hover { text-decoration-color: rgb(255 255 255 / 0.55); }
}

/* below 1024px the links fold into a menu under the bar */
@media (max-width: 63.99em) {
  .slim { gap: 0.75rem; }
  .slim__menu {
    display: inline-flex; align-items: center; margin-left: auto;
    min-height: 2.75rem; padding: 0 1.1rem; border-radius: 999px;
    background: #2e2e3a; color: var(--white); font-weight: 600;
    transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
  }
  .slim__menu:active { transform: scale(0.96); }
  .slim__menu[aria-expanded="true"] { background: var(--white); color: var(--ink); }
  .slim__cta { min-height: 2.75rem; }
  .slim__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0; margin: 0;
    padding: 0.25rem var(--margin) 1.25rem;
    background: var(--ink); font-size: var(--step-lead);
  }
  .slim.is-open .slim__nav { display: flex; animation: menu-in 220ms var(--ease-out) both; }
  .slim__nav a { padding: 0.7rem 0; }
}
@media (max-width: 29.99em) { .slim__name { display: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: max(40rem, 100svh);
  display: flex; align-items: center;
  padding: calc(var(--bar-h) + 1.5rem) var(--margin) 3rem;
}
.hero__text { position: relative; z-index: 2; width: calc(54vw - var(--margin)); }
.hero__title {
  font-size: var(--step-display);
  line-height: 0.88; letter-spacing: -0.05em;
}
.lines .line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.lines [data-line] { display: block; }
.hero__lead { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; margin-top: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.now { margin-top: 3rem; max-width: 34ch; }
.now__line { display: flex; gap: 0.6rem; align-items: baseline; font-weight: 600; }
.now__line .dot { flex: none; width: 0.8em; height: 0.8em; border-radius: 50%; background: var(--sun); translate: 0 0.08em; }
.now__hint { color: var(--ink-soft); margin-top: 0.35rem; padding-left: 1.4em; }

.face {
  position: absolute; z-index: 1;
  width: min(120svh, 84vw); aspect-ratio: 1;
  left: 53vw; top: 50%; translate: 0 -50%;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
.face:disabled { cursor: default; }
.face svg { width: 100%; height: 100%; overflow: visible; transition: transform var(--t-press) var(--ease-out); }
.face:not(:disabled):active svg { transform: scale(0.985); }
.face__disc { fill: var(--sun); }
.face__eye, .face__fill { fill: var(--ink); }
.face__line, .face__lines path { fill: none; stroke: var(--ink); stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
.face__look { transition: transform 160ms linear; }
.face__eyes { transition: transform 320ms var(--ease-out); }
.face [data-f] { opacity: 0; transition: opacity 200ms ease; }
.face[data-face="smile"] [data-f~="smile"],
.face[data-face="eat"] [data-f~="eat"],
.face[data-face="grin"] [data-f~="grin"],
.face[data-face="read"] [data-f~="read"],
.face[data-face="think"] [data-f~="think"],
.face[data-face="sing"] [data-f~="sing"],
.face[data-face="sleep"] [data-f~="sleep"] { opacity: 1; }
.face[data-face="read"] .face__eyes { transform: translate(-10px, 40px); }
.face[data-face="think"] .face__eyes { transform: translate(16px, -44px); }
.face__eye { transform-box: fill-box; transform-origin: center; }
.face__chew { transform-box: fill-box; transform-origin: 50% 0; }

/* ---------- statements with pictures in circles ---------- */
.statement {
  font-size: var(--step-head); font-weight: 600;
  line-height: 1.16; letter-spacing: -0.03em;
}
.pic {
  position: relative; display: inline-block;
  width: 1.22em; height: 1.22em; vertical-align: -0.26em;
  margin-block: -0.12em; margin-inline: 0.04em;
  border-radius: 50%; overflow: hidden;
  background: var(--sun);
}
.pic img, .stage__pic img, .stage__pic video {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--x, 50%) var(--y, 50%);
  background: var(--sun);
}

.intro {
  display: flex; justify-content: center;
  padding: max(9rem, 22vh) var(--margin);
}
.intro .statement { width: min(64vw, 62rem); text-align: center; }

/* ---------- our day ---------- */
.day { padding: 0 var(--margin); }
.day__intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: end;
}
.day__intro h2 { grid-column: 1 / 6; }
.day__intro p { grid-column: 7 / 12; max-width: 44ch; }

.stages { margin-top: 4rem; display: flex; flex-direction: column; gap: 0; }
.stage { position: relative; overflow: hidden; background: var(--c); color: var(--ci); }
.stage:nth-child(1) { --c: var(--blue-deep); --ci: var(--white); }
.stage:nth-child(2) { --c: var(--blue); --ci: var(--white); }
.stage:nth-child(3) { --c: #4a82e6; --ci: var(--ink); }
.stage:nth-child(4) { --c: #7ea6ef; --ci: var(--ink); }
.stage:nth-child(5) { --c: #b2cbf6; --ci: var(--ink); }
.stage:nth-child(6) { --c: var(--sky-pale); --ci: var(--ink); }
.stage__head { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; }
.stage__btn {
  display: flex; align-items: center; gap: 0.5em;
  width: 100%; min-height: 4rem; padding: 1rem 1.5rem;
  text-align: left; font-weight: 800; color: inherit;
}
.stage__t { font-variant-numeric: proportional-nums; }
.stage__body { display: grid; gap: 1.5rem; padding: 0 1.5rem 1.75rem; }
.stage__when { font-weight: 600; margin-bottom: 0.5rem; }
.stage__now { display: none; }
.stage.is-now .stage__now { display: inline; }
.stage__copy p:last-child { max-width: 36ch; }
.stage__pic {
  width: min(100%, 22rem); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; background: var(--sun);
}

/* phone and no-script: a stacked list; with script, one part opens at a time */
.js .stage__body { display: none; }
.js .stage.is-open .stage__body { display: grid; }
.js .stage.is-open .stage__body { animation: stage-in 420ms var(--ease-out) both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(10px); } }

@media (min-width: 56.25em) {
  .js .stages { flex-direction: row; height: 32.5rem; }
  .js .stage {
    flex: 1 1 0; min-width: 0;
    transition: flex-grow 450ms var(--ease-in-out);
  }
  .js .stage.is-open { flex-grow: 6.9; }
  .js .stage__btn {
    position: absolute; inset: 0;
    writing-mode: vertical-rl; transform: rotate(180deg);
    align-items: flex-start; justify-content: flex-start;
    padding: 1.5rem 1.25rem; min-height: 0;
    white-space: nowrap;
  }
  .js .stage.is-open .stage__btn {
    inset: 0 auto auto 0; writing-mode: horizontal-tb; transform: none;
    padding: 2rem; font-size: var(--step-head); letter-spacing: -0.035em;
    cursor: default;
    animation: stage-title 500ms var(--ease-out) 120ms both;
  }
  @keyframes stage-title { from { opacity: 0; transform: translateY(12px); } }
  .js .stage .stage__body,
  .js .stage.is-open .stage__body {
    display: grid;
    position: absolute; top: 0; bottom: 0; left: 0;
    width: calc((100vw - 2 * var(--margin)) * 0.58);
    grid-template-columns: 1fr 1fr; align-items: end;
    padding: 2rem;
    visibility: hidden; opacity: 0;
    transition: opacity 260ms ease, visibility 0s linear 260ms;
    animation: none;
  }
  .js .stage.is-open .stage__body {
    visibility: visible; opacity: 1;
    transition: opacity 420ms ease 220ms, visibility 0s linear 0s;
  }
  .js .stage__pic { align-self: center; justify-self: center; width: min(100%, 24rem); }
  @media (hover: hover) and (pointer: fine) {
    .js .stage:not(.is-open) .stage__btn { transition: background-color var(--t-hover) ease; }
    .js .stage:not(.is-open):hover .stage__btn { background: rgb(255 255 255 / 0.12); }
  }
}

/* ---------- the home ---------- */
.home { padding: var(--section) var(--margin) 0; }
.statement--wide { max-width: 31em; line-height: 1.2; }
.home__more {
  margin-top: 4.5rem; margin-left: calc(50% + var(--gutter) / 2);
  max-width: 40ch;
}
.home__more p { margin-bottom: 1rem; }

/* ---------- rates ---------- */
.rates { padding: var(--section) var(--margin) 0; }
.rates__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem;
  align-items: end; min-height: 37.5rem;
}
.rates__title { position: absolute; top: 0; left: 0; }
.tile {
  position: relative; display: flex; flex-direction: column;
  padding: 1.75rem 1.75rem 6.5rem;
  background: var(--c); color: var(--ci);
}
.tile--green { --c: var(--green); --ci: var(--ink); --cd: var(--green-deep); --cdi: var(--white); height: 22.5rem; }
.tile--orange { --c: var(--orange); --ci: var(--ink); --cd: var(--orange-deep); --cdi: var(--ink); height: 30rem; }
.tile--red { --c: var(--red); --ci: var(--white); --cd: var(--red-deep); --cdi: var(--white); height: 37.5rem; }
.tile__name { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; }
.tile__price {
  display: flex; align-items: baseline; gap: 0.6rem;
  font-size: var(--step-display); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em;
  margin: 0.75rem 0 1.25rem;
}
.tile__price span { font-size: var(--step-body); font-weight: 600; letter-spacing: -0.01em; }
.tile__list li { display: flex; gap: 0.65em; margin-top: 0.4rem; max-width: 30ch; }
.tile__list li::before {
  content: ""; flex: none; width: 0.5em; height: 0.5em; margin-top: 0.42em;
  border-radius: 50%; background: currentColor;
}
.tile__go {
  position: absolute; left: 1.75rem; bottom: 1.75rem;
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.4rem;
  border-radius: 999px; background: var(--cd); color: var(--cdi);
  font-weight: 600; text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.tile__go:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .tile__go:hover { background: var(--ink); color: var(--white); } }
.rates__note { margin-top: 2rem; max-width: 62ch; }

/* ---------- about ---------- */
.about { padding: var(--section) var(--margin) 0; }
.about__panel {
  position: relative; overflow: hidden;
  min-height: min(100svh, 58rem);
  display: grid; grid-template-columns: 63% 1fr; align-items: start;
  padding: 3.5rem;
  background: var(--blue-deep); color: var(--white);
}
.about__title { max-width: 8em; }
/* a circle whose lowest fifth is cut off by the panel's edge; the box itself ends at the edge */
.about__pic {
  --d: 38vw;
  position: absolute; left: 3.5rem; bottom: 0;
  width: var(--d); height: calc(var(--d) * 0.8);
  clip-path: circle(calc(var(--d) / 2) at 50% calc(var(--d) / 2));
  background: var(--sun);
}
.about__pic img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
}
.about__pic img:first-child { opacity: 1; }
.about__text { grid-column: 2; display: grid; gap: 3.5rem; justify-items: start; max-width: 24rem; }
.about__text h3 { margin-bottom: 0.6rem; }

/* ---------- questions ---------- */
.faq {
  padding: var(--section) var(--margin) 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: start;
}
.faq__title { grid-column: 1 / 6; position: sticky; top: 5.5rem; }
.faq__list { grid-column: 6 / 13; display: grid; gap: 0.5rem; }
.faq details { background: var(--surface); transition: background-color var(--t-ui) ease; }
.faq details[open] { background: var(--sun); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.5rem; padding: 0.9rem 1.5rem;
  font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 1rem; height: 1rem; }
.plus::before, .plus::after {
  content: ""; position: absolute; left: 0; top: calc(50% - 1.5px);
  width: 1rem; height: 3px; border-radius: 3px; background: currentColor;
  transition: transform var(--t-ui) var(--ease-out);
}
.plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0deg); }
.faq__a { padding: 0 1.5rem 1.5rem; }
.faq__a p { max-width: 52ch; }
.faq details[open] .faq__a { animation: answer-in 320ms var(--ease-out) both; }
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } }
@media (hover: hover) and (pointer: fine) {
  .faq details:not([open]) summary:hover { background: #e4e8ef; }
}

/* ---------- forms ---------- */
.forms {
  margin-top: var(--section);
  padding: calc(var(--section) * 0.6) var(--margin);
  background: var(--sky-pale);
}
.forms__intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: end;
}
.forms__intro h2 { grid-column: 1 / 6; }
.forms__intro > div { grid-column: 7 / 12; max-width: 44ch; }
.forms__intro p { margin-bottom: 1rem; }
.forms__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem var(--gutter);
  margin-top: 4rem;
}
.form {
  display: grid; grid-template-columns: 1.4rem 1fr; column-gap: 1rem; row-gap: 0.35rem;
  padding: 1.25rem 0; text-decoration: none;
}
.form::before {
  content: ""; grid-row: 1 / 4; width: 1.4rem; height: 1.4rem; margin-top: 0.2rem;
  border-radius: 50%; background: var(--dot);
  transition: transform var(--t-ui) var(--ease-out);
}
.form__name { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.form__about { max-width: 46ch; }
.form__open {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.2em;
  transition: text-decoration-color var(--t-hover) ease;
}
.form:active::before { transform: scale(0.85); }
@media (hover: hover) and (pointer: fine) {
  .form:hover::before { transform: scale(1.3); }
  .form:hover .form__open { text-decoration-color: var(--blue); }
}

/* ---------- visit coupon ---------- */
.visit { padding: var(--section) var(--margin); }
.coupon {
  --cut: 46%;
  position: relative;
  width: min(100%, calc(100% * 10 / 12)); margin-inline: auto;
  display: grid; grid-template-columns: var(--cut) 1fr;
  background: var(--sun); color: var(--ink);
}
.coupon::before, .coupon::after {
  content: ""; position: absolute; left: var(--cut); z-index: 1;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--bg); translate: -50% 0;
}
.coupon::before { top: -0.875rem; }
.coupon::after { bottom: -0.875rem; }
.coupon__left {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 3rem;
}
.coupon__left .big { max-width: 5em; }
.coupon__right {
  display: flex; flex-direction: column;
  padding: 3rem;
  border-left: 5px dotted var(--bg);
}
.coupon__right label { font-size: var(--step-small); font-weight: 600; margin: 0.75rem 0 0.3rem; }
.coupon__right label:first-child { margin-top: 0; }
.field {
  width: 100%; height: 3.25rem; padding: 0 1rem;
  border: 0; border-radius: 0; background: var(--sun-pale);
  font-size: max(1rem, var(--step-body));
  transition: background-color var(--t-hover) ease;
}
.field::placeholder { color: #5c5540; }
.field:focus { background: var(--white); outline: 3px solid var(--ink); outline-offset: 0; }
.coupon__submit {
  margin-top: 1.25rem; min-height: 3.5rem; border-radius: 999px;
  background: var(--ink); color: var(--white); font-weight: 600;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.coupon__submit:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .coupon__submit:hover { background: #000; } }
.coupon__submit:disabled { cursor: progress; background: var(--ink-soft); transform: none; }
.coupon__trap { position: absolute; left: -10000px; top: 0; }
.coupon__note { margin-top: 0.75rem; font-size: var(--step-small); }
.coupon__status:empty { display: none; }
.coupon__status { margin-top: 0.75rem; font-weight: 600; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--white); padding: 6rem var(--margin) 2rem; }
.foot__mark svg { width: 100%; height: auto; overflow: visible; }
.foot__mark text {
  font-family: var(--font); font-weight: 800; font-size: 104px; letter-spacing: -0.03em;
  fill: var(--ink); text-anchor: middle; dominant-baseline: central;
}
.foot__letters > g { transform-box: fill-box; transform-origin: 50% 100%; }
.foot__cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem var(--gutter);
  margin-top: 4rem;
}
.foot__h { font-size: var(--step-body); margin-bottom: 0.75rem; color: var(--sun); }
.foot__links li + li { margin-top: 0.25rem; }
.foot__lines { display: grid; justify-items: start; }
.foot a { text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.4); text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease; }
.foot .button { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot a:not(.button):hover { text-decoration-color: var(--sun); } }
.foot__credits { margin-left: 0.5em; }

/* the separate picture credits page */
.credits-page__main { padding: 3rem var(--margin) 6rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; justify-items: start; }
.credits-page__main > p { max-width: 52ch; }
.credits-list { display: grid; gap: 0.75rem; max-width: 62ch; }
.credits-list a { overflow-wrap: anywhere; }
.foot__contact a { overflow-wrap: anywhere; }
.foot__last {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 3rem;
}

/* ---------- motion (content stays visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .slim, .slim.is-shown { transition: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 220ms); }
  .js .now:not([hidden]) { animation: rise var(--t-reveal) var(--ease-out) 640ms both; }
  .js .face svg { animation: face-in 1300ms var(--ease-out) 80ms both; }
  .face__eye { animation: blink 6.5s 2s infinite; }
  .face__chew { animation: chew 700ms ease-in-out infinite alternate; }

  /* generic reveal, staggered by --i */
  .js [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .faq details[data-reveal] { transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out), background-color var(--t-ui) ease; transition-delay: calc(var(--i, 0) * 60ms), calc(var(--i, 0) * 60ms), 0ms; }

  /* pictures in a statement open from a point, after the words */
  .js .statement[data-reveal] .pic { transform: scale(0.3); opacity: 0; transition: transform 700ms var(--ease-out), opacity 400ms ease; transition-delay: calc(var(--i, 0) * 90ms + 350ms); }
  .js .statement[data-reveal].is-in .pic { transform: none; opacity: 1; }

  /* the day's panels arrive left to right */
  .js .stages .stage { opacity: 0; transform: translateY(32px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out), flex-grow 450ms var(--ease-in-out); }
  .js .stages .stage:nth-child(2) { transition-delay: 70ms, 70ms, 0ms; }
  .js .stages .stage:nth-child(3) { transition-delay: 140ms, 140ms, 0ms; }
  .js .stages .stage:nth-child(4) { transition-delay: 210ms, 210ms, 0ms; }
  .js .stages .stage:nth-child(5) { transition-delay: 280ms, 280ms, 0ms; }
  .js .stages .stage:nth-child(6) { transition-delay: 350ms, 350ms, 0ms; }
  .js .stages.is-in .stage { opacity: 1; transform: none; }

  /* rate tiles grow up from the base line, like bars */
  .js .rates__grid .tile { clip-path: inset(100% 0 0 0); transition: clip-path 900ms var(--ease-in-out); }
  .js .rates__grid .tile--orange { transition-delay: 110ms; }
  .js .rates__grid .tile--red { transition-delay: 220ms; }
  .js .rates__grid.is-in .tile { clip-path: inset(0); }

  /* the picture in the about panel settles into its circle */
  .js .about__pic { transform: scale(0.85); opacity: 0; transition: transform 1200ms var(--ease-soft), opacity 700ms ease; }
  .js .about__pic.is-in { transform: none; opacity: 1; }

  /* signature: the crayons crossfade, slowly */
  .xfade img { animation: xfade 21s infinite both; }
  .xfade img:nth-child(1) { animation-delay: -1.6s; }
  .xfade img:nth-child(2) { animation-delay: 5.4s; }
  .xfade img:nth-child(3) { animation-delay: 12.4s; }
  .xfade.is-paused img { animation-play-state: paused; }

  /* the footer's circles roll in one by one */
  .js .foot__mark[data-reveal] { opacity: 1; transform: none; }
  .js .foot__letters > g { transform: scale(0.2); opacity: 0; transition: transform 800ms var(--ease-out), opacity 300ms ease; transition-delay: calc(var(--i, 0) * 70ms); }
  .js .foot__mark.is-in .foot__letters > g { transform: none; opacity: 1; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes face-in { from { opacity: 0; transform: translateX(10%) rotate(-8deg) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes chew { from { transform: scaleY(1); } to { transform: scaleY(0.55); } }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.08); } }
@keyframes xfade { 0% { opacity: 0; } 7.6% { opacity: 1; } 33.3% { opacity: 1; } 41% { opacity: 0; } 100% { opacity: 0; } }

/* ---------- tablet and phone ---------- */
@media (max-width: 56.24em) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 3rem; }
  .hero__text { display: contents; }
  .hero__title, .hero__lead, .hero__actions { position: relative; z-index: 2; }
  .face {
    order: 4; flex: none;
    position: relative; left: auto; top: auto; translate: none;
    width: min(118vw, 34rem);
    margin: 2.25rem 0 0 max(8vw, calc(100vw - 25rem));
  }
  .now { order: 5; margin-top: 1.75rem; max-width: none; }
  .intro .statement { width: auto; max-width: 40rem; }
  .day__intro { display: block; }
  .day__intro p { margin-top: 1.25rem; }
  .about__panel { grid-template-columns: 1fr; padding: 2.5rem 2rem 0; min-height: 0; }
  .about__text { grid-column: 1; margin-top: 2.5rem; max-width: 34rem; }
  .about__pic { --d: min(80vw, 34rem); order: 3; position: relative; left: auto; bottom: auto; margin: 3rem auto 0; }
  .faq { display: block; }
  .forms__intro { display: block; }
  .forms__intro > div { margin-top: 1.25rem; }
  .forms__list { grid-template-columns: 1fr; margin-top: 2rem; }
  .rates__grid { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .rates__title { position: static; margin-bottom: 1.5rem; }
  .tile { height: auto; padding: 1.5rem 1.5rem 6rem; }
  .tile__go { left: 1.5rem; bottom: 1.5rem; }
  .coupon { width: 100%; grid-template-columns: 1fr; }
  .coupon::before, .coupon::after { left: auto; top: auto; bottom: auto; translate: none; }
  .coupon::before { left: -0.875rem; top: var(--split, 15rem); translate: 0 -50%; }
  .coupon::after { right: -0.875rem; top: var(--split, 15rem); translate: 0 -50%; }
  .coupon__right { border-left: 0; border-top: 5px dotted var(--bg); }
  .faq__title { position: static; margin-bottom: 2rem; max-width: none; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 43.74em) {
  :root { --bar-h: 7.5rem; }
  .bar { flex-wrap: wrap; gap: 0.5rem 1rem; padding-top: 1rem; }
  .bar__cta { margin-left: auto; }
  .bar__nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; gap: 0 0.75rem; font-size: var(--step-small); }
  .hero__lead { max-width: none; }
  .intro { padding-block: 6rem; justify-content: flex-start; }
  .intro .statement { text-align: left; }
  .pic--wide-only { display: none; }
  .statement--wide { max-width: none; }
  .home__more { margin-left: 0; margin-top: 2.5rem; }
  .about { padding-inline: 0.625rem; }
  .about__panel { padding: 2.25rem 1.5rem 0; }
  .visit { padding-inline: 1rem; }
  .coupon__left { padding: 2rem 1.5rem 1.75rem; }
  .coupon__right { padding: 1.75rem 1.5rem 2rem; }
  .field { height: 3.375rem; }
  .foot { padding-top: 4rem; }
  .foot__contact { grid-column: 1 / -1; }
  .foot__last { flex-wrap: nowrap; }
  /* type follows the width on the smallest phones */
  :root { --step-display: min(3rem, 12.4vw); --step-head: clamp(1.25rem, 6.15vw, 1.5rem); }
}

/* ---------- thumb-sized targets: 44px wherever the pointer is a finger ---------- */
@media (pointer: coarse), (max-width: 43.74em) {
  .bar__nav a { display: inline-block; padding: 0.75rem 0.25rem; }
  .hero__actions .link-plain,
  .home__more .link-plain,
  .forms__intro .link-plain,
  .foot__links a, .foot__contact a, .foot__credits { display: inline-block; padding-block: 0.7rem; }
  .foot__links li + li { margin-top: 0; }
  .foot__links a { min-width: 2.75rem; }
}
