/* The Work You Love, bridal — the website. Paper, ink and one green;
   photographs of one boutique; real app screens in a dark phone frame. */
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/SchibstedGrotesk-Variable.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --paper: #F8F5ED; --linen: #F0EBE1; --ink: #14201E; --prose: #262E2B; --secondary: #4C5551;
  --accent: #1B4D46; --tint: #DCE8E2; --rule: #D5DBD8; --hair: #A8B2AD; --device: #1C2422; --flag: #8A4B2A;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sans: "Schibsted Grotesk", -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 48px); --frame: 1120px; --space: clamp(72px, 11vw, 132px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--prose); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--tint); color: var(--ink); }
[id] { scroll-margin-top: 72px; }
[hidden] { display: none !important; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; font-weight: 500; }
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.06; letter-spacing: -0.02em; }
h3 { font-size: clamp(21px, 2.6vw, 27px); line-height: 1.2; letter-spacing: -0.01em; }
b { font-weight: 600; color: var(--ink); }

.frame { max-width: var(--frame); margin: 0 auto; padding: 0 var(--gutter); }
.fine { font-size: 13px; color: var(--secondary); }
.section-lead { font-size: clamp(17px, 2vw, 19px); max-width: 62ch; margin-top: 18px; }
.skip { position: absolute; left: var(--gutter); top: -80px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 20; }
.skip:focus { top: 10px; }
.skip:hover { color: var(--paper); }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--rule); }
.top-bar { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 17px; }
.brand b { font-weight: 600; letter-spacing: -0.005em; }
.brand span { white-space: nowrap; }
.top-cta { font-family: var(--display); font-size: 15px; color: var(--ink); text-decoration: none; border: 1px solid var(--ink); padding: 9px 16px; min-height: 44px; display: inline-flex; align-items: center; }
.top-cta:hover { background: var(--ink); color: var(--paper); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; background: var(--accent); color: #fff; font: 500 17px/1.2 var(--display); text-decoration: none; border-radius: 2px; transition: background .2s ease; }
.btn:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.text-link { font-family: var(--display); font-size: 16px; color: var(--ink); }

/* The phone: a real app screenshot in a dark frame. */
.phone { width: 100%; max-width: 300px; background: var(--device); border-radius: 44px; padding: 9px; box-shadow: 0 34px 60px -30px rgba(20, 32, 30, .5), 0 8px 18px -8px rgba(20, 32, 30, .25); position: relative; }
.phone > img, .phone .frame-img { border-radius: 36px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--paper); }

/* Hero: the outcome, the trial button, and the bride switcher beside it. */
.hero { padding: clamp(28px, 6vw, 72px) 0 var(--space); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; margin-top: 18px; max-width: 30em; }
.hero .actions { margin-top: 26px; }
.actions-note { font-size: 14px; color: var(--secondary); }

/* The bride switcher: radio buttons and :has(), so it works without JavaScript.
   Every panel stays in the same grid cell, so switching never moves the page. */
.bride-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bride-pick label:hover { background: rgba(20, 32, 30, .08); }
.bride-pick input:checked + label { background: var(--ink); border-color: var(--ink); }
.bride-pick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.phone--hero img { grid-area: 1 / 1; border-radius: 32px; }
.brides [data-braut] { visibility: hidden; opacity: 0; transition: opacity .45s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .45s; }
.brides:has(#braut-lena:checked) [data-braut="lena"],
.brides:has(#braut-sophie:checked) [data-braut="sophie"],
.brides:has(#braut-mara:checked) [data-braut="mara"] { visibility: visible; opacity: 1; transition-delay: 0s; }

/* The index: photos, the replay, the rack. */
.index { background: var(--linen); padding: var(--space) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.capture { display: grid; gap: 40px; margin-top: 52px; align-items: center; }
.capture-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.capture-photos figure { margin: 0; }
.capture-photos img { border-radius: 14px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.capture-photos figcaption { font: 500 14px/1.3 var(--display); color: var(--secondary); margin-top: 8px; }
.replay { display: grid; gap: 28px; justify-items: center; }
.replay .phone { display: grid; }
.replay .frame-img { grid-area: 1 / 1; }
.replay:not(.is-live) .frame-img:not(.is-on) { display: none; }
.replay.is-live .frame-img { display: block; opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); }
.replay.is-live .frame-img.is-on { opacity: 1; transform: none; }
.steps-wrap { width: 100%; max-width: 420px; }
.steps { display: grid; gap: 4px; counter-reset: s; }
.steps li { counter-increment: s; }
.step { all: unset; box-sizing: border-box; display: block; width: 100%; position: relative; padding: 12px 12px 12px 48px; border-radius: 10px; color: var(--secondary); font: inherit; cursor: pointer; transition: background .4s ease, color .4s ease; }
.step::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; font: 500 13px/1 var(--display); color: var(--secondary); transition: all .4s ease; }
.step b { color: var(--secondary); }
.step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.step[aria-current="step"] { background: #fff; color: var(--prose); box-shadow: 0 10px 24px -20px rgba(20, 32, 30, .5); }
.step[aria-current="step"] b { color: var(--ink); }
.step[aria-current="step"]::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.replay-toggle { margin: 10px 0 0 12px; font: 500 14px/1 var(--display); color: var(--ink); background: none; border: 1px solid var(--hair); border-radius: 20px; min-height: 40px; padding: 0 16px; cursor: pointer; }
.replay-toggle:hover { border-color: var(--ink); }

.rack-section { border-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { font: 500 14px/1 var(--display); color: var(--ink); background: var(--paper); border: 1px solid var(--hair); border-radius: 22px; min-height: 42px; padding: 0 16px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rack-count { margin-top: 16px; font-size: 14px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.rack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 14px; margin-top: 16px; }
.rack-grid li { min-width: 0; }
.rack-grid img { border-radius: 10px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; background: #e9e4da; }
.rack-grid p { font-size: 13.5px; line-height: 1.35; margin-top: 8px; }
.rack-grid p + p { margin-top: 2px; color: var(--secondary); font-size: 13px; }
.rack-grid b { margin-right: 4px; }
.rack-grid.is-short li:nth-child(n+9) { display: none; }
.more { width: 100%; margin-top: 20px; }

/* The week: text beside the real screen of that day. */
.week { padding: var(--space) 0; }
.days { margin-top: 56px; display: grid; gap: clamp(64px, 10vw, 120px); }
.day { display: grid; gap: 28px; align-items: center; justify-items: center; }
.day-text { justify-self: stretch; }
.when { font: 500 15px/1 var(--display); color: var(--accent); display: flex; align-items: center; gap: 10px; }
.when::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.day h3 { margin-top: 14px; }
.day-text p:not(.when) { margin-top: 12px; max-width: 46ch; }
.day .phone { max-width: 280px; }

.limits { padding: var(--space) 0; border-top: 1px solid var(--rule); }
.limits-grid { display: grid; gap: 40px; }
.limits-lists { display: grid; gap: 32px; }
.limits h3 { font-size: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.limits li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--rule); position: relative; }
.limits li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.limits-lists > div + div li::before { width: 14px; height: 2px; border: 0; background: var(--flag); transform: none; top: 24px; }

.trial { padding: var(--space) 0; }
.trial-grid { display: grid; gap: 28px; }
.trial-steps { counter-reset: t; max-width: 560px; }
.trial-steps li { counter-increment: t; padding: 16px 0 16px 44px; border-top: 1px solid var(--rule); position: relative; }
.trial-steps li::before { content: counter(t); position: absolute; left: 0; top: 15px; font: 500 14px/1 var(--display); color: var(--accent); border: 1px solid var(--accent); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; }
.trial-actions { display: grid; gap: 12px; align-content: start; }
.trial-actions .btn { width: 100%; }
.doubts-title { font-size: clamp(21px, 2.4vw, 25px); margin-top: clamp(56px, 8vw, 88px); }
.doubts { display: grid; gap: 0 48px; margin: 20px 0 0; }
.doubts > div { border-top: 1px solid var(--rule); padding: 18px 0 20px; }
.doubts dt { font: 500 18px/1.3 var(--display); color: var(--ink); }
.doubts dd { margin: 8px 0 0; max-width: 60ch; }

/* On phones, one trial button stays at hand once the hero's has scrolled away. */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.dock .btn { width: 100%; }
.dock.is-shown { transform: none; }

.faq { padding: var(--space) 0; }
.faq-frame { max-width: 820px; }
.faq h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 28px; }
.faq-more { margin-top: 24px; color: var(--secondary); }
details { border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font: 500 18px/1.3 var(--display); color: var(--ink); position: relative; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 24px; width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(-135deg); top: 28px; }
details p { padding: 0 0 20px; max-width: 62ch; }

.foot { border-top: 1px solid var(--rule); padding: 36px 0 48px; }
.foot-bar { display: grid; gap: 10px; }
.foot .brand { font-size: 16px; }
.foot .brand span b { margin-right: 8px; }

@media (max-width: 959px) {
  .replay .steps-wrap { order: -1; }
  .replay .phone { width: min(300px, calc(58svh * 390 / 844 + 18px)); }
}
@media (min-width: 720px) {
  .dock { display: none; }
  .doubts { grid-template-columns: 1fr 1fr; }
  .rack-grid { grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
  .limits-lists { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot-bar { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .day { grid-template-columns: 1fr auto; gap: 56px; justify-items: stretch; }
  .day:nth-child(even) .day-text { order: 2; }
  .day .phone { width: 280px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; }
  .capture { grid-template-columns: .75fr 1.25fr; gap: 56px; }
  .replay { grid-template-columns: 290px minmax(240px, 1fr); align-items: center; justify-items: start; gap: 40px; }
  .replay .phone { width: 290px; }
  .rack-grid { grid-template-columns: repeat(6, 1fr); }
  .limits-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; }
  .trial-grid { grid-template-columns: 1.3fr .7fr; grid-template-areas: "intro actions" "steps actions"; gap: 32px 72px; }
  .trial-intro { grid-area: intro; }
  .trial-steps { grid-area: steps; }
  .trial-actions { grid-area: actions; align-self: end; }
}
@media (max-width: 719px) {
  .has-dock .top { position: static; }
  .has-dock .foot { padding-bottom: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* The trial form. */
.trial-form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 20px; box-shadow: 0 20px 40px -32px rgba(20, 32, 30, .5); }
.trial-form .field { display: grid; gap: 6px; }
.trial-form label { font: 500 15px/1.3 var(--display); color: var(--ink); }
.trial-form .opt { font: 400 13px/1 var(--sans); color: var(--secondary); margin-left: 4px; }
.trial-form input:not([type=checkbox]), .trial-form select { font: 17px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid #838E89; border-radius: 8px; min-height: 50px; padding: 11px 13px; width: 100%; }
.trial-form input:focus-visible, .trial-form select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.trial-form [aria-invalid="true"] { border-color: #823F31; background: #fbf2ee; }
.trial-form .err { color: #823F31; font-size: 14px; margin: 0; }
.trial-form .consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font: 400 14px/1.45 var(--sans); color: var(--prose); }
.trial-form .consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.trial-form .consent a { color: var(--accent); }
.trial-form .btn--wide { width: 100%; min-height: 56px; margin-top: 4px; }
.trial-form .btn[disabled] { opacity: .6; cursor: progress; }
.trial-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 15px; color: var(--secondary); }
.form-status.is-error { color: #823F31; }
.trial-done { background: var(--tint); border-radius: 14px; padding: 22px; }
.trial-done h3 { margin: 0 0 6px; }
.thanks { padding: 80px var(--gutter) 120px; max-width: 720px; }
.thanks .btn { margin-top: 28px; }

/* Hero checklist: three things the owner gets. */
.checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 34em; }
.checks li { position: relative; padding-left: 36px; font: 500 clamp(18px, 2.1vw, 20px)/1.35 var(--display); color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); }
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(.1em + 6px); width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.faq .more { margin: 0 0 20px; padding-left: 20px; display: grid; gap: 6px; }

/* Hero demo: the phone is the picture; three name pills switch the bride. */
.brides { display: grid; justify-items: center; gap: 14px; }
.brides-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.phone--hero { display: grid; width: min(270px, 72%); border-radius: 40px; padding: 8px; }
.bride-pick { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tint); }
.bride-pick label { padding: 9px 16px; min-height: 40px; display: grid; place-items: center; border-radius: 999px; font: 500 15px/1 var(--display); color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.bride-pick input:checked + label { background: var(--ink); color: var(--paper); }
.brides-caption { font-size: 13px; color: var(--secondary); margin: 0; text-align: center; }
@media (min-width: 900px) { .phone--hero { width: 290px; } }
@media (max-width: 420px) { .checks li { font-size: 16px; padding-left: 32px; } .checks { gap: 10px; } }
.checks li, .actions-note { text-wrap: balance; }

/* Headline test: ?v=b shows the second headline (set in <head>, before paint). */
#hero-title [data-v="b"], html[data-v="b"] [data-v="a"] { display: none; }
html[data-v="b"] #hero-title [data-v="b"] { display: inline; }

/* The one sentence that says what we are, above the headline. */
.eyebrow { margin: 0 0 14px; max-width: 30em; font: 500 clamp(14px, 1.5vw, 16px)/1.4 var(--display); color: var(--accent); text-wrap: balance; }

/* What the shop and her brides need: three short answers, no app to install. */
.needs { margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--hair); }
.needs h3 { margin: 0 0 18px; }
.needs dl { display: grid; gap: 18px; margin: 0; }
.needs dt { font: 500 17px/1.3 var(--display); color: var(--ink); }
.needs dd { margin: 4px 0 0; color: var(--prose); max-width: 26em; }
@media (min-width: 900px) { .needs dl { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
