/* Sole landing page. Colors and fonts are defined once, here. */
:root {
  --bg: #1c1714;
  --cream: #efe3d3;
  --muted: #d8cabc;
  --gold: #f0b63f;
  --earth: #a86e36;
  --line: rgba(239, 227, 211, 0.28);
  --font-display: "Gloock", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
}

a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  background: var(--gold); color: var(--bg); padding: .6rem 1rem; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: 82rem; margin-inline: auto; padding-inline: var(--gutter); }

/* Header + logo */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.75rem; position: relative; z-index: 2;
}
.logo {
  font-family: var(--font-display);
  font-size: 2.5rem; line-height: 1; color: var(--cream);
  text-decoration: none; letter-spacing: -0.01em;
}
/* The "o": hard split, gold on the top 54% of the glyph, earth brown on the bottom 46%.
   --o-top / --o-bottom place the split on the glyph itself rather than the line box. */
.logo .o {
  --o-top: 37.75%; --o-bottom: 82.4%; /* measured from Gloock's "o" glyph bounds */
  --split: calc(var(--o-top) + (var(--o-bottom) - var(--o-top)) * 0.54);
  background: linear-gradient(to bottom, var(--gold) 0 var(--split), var(--earth) var(--split) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.tagline {
  margin: 0; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* Hero */
.hero { position: relative; overflow: clip;padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem); }
.hero-grid { display: grid; gap: 2.5rem; position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 1rem; color: var(--gold); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; font-size: .875rem;
}
h1 {
  margin: 0; font-family: var(--font-display); font-weight: 400; color: var(--cream);
  font-size: clamp(2.25rem, 6.2vw, 4.4rem); line-height: 1.08; letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 .line { display: inline; }
.blurb { margin: 0 0 2rem; max-width: 34rem; color: var(--muted); font-size: 1.125rem; }

.actions { display: flex; flex-wrap: wrap; gap: .875rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.75rem; border-radius: 999px; border: 1.5px solid var(--gold);
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: #f7c860; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Comparison figure with spirals behind it */
.visual { position: relative; margin: 0; }
.spirals {
  position: absolute; z-index: 0; pointer-events: none;
  width: 190%; left: 50%; top: 50%; transform: translate(-50%, -50%); height: auto; aspect-ratio: 1;
}
.visual picture, .visual img { display: block; width: 100%; height: auto; }
/* The labels sit right at the image's edges, so the fade lives in padding around the image,
   filled with the image's own edge color, so the image is never dimmed and edges still blend. */
.frame {
  --padx: 8%; --pady: 2.5rem;
  position: relative; z-index: 1;
  padding: var(--pady) var(--padx);
  background: #1a140b;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--padx), #000 calc(100% - var(--padx)), transparent),
                      linear-gradient(to bottom, transparent, #000 var(--pady), #000 calc(100% - var(--pady)), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 var(--padx), #000 calc(100% - var(--padx)), transparent),
              linear-gradient(to bottom, transparent, #000 var(--pady), #000 calc(100% - var(--pady)), transparent);
  mask-composite: intersect;
}
.visual figcaption {
  position: relative; z-index: 1; margin-top: .25rem; text-align: center;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3rem; row-gap: 2rem; align-items: start; }
  .headline-block { grid-column: 1 / -1; }
  h1 .line { display: block; white-space: nowrap; }
  h1 { font-size: clamp(2.5rem, 5.1vw, 4.4rem); }
  .copy { grid-column: 1; padding-top: 1rem; }
  .visual { grid-column: 2; margin-top: -2rem; }
  .spirals { width: 170%; }
}

/* Waitlist */
.waitlist { position: relative; z-index: 1; padding-block: clamp(3rem, 8vw, 6rem); border-top: 1px solid rgba(239, 227, 211, .1); }
.waitlist h2, .doc h2 { font-family: var(--font-display); font-weight: 400; color: var(--cream); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; margin: 0 0 .75rem; }
.waitlist p.lead { margin: 0 0 1.75rem; max-width: 34rem; }
.form { display: grid; gap: 1rem; max-width: 34rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 500; color: var(--cream); font-size: .9375rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input {
  width: 100%; padding: .85rem 1rem; border-radius: .75rem; font: inherit; color: var(--cream);
  background: rgba(239, 227, 211, .06); border: 1.5px solid rgba(239, 227, 211, .3);
}
.field input::placeholder { color: rgba(216, 202, 188, .6); }
.field input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: #ff9d7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; margin: 0; font-weight: 500; }
.form-status[data-state="success"] { color: var(--gold); }
.form-status[data-state="error"] { color: #ffb39a; }
.form-status[data-state="info"] { color: var(--cream); }
.fineprint { font-size: .8125rem; margin: 0; }

.site-footer { position: relative; z-index: 1; padding-block: 2rem; font-size: .875rem; border-top: 1px solid rgba(239, 227, 211, .1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }

/* Docs page */
.doc { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 8vw, 6rem); max-width: 46rem; position: relative; z-index: 1; }
.doc h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); margin-bottom: 1rem; }
.doc section { margin-top: 3rem; }
.doc h3 { color: var(--cream); font-size: 1.125rem; margin: 1.5rem 0 .25rem; }
.doc ul { padding-left: 1.2rem; }
.placeholder {
  border-left: 3px solid var(--earth); padding: .75rem 1rem; background: rgba(168, 110, 54, .12);
  border-radius: 0 .5rem .5rem 0;
}
.placeholder strong { color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
.back { display: inline-block; margin-bottom: 1.5rem; }

/* Thank-you screen with follow-up questions */
.thanks { max-width: 34rem; }
.thanks:focus { outline: none; }
.thanks h3 { font-family: var(--font-display); font-weight: 400; color: var(--cream); font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 .5rem; }
.thanks .lead { margin: 0 0 1.5rem; }
.q { margin-bottom: 1.5rem; }
.q-title { margin: 0 0 .6rem; color: var(--cream); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  padding: .6rem 1.1rem; border-radius: 999px; font: 500 .9375rem/1.2 var(--font-body); cursor: pointer;
  color: var(--cream); background: transparent; border: 1.5px solid var(--line); transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--cream); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.chip[disabled] { opacity: .6; cursor: progress; }
.thanks[hidden], .form[hidden] { display: none; }

.q-head { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .6rem; min-height: 1.6em; }
.q-head .q-title { margin: 0; }
.q-status { font-size: .8125rem; letter-spacing: .04em; color: var(--muted); }
.q-status[data-state="success"]::before { content: "\2713\00a0"; color: var(--gold); }
.q-status[data-state="error"] { color: #ffb39a; }
.thanks .fineprint { margin-top: .5rem; }
