/* The one stylesheet of sedalina.ai: tokens, the waitlist form, the home page and the text pages. */
:root {
  /* Dark prototype: the palette of the sedalina iPhone app (Theme in Components.swift). */
  color-scheme: dark;
  --ink: #ecebe8;      /* app ink */
  --muted: #9a9a9f;    /* app muted */
  --line: #2c2c30;     /* app line */
  --paper: #0e0e0f;    /* app bg */
  --card: #18181a;     /* app card */
  --raised: #222225;   /* app raised */
  --selected: #2a2a2d; /* app selected */
  --sand: #e3d8ce;     /* app stage: the light stage behind clothes */
  --accent: #d8ccb6;   /* app accent: only the main button */
  --on-accent: #1a1814;/* app onAccent */
  --field-edge: #6e6e73; /* not in the app: a field edge with 3:1 on bg and card */
  --error: #e07a6a;    /* app bad */
  --error-bg: #222225; /* app raised */
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wordmark { font: 28px/1 var(--serif); letter-spacing: -0.5px; text-decoration: none; }
.label { text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; color: var(--muted); }
.caption { font-size: 12px; color: var(--muted); }

/* Waitlist form */
.wl { max-width: 460px; scroll-margin-top: 24px; } /* the closing link lands here */
.wl-label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.wl-row { display: flex; gap: 8px; }
.wl input[type=email] {
  flex: 1; min-width: 0; font: 16px var(--sans); color: var(--ink); background: var(--card);
  border: 1px solid var(--field-edge); border-radius: 10px; padding: 13px 14px; height: 50px;
}
.wl input[type=email]::placeholder { color: var(--muted); }
.wl input[aria-invalid=true] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.wl input[readonly] { color: var(--muted); background: var(--selected); }
.wl button {
  font: 600 15px var(--sans); color: var(--on-accent); background: var(--accent); border: 0; border-radius: 10px;
  padding: 0 18px; height: 50px; cursor: pointer; white-space: nowrap;
}
.wl button[aria-disabled=true] { opacity: .7; cursor: progress; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-consent { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; }
/* The status line is a live region: it stays in the page in every state, so a
   screen reader hears each change. Empty, it takes no space. */
.wl-status { font-size: 14px; margin: 10px 0 0; }
.wl-status:empty { margin: 0; }
.wl[data-state=invalid] .wl-status { color: var(--error); }
.wl[data-state=error] .wl-status, .wl[data-state=blocked] .wl-status {
  color: var(--error); background: var(--error-bg); padding: 10px 12px; border-radius: 8px;
}
.wl[data-state=sending] button::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px;
  border: 2px solid rgba(26,24,20,.35); border-top-color: var(--on-accent); border-radius: 50%; animation: wlspin .8s linear infinite;
}
@keyframes wlspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wl[data-state=sending] button::before { animation: none; } }

/* Joined: the form row gives way to a calm confirmation. */
.wl-done { display: none; }
.wl[data-state=joined] .wl-done { display: block; }
.wl[data-state=joined] .wl-field { display: none; }
/* Sending and joined: the button or the box below shows the message, so the live
   region speaks it unseen. */
.wl[data-state=sending] .wl-status, .wl[data-state=joined] .wl-status {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.wl-done-box {
  background: var(--card); border-left: 3px solid var(--muted); border-radius: 8px; padding: 14px 16px; font-size: 15px;
}
.wl-done-title { font: 20px/1.25 var(--serif); margin: 0 0 4px; }
.wl-done-title:focus { outline: none; }
.wl-done-box p { margin: 0; color: var(--ink); }
.wl-done-email { font-weight: 600; }
.wl-again { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-size: 13px; color: var(--muted); }

@media (max-width: 520px) {
  .wl-row { flex-direction: column; }
  .wl button { width: 100%; }
}
.wl[data-state=joined] .wl-consent { display: none; }

/* Home page (direction A, Lookbook). */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
header.top { display: flex; justify-content: space-between; align-items: center; padding: 26px 0 20px; border-bottom: 1px solid var(--line); }
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 56px 0 48px; }
.hero h1 { font: clamp(42px, 5.4vw, 68px)/1.04 var(--serif); letter-spacing: -2px; margin: 14px 0 20px; }
.lede { color: var(--muted); font-size: 18px; max-width: 30em; margin: 0 0 28px; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.board figure { margin: 0; background: var(--sand); border-radius: 14px; overflow: hidden; }
/* Each mannequin file is 2:3 with the full figure on one baseline; contain never crops it. */
.board img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; }
.board figcaption { font: 12px/1 var(--serif); letter-spacing: 1px; text-transform: uppercase; text-align: center; padding: 10px 0 12px; color: var(--on-accent); }
.board-note { margin: 10px 2px 0; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 56px; }
.step { padding: 26px 22px 28px 0; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line); }
.step .n { font: 13px var(--serif); color: var(--muted); }
.step h2 { font: 22px/1.2 var(--serif); margin: 6px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.closing { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding: 0 0 64px; }
.closing h2 { font: 34px/1.1 var(--serif); letter-spacing: -1px; margin: 0 0 12px; }
.closing .to-form { margin-top: 2px; }
.closing .to-form a { display: inline-flex; align-items: center; min-height: 44px; }
.closing p { color: var(--muted); margin: 0; max-width: 30em; }
footer { border-top: 1px solid var(--line); padding: 8px 0 28px; display: flex; justify-content: space-between; align-items: center; gap: 0 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
footer > span { margin-right: auto; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin-left: 14px; }
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  header.top { padding: 18px 0 14px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 32px; }
  .hero h1 { font-size: 44px; letter-spacing: -1.4px; }
  .lede { font-size: 16.5px; margin-bottom: 22px; }
  .board { gap: 8px; }
  .board figcaption { font-size: 10px; padding: 8px 0 9px; }
  .steps { grid-template-columns: 1fr 1fr; margin-bottom: 36px; }
  .step, .step + .step { padding: 18px 12px 20px 0; border-left: 0; }
  .step:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .step:last-child { grid-column: 1 / -1; }
  .step h2 { font-size: 19px; }
  .closing { grid-template-columns: 1fr; gap: 20px; padding-bottom: 40px; }
  .closing h2 { font-size: 28px; }
  footer nav a { margin: 0 16px 0 -4px; }
}

/* Text pages: privacy, joined, and the no-script answer of the Worker. */
.note { max-width: 640px; margin: 0 auto; padding: 28px 16px 56px; }
.note h1 { font: 34px/1.1 var(--serif); margin: 18px 0 8px; }
.note h2 { font: 21px/1.2 var(--serif); margin: 28px 0 6px; }
.note p, .note li { color: var(--muted); }
.note .note-error { color: var(--error); background: var(--error-bg); border-left: 3px solid var(--error); padding: 10px 12px; border-radius: 8px; }
.note .wl { margin: 20px 0 8px; }
.note footer { margin-top: 32px; }
.note-links a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 18px; }
