/* Marker doodle look for the landing and site pages: Cabinet Grotesk, Apfel Grotezk, Commit Mono,
   the Marker palette in light and dark, and blue UI tape (#3C8BEA with #090801 ink); yellow stays in Ziggy's own art. */
@font-face {
  font-family: 'Cabinet Grotesk';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/CabinetGrotesk-Bold.otf') format('opentype');
}
@font-face {
  font-family: 'Cabinet Grotesk';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('fonts/CabinetGrotesk-Extrabold.otf') format('opentype');
}
@font-face {
  font-family: 'Apfel Grotezk';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/ApfelGrotezk-Regular.otf') format('opentype');
}
@font-face {
  font-family: 'Apfel Grotezk';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('fonts/ApfelGrotezk-Mittel.otf') format('opentype');
}
@font-face {
  font-family: 'Apfel Grotezk';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/ApfelGrotezk-Fett.otf') format('opentype');
}
@font-face {
  font-family: 'Commit Mono';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/CommitMono-400-Regular.otf') format('opentype');
}
@font-face {
  font-family: 'Commit Mono';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/CommitMono-700-Regular.otf') format('opentype');
}

:root {
  color-scheme: light dark;
  --font-display: 'Cabinet Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Apfel Grotezk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ticket: 'Commit Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --target: 44px;
  --radius: 14px;
  --measure: 1200px;
  --motion-tape: 180ms;
  --ease-tape: cubic-bezier(.3, 1.5, .55, 1);

  --steel: #FBF8F2;
  --well: #F1EBDF;
  --key-paper: #FFFDF8;
  --ink: #22201C;
  --ink-soft: #675F53;
  --action: #C0352A;
  --action-on-well: #C0352A;
  --on-action: #FFFAF2;
  --confirm: #2D64C3;
  --tape: #3C8BEA;
  --tape-ink: #090801;
  --art-paper: #FFFDF8;
  --art-ink: #22201C;
  --rule: #D8CFC0;
  --ticket-rule: #C2B8A6;
  --shadow-ink: #22201C;

  /* Compatibility tokens for privacy.html, support.html and pricing.html */
  --porcelain: var(--well);
  --ticket: var(--key-paper);
  --tomato: var(--action-on-well);
  --herb: var(--confirm);
  --on-tomato: var(--on-action);
}

@media (prefers-color-scheme: dark) {
  :root {
    --steel: #1B1A18;
    --well: #262420;
    --key-paper: #2B2925;
    --ink: #EFE9DE;
    --ink-soft: #B3AA9B;
    --action: #FF7A66;
    --action-on-well: #FF7A66;
    --on-action: #1B1A18;
    --confirm: #8AB4FF;
    --tape: #3C8BEA;
    --tape-ink: #090801;
    --art-paper: #FFFDF8;
    --art-ink: #22201C;
    --rule: #3D3933;
    --ticket-rule: #524D45;
    --shadow-ink: #090801;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--steel);
  color: var(--ink);
  font: 400 17px/1.5 var(--font-body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--action-on-well);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--steel);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}
.skip:focus-visible { top: 12px; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* Header */
.top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  font: 800 20px/1 var(--font-display);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.wordmark-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--art-paper);
  border: 2px solid var(--art-ink);
  padding: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.wordmark-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.top nav ul {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.8vw, 18px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.top nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 48px;
  padding: 0 10px;
  font: 700 16px/1 var(--font-display);
  text-decoration: none;
}
.top nav a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .top nav .wide { display: none; }
}

/* Marker keys */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  min-width: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--action);
  color: var(--on-action);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--shadow-ink);
  font: 800 17px/1 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--shadow-ink);
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--shadow-ink);
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.btn-paper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--key-paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 0 2px 0 var(--shadow-ink);
  font: 700 16px/1 var(--font-display);
  text-decoration: none;
}
.btn-paper:hover { background: var(--well); }

/* Blue UI tape: #3C8BEA surface with #090801 ink */
.tape {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 8px 2px;
  background: var(--tape);
  color: var(--tape-ink);
  border: 1.5px solid var(--tape-ink);
  border-radius: 4px;
  box-shadow: 2px 2px 0 rgb(9 8 1 / 0.24);
  font: 800 12.5px/1.15 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(var(--tilt, -1.2deg));
}
.tape > span {
  color: var(--tape-ink);
  display: inline-block;
}

@keyframes slap {
  0% { opacity: 0; transform: translateY(-10px) rotate(var(--tilt, -1.5deg)) scale(1.18); }
  55% { opacity: 1; transform: translateY(0) rotate(var(--tilt, -1.5deg)) scale(.96); }
  100% { opacity: 1; transform: translateY(0) rotate(var(--tilt, -1.5deg)) scale(1); }
}
.js .slap { opacity: 0; }
.js .slap.in { animation: slap var(--motion-tape) var(--ease-tape) both; }
@media (prefers-reduced-motion: reduce) {
  .js .slap { opacity: 1; }
  .js .slap.in { animation: none; }
  .btn:hover, .btn:active { transform: none; filter: brightness(0.92); }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Round Ziggy badge: warm paper surround in light and dark, with clear margin on every side */
.ziggy-badge {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  background: var(--art-paper);
  border: 2.5px solid var(--art-ink);
  box-shadow: 0 3px 0 var(--shadow-ink);
  padding: 15%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
}
.ziggy-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* A phone drawn in ink around a capture of the app */
.phone {
  position: relative;
  width: min(100%, var(--phone-w, 300px));
  margin: 0;
  padding: 7px;
  border-radius: 46px;
  background: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 6px 7px 0 var(--rule);
  flex: none;
}
.phone img {
  width: 100%;
  border-radius: 39px;
  background: var(--steel);
}

/* Hero: the app in a phone, beside one line saying what it is */
.hero {
  display: grid;
  gap: 28px;
  padding-top: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 7.4vw, 84px);
  margin: 14px 0 16px;
}
.hero h1 > span { display: block; }
.hero .lead {
  max-width: 34ch;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
  color: var(--ink);
}
.hero-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  --phone-w: 290px;
}
.hero-stage .ziggy-badge {
  position: absolute;
  width: 96px;
  padding: 14px;
  left: max(0px, calc(50% - 205px));
  bottom: 36px;
  transform: rotate(-6deg);
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .hero-stage { --phone-w: 320px; }
  .hero-stage .ziggy-badge { width: 120px; padding: 18px; left: calc(50% - 250px); }
}

/* The walk: one ordinary step per row, the phone beside what the sous chef worked out */
.walk-head { padding-top: 8px; padding-bottom: 28px; }
.walk-head h2 { font-size: clamp(32px, 4.6vw, 52px); max-width: 18ch; }
.walk {
  list-style: none;
  margin: 0 auto;
  padding-bottom: clamp(48px, 7vw, 96px);
  display: grid;
  gap: clamp(56px, 8vw, 104px);
}
.step {
  display: grid;
  gap: 22px;
  --phone-w: 270px;
  justify-items: center;
}
.step-copy { width: 100%; max-width: 560px; order: -1; }
.step-copy h3 { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 10px; }
.step-copy p { font-size: 18px; line-height: 1.5; max-width: 40ch; }
@media (min-width: 900px) {
  .step {
    grid-template-columns: 300px 1fr;
    grid-template-areas: "phone copy" "phone behind";
    column-gap: 64px;
    row-gap: 22px;
    align-items: start;
    justify-items: start;
    --phone-w: 300px;
  }
  .step:nth-child(even) {
    grid-template-columns: 1fr 300px;
    grid-template-areas: "copy phone" "behind phone";
  }
  .step .phone { grid-area: phone; }
  .step .step-copy { grid-area: copy; align-self: end; }
  .step .behind { grid-area: behind; }
}

/* Behind the scenes: what the sous chef checked or worked out for that screen */
.behind {
  width: 100%;
  max-width: 560px;
  background: var(--key-paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--shadow-ink);
  padding: 16px 18px 6px;
}
.behind h4 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 16px/1.2 var(--font-display);
}
.behind h4 .ziggy-badge { width: 38px; padding: 4px; border-width: 2px; box-shadow: none; }
.calc {
  list-style: none;
  margin: 0;
  padding: 0;
}
.calc li {
  display: grid;
  gap: 3px;
  padding: 11px 0;
  border-top: 1.5px dashed var(--ticket-rule);
}
.calc .sum {
  font: 700 16px/1.35 var(--font-ticket);
  color: var(--ink);
}
.calc .why {
  font: 400 15px/1.45 var(--font-body);
  color: var(--ink-soft);
}


/* Closing Beta & Footer */
.beta {
  background: var(--well);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.beta .wrap {
  padding-top: 52px;
  padding-bottom: 52px;
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 860px) {
  .beta .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }
}
.beta h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  margin: 8px 0 10px;
}
.beta-facts {
  background: var(--key-paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--shadow-ink);
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}
.beta-form {
  display: grid;
  gap: 14px;
}
.plan-choices {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.plan-choices legend {
  padding: 0;
  margin-bottom: 6px;
}
.field-label {
  display: block;
  font: 700 14px/1.2 var(--font-display);
  color: var(--ink);
}
.choice-key {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  min-width: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--key-paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--shadow-ink);
  font: 800 16px/1.15 var(--font-display);
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.choice-key:hover {
  background: var(--well);
}
.choice-key input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  margin: 0;
  border-radius: 12px;
  cursor: pointer;
}
.choice-key .tick {
  display: none;
  font-weight: 800;
}
.choice-key:has(input[type="radio"]:checked) {
  background: var(--well);
  border-width: 2.5px;
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--shadow-ink);
}
.choice-key:has(input[type="radio"]:checked) .tick {
  display: inline;
}
.field-group {
  display: grid;
  gap: 6px;
}
.text-field {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--key-paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--shadow-ink);
  font: 400 16px/1.3 var(--font-body);
}
button.btn {
  cursor: pointer;
}
.btn:disabled {
  background: var(--well);
  color: var(--ink-soft);
  border: 2px dashed var(--ink-soft);
  box-shadow: none;
  transform: none;
  cursor: wait;
}
.waitlist-status {
  font: 700 15px/1.35 var(--font-body);
  color: var(--ink);
}
.beta-questions {
  font: 400 14.5px/1.4 var(--font-body);
  color: var(--ink-soft);
  user-select: all;
}
.beta-address {
  display: inline-block;
  padding: 3px 8px;
  background: var(--well);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font: 700 14px/1.25 var(--font-ticket);
  color: var(--ink);
  user-select: all;
}
.beta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 32px;
  color: var(--ink-soft);
  font-size: 15px;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 48px;
  padding: 0 8px;
  font: 700 15px/1 var(--font-display);
  color: var(--ink-soft);
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* The plan choice unfolds out of the key that offered it, and folds back into it */
.waitlist-open { display: none; }
.js .waitlist-open { display: inline-flex; }
.js .waitlist-form[data-open="false"] .unfold { display: none; }
.js .waitlist-form[data-open="true"] .waitlist-open,
.js .waitlist-form[data-joined="true"] .waitlist-open,
.js .waitlist-form[data-joined="true"] .unfold { display: none; }
.waitlist-form .unfold, .unfold-more { display: grid; gap: 14px; }
.unfold-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.unfold-row .plan-choices { flex: 1; }
.fold-back {
  display: none;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border-radius: 50%;
  background: var(--key-paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--shadow-ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.js .fold-back { display: inline-flex; }
.fold-back svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .waitlist-form[data-open="true"] .unfold .choice-key {
    animation: unfold-key 340ms cubic-bezier(.2, 1.25, .4, 1) both;
    transform-origin: left center;
  }
  .waitlist-form[data-open="true"] .unfold .choice-key + .choice-key { animation-delay: 60ms; }
  .waitlist-form[data-open="true"] .fold-back { animation: unfold-back 260ms ease-out 120ms both; }
  .waitlist-form[data-open="true"] .unfold-more { animation: unfold-more 300ms ease-out 140ms both; }
  .waitlist-form[data-folding="true"] .unfold .choice-key,
  .waitlist-form[data-folding="true"] .fold-back,
  .waitlist-form[data-folding="true"] .unfold-more {
    animation: fold-key 200ms ease-in both;
    transform-origin: left center;
  }
  .js .waitlist-form[data-open="false"] .waitlist-open { animation: key-return 220ms ease-out both; }
}
@keyframes unfold-key {
  from { opacity: 0; transform: translateX(-24px) scaleX(0.35); }
  to { opacity: 1; transform: none; }
}
@keyframes unfold-back {
  from { opacity: 0; transform: scale(0.4) rotate(-90deg); }
  to { opacity: 1; transform: none; }
}
@keyframes unfold-more {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes fold-key {
  to { opacity: 0; transform: translateX(-24px) scaleX(0.35); }
}
@keyframes key-return {
  from { opacity: 0; transform: scaleX(1.25); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 379px) {
  .plan-choices { grid-template-columns: 1fr; }
  .behind, .beta-facts { padding: 14px 12px 6px; }
}

@media (forced-colors: active) {
  .btn, .btn-paper, .choice-key, .text-field, .tape, .behind, .phone, .fold-back {
    border: 2px solid ButtonText;
    box-shadow: none;
  }
}
