/* archwire.ai: one calm page in the app's palette. The wire is always amber, the brackets green. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f3f1eb;
  --card: #fffcf7;
  --ink: #1b2421;
  --muted: #5d675f;
  --line: #d9d4c8;
  --accent: #1f6b4a;
  --accent-ink: #f7fff9;
  --wire: #c07a14; /* on light surfaces; on the green icon tile the wire is #f0b04a */
  --measure: 38rem;
  --gutter: max(1rem, env(safe-area-inset-left));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .wordmark { font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--accent); text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid #1558b0; outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 68rem; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--card); padding-top: env(safe-area-inset-top); }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; min-height: 2.75rem; }
.mark rect { fill: var(--accent); }
.mark path { fill: none; stroke: var(--wire); stroke-width: 4.5; stroke-linecap: round; }
.wordmark { font-size: 1.3rem; color: var(--ink); line-height: 1; }
.wordmark span { color: var(--accent); }

/* Hero */
.hero { padding-top: clamp(3rem, 9vw, 6.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.eyebrow { font-size: 0.9rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.eyebrow + h2 { margin-top: 0.6rem; }
h1 { font-size: clamp(2.2rem, 6vw, 3.9rem); line-height: 1.06; margin-top: 0.9rem; max-width: 19ch; }
.lede { margin-top: 1.4rem; font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: var(--measure); }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.4rem; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 650; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
/* The button opens an email, so show the address for anyone without a mail app. */
.mail-note { margin-top: 0.6rem; font-size: 0.875rem; color: var(--muted); max-width: var(--measure); }

/* The three promises under the button, each marked with a short length of wire. */
.promise { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: 0.95rem; color: var(--muted); }
.promise li { display: inline-flex; align-items: center; gap: 0.55rem; }
.promise li::before { content: ""; width: 0.9rem; height: 4px; border-radius: 2px; background: var(--wire); flex-shrink: 0; }

/* Systems threaded on the wire */
.systems { margin: clamp(3rem, 8vw, 5rem) 0 0; }
.wire-row { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.wire-row::before { content: ""; position: absolute; left: 0; right: 0; top: 2.25rem; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--wire); }
.wire-row li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; font-size: 0.95rem; color: var(--muted); }
.bracket { width: 4.5rem; height: 4.5rem; display: block; }
.bracket rect { fill: var(--accent); }
.systems figcaption { margin-top: 1.6rem; text-align: center; font-weight: 600; }

h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.15rem; line-height: 1.3; }
.grid3 p, .card p, .faq p, .closing p, .callout { color: var(--muted); }

/* What falls through the cracks */
.cracks { padding-bottom: clamp(3rem, 7vw, 5rem); }
.cracks h2 { max-width: 24ch; }
.section-lede { margin-top: 1rem; color: var(--muted); max-width: var(--measure); }
.cracks .grid3 { gap: 1.25rem; }

.grid3 { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }

/* The systems on the wire, between the examples and the offer */
.wire-section { padding-bottom: clamp(3rem, 7vw, 5rem); }
.wire-section .systems { margin-top: 0; }
.grid3 > div { display: grid; gap: 0.5rem; align-content: start; }

/* The offer: the four-step method threaded on a wire, then the guarantee */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(3rem, 7vw, 5rem) 0; }
.method { list-style: none; counter-reset: step; margin: 2.5rem 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.method::before { content: ""; position: absolute; left: 0; right: 0; top: 1.25rem; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--wire); }
.method li { counter-increment: step; position: relative; display: grid; gap: 0.5rem; align-content: start; }
.method li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 10px; margin-bottom: 0.5rem;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-family: "Manrope", sans-serif;
}
.method h3 { font-size: 1.45rem; }
.method p { color: var(--muted); }
.method .deliverable { position: relative; padding-left: 1.45rem; font-size: 0.95rem; color: var(--ink); }
.method .deliverable::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.9rem; height: 4px; border-radius: 2px; background: var(--wire); }
.guarantee {
  margin-top: 2.5rem; max-width: 44rem; padding: 1.25rem 1.5rem;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; row-gap: 0.25rem; align-items: center;
  border: 2px solid var(--wire); border-radius: 14px; background: var(--bg);
}
.guarantee::before {
  content: "✓"; grid-row: 1 / span 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--wire); color: #fff; font-size: 1.25rem; font-weight: 700;
}
.callout { margin-top: 2.5rem; padding-left: 1rem; border-left: 4px solid var(--wire); max-width: 44rem; }
.callout strong { color: var(--ink); }

/* Screenshots of the app with a made-up demo practice */
.showcase { padding-top: clamp(3rem, 7vw, 5rem); }
.shots { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.shots figure { margin: 0; }
.shots .shot-wide { grid-column: 1 / -1; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 1px 2px rgb(27 36 33 / 6%), 0 8px 24px rgb(27 36 33 / 8%); }
.shots figcaption { margin-top: 0.9rem; font-size: 0.95rem; color: var(--muted); }
.shots figcaption strong { color: var(--ink); }

/* The math: one card, above the FAQ */
.math { padding-top: clamp(3rem, 7vw, 5rem); display: grid; gap: 1.5rem; }
.math .card { max-width: 44rem; }
.card { display: grid; gap: 0.8rem; align-content: start; padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

/* A doctor's quote, added once they approve the wording (see notes/landing-page-logan-quote.md). */
.quote { margin: 0; max-width: 44rem; }
.quote blockquote { margin: 0; font-family: "Manrope", sans-serif; font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.35; letter-spacing: -0.01em; }
.quote figcaption { color: var(--muted); }

/* Questions doctors ask */
.faq { padding-top: clamp(3rem, 7vw, 5rem); }
.faq-list { margin-top: 1.5rem; border-top: 1px solid var(--line); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.5rem; padding: 0.6rem 0; cursor: pointer; list-style: none; font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.2rem; max-width: var(--measure); }

/* Closing */
.closing { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); display: grid; gap: 0.8rem; justify-items: start; }
.closing p:not(.actions) { max-width: var(--measure); }
.closing .actions { margin-top: 1rem; }

/* The doctor's questions page */
.questions { padding-top: clamp(3rem, 8vw, 5.5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.questions h1 { max-width: 20ch; }
.questions > h2 { margin-top: 2.75rem; font-size: 1.3rem; }
.qs { margin: 0.9rem 0 0; padding-left: 1.75rem; max-width: 44rem; }
.qs li { margin-top: 0.6rem; padding-left: 0.25rem; }
.qs li::marker { color: var(--accent); font-weight: 700; }
.next { margin-top: 3.5rem; max-width: 48rem; }
.next .actions { margin-top: 0.8rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; min-height: 4.5rem; font-size: 0.9rem; color: var(--muted); }
.foot-inner a { color: var(--muted); display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Phones: stack everything; the wire runs down the left, through each bracket. */
@media (max-width: 760px) {
  .method { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .method::before { left: 1.25rem; right: auto; top: 0; bottom: 0; width: 4px; height: auto; margin: 0 0 0 -2px; }
  .method li { grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 1rem; }
  .method li::before { grid-row: 1 / span 3; align-self: start; margin-bottom: 0; }
  .method li > * { grid-column: 2; }
  .shots { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .grid3 { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .cracks .grid3 { gap: 1rem; }
  .wire-row { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .wire-row::before { left: 2.25rem; right: auto; top: 0; bottom: 0; width: 6px; height: auto; margin: 0 0 0 -3px; }
  .wire-row li { flex-direction: row; text-align: left; gap: 1rem; font-size: 1rem; }
  .systems figcaption { text-align: left; }
  .promise { flex-direction: column; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .method::before { display: none; }
}

/* The questions page prints as a clean worksheet. */
@media print {
  body { background: #fff; font-size: 11pt; }
  .top, .foot, .next, .actions, .mail-note { display: none; }
  .questions { padding: 0; }
  .qs li { break-inside: avoid; }
}
