/* CaseRN landing page. Same visual idea as the app: a ward chart marked up with a highlighter.
   One type family, cool chart-paper surfaces, scrub teal for actions, highlighter yellow as the one loud element. */

:root {
  --ink: #14263a;
  --muted: #4d6276;
  --ward: #e9eff3;
  --paper: #ffffff;
  --line: #c5d2db;
  --scrub: #0b6b6b;
  --scrub-deep: #074a4b;
  --marker: #ffe45c;
  --marker-soft: #fff6c4;
  --radius: 6px;
  --gutter: 16px;
  font-family: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--ward);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--ward);
  font-size: 1rem;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--scrub-deep);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 2;
  padding: 10px 14px;
  background: var(--marker);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius);
}

.skip:focus {
  top: 8px;
}

/* ---------- frame ---------- */

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter);
  background: var(--ink);
  color: #fff;
}

.wordmark {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--marker) 55%, transparent) 62%);
  padding: 0 2px;
}

.top-note {
  font-size: 0.875rem;
  color: #c9d6e0;
}

.top :focus-visible {
  outline-color: var(--marker);
}

main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
}

section {
  margin-top: 56px;
}

h1 {
  font-size: clamp(1.75rem, 7vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 15ch;
}

h2 {
  font-size: clamp(1.3rem, 4.5vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 30ch;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

.lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 56ch;
}

.fine {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 58ch;
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--scrub);
  border: 2px solid var(--scrub);
  border-radius: var(--radius);
  padding: 13px 22px;
  min-height: 48px;
  text-decoration: none;
}

.btn:hover {
  background: var(--scrub-deep);
  border-color: var(--scrub-deep);
}

/* The one highlighter mark at the top of the page. */
.soon {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  background: var(--marker);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 3px;
}

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

.hero {
  display: grid;
  gap: 32px;
  padding-top: 8px;
}

.cta {
  margin-top: 22px;
}

.phone {
  width: min(100%, 280px);
  margin: 0 auto;
  border: 8px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  background: var(--ward);
  box-shadow: 0 18px 40px -22px rgb(20 38 58 / 0.55);
}

.phone img {
  width: 100%;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: center;
    gap: 56px;
    padding-top: 32px;
  }
}

/* ---------- what a case is: text beside a screen ---------- */

.tour {
  margin-top: 24px;
  display: grid;
  gap: 40px;
}

.tour-item {
  display: grid;
  gap: 18px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.tour-item p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 46ch;
}

.tour-num {
  display: inline-block;
  min-width: 1.6em;
  font-variant-numeric: tabular-nums;
  color: var(--scrub-deep);
}

.tour-item .phone {
  width: min(100%, 250px);
}

@media (min-width: 620px) {
  .tour-item {
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: start;
    gap: 32px;
  }

  .tour-item .phone {
    margin: 0;
  }
}

@media (min-width: 980px) {
  .tour {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .tour-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .tour-item .phone {
    margin: 0;
    align-self: end;
  }
}

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

.steps {
  margin-top: 18px;
  display: grid;
  border-top: 2px solid var(--ink);
  max-width: 760px;
}

.steps li {
  display: grid;
  gap: 2px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.steps-name {
  font-weight: 700;
}

.steps-num {
  display: inline-block;
  min-width: 1.4em;
  color: var(--scrub-deep);
  font-variant-numeric: tabular-nums;
}

.steps-hint {
  color: var(--muted);
}

@media (min-width: 620px) {
  .steps li {
    grid-template-columns: 16em 1fr;
    align-items: baseline;
    gap: 16px;
  }
}

.profile {
  display: grid;
  gap: 28px;
}

@media (min-width: 860px) {
  .profile {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: center;
    gap: 56px;
  }
}

/* ---------- plain fact lists ---------- */

.facts {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.facts > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin-top: 4px;
  color: var(--muted);
}

@media (min-width: 700px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- waitlist band ---------- */

.band {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 8px solid var(--marker);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 20px;
  max-width: 720px;
}

/* ---------- footer and legal pages ---------- */

.foot {
  margin-top: auto;
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px var(--gutter) 40px;
  font-size: 0.875rem;
  color: var(--muted);
}

.foot p + p {
  margin-top: 8px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.foot-links a {
  display: inline-block;
  padding: 10px 0;
  color: inherit;
}

.legal {
  max-width: 68ch;
}

.legal h1 {
  font-size: 1.75rem;
}

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

.legal p,
.legal ul {
  margin-top: 10px;
}

.legal ul {
  padding-left: 1.2em;
  list-style: disc;
}

.legal li + li {
  margin-top: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .skip {
    transition: top 0.15s;
  }
}
