*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; z-index: 20; }
.skip:focus { left: 0; }

/* header */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--bar); padding: 0 var(--pad);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.wordmark { font-weight: 650; letter-spacing: -0.02em; text-decoration: none; font-size: 1.125rem; }
.links { display: none; align-items: center; gap: 1.75rem; font-size: 0.9375rem; }
.links a { text-decoration: none; color: var(--ink-soft); }
.links a:hover { color: var(--ink); }
.links .pill { color: var(--accent-ink); background: var(--accent); padding: 0.45rem 1rem; border-radius: 999px; }
.links .pill:hover { color: var(--accent-ink); filter: brightness(1.1); }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; margin: -0.5rem -0.6rem -0.5rem 0; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Two lines that turn into a cross, as on apple.com. */
.burger { position: relative; width: 18px; height: 12px; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.burger::before { top: 2px; }
.burger::after { top: 9px; }
.menu[open] .burger::before { top: 5.5px; transform: rotate(45deg); }
.menu[open] .burger::after { top: 5.5px; transform: rotate(-45deg); }
.menu nav {
  /* Absolute, not fixed: the bar's backdrop filter would make a fixed child size to the bar. */
  position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar));
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: 1.25rem var(--pad) calc(2rem + env(safe-area-inset-bottom));
  background: var(--paper);
}
.menu nav a {
  text-decoration: none; padding: 0.55rem 0; font-size: 1.75rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2;
  animation: menu-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.menu nav a:nth-child(2) { animation-delay: 0.03s; }
.menu nav a:nth-child(3) { animation-delay: 0.06s; }
.menu nav a:nth-child(4) { animation-delay: 0.09s; }
.menu nav a:nth-child(5) { animation-delay: 0.12s; }
.menu nav a:nth-child(6) { animation-delay: 0.15s; }
.menu nav a:active { color: var(--ink-soft); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
body:has(.menu[open]) { overflow: hidden; }
@media (min-width: 48rem) {
  .links { display: flex; }
  .menu { display: none; }
}

/* type and layout */
main > section { padding-block: var(--section); }
.eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; }
h1 { font-size: var(--step-3); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; max-width: 16ch; }
h2 { font-size: var(--step-2); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; max-width: 22ch; }
h3 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.015em; font-weight: 650; }
.lead { font-size: var(--step-1); line-height: 1.4; color: var(--ink-soft); max-width: 34rem; margin-top: 1.75rem; }
.sub { color: var(--ink-soft); max-width: var(--measure); margin-top: 1.25rem; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.5rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.9rem 1.6rem; border-radius: 999px; min-height: 48px;
  transition: filter 0.2s, transform 0.15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(0.97); }
.arrow-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.arrow-link::after { content: " →"; }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { padding-top: clamp(4rem, 12vw, 9rem); padding-bottom: clamp(4rem, 10vw, 8rem); }
.wash { background: var(--wash); }

/* six areas */
.areas { list-style: none; padding: 0; margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 0; border-top: 1px solid var(--line); }
.areas li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.areas .k { display: block; font-size: var(--step-1); font-weight: 650; letter-spacing: -0.015em; margin-bottom: 0.35rem; }
.areas span { color: var(--ink-soft); }
.areas .k { color: var(--ink); }
@media (min-width: 48rem) {
  .areas { grid-template-columns: repeat(2, 1fr); column-gap: var(--gap); }
}
@media (min-width: 64rem) {
  .areas { grid-template-columns: repeat(3, 1fr); }
}

/* packages */
.cards { display: grid; gap: var(--gap); margin-top: clamp(2.5rem, 6vw, 4rem); }
.card { background: var(--wash); border-radius: 1.25rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--ink-soft); }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.note { font-size: 0.9375rem; color: var(--ink-soft); margin-top: 1.5rem; }

/* steps */
.steps { list-style: none; padding: 0; margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; gap: var(--gap); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.steps li::before { content: "0" counter(step); display: block; font-size: 0.875rem; font-weight: 600; color: var(--accent); margin-bottom: 0.75rem; }
.steps .k { display: block; font-size: var(--step-1); font-weight: 650; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.steps span { color: var(--ink-soft); }
.steps .k { color: var(--ink); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* closing call */
.closing { text-align: left; }
.closing h2 { max-width: 14ch; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom)); font-size: 0.9375rem; color: var(--ink-soft); }
.foot { display: grid; gap: 1.75rem; }
.foot-brand p { margin-top: 0.5rem; max-width: 24rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
footer a { text-decoration: none; }
footer nav a:hover, .foot-note a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot .wordmark { color: var(--ink); }
@media (min-width: 48rem) { .foot { grid-template-columns: 1.4fr 1.6fr 1fr; align-items: start; } }

/* hidden must always win */
[hidden] { display: none !important; }

/* inner pages */
.hero.compact { padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero.compact h1 { font-size: clamp(2.25rem, 4.6vw + 0.5rem, 4.25rem); max-width: 20ch; }
main > section.plain { padding-block: clamp(2rem, 5vw, 4rem); }
.prose { max-width: calc(var(--measure) + 2 * var(--pad)); margin-inline: 0; }
.prose h2 { font-size: var(--step-1); letter-spacing: -0.02em; margin: 2.5rem 0 0.75rem; max-width: none; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 1rem; max-width: var(--measure); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-top: 0.5rem; }
.prose li::marker { color: var(--accent); }
main > section.wash .prose { margin-inline: auto; }
.wrap.prose { margin-inline: auto; max-width: var(--wrap); }
.wrap.prose > * { max-width: var(--measure); }
.wrap.prose > .shot, .wrap.prose > .card { max-width: 100%; }

/* packages and prices */
.card.pack { display: flex; flex-direction: column; }
.card.pack .amount { color: var(--ink); font-size: var(--step-2); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1rem; }
.card.pack .per { font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.card.pack .meta { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.5rem; }
.card.pack p + p { margin-top: 0.75rem; }
.card.pack .used { margin-top: 1.25rem; font-size: 0.9375rem; }
.card.pack .used a { color: var(--accent); }
.wash .card { background: var(--paper); }
.packs { display: grid; gap: var(--gap); margin-top: 1.75rem; max-width: none; }
@media (min-width: 48rem) { .packs { grid-template-columns: repeat(auto-fit, minmax(16rem, 22rem)); } }
.wrap.prose > .packs { max-width: 100%; }

/* example grid */
.ex-grid { list-style: none; padding: 0; display: grid; gap: var(--gap); margin-top: 2rem; }
.ex-grid > li { display: block; }
.ex { display: flex; flex-direction: column; gap: 0.6rem; height: 100%; text-decoration: none; background: var(--wash); border-radius: 1.25rem; padding: clamp(1.4rem, 3vw, 2rem); transition: background 0.2s, transform 0.2s; }
.ex:hover { background: #ebebef; }
.ex strong { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.015em; }
.ex-type { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.ex-card { color: var(--ink-soft); }
.ex-pkg { margin-top: auto; padding-top: 0.5rem; font-size: 0.875rem; font-weight: 600; }
@media (min-width: 48rem) { .ex-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .ex-grid { grid-template-columns: repeat(3, 1fr); } }
.filters { display: grid; gap: 1.25rem; margin-top: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font: inherit; font-size: 0.9375rem; cursor: pointer; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search { display: grid; gap: 0.4rem; max-width: 26rem; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.search input { font: inherit; font-weight: 500; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.75rem 1rem; min-height: 48px; }
.none { margin-top: 2rem; color: var(--ink-soft); }
.note { font-size: 0.9375rem; color: var(--ink-soft); margin-top: 1.5rem; max-width: var(--measure); }
.chips-static { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips-static li { margin: 0 !important; background: var(--wash); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.9375rem; }

/* drawn screens */
.shot { margin: 2rem 0; }
.shot figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--ink-soft); max-width: var(--measure); }
@media (max-width: 40rem) { .shot { overflow-x: auto; -webkit-overflow-scrolling: touch; } .shot svg.mock { min-width: 36rem; } }
#from-example { margin: 0 0 1.25rem; }
svg.mock { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.08); }
.mk-frame { fill: #fff; stroke: var(--line); }
.mk-line { stroke: var(--line); stroke-width: 1; }
.mk-dot { fill: var(--line); }
.mk-ink { fill: var(--ink); }
.mk-soft { fill: var(--ink-soft); }
.mk-bold { font-weight: 650; }
.mk-tile { fill: var(--wash); }
.mk-card { fill: #fff; stroke: var(--line); }
.mk-ok { fill: #d4efdc; }
.mk-warn { fill: #fbe8c0; }
.mk-info { fill: #d8e5ff; }
.mk-plain { fill: #ebebef; }

/* contact form */
.contact-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1.4fr 1fr; } }
.form { display: grid; gap: 1.25rem; max-width: 36rem; }
.form label { display: grid; gap: 0.4rem; font-size: 0.9375rem; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 500; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.8rem 1rem; min-height: 48px; width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { display: none; max-width: 36rem; margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-radius: 0.75rem; }
.status:target { display: block; }
.status.ok { background: #e1f3e6; }
.status.bad { background: #fdebd0; }
.people h2 { font-size: var(--step-1); letter-spacing: -0.02em; max-width: none; margin-bottom: 1rem; }
.people ul { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: 1.25rem; }
.people a { color: var(--accent); }

/* footer region switcher */
.foot-note p { margin: 0; }
.region { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; font-size: 0.875rem; }
.region select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.35rem 0.6rem; max-width: 100%; }
@media (min-width: 48rem) { .foot-note { text-align: right; } .region { justify-content: flex-end; } }

/* newsletter */
.signup { display: grid; gap: 0.5rem; }
.signup .actions { margin-top: 1.5rem; }
@media (min-width: 48rem) { .signup { grid-template-columns: 1fr auto; align-items: end; gap: var(--gap); } .signup .actions { margin-top: 0; } }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.45em; width: 0.4rem; height: 0.75rem; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* phones: the touches that make a small screen feel native */
@media (max-width: 47.99rem) {
  .wordmark { font-size: 1.0625rem; }
  .hero { padding-top: 3rem; }
  .actions { gap: 1rem 1.5rem; }
  /* The starter cards become a row you swipe through, edge to edge. */
  .cards {
    grid-auto-flow: column; grid-auto-columns: 82%; gap: 0.875rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 0.25rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .cards::-webkit-scrollbar { display: none; }
  .cards .card { scroll-snap-align: start; border-radius: 1.5rem; }
  .card, .ex { border-radius: 1.5rem; }
  .form .btn { justify-self: stretch; text-align: center; }
  footer { font-size: 0.8125rem; }
  footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
  footer nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .burger::before, .burger::after { transition: none; }
  .menu nav a { animation: none; }
}
