/* Unbed — shared styles.
   Dark by commitment, not by accident: this is a product about mornings that
   start in the dark, and the pages are read at 1am by someone deciding whether
   to trust it with their alarm. */

:root {
  --ink: #0a0c10;
  --ink-raised: #12161d;
  --line: #232a35;
  --text: #eef1f5;
  --text-dim: #9aa5b4;
  --dawn-1: #f0a35e;
  --dawn-2: #e8697d;
  --focus: #f0a35e;
  --measure: 68ch;
  --page: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration-color: color-mix(in oklab, var(--dawn-1) 60%, transparent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--dawn-1);
}

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

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dawn-1), var(--dawn-2));
  flex: none;
}

.masthead nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
  color: var(--text-dim);
}

.masthead nav a {
  color: var(--text-dim);
  text-decoration: none;
}

.masthead nav a:hover {
  color: var(--text);
}

/* ---------- hero ---------- */

.hero {
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 640;
  max-width: 17ch;
}

.lede {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--text-dim);
  max-width: 52ch;
  line-height: 1.6;
}

.gradient {
  background: linear-gradient(100deg, var(--dawn-1), var(--dawn-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.badge {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-dim);
  background: var(--ink-raised);
}

/* ---------- sections ---------- */

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

section:last-of-type {
  border-bottom: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 34px);
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-weight: 620;
}

h3 {
  margin: 32px 0 8px;
  font-size: 19px;
  letter-spacing: -0.015em;
  font-weight: 600;
}

p {
  max-width: var(--measure);
}

.section-lede {
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 40px;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dawn-1), var(--dawn-2));
  color: #16110c;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.steps p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15.5px;
}

/* ---------- honest table ---------- */

.honest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.honest > div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  background: var(--ink-raised);
}

.honest h3 {
  margin: 0 0 14px;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.honest ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 15.5px;
}

.honest li {
  margin-bottom: 10px;
}

.honest li:last-child {
  margin-bottom: 0;
}

.honest li strong {
  color: var(--text);
  font-weight: 560;
}

/* ---------- prose pages ---------- */

.prose {
  padding: 56px 0 96px;
  max-width: var(--measure);
}

.prose h1 {
  font-size: clamp(32px, 5vw, 44px);
  max-width: none;
  margin-bottom: 8px;
}

.prose .updated {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 40px;
}

.prose h2 {
  font-size: 22px;
  margin-top: 44px;
  margin-bottom: 10px;
}

.prose p,
.prose li {
  color: var(--text-dim);
}

.prose strong {
  color: var(--text);
  font-weight: 560;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 10px;
}

.faq {
  margin-top: 8px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 560;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--dawn-1);
  font-size: 20px;
  line-height: 1;
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 14px 0 0;
  color: var(--text-dim);
}

.mailto {
  display: inline-block;
  margin-top: 8px;
  font-size: 19px;
  font-weight: 560;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 56px;
  color: var(--text-dim);
  font-size: 14.5px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
  a,
  .faq summary::after {
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
  }
}
