:root {
  --paper: #fbf8ef;
  --paper-deep: #f2ecd9;
  --ink: #1c1b18;
  --muted: #656159;
  --yellow: #f3c84b;
  --line: #d9d1bd;
  --white: #fffefa;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: .6rem 1rem;
  border-radius: .5rem;
  background: var(--ink);
  color: var(--paper);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 239, .94);
}

.nav {
  width: min(1100px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-mark { color: #bf8f00; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: .94rem;
  font-weight: 600;
}

.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

.hero {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding: 5rem 0;
}

.eyebrow {
  display: inline-flex;
  padding: .36rem .7rem;
  border: 1px solid #d6aa27;
  border-radius: 999px;
  background: #fff6d8;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 680px; margin-top: 1.2rem; font-size: clamp(3rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.025em; }

.hero-copy > p {
  max-width: 610px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: .7rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 750;
  text-decoration: none;
}

.button.secondary { background: transparent; color: var(--ink); }

.device {
  width: min(390px, 100%);
  margin: 0 auto;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 42px;
  background: var(--ink);
  box-shadow: 18px 24px 0 var(--yellow);
  transform: rotate(2deg);
}

.device-screen {
  min-height: 575px;
  padding: 24px 18px;
  border-radius: 29px;
  background: var(--paper);
}

.device-top { margin: 0 0 1rem; font-size: .82rem; font-weight: 800; }

.widget {
  padding: 1.25rem;
  border: 1px solid #cbc2ae;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(43, 37, 25, .08);
}

.widget-label { margin: 0 0 .65rem; color: #8b6a0a; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.widget-question { margin: 0 0 1rem; font-family: Georgia, serif; font-size: 1.14rem; font-weight: 700; line-height: 1.3; }
.answer { margin-top: .55rem; padding: .66rem .75rem; border: 1px solid var(--line); border-radius: .6rem; font-size: .82rem; font-weight: 650; }
.answer.highlight { border-color: #d2a51f; background: #fff2be; }
.streak { display: flex; justify-content: space-between; margin-top: 1rem; padding: .9rem 1rem; border-radius: 16px; background: var(--paper-deep); font-size: .84rem; font-weight: 750; }

.section {
  padding: 5.5rem max(1rem, calc((100% - 1100px) / 2));
  border-top: 1px solid var(--line);
}

.section-head { max-width: 680px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.feature-card {
  min-height: 210px;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.feature-card .number { display: block; margin-bottom: 2.2rem; color: #a77b00; font-weight: 850; }
.feature-card p { margin-bottom: 0; color: var(--muted); }

.legal-main {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 7rem;
}

.legal-main h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); }
.legal-main .lede { margin: 1.2rem 0 3rem; color: var(--muted); font-size: 1.1rem; }
.legal-main section { margin-top: 2.6rem; }
.legal-main h2 { font-size: 1.55rem; letter-spacing: -.025em; }
.legal-main h3 { margin-top: 1.5rem; }
.legal-main p, .legal-main li { color: #45413b; }
.legal-main ul { padding-left: 1.25rem; }
.legal-main a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.support-card {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.site-footer {
  padding: 2rem max(1rem, calc((100% - 1100px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}

.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 760px) {
  .nav { padding: .75rem 0; align-items: flex-start; }
  .nav-links { gap: .8rem; flex-wrap: wrap; justify-content: flex-end; font-size: .82rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 4rem 0 5rem; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .button-row { justify-content: center; }
  .device { width: min(330px, calc(100% - 1.5rem)); box-shadow: 10px 14px 0 var(--yellow); transform: none; }
  .device-screen { min-height: 510px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-card .number { margin-bottom: 1.2rem; }
}
