/* signtray.app: one stylesheet, the Mac's own type, nothing loaded from elsewhere.
   The icon's green carries the top of the page and the Finish & Next band;
   the rest is warm paper. Terracotta is the tray, amber the signed line. */

:root {
  --paper: oklch(97.4% 0.010 85);
  --paper-2: oklch(94.6% 0.016 82);
  --ink: oklch(25% 0.022 165);
  --muted: oklch(45% 0.020 165);
  --rule: oklch(88% 0.016 85);
  --green-950: oklch(24% 0.040 166);
  --green-900: oklch(31% 0.050 166);
  --green-700: oklch(44% 0.062 166);
  --on-green: oklch(95.5% 0.018 90);
  --on-green-muted: oklch(83% 0.030 150);
  --terracotta: oklch(53% 0.150 37);
  --terracotta-ink: oklch(48% 0.140 37);
  --amber: oklch(81% 0.140 78);
  --link: var(--green-700);
  --key: oklch(99% 0.006 85);
  --key-edge: oklch(80% 0.020 85);
  --measure: 38rem;
  --page: 66rem;
  --gutter: clamp(16px, 4vw, 40px);
  --space-section: clamp(56px, 9vw, 112px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(17.5% 0.018 166);
    --paper-2: oklch(21% 0.022 166);
    --ink: oklch(93% 0.012 90);
    --muted: oklch(74% 0.018 150);
    --rule: oklch(30% 0.022 166);
    --green-950: oklch(14% 0.028 166);
    --green-900: oklch(22% 0.040 166);
    --green-700: oklch(78% 0.070 160);
    --terracotta-ink: oklch(72% 0.120 40);
    --link: oklch(80% 0.075 160);
    --key: oklch(26% 0.024 166);
    --key-edge: oklch(38% 0.026 166);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }

.inner { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 15px;
}
.top .home { color: inherit; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.top .lang { color: inherit; opacity: 0.85; }

/* ---------- Hero: the tray on green ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 85% 10%, var(--green-700) 0%, transparent 60%),
    var(--green-900);
  color: var(--on-green);
  padding-bottom: clamp(48px, 8vw, 96px);
}
@media (prefers-color-scheme: dark) {
  .hero { background: radial-gradient(120% 90% at 85% 10%, oklch(30% 0.05 166) 0%, transparent 60%), var(--green-950); }
}
.hero a { color: var(--on-green); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-top: clamp(16px, 4vw, 48px);
}
@media (min-width: 820px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}
.wordmark {
  margin: 0;
  font-size: clamp(56px, 10vw, 112px);
  line-height: 0.95;
  font-weight: 750;
  letter-spacing: -0.045em;
}
.tagline {
  margin: 18px 0 0;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--amber);
}
.descriptor {
  margin: 10px 0 0;
  font-size: clamp(19px, 2.2vw, 22px);
  color: var(--on-green-muted);
}
.soon {
  display: inline-block;
  margin-top: 30px;
  padding: 8px 16px;
  border: 1px solid color-mix(in oklch, var(--on-green) 45%, transparent);
  border-radius: 999px;
  font-size: 15px;
  color: var(--on-green);
}
.hero-art { margin: 0; }
.hero-art img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-left: auto;
  filter: drop-shadow(0 24px 40px oklch(10% 0.03 166 / 0.45));
}

/* ---------- Sections ---------- */
main > section { padding: var(--space-section) 0 0; }
main > section:last-child { padding-bottom: var(--space-section); }
main > .band { margin-top: var(--space-section); padding-bottom: var(--space-section); }

h2 {
  margin: 0 0 16px;
  max-width: 22ch;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.lead { max-width: var(--measure); margin: 0 0 14px; }
p { margin: 0 0 14px; }

/* The queue: three trays, left to right. */
.flow {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: clamp(28px, 4vw, 48px) 0 0;
}
.flow .back { fill: color-mix(in oklch, var(--terracotta) 72%, black); }
.flow .lip { fill: var(--terracotta); }
.flow .sheet { fill: oklch(99% 0.004 85); stroke: oklch(70% 0.02 85); stroke-width: 1.5; }
.flow .line { fill: oklch(80% 0.01 85); }
.flow .ink { fill: none; stroke: oklch(28% 0.04 260); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.flow .signed { fill: var(--amber); }
.flow .arrow { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 7; }
.flow .head { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.flow text { fill: var(--ink); font: 650 20px -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; }

/* ---------- Finish & Next: the band ---------- */
.band { background: var(--green-900); color: var(--on-green); }
@media (prefers-color-scheme: dark) { .band { background: oklch(26% 0.048 166); } }
.band h2 { color: var(--on-green); }
.band .lead { color: var(--on-green-muted); }
.keys-hero {
  display: flex;
  gap: clamp(8px, 1.4vw, 14px);
  margin: 0 0 clamp(24px, 3vw, 36px);
}
.keys-hero kbd {
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 96px);
  height: auto;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: clamp(12px, 1.6vw, 18px);
  background: var(--on-green);
  color: var(--green-950);
  box-shadow: 0 4px 0 oklch(72% 0.03 120), 0 14px 30px oklch(10% 0.03 166 / 0.35);
  font: 600 clamp(28px, 4.2vw, 44px)/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 16px 40px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: baseline;
  font-size: 19px;
}
.steps li::before {
  content: counter(step);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
}
.closing {
  margin: clamp(28px, 4vw, 40px) 0 0;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* ---------- Signature and stamp: token becomes text ---------- */
.stamp-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin: 28px 0 8px;
}
.stamp-demo .to { color: var(--muted); font-size: 26px; }
.stamp-demo .result {
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid var(--terracotta-ink);
  border-radius: 6px;
  color: var(--terracotta-ink);
  font-size: 22px;
  font-weight: 600;
  transform: rotate(-2deg);
}
.caption { font-size: 15px; color: var(--muted); }

/* ---------- Statement lines ---------- */
.statement {
  max-width: 24ch;
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.statement span { display: block; color: var(--muted); }
.note {
  max-width: var(--measure);
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Inline keys and code ---------- */
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 6px;
  border: 1px solid var(--key-edge);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--key);
  color: var(--ink);
  font: 600 0.82em/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  text-align: center;
}
.keys { white-space: nowrap; }
code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--paper-2);
  font: 0.88em ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Text pages: privacy, support, legal notice ---------- */
.page-head { background: var(--paper-2); }
.doc {
  max-width: var(--measure);
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 88px);
}
.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -0.035em;
}
.doc .asof { color: var(--muted); margin-bottom: 32px; }
.doc h2 { max-width: none; margin-top: 40px; font-size: 24px; line-height: 1.25; letter-spacing: -0.015em; }
.doc h3 { margin: 28px 0 6px; font-size: 19px; line-height: 1.3; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
address { font-style: normal; line-height: 1.7; }

/* Details still to be decided, shown as such until they are filled in. */
.placeholder {
  padding: 0 4px;
  border-radius: 4px;
  background: color-mix(in oklch, var(--amber) 24%, transparent);
  outline: 1px dashed var(--amber);
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--rule);
  padding: 28px 0 44px;
  font-size: 14px;
  color: var(--muted);
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
footer.site a { color: var(--muted); }
footer.site p { margin: 0; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .steps li { font-size: 17px; }
  .flow text { font-size: 30px; }
}

/* ---------- Text beside a screenshot ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}
