/* validation-lab: one stylesheet, two themes (body.theme-warm for Tellday, body.theme-road for DockProof).
   System fonts only: nothing is loaded from another host. */

:root {
  --radius: 18px;
  --max: 680px;
}

.theme-warm {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --ink: #2b2622;
  --muted: #6e645b;
  --line: #e9dfd2;
  --accent: #c2562b;
  --accent-ink: #ffffff;
  --accent-soft: #f6e3d7;
  --display: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
}

.theme-road {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --ink: #15171a;
  --muted: #5d6168;
  --line: #dedfdc;
  --accent: #f2a900;
  --accent-ink: #15171a;
  --accent-soft: #fbefcc;
  --display: ui-sans-serif, -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  .theme-warm {
    --bg: #1c1916;
    --surface: #26221e;
    --ink: #f3ece2;
    --muted: #b5aa9d;
    --line: #3a342e;
    --accent: #e58a5e;
    --accent-ink: #1c1916;
    --accent-soft: #3a2a21;
  }
  .theme-road {
    --bg: #121417;
    --surface: #1b1e22;
    --ink: #ecedee;
    --muted: #9ba0a7;
    --line: #2c3036;
    --accent-soft: #33290d;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--accent);
}

.theme-road a {
  color: inherit;
}

.bar,
.page,
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.bar {
  padding-top: max(18px, env(safe-area-inset-top));
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 650;
  font-size: 18px;
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.theme-road h1,
.theme-road h2 {
  letter-spacing: -0.025em;
  font-weight: 800;
}

h1 {
  font-size: clamp(34px, 7vw, 48px);
  margin: 0 0 16px;
}

h2 {
  font-size: 28px;
  margin: 0 0 14px;
}

h3 {
  font-size: 19px;
  margin: 0 0 4px;
}

section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

section:last-child {
  border-bottom: 0;
}

.hero {
  padding-top: 48px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.lede {
  color: var(--muted);
  font-size: 19px;
  margin: 0 0 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.steps li {
  position: relative;
  padding-left: 52px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.num {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  font-weight: 700;
}

.features {
  margin: 28px 0 0;
  padding: 18px 20px 18px 40px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.features li {
  margin: 4px 0;
}

.note,
.fineprint {
  color: var(--muted);
  margin: 0 0 20px;
}

.fineprint {
  margin: 18px 0 0;
  font-size: 15px;
}

.plans {
  display: grid;
  gap: 14px;
}

@media (min-width: 620px) {
  .plans {
    grid-template-columns: 1.15fr 1fr;
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.plan.featured {
  border-color: var(--accent);
}

.plan .button {
  margin-top: 8px;
}

.plan-name {
  font-weight: 650;
}

.price {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
}

.price small {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.badge {
  position: absolute;
  top: -12px;
  right: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
}

details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

summary {
  cursor: pointer;
  font-weight: 650;
}

details p {
  margin: 8px 0 0;
  color: var(--muted);
}

.join {
  padding-top: 40px;
}

.notice {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  margin: 0 0 24px;
}

form {
  display: grid;
  gap: 12px;
}

form > label {
  font-weight: 650;
}

input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

fieldset {
  border: 0;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

legend {
  font-weight: 650;
  margin-bottom: 6px;
}

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

.choice input {
  margin-top: 5px;
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.consent {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.error {
  margin: 0;
  color: #c0392b;
  font-size: 15px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

form .button {
  margin-top: 10px;
}

.legal {
  padding: 40px 0;
}

.legal h2 {
  font-size: 21px;
  margin-top: 28px;
}

.updated {
  color: var(--muted);
}

.footer {
  padding-top: 28px;
  padding-bottom: max(36px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 14px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer a {
  color: var(--muted);
}
