/*
 * Straight Hours brand
 *
 * Paper and ink with one accent, chalk-line blue. The yellow-green of a level's
 * vial is decoration only (logo, rules, pills) and never carries text.
 *
 * Contrast (WCAG, checked against every surface the text sits on; the lowest
 * is panel-2): light: ink 13.2:1, muted 5.1:1, blue 5.5:1, button text on
 * blue 6.8:1, live green (on panel only) 5.0:1. Dark: ink 11.8:1, muted
 * 6.3:1, blue 6.4:1, button text on blue 7.8:1. Re-check before changing.
 */
:root {
  --paper: #F5F2EA;
  --panel: #FFFFFF;
  --panel-2: #ECE7DB;
  --ink: #16212B;
  --muted: #55616B;
  --line: #D9D2C3;
  --blue: #1D5BA6;
  --blue-deep: #164A88;
  --on-blue: #FFFFFF;
  --vial: #D3E152;
  --vial-edge: #16212B;
  --bubble: #F7F5EE;
  --live: #2F7D4F;
  --shadow: 0 1px 2px rgba(22, 33, 43, .06), 0 8px 24px rgba(22, 33, 43, .08);

  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10171D;
    --panel: #18222B;
    --panel-2: #1F2B35;
    --ink: #ECE8DF;
    --muted: #A3ACB3;
    --line: #2C3843;
    --blue: #7DB0EE;
    --blue-deep: #A3C7F3;
    --on-blue: #0E1A26;
    --vial: #C7D649;
    --vial-edge: #ECE8DF;
    --live: #5FC48A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 82%;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .6rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; font-stretch: 90%; letter-spacing: 0; }
p { margin: 0 0 1rem; text-wrap: pretty; }

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--on-blue);
  font: 700 1.05rem/1 var(--body);
  padding: .95rem 1.4rem;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s;
}
.btn:hover { background: var(--blue-deep); color: var(--on-blue); }
.btn-small { font-size: .95rem; padding: .65rem 1rem; }
.btn-block { display: block; width: 100%; padding: 1.05rem; }

/* ---------- header ---------- */
.top { padding: 14px 0; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 800 1.35rem/1 var(--display); font-stretch: 82%; letter-spacing: -.005em;
}
.brand:hover { color: var(--ink); }
.vial { width: 40px; height: 22px; flex: none; }
.vial-glass { fill: var(--vial); stroke: var(--vial-edge); stroke-width: 2.5; }
.vial-bubble { fill: var(--bubble); }
.vial-tick { stroke: var(--vial-edge); stroke-width: 2; }
@media (max-width: 380px) {
  .brand { font-size: 1.15rem; gap: 8px; }
  .btn-small { font-size: .85rem; padding: .6rem .8rem; }
}

/* ---------- hero ---------- */
.hero { padding: 28px 0 48px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}
.eyebrow {
  font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .9rem; text-wrap: balance;
}
.accent { color: var(--blue); }
.nowrap { white-space: nowrap; }
.lead { font-size: 1.15rem; color: var(--ink); max-width: 36em; margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.note { color: var(--muted); font-size: .95rem; }

/* The example screen: plain HTML drawn to look like the app, not a picture. */
.phone {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 14px;
  max-width: 380px;
  width: 100%;
  justify-self: center;
  box-shadow: var(--shadow);
}
.phone p { margin: 0; }
.phone-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}
.phone-card + .phone-card { margin-top: 12px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--live);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 22%, transparent); }
.job { font-weight: 700; font-size: 1.1rem; margin-top: 10px !important; }
.timer {
  font: 800 3.1rem/1.05 var(--display); font-stretch: 85%;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin: 4px 0 2px !important;
}
.meta { color: var(--muted); font-size: .92rem; }
.fake-btn {
  margin-top: 14px !important; text-align: center; font-weight: 700;
  background: var(--ink); color: var(--paper); border-radius: 10px; padding: .75rem;
}
.note-line { margin-top: 12px !important; color: var(--muted); font-size: .92rem; font-style: italic; }
.label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.billing dl { margin: 10px 0 12px; }
.billing dl div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.billing dt { font-weight: 600; min-width: 0; }
.billing dd { margin: 0; display: flex; gap: 12px; flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.billing dd span:first-child { color: var(--muted); }
.billing dd span:last-child { font-weight: 700; min-width: 4.6em; text-align: right; }
.fake-link { color: var(--blue); font-weight: 700; }

/* A level's vial laid along a rule: the section break. */
.level-rule { position: relative; height: 22px; display: flex; align-items: center; justify-content: center; }
.level-rule::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid var(--line); }
.level-rule span {
  position: relative; width: 88px; height: 22px; border-radius: 11px;
  background: var(--vial); border: 2px solid var(--vial-edge);
}
.level-rule span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 12px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--bubble);
}

/* ---------- how it works ---------- */
.how { padding: 56px 16px 64px; }
@media (min-width: 640px) { .how { padding-left: 28px; padding-right: 28px; } }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font: 800 1.3rem/1 var(--display);
}
.steps p { color: var(--muted); }

/* ---------- features ---------- */
.why { background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.features li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 22px 8px; position: relative; overflow: hidden;
}
.features li::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--blue); margin-bottom: 16px; }
.features p { color: var(--muted); }

/* ---------- waitlist ---------- */
.join { padding: 72px 0; scroll-margin-top: 8px; }
.join-grid { display: grid; gap: 32px; }
@media (min-width: 880px) { .join-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; } }
.join-copy p { color: var(--muted); max-width: 32em; }
.join-copy .privacy { font-size: .92rem; border-left: 3px solid var(--vial); padding-left: 12px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.form { padding: 24px 20px; }
@media (min-width: 640px) { .form { padding: 32px; } }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 7px; padding: 0; }
.req { font-weight: 500; font-size: .85rem; color: var(--muted); margin-left: 6px; }
input[type=email], input[type=text], select, textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: .8rem .9rem;
}
input::placeholder { color: var(--muted); opacity: .8; }
textarea { resize: vertical; min-height: 5.5rem; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 2.5rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }

.pills { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 8px; }
.pills label { margin: 0; font-weight: 600; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span {
  display: block; text-align: center; cursor: pointer; white-space: nowrap;
  padding: .7rem .3rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
}
.pills input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pills input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Honeypot: off-screen for people, still in the form for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq { padding-top: 8px; padding-bottom: 72px; }
.faq h2 { margin-bottom: 20px; }
.faq details { max-width: 760px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 1.6rem/1 var(--body); color: var(--blue);
}
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-right: 36px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: .95rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- simple pages: thanks, oops, 404 ---------- */
.simple { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.simple .wrap { max-width: 560px; }
.simple .vial { width: 72px; height: 40px; margin-bottom: 20px; }
.simple p { color: var(--muted); font-size: 1.1rem; }
