/* Simplify Laundry website. Palette and type come from the app's own theme:
   Manrope, deep green ink, warm stone neutrals, terracotta as the one accent
   (used for the main action only). Structure comes from space and tone steps,
   not outlines. */
@font-face { font-family: Manrope; src: url(assets/fonts/Manrope-400.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(assets/fonts/Manrope-600.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(assets/fonts/Manrope-700.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url(assets/fonts/Manrope-800.ttf) format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --brand: #B84E2F;
  --brand-dark: #9A3F24;
  --brand-soft: #F5C8AE;
  --cream: #F6F2EB;
  --stone: #EFE8DC;
  --stone-2: #E6DDCD;
  --ink: #243B32;
  --ink-2: #4A5A52;
  --muted: #6A685F;
  --white: #FFFFFF;
  --green-deep: #1F3A30;
  --green-deeper: #182E26;
  --wrap: 1120px;
  --wrap-hero: 1232px;
  --gutter: 16px;
  --ease: cubic-bezier(.25, .8, .25, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--hero { width: min(var(--wrap-hero), 100% - 2 * var(--gutter)); }
.wrap--narrow { width: min(760px, 100% - 2 * var(--gutter)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* The hero demo handles reduced motion itself by showing its still */
  :not(:where(.ss-stage, .ss-stage *)), :not(:where(.ss-stage, .ss-stage *))::before, :not(:where(.ss-stage, .ss-stage *))::after { transition: none !important; animation: none !important; }
}

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 26px; min-height: 52px; border-radius: 999px; background: var(--brand); color: var(--white); font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 0; transition: background .2s var(--ease), transform .15s var(--ease); }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn--ink { background: var(--ink); }
.btn--ink:hover { background: var(--green-deeper); }
.btn--light { background: var(--white); color: var(--green-deep); }
.btn--light:hover { background: var(--cream); }
.btn--outline-light { background: rgba(255, 255, 255, .1); color: var(--white); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .18); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 6px; color: var(--ink); font-weight: 700; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* Navigation: a plain bar on the page's own ground */
.nav { position: sticky; top: 0; z-index: 50; background: var(--cream); transition: box-shadow .2s var(--ease); }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--stone-2); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -.015em; }
.brand img { border-radius: 9px; }
.brand--small { font-size: 1rem; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) { position: relative; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .96rem; transition: color .2s var(--ease); }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 1px; background: var(--brand); transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease); }
.nav__links a:not(.btn):hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__links a:not(.btn):hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; margin: auto; transition: transform .2s; content: ""; }
.bars::before { position: absolute; top: -7px; }
.bars::after { position: absolute; top: 7px; }
.nav__toggle[aria-expanded="true"] .bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 16px 20px; background: var(--cream); box-shadow: 0 12px 24px -12px rgba(36, 59, 50, .25); display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links li a:not(.btn) { display: block; padding: 12px 4px; }
  .nav__links .btn { margin-top: 10px; width: 100%; min-height: 48px; }
}

/* Hero: the title across the top; copy on the left, the live demo on the
   right at its design size. The hero ends on the demo's bottom edge, so the
   devices run into the next section instead of stopping mid-page. */
.hero { padding: 48px 0 0; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px); column-gap: 40px; align-items: start; }
.hero__title { grid-column: 1 / -1; max-width: 12.5em; margin-bottom: .35em; font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.hero__copy { max-width: 470px; padding-bottom: 48px; }
.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 33em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 32px 0 20px; }
.hero__meta { color: var(--muted); font-size: .92rem; margin: 0; }
.hero__demo { align-self: end; }
/* Reserve the stage's shape before the script loads, so nothing jumps */
.demo { aspect-ratio: 680 / 470; }
.demo.is-live { aspect-ratio: auto; }

@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { max-width: 640px; }
  .hero__demo { width: min(680px, 100%); justify-self: center; }
}
@media (max-width: 640px) {
  .hero { padding-top: 28px; }
  .hero__copy { padding-bottom: 36px; }
  .demo { aspect-ratio: 358 / 420; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Sections */
.section { padding: 104px 0; }
.section--stone { background: var(--stone); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--row { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; }
.section__head--row h2 { margin: 0; }
.section__sub { color: var(--ink-2); font-size: 1.1rem; margin: 0; }
@media (max-width: 820px) { .section__head--row { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .section { padding: 72px 0; } .section__head { margin-bottom: 32px; } }

/* Features: the section heading pinned on the left while the groups scroll
   on the right. Within each group its title stays pinned beside its
   features until the last one has passed, then the next group takes over. */
.features { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.features__head { position: sticky; top: 108px; }
.features__head h2 { font-size: clamp(1.9rem, 2.7vw, 2.5rem); margin-bottom: .45em; }
.features__groups { display: grid; gap: 88px; }
.group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.group h3 { position: sticky; top: 108px; font-size: 1.45rem; margin: 0; color: var(--brand-dark); }
.group dl { margin: 0; display: grid; gap: 36px; }
.group dt { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.group dd { margin: 6px 0 0; color: var(--ink-2); font-size: 1.05rem; max-width: 36em; }
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr; gap: 40px; }
  .features__head { position: static; max-width: 640px; }
}
@media (max-width: 640px) {
  /* Narrow, each group title pins under the nav while its features pass */
  .group { grid-template-columns: 1fr; gap: 16px; }
  .group h3 { top: 68px; z-index: 1; margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter); background: var(--stone); }
  .group dl { gap: 24px; }
  .features__groups { gap: 48px; }
}

/* Getting started: an ordered list, read left to right */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { position: relative; padding: 28px 28px 32px; border-radius: 20px; background: var(--white); }
.steps h3 { margin-bottom: .4em; }
.steps p { color: var(--ink-2); margin: 0; }
/* Each step fills a little more of one bar: the order is in the picture */
.steps li::before { content: ""; display: block; height: 6px; margin-bottom: 24px; border-radius: 3px; background: var(--stone); }
.steps li::after { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 6px; border-radius: 3px; background: var(--brand); transform: scaleX(var(--done)); transform-origin: left center; }
.steps li:nth-child(1) { --done: .333; }
.steps li:nth-child(2) { --done: .666; }
.steps li:nth-child(3) { --done: 1; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Downloads: filled tiles; the visitor's own platform is the ink one */
.downloads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dl { display: flex; flex-direction: column; gap: 4px; min-height: 176px; padding: 24px; border-radius: 20px; background: var(--white); color: var(--ink); text-decoration: none; transition: background .2s var(--ease), transform .15s var(--ease); }
.dl:hover { background: #FBF9F5; }
.dl:active { transform: translateY(1px); }
.dl__os { font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.dl__detail { color: var(--muted); font-size: .94rem; }
.dl__action { margin-top: auto; font-weight: 700; color: var(--brand-dark); }
.dl__action::after { content: "↓"; display: inline-block; margin-left: .3em; transition: transform .25s var(--ease); }
.dl:hover .dl__action::after { transform: translateY(3px); }
.dl.is-suggested { background: var(--ink); color: var(--white); }
.dl.is-suggested:hover { background: var(--green-deeper); }
.dl.is-suggested .dl__detail { color: rgba(255, 255, 255, .72); }
.dl.is-suggested .dl__action { color: var(--brand-soft); }
.dl.is-unavailable { pointer-events: none; background: rgba(36, 59, 50, .045); }
.dl.is-unavailable .dl__os { color: var(--ink-2); }
.dl.is-unavailable .dl__action { color: var(--muted); }
.dl.is-unavailable .dl__action::after { content: ""; }
.note { margin: 20px 0 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 960px) { .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .downloads { grid-template-columns: 1fr; } .dl { min-height: 0; } .dl__action { margin-top: 12px; } }

/* Questions: the heading beside the list */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.faq__list { display: grid; gap: 8px; }
details { border-radius: 16px; background: var(--white); transition: background .2s var(--ease); }
details:not([open]):hover { background: #FBF9F5; }
summary { cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 700; font-size: 1.05rem; list-style: none; position: relative; border-radius: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2.5px solid var(--brand-dark); border-bottom: 2.5px solid var(--brand-dark); transform: rotate(45deg); transition: transform .2s var(--ease); }
details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
details p { padding: 0 24px 22px; margin: 0; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; gap: 28px; } }

/* The closing field: the pilot invitation and the footer on one deep green */
.closing { background: var(--green-deep); color: var(--white); }
.pilot { padding: 104px 0 88px; }
.pilot h2 { color: var(--white); max-width: 14em; }
.pilot p { color: rgba(255, 255, 255, .8); font-size: 1.1rem; max-width: 34em; margin: 0; }
.pilot__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.pilot__actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.pilot__fallback { margin: 0; padding: 18px 22px; border-radius: 16px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78) !important; font-size: 1rem !important; }
.closing .footer { padding: 28px 0 36px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; color: rgba(255, 255, 255, .64); font-size: .92rem; }
.closing .brand { color: var(--white); }
.closing :focus-visible { outline-color: var(--brand-soft); }
@media (max-width: 820px) { .pilot { padding: 72px 0 64px; } .pilot__inner { grid-template-columns: 1fr; gap: 28px; align-items: start; } }

/* Motion. Answers open smoothly where the browser can animate to auto
   height (elsewhere they open at once, as before). */
:root { interpolate-size: allow-keywords; }
details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
details[open]::details-content { block-size: auto; }
details p { opacity: 0; transform: translateY(-4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
details[open] p { opacity: 1; transform: none; transition-delay: .08s; }

/* Hero: arrives on load with CSS alone, so it never waits on a script */
@keyframes lf-rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes lf-settle { from { opacity: 0; transform: translateY(32px) scale(.97); } }
@media (prefers-reduced-motion: no-preference) {
  .hero__title { animation: lf-rise .8s var(--ease) both; }
  .hero__copy { animation: lf-rise .8s var(--ease) .1s both; }
  .hero__demo { animation: lf-settle 1.1s var(--ease) .2s both; transform-origin: 50% 100%; }
}

/* Scroll reveals. main.js adds .has-enter to the page before it starts
   watching, so nothing is ever hidden unless that script is running; with
   reduced motion nothing is hidden at all. Each element rises a little as it
   fades; children of a group follow one another (--i). Once an element has
   arrived (is-done) the reveal steps aside, so its own hover transitions run
   without the stagger delay. */
@media (prefers-reduced-motion: no-preference) {
  .has-enter [data-enter]:not(.is-done) { transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .has-enter [data-enter]:not(.is-in) { opacity: 0; transform: translateY(20px); }
  /* Downloads: tiles cascade a touch faster than text */
  .has-enter .downloads > [data-enter]:not(.is-done) { transition-delay: calc(var(--i, 0) * 70ms); }
  /* Getting started: each bar fills to its step once its card is in */
  .has-enter .steps li::after { transition: transform 1.1s cubic-bezier(.45, 0, .1, 1); transition-delay: calc(.35s + var(--i, 0) * 220ms); }
  .has-enter .steps li:not(.is-in)::after { transform: scaleX(0); }
}

/* 404 page */
.notfound { text-align: center; }
.notfound .brand { justify-content: center; }
.notfound h1 { margin-top: 40px; }
.notfound .lead { margin-inline: auto; }
