/* Scrubussi site. Plain CSS, no build step. Colour tokens come from tokens.css
   (copied from brand/colors/tokens.css); everything below uses the semantic
   --s-* tokens, so dark mode is the same rules with other values.
   No inline styles are used in the HTML: the CSP forbids them. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-soft.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --max: 1200px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 20px;
  --ring: var(--s-accent-text);
  --prose: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--s-background);
  color: var(--s-text);
  font: 450 1.125rem/1.55 var(--s-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
::selection { background: var(--s-accent); color: var(--scrubussi-ink); }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 {
  font-family: var(--s-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.07;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.5rem, 1.35rem + 4.6vw, 4rem); }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 650; line-height: 1.25; }
p { margin: 0; }
p + p { margin-top: 1em; }
a { color: var(--s-accent-text); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
ul, ol { margin: 0; padding: 0; }

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

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--s-button); color: var(--s-on-button);
  padding: 12px 18px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.muted { color: var(--s-text-secondary); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.small { font-size: 1rem; }

/* ---------- Header ---------- */
.site-header { padding-block: 20px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.logo { display: block; line-height: 0; }
.logo img { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; }
.site-nav ul { display: flex; gap: 4px 24px; list-style: none; flex-wrap: wrap; }
.site-nav a:not(.button) { color: var(--s-text-secondary); text-decoration: none; font-weight: 560; padding-block: 8px; display: inline-block; }
.site-nav a:not(.button):hover, .site-nav a[aria-current="page"] { color: var(--s-text); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--s-accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }

@media (max-width: 639px) {
  /* Logo and button share the first row; the links drop to a row of their own. */
  .site-nav { display: contents; }
  .logo { order: 1; }
  .site-nav .button { order: 2; margin-left: auto; }
  .site-nav ul { order: 3; width: 100%; }
}

/* ---------- Buttons and the store button ---------- */
.button, .store {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 700 1rem/1.2 var(--s-font-body); text-decoration: none; text-align: center;
}
.button { background: var(--s-button); color: var(--s-on-button); transition: filter .15s ease, transform .15s ease; }
.button:hover { filter: brightness(1.12); text-decoration: none; }
.button:active { transform: translateY(1px); }
.button.small { min-height: 42px; padding: 9px 18px; }

/* The App Store button. With no href it reads as "coming soon" and does nothing.
   Adding the real href on the one <a class="store"> switches it to the live state;
   no other change is needed. See site/README.md. */
.store { background: var(--s-button); color: var(--s-on-button); min-height: 56px; padding-inline: 28px; font-size: 1.0625rem; }
.store:not([href]) { background: var(--s-panel); color: var(--s-text); cursor: default; }
.store:not([href]) .store-live { display: none; }
.store[href] .store-soon { display: none; }
.store[href]:hover { filter: brightness(1.12); }
.store-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--s-accent); flex: none; }
.store[href] .store-dot { display: none; }

/* ---------- Hero ---------- */
/* One field of Rinse under the header, with Ink type (8.17:1). The washing line runs
   across it off both edges; demo.css draws the prints. */
.hero {
  --ring: var(--scrubussi-ink);
  position: relative; overflow: hidden;
  background: var(--scrubussi-rinse); color: var(--scrubussi-ink);
  padding-block: clamp(20px, 3vw, 40px) clamp(56px, 7vw, 96px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-copy { position: relative; z-index: 1; padding-top: clamp(20px, 5vw, 40px); }
.hero h1 { font-size: clamp(2.5rem, 1.1rem + 6.4vw, 4.5rem); max-width: 11em; letter-spacing: -0.03em; line-height: .98; }
.hero-lead { margin-top: 24px; max-width: 30rem; font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.5; }
.hero-actions { margin-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-actions p { font-size: 1rem; }
.hero .store, .hero .store:not([href]) { background: #FFFFFF; color: var(--scrubussi-rinse-deep); box-shadow: 0 8px 20px rgba(0, 66, 78, .16); }
.hero .store[href]:hover { filter: none; background: var(--scrubussi-foam); }
.hero-art { display: flex; flex-direction: column; margin-top: 64px; }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: stretch; }
  .hero-copy { padding-top: 88px; }
  .hero h1 { font-size: clamp(3rem, 4.4vw, 4rem); }
  .hero-art { margin-top: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tint { background: var(--s-panel); }
.section-head { max-width: 40rem; }
.section-head p { margin-top: 20px; font-size: 1.1875rem; }
.stack > * + * { margin-top: 1.1em; }

/* What a photo carries: the four kinds of data beside a print with them called out */
.carries { display: grid; gap: 48px; align-items: center; }
.carries-main { display: grid; gap: 48px; }
.carries-list { display: grid; gap: 32px 40px; grid-template-columns: minmax(0, 1fr); list-style: none; }
.carries-list h3 { font-family: var(--s-font-display); font-weight: 600; font-size: 1.625rem; letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 8px; }
.carries-list .tag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 6px 12px; border-radius: 999px; background: var(--s-background);
  font-size: .9375rem; font-weight: 560; color: var(--s-accent-text);
}
.carries-list .tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--s-accent); }
.carries-list .tag-switch { color: var(--s-text); }
.carries-list .tag-switch::before { background: var(--s-text-secondary); }
@media (min-width: 640px) { .carries-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1039px) { .carries-main { display: contents; } .carries-art { order: 1; } .carries-list { order: 2; } }
@media (min-width: 1040px) { .carries { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: 48px; } }

/* How it works: three steps across */
.how { display: grid; gap: 48px; }
.how h2 { max-width: 14ch; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 36px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 6px 20px; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--s-button); color: var(--s-on-button);
  display: grid; place-items: center; font-weight: 700; font-size: 1.125rem;
}
.step-art { grid-column: 1 / -1; order: -1; margin-bottom: 8px; border-radius: 24px; overflow: hidden; background: var(--s-panel); padding-top: 20px; }
.steps h3 { align-self: end; font-family: var(--s-font-display); font-weight: 600; font-size: 1.625rem; letter-spacing: -0.015em; line-height: 1.12; }
.steps p { color: var(--s-text-secondary); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  /* The three steps hang on one line that runs off both edges of the page, like the mark's. */
  #how { overflow-x: clip; }
  .steps { position: relative; }
  .steps::before { content: ""; position: absolute; left: -100vw; right: -100vw; top: 23px; height: 3px; border-radius: 2px; background: var(--s-accent); }
  .steps li { position: relative; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; gap: 12px; align-content: start; }
  .steps li::before { grid-row: auto; margin-bottom: 12px; box-shadow: 0 0 0 8px var(--s-background); }
  .step-art { order: 0; margin: 4px 0 12px; }
  .steps h3 { align-self: start; }
}

/* What comes out: three cards on a field of Rinse (Ink text on Rinse is 8.17:1), under a
   washing line that runs off both edges with one clean print hung on it. */
.removes { position: relative; overflow: hidden; background: var(--scrubussi-rinse); color: var(--scrubussi-ink); }
.removes a { color: var(--scrubussi-ink); }
.removes .section-head { position: relative; max-width: min(40rem, calc(100% - 120px)); }
.removes .section-head p { color: inherit; }
.removes-line { position: absolute; left: 0; right: 0; top: clamp(4px, 2vw, 36px); height: 60px; pointer-events: none; }
.removes-line svg { width: 100%; height: 60px; overflow: visible; }
.removes-line path { fill: none; stroke: var(--scrubussi-rinse-deep); stroke-width: 5; stroke-linecap: round; }
.removes-line img { position: absolute; --w: clamp(84px, 11vw, 150px); width: var(--w); height: auto; left: calc(75% - var(--w) * .517); top: calc(52px - var(--w) * .095); filter: drop-shadow(0 8px 10px rgba(0, 66, 78, .26)); }
.removes-grid { margin-top: 56px; display: grid; gap: 40px; align-items: start; }
.removes-out { background: var(--s-background); color: var(--s-text); border-radius: 32px; padding: clamp(28px, 4vw, 48px); }
.removes-grid h3 { font-family: var(--s-font-display); font-weight: 600; font-size: clamp(1.875rem, 1.4rem + 1.4vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.05; }
.removes-part { margin-top: 24px; }
.removes-part .sub { font-weight: 650; font-size: 1rem; color: var(--s-text-secondary); }
.removes-grid ul { margin-top: 16px; list-style: none; display: grid; gap: 12px; }
.removes-grid li { padding-left: 22px; position: relative; }
.removes-grid li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--s-accent); }
.removes-switch { margin-top: 28px; padding-top: 28px; box-shadow: inset 0 1px 0 var(--s-border); }
.removes-switch .m-rswitch { max-width: 24rem; margin-inline: 0; }
.removes-kept { color: var(--scrubussi-ink); }
.removes-kept h3 { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); }
.removes-kept ul { margin-top: 22px; gap: 16px; font-size: 1.1875rem; }
.removes-kept li::before { background: var(--scrubussi-ink); }
.removes-note { margin-top: 32px; font-size: 1rem; font-weight: 560; max-width: 26rem; }
@media (min-width: 760px) { .removes-part ul.two { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; } }
@media (min-width: 900px) {
  .removes-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
  .removes-kept { padding-top: clamp(80px, 12vw, 200px); }
  .removes-out ul:not(.two) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
}

/* What else it does: tiles of different sizes, most with an illustration of the app
   pinned to the tile's foot (demo.css draws them). */
.also { background: var(--s-panel); }
.feats { margin-top: 56px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.feat { background: var(--s-background); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.feat-copy, .feat-text { padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) 0; }
.feat-text { padding-bottom: clamp(24px, 3vw, 36px); }
.feat h3 { font-family: var(--s-font-display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 10px; text-wrap: balance; }
.feat p { max-width: 30rem; }
.feat-art { margin-top: auto; padding-top: 28px; }
.feat-batch .feat-art { padding: 28px clamp(24px, 3vw, 36px) clamp(28px, 3.4vw, 40px); }
.batch-num { font-family: var(--s-font-display); font-weight: 600; font-size: clamp(5rem, 3rem + 7vw, 8.5rem); line-height: .85; letter-spacing: -0.045em; color: var(--s-accent-text); margin-bottom: 6px; }
.feat-batch h3 { margin-bottom: 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .also { background: var(--s-background); } :root:not([data-theme="light"]) .feat { background: var(--s-panel); } }
:root[data-theme="dark"] .also { background: var(--s-background); }
:root[data-theme="dark"] .feat { background: var(--s-panel); }
@media (min-width: 760px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-batch { grid-column: 1 / -1; order: 10; }
}
@media (min-width: 1040px) {
  .feats { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .feat-share { grid-column: span 7; }
  .feat-check { grid-column: span 5; }
  .feat-shortcut { grid-column: span 7; }
  .feat-batch { grid-column: 1 / -1; order: 10; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; }
  .feat-batch .feat-copy { padding-bottom: clamp(24px, 3vw, 36px); }
  .feat-batch .feat-art { margin: 0; padding-left: 0; padding-top: clamp(28px, 3.4vw, 40px); }
  .feat-text { grid-column: span 5; }
}

/* Privacy band: the promise large, then three facts set big */
.band { background: var(--scrubussi-ink); color: var(--scrubussi-spray); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: var(--scrubussi-tide); } }
:root[data-theme="dark"] .band { background: var(--scrubussi-tide); }
.band a { color: var(--scrubussi-rinse); }
.band h2 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); max-width: 12ch; line-height: 1; letter-spacing: -0.03em; }
.band .facts { list-style: none; display: grid; gap: 32px; margin-top: clamp(40px, 6vw, 72px); }
.band .facts h3 { font-family: var(--s-font-display); font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.05; color: var(--scrubussi-rinse); margin-bottom: 10px; }
.band .facts p { font-size: 1.125rem; line-height: 1.5; max-width: 24rem; color: var(--scrubussi-spray); }
.band .more { margin-top: 44px; font-weight: 650; }
@media (min-width: 760px) { .band .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }

/* FAQ */
.faq { display: grid; gap: 40px; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--s-panel); border-radius: 16px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 650; font-size: 1.125rem; line-height: 1.35;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; font-weight: 450; color: var(--s-accent-text); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 24px 22px; max-width: 42rem; }
.faq details > div p { color: var(--s-text); }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 80px; align-items: start; } }

/* ---------- Document pages (privacy, support) ---------- */
.doc-head { padding-block: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 56px); }
.doc-head h1 { max-width: 16ch; }
.doc-head p { margin-top: 20px; max-width: var(--prose); font-size: 1.25rem; }
.doc { display: grid; gap: 0; padding-bottom: var(--section); }
.doc section { padding-block: clamp(28px, 4vw, 44px); display: grid; gap: 14px; }
.doc h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2rem); }
.doc .prose > * { max-width: var(--prose); }
.doc .prose > * + * { margin-top: 1em; }
.doc ul.plain { list-style: none; display: grid; gap: 10px; margin-top: 12px; }
.doc ul.plain li { padding-left: 24px; position: relative; }
.doc ul.plain li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--s-accent); }
.doc ol.num { padding-left: 1.4em; display: grid; gap: 10px; margin-top: 12px; }
.doc dl { margin: 12px 0 0; display: grid; gap: 22px; }
.doc dt { font-weight: 700; }
.doc dd { margin: 4px 0 0; }
@media (min-width: 900px) {
  .doc section { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
  .doc section > h2 { position: sticky; top: 24px; }
}
.meta { display: inline-block; background: var(--s-panel); border-radius: 12px; padding: 12px 16px; font-size: 1rem; margin-top: 24px; }
.placeholder { background: var(--s-accent); color: var(--scrubussi-ink); padding: 2px 8px; border-radius: 6px; font-weight: 650; }

/* ---------- 404 ---------- */
.lost { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; padding-block: 72px; }
.lost p { max-width: 30rem; font-size: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--s-panel); padding-block: clamp(48px, 7vw, 88px) 36px; }
.footer-line { font: 600 clamp(2rem, 1.2rem + 3.6vw, 3.5rem)/1.05 var(--s-font-display); letter-spacing: -0.02em; max-width: 14ch; }
.footer-grid { margin-top: 48px; display: grid; gap: 32px; }
.footer-grid h2 { font: 700 1rem/1.3 var(--s-font-body); letter-spacing: 0; margin-bottom: 10px; }
.footer-grid ul { list-style: none; display: grid; gap: 6px; }
.footer-grid a { color: var(--s-text); }
.footer-small { margin-top: 48px; color: var(--s-text-secondary); font-size: 0.9375rem; max-width: 48rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { margin-top: 12px; color: var(--s-text-secondary); font-size: 1rem; max-width: 20rem; }

/* Motion: one quiet rise as each block scrolls into view, driven by scroll position in CSS
   (no script). Browsers without scroll-driven animations show everything still, and
   reduced-motion turns it off. Transform and opacity only. */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section-head, .carries-list > li, .carries-art, .steps li, .removes-out, .removes-kept, .feat,
    .band h2, .band .facts li, .faq h2, .faq details, .footer-line {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    .carries-list > li:nth-child(2), .steps li:nth-child(2), .removes-kept, .feat:nth-child(2n) { animation-range: entry 5% entry 40%; }
    .carries-list > li:nth-child(3), .steps li:nth-child(3) { animation-range: entry 10% entry 45%; }
    .carries-list > li:nth-child(4) { animation-range: entry 15% entry 50%; }
  }
  .faq details { transition: background-color .2s ease; }
  .faq summary:hover { color: var(--s-accent-text); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .store:not([href]), .feat, .faq details { border: 1px solid CanvasText; } /* taste-skill-ignore: Windows high-contrast mode only */
}
