/*
  Curador holding page styles. Every value comes from tokens.css.

  The base, logo, button, status, form, theme toggle and public layout rules are
  those of design_system/reference/reference.css, cut down to what this page
  uses. What is written here directly is what design_system/README.md allows:
  proportions inside a component, the two layout switches named in tokens.css
  (67.5rem and 53.75rem) and the visually-hidden clip.

  This page's own: the font face, the hero with its sign-up, the picture of the
  result (.stage), who it is for and the benefits. The picture's colours stand for a
  customer's photographs, not for anything of Curador's, so they are named once
  on .stage and used nowhere else.
*/

/* The page serves Geist itself (rules.md, Typefaces and images). One variable
   file covers the three weights the tokens use. Its licence is beside it. */
@font-face { font-family: "Geist"; src: url("/fonts/geist-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: break-word; background: var(--color-ground); color: var(--color-text); font: var(--weight-regular) var(--text-body)/var(--leading-body) var(--font-ui); }
h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg.icon { width: var(--size-icon); height: var(--size-icon); flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; }
:focus-visible { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
.link { color: var(--color-action-text); text-underline-offset: 0.15em; overflow-wrap: anywhere; }
.skip-link { position: absolute; left: var(--space-2); top: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--color-surface); border: var(--border-width) solid var(--color-border-control); border-radius: var(--radius-control); transform: translateY(-200%); z-index: var(--layer-toast); }
.skip-link:focus { transform: none; }

/* ---------- Logo ---------- */
.logo-link { display: inline-flex; align-items: center; padding: 0 var(--space-2); color: var(--color-text); text-decoration: none; }
.logo { display: block; height: var(--size-mark); width: auto; max-width: 100%; }
/* The mark's symbol sets no colour of its own: the square takes `color` and the emblem `fill`. */
.logo-mark { color: var(--color-action); fill: var(--color-text-on-action); }

/* ---------- Button, status, theme toggle ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--size-control); padding: var(--space-2) var(--space-4); border: var(--border-width) solid var(--color-border-control); border-radius: var(--radius-control); background: var(--color-surface); color: var(--color-text); font: var(--weight-strong) var(--text-body)/var(--leading-figure) var(--font-ui); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease); }
.button--primary { background: var(--color-action); border-color: var(--color-action); color: var(--color-text-on-action); }
.button--primary:hover { background: var(--color-action-hover); border-color: var(--color-action-hover); }
.button[disabled] { background: var(--color-surface-sunken); border-color: var(--color-border); color: var(--color-text-secondary); cursor: not-allowed; }
.button[aria-busy="true"] { cursor: progress; }
.spinner { width: var(--size-icon-control); height: var(--size-icon-control); border-radius: var(--radius-round); border: var(--focus-width) solid currentColor; border-right-color: transparent; animation: spin var(--motion-spin) linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-right-color: currentColor; border-style: dotted; } }
.status { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-half) var(--space-2); border-radius: var(--radius-round); background: var(--color-neutral-soft); color: var(--color-neutral); font-size: var(--text-small); font-weight: var(--weight-strong); line-height: var(--leading-heading); }
.status .icon { width: var(--size-icon-small); height: var(--size-icon-small); stroke-width: 2; }
.status[data-status="done"] { background: var(--color-done-soft); color: var(--color-done); }
.status[data-status="info"] { background: var(--color-info-soft); color: var(--color-info); }
.icon-button { display: inline-grid; place-items: center; width: var(--size-touch); height: var(--size-touch); border: 0; border-radius: var(--radius-control); background: transparent; color: inherit; cursor: pointer; position: relative; }
/* The theme toggle: a small, quiet icon button. The sun and the moon are drawn in the same place, and light-dark() leaves showing the one for the theme the page is in, so the icon is right from the first paint. Where the device forces its own colours a theme changes nothing, so the toggle is not shown. */
.theme-toggle { width: var(--size-control-small); height: var(--size-control-small); flex: none; color: var(--color-text-secondary); }
.theme-toggle:hover { background: var(--color-surface-sunken); color: var(--color-text); }
.theme-toggle .icon { grid-area: 1 / 1; width: var(--size-icon-control); height: var(--size-icon-control); }
.theme-toggle .theme-toggle-light { stroke: light-dark(currentColor, transparent); }
.theme-toggle .theme-toggle-dark { stroke: light-dark(transparent, currentColor); }
@media (forced-colors: active) { .theme-toggle { display: none; } }
/* The toggle needs the script. Without it the page follows the device, and the toggle is not shown. */
html:not([data-script]) .theme-toggle { display: none; }

/* ---------- Form ---------- */
.label { font-weight: var(--weight-strong); }
.hint { color: var(--color-text-secondary); font-size: var(--text-small); }
.input { width: 100%; min-height: var(--size-control); padding: var(--space-2) var(--space-3); border: var(--border-width) solid var(--color-border-control); border-radius: var(--radius-control); background: var(--color-surface); color: var(--color-text); font: var(--weight-regular) var(--text-body)/var(--leading-body) var(--font-ui); }
.input[aria-invalid="true"] { border-color: var(--color-needs-you); }
.field-error { display: flex; gap: var(--space-1); align-items: flex-start; color: var(--color-needs-you); font-size: var(--text-small); font-weight: var(--weight-medium); }
.field-error .icon { width: var(--size-icon-small); height: var(--size-icon-small); margin-top: var(--space-half); }
/* The field people never see. Off the page, not display: none, which the scripts it is for look out for. */
.field-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Public layout ---------- */
.public { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; overflow-x: clip; }
.public-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-page); border-bottom: var(--border-width) solid var(--color-border); background: var(--color-surface-nav); }
.public-main { padding: var(--space-12) var(--space-page) var(--space-20); display: grid; gap: var(--space-10); align-content: start; justify-items: center; }
.public-main > * { min-width: 0; width: 100%; max-width: var(--size-page); }
.public-display { font-size: var(--text-display); font-weight: var(--weight-strong); line-height: var(--leading-display); letter-spacing: var(--tracking-display); text-wrap: balance; }
.public-lead { font-size: var(--text-reading); line-height: var(--leading-reading); color: var(--color-text-secondary); text-wrap: pretty; }
.public-lead--large { font-size: var(--text-lead); line-height: var(--leading-body); }
/* The not-found page and the two pages the form sends a browser without the script to. */
.public-intro { display: grid; gap: var(--space-4); max-width: var(--size-reading); text-align: center; justify-items: center; justify-self: center; }
.public-intro .public-display { font-size: var(--text-display-compact); }
.public-foot { display: grid; gap: var(--space-2); justify-items: center; padding: var(--space-6) var(--space-page); border-top: var(--border-width) solid var(--color-border); color: var(--color-text-secondary); font-size: var(--text-small); text-align: center; }
.public-foot p { max-width: var(--size-reading); }

/* ---------- Hero: the promise and the sign-up ---------- */
.hero { display: grid; gap: var(--space-5); justify-items: center; text-align: center; }
.hero > * { min-width: 0; }
.hero .public-lead { max-width: var(--size-reading); }
.hero .status { padding: var(--space-1) var(--space-3); }
.signup { width: 100%; max-width: var(--size-dialog); margin-top: var(--space-3); text-align: left; scroll-margin-top: var(--space-6); }
.signup-form { display: grid; gap: var(--space-2); }
/* The button drops under the field when the two no longer fit on one line. */
.signup-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.signup-row .input { flex: 999 1 var(--size-sidebar); min-height: var(--size-touch); font-size: var(--text-reading); }
.signup-row .button { flex: 1 0 auto; min-height: var(--size-touch); padding-inline: var(--space-5); }
.signup .hint { margin-top: var(--space-1); text-align: center; text-wrap: balance; }
.signup-done { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); align-items: start; padding: var(--space-4); background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-card); }
.signup-done:focus { outline: 0; }
.signup-done .hint { text-align: left; }
.signup-title { font-size: var(--text-subtitle); font-weight: var(--weight-strong); line-height: var(--leading-heading); }
.done-mark { width: var(--space-6); height: var(--space-6); flex: none; border-radius: var(--radius-round); background: var(--color-done-solid); color: var(--color-text-on-action); display: grid; place-items: center; }
.done-mark .icon { width: var(--size-icon-small); height: var(--size-icon-small); stroke-width: 2.6; }

/* ---------- The picture: a publication that is already full when its owner wakes ---------- */
.stage {
  --art-night: var(--blue-950); --art-blue: var(--blue-400); --art-green: var(--green-300); --art-warm: var(--amber-300); --art-coral: var(--red-300); --art-light: var(--grey-0);
  --stage-shadow: 0 var(--space-5) var(--space-12) calc(var(--space-4) * -1) var(--color-scrim);
  position: relative; isolation: isolate; container-type: inline-size; max-width: calc(var(--size-page) - var(--space-20) * 2);
}
/* Dawn behind the window. */
.stage::before { content: ""; position: absolute; inset: calc(var(--space-12) * -1) calc(var(--space-20) * -1) 20%; z-index: -1; pointer-events: none; background: radial-gradient(45% 60% at 68% 55%, color-mix(in oklab, var(--art-warm) 34%, transparent), transparent 70%), radial-gradient(45% 60% at 30% 45%, color-mix(in oklab, var(--color-action) 26%, transparent), transparent 70%); }
/* The window fades out at its foot, so the picture ends without an edge. */
.stage-frame { padding: var(--space-2) var(--space-8) 0; max-height: calc(var(--size-media) - var(--space-8)); overflow: hidden; -webkit-mask-image: linear-gradient(var(--color-text) 72%, transparent); mask-image: linear-gradient(var(--color-text) 72%, transparent); }
.browser { border: var(--border-width) solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--stage-shadow); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-bottom: var(--border-width) solid var(--color-border); background: var(--color-surface-nav); }
.browser-dot { width: var(--space-2); height: var(--space-2); border-radius: var(--radius-round); background: var(--color-border-strong); }
.browser-url { margin-inline: auto; padding: var(--space-half) var(--space-5); border-radius: var(--radius-round); background: var(--color-surface-sunken); color: var(--color-text-secondary); font-size: var(--text-small); transform: translateX(calc(var(--space-5) * -1)); }
.front { display: grid; gap: var(--space-4); padding: var(--space-5); }
.front-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-3); border-bottom: var(--border-width) solid var(--color-border); }
.front-name { font-size: var(--text-subtitle); font-weight: var(--weight-strong); letter-spacing: var(--tracking-title); }
.front-nav { display: flex; gap: var(--space-3); }
.front-nav .bar { width: var(--space-10); }
.front-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-4); align-items: start; }
.story { display: grid; gap: var(--space-2); min-width: 0; }
.story--lead { grid-row: span 2; }
.story-art { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-control); overflow: hidden; }
.story--lead .story-art { aspect-ratio: 4 / 3; }
.story-art .status { position: absolute; left: var(--space-2); top: var(--space-2); font-family: var(--font-time); }
/* Lines standing for text. */
.bar { display: block; height: var(--space-2); border-radius: var(--radius-round); background: var(--color-border-strong); }
.bar--title { height: var(--space-3); background: color-mix(in oklab, var(--color-text) 72%, transparent); }
.w-90 { width: 90%; } .w-75 { width: 75%; } .w-60 { width: 60%; }
/* Five pictures, drawn with gradients. */
.art--dawn { background: linear-gradient(0deg, var(--art-night) 0 20%, transparent 20%), radial-gradient(circle at 50% 80%, var(--art-light) 0 9%, var(--art-warm) 9.5% 17%, transparent 17.5%), linear-gradient(180deg, var(--art-night), var(--art-blue) 45%, var(--art-coral) 72%, var(--art-warm)); }
.art--sea { background: repeating-linear-gradient(172deg, transparent 0 13%, color-mix(in oklab, var(--art-light) 30%, transparent) 13% 15%), linear-gradient(180deg, var(--art-blue), var(--art-green)); }
.art--field { background: radial-gradient(circle at 78% 30%, var(--art-light) 0 10%, transparent 10.5%), linear-gradient(8deg, var(--art-green) 0 38%, transparent 38%), linear-gradient(160deg, var(--art-warm), var(--art-coral)); }
.art--dusk { background: radial-gradient(circle at 26% 68%, var(--art-warm) 0 20%, transparent 20.5%), linear-gradient(200deg, var(--art-coral), var(--art-night)); }
.art--city { background: linear-gradient(90deg, var(--art-night) 0 14%, transparent 14% 20%, var(--art-night) 20% 38%, transparent 38% 62%, var(--art-night) 62% 82%, transparent 82%) bottom / 100% 55% no-repeat, linear-gradient(90deg, transparent 0 40%, var(--art-night) 40% 58%, transparent 58% 86%, var(--art-night) 86%) bottom / 100% 34% no-repeat, linear-gradient(180deg, var(--art-coral), var(--art-warm)); }
/* The same story on social media, and the note that it all happened already. */
.post { position: absolute; right: calc(var(--space-5) * -1); bottom: var(--space-10); width: var(--size-sidebar); display: grid; gap: var(--space-2); padding: var(--space-3); background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--stage-shadow); }
.post-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-1); }
.post-avatar { width: var(--space-8); height: var(--space-8); flex: none; border-radius: var(--radius-round); background: var(--art-night); border: var(--border-width) solid var(--color-border); }
.post-who { display: grid; min-width: 0; text-align: left; }
.post-name { font-size: var(--text-small); font-weight: var(--weight-strong); line-height: var(--leading-heading); }
.post-time { font: var(--weight-regular) var(--text-small)/var(--leading-heading) var(--font-time); color: var(--color-text-secondary); }
.toast { position: absolute; left: 0; top: calc(var(--space-20) * 2.5); display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2); background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-round); box-shadow: var(--stage-shadow); font-weight: var(--weight-strong); }
/* The stories arrive one after another, once, as the page opens. */
@keyframes arrive { from { opacity: 0; transform: translateY(var(--space-3)); } }
.story, .post, .toast { animation: arrive var(--motion-arrive) var(--motion-ease) backwards; }
.story:nth-child(1) { animation-delay: calc(var(--motion-stagger) * 1); }
.story:nth-child(2) { animation-delay: calc(var(--motion-stagger) * 2); }
.story:nth-child(3) { animation-delay: calc(var(--motion-stagger) * 3); }
.story:nth-child(4) { animation-delay: calc(var(--motion-stagger) * 4); }
.story:nth-child(5) { animation-delay: calc(var(--motion-stagger) * 5); }
.post { animation-delay: calc(var(--motion-stagger) * 6.5); }
.toast { animation-delay: calc(var(--motion-stagger) * 8); }
@media (prefers-reduced-motion: reduce) { .story, .post, .toast { animation: none; } }
/* A narrow picture: two columns, three stories. It follows the picture's own width, not the viewport's. */
@container (max-width: 34rem) {
  .stage-frame { padding-inline: var(--space-2); }
  .front { padding: var(--space-3); gap: var(--space-3); }
  .front-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .story--lead { grid-column: span 2; grid-row: auto; }
  .story--lead .story-art { aspect-ratio: 16 / 9; }
  .story:nth-child(n + 4), .front-nav { display: none; }
  .post { right: 0; width: calc(var(--size-sidebar) * 0.8); bottom: var(--space-8); }
  .post-avatar { width: var(--space-6); height: var(--space-6); }
  .toast { top: calc(var(--space-20) * 1.9); font-size: var(--text-small); }
}

/* ---------- Who it is for ---------- */
.audience { display: grid; gap: var(--space-4); justify-items: center; max-width: calc(var(--size-page) - var(--space-20) * 2); text-align: center; }
.section-title { font-size: var(--text-section); font-weight: var(--weight-strong); color: var(--color-text-secondary); line-height: var(--leading-heading); }
.audience-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.audience-list li { padding: var(--space-2) var(--space-4); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-round); background: var(--color-surface); font-weight: var(--weight-medium); }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); max-width: calc(var(--size-page) - var(--space-20) * 2); text-align: center; }
.benefit { display: grid; gap: var(--space-2); justify-items: center; align-content: start; }
.benefit-icon { width: var(--space-10); height: var(--space-10); margin-bottom: var(--space-2); border-radius: var(--radius-control); background: var(--color-action-soft); color: var(--color-action-text); display: grid; place-items: center; }
.benefit-title { font-size: var(--text-title); font-weight: var(--weight-strong); line-height: var(--leading-tight); letter-spacing: var(--tracking-title); }
.benefit p { font-size: var(--text-reading); color: var(--color-text-secondary); text-wrap: balance; }

/* ---------- Layout switch (see tokens.css): compact, a width of the viewport ---------- */
@media (max-width: 53.75rem) {
  .public-head, .public-foot { padding-inline: var(--space-page-compact); }
  .public-main { padding: var(--space-8) var(--space-page-compact) var(--space-12); gap: var(--space-10); }
  .public-display { font-size: var(--text-display-compact); }
  .public-lead--large { font-size: var(--text-lead-compact); }
  .post { right: 0; }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .button, .input, .skip-link, .logo-link { min-height: var(--size-touch); }
  .skip-link { display: inline-flex; align-items: center; }
  .theme-toggle { width: var(--size-touch); height: var(--size-touch); }
}
