/* Quiet Deadline — site styles. Matches the type and colors of the PDF documents. */

:root {
  --paper: #fcfcfb;
  --panel: #f2f5f4;
  --ink: #17202a;
  --ink-2: #2f3a44;
  --muted: #59636e;
  --rule: #d8dde2;
  --accent: #234a46;
  --accent-ink: #ffffff;
  --accent-soft: #e6eeec;
  --note: #8a5a14;
  --note-soft: #fbf5ea;
  --doc-shadow: 0 1px 2px rgba(23, 32, 42, 0.06), 0 12px 32px -12px rgba(23, 32, 42, 0.22);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12181d;
    --panel: #1a2228;
    --ink: #e8ecef;
    --ink-2: #cfd6dc;
    --muted: #9aa6b1;
    --rule: #2c363e;
    --accent: #7fb3aa;
    --accent-ink: #0f1a18;
    --accent-soft: #1d2c2a;
    --note: #d9a75a;
    --note-soft: #2a2218;
    --doc-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12181d;
  --panel: #1a2228;
  --ink: #e8ecef;
  --ink-2: #cfd6dc;
  --muted: #9aa6b1;
  --rule: #2c363e;
  --accent: #7fb3aa;
  --accent-ink: #0f1a18;
  --accent-soft: #1d2c2a;
  --note: #d9a75a;
  --note-soft: #2a2218;
  --doc-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.35rem); line-height: 1.1; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.2; letter-spacing: -0.006em; }
h3 { font-size: 1.3rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: 0.005em; }
.site-nav { display: flex; gap: 22px; font-size: 0.95rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1; padding: 15px 22px; border-radius: 6px; text-decoration: none; border: 1.5px solid var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-quiet:hover { border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero + section { border-top: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 13.5em; }
.hero .lede { font-size: 1.17rem; color: var(--ink-2); margin-top: 22px; max-width: 32em; }
.hero .assure { margin-top: 26px; font-size: 0.93rem; color: var(--muted); max-width: 34em; }
.doc { margin: 0; }
.doc img { background: #fff; border: 1px solid var(--rule); border-radius: 3px; box-shadow: var(--doc-shadow); }
.doc figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.hero .doc { justify-self: end; max-width: 470px; }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
section + section { border-top: 1px solid var(--rule); }
.section-intro { max-width: 40em; margin-bottom: clamp(28px, 4vw, 44px); }
.section-intro p { margin-top: 14px; color: var(--ink-2); font-size: 1.08rem; }

/* The date line: the two dates that define the season */
.dateline { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 8px 0 clamp(40px, 6vw, 64px); padding-top: 34px; }
.dateline::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; background: linear-gradient(90deg, var(--rule), var(--accent)); }
.dateline .mark { position: relative; }
.dateline .mark::before { content: ""; position: absolute; top: -34px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--muted); }
.dateline .mark.due { text-align: right; }
.dateline .mark.due::before { left: auto; right: 0; background: var(--accent); border-color: var(--accent); }
.dateline .date { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.2; }
.dateline .what { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

/* The two filings */
.filings { display: grid; grid-template-columns: 1fr 1fr; }
.filing { padding: 0 clamp(20px, 4vw, 48px); }
.filing:first-child { padding-left: 0; border-right: 1px solid var(--rule); }
.filing:last-child { padding-right: 0; }
.filing p { color: var(--ink-2); margin-top: 12px; }
.facts { margin: 20px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 0.95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Pricing */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.offer { border-top: 3px solid var(--ink); padding-top: 22px; }
.offer.bundle { border-top-color: var(--accent); }
.offer .price { font-family: var(--serif); font-weight: 600; font-size: 2.6rem; line-height: 1; margin: 16px 0 4px; }
.offer .price small { font-family: var(--sans); font-weight: 400; font-size: 1rem; color: var(--muted); margin-left: 6px; }
.offer .summary { color: var(--ink-2); margin: 14px 0 18px; }
.includes { list-style: none; margin: 0 0 22px; padding: 0; }
.includes li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.includes li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.includes li.carry { color: var(--muted); }
.offer .facts { margin: 0 0 24px; }
.after-offers { margin-top: clamp(32px, 5vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); font-size: 0.95rem; color: var(--ink-2); }
.after-offers h3 { font-size: 1.05rem; margin-bottom: 8px; }
.after-offers ul { margin: 0; padding-left: 1.1em; }
.after-offers li { margin-bottom: 6px; }

/* Free route */
.free { background: var(--accent-soft); border-radius: 10px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); }
.free p { color: var(--ink-2); margin-top: 12px; }
.links { list-style: none; margin: 0; padding: 0; }
.links li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.links li:first-child { padding-top: 0; }
.links li:last-child { border-bottom: 0; padding-bottom: 0; }
.links .for { display: block; font-size: 0.85rem; color: var(--muted); }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin-bottom: 16px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 0.98rem; }

/* Samples */
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.samples a { text-decoration: none; color: var(--ink); }
.samples a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.samples .doc img { aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top; }
.samples h3 { font-size: 1.08rem; margin-top: 16px; }
.samples p { font-size: 0.93rem; color: var(--muted); margin-top: 6px; }
.sample-note { margin-top: 28px; font-size: 0.93rem; color: var(--note); background: var(--note-soft); border-radius: 6px; padding: 12px 16px; max-width: 46em; }

/* Who we are + sources */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
.about p { color: var(--ink-2); }
.sources { list-style: none; margin: 16px 0 0; padding: 0; font-size: 0.95rem; }
.sources li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.sources li:last-child { border-bottom: 0; }
.sources .when { display: block; color: var(--muted); font-size: 0.85rem; }
.reviewed { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 6px; }

/* FAQ */
.faq { max-width: 46em; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 18px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.site-footer .wordmark { font-size: 1.1rem; }
.site-footer p { margin-top: 10px; max-width: 36em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; align-content: start; }
.footer-links a { color: var(--ink-2); }

/* Plain pages (terms, privacy, thanks) */
.page { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.page .wrap > * { max-width: 42em; }
.page h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 10px; }
.page h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.page .updated { color: var(--muted); font-size: 0.93rem; margin-bottom: 28px; }
.page ul, .page ol { padding-left: 1.2em; }
.page li { margin-bottom: 8px; }
.next { list-style: none; counter-reset: step; padding: 0 !important; margin: 28px 0; }
.next li { counter-increment: step; position: relative; padding: 0 0 22px 56px; margin: 0 !important; }
.next li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-family: var(--serif); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.next h3 { font-size: 1.12rem; margin-bottom: 4px; }

/* Responsive */
@media (max-width: 880px) {
  .hero .wrap, .about, .free, .site-footer .wrap { grid-template-columns: 1fr; }
  .hero .doc { justify-self: start; max-width: 420px; }
  .steps, .samples { grid-template-columns: 1fr; }
  .samples .doc { max-width: 360px; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .filings, .offers, .after-offers { grid-template-columns: 1fr; }
  .filing { padding: 0; }
  .filing:first-child { border-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 32px; margin-bottom: 32px; }
  .site-nav { gap: 16px; font-size: 0.9rem; }
  .dateline .date { font-size: 1.1rem; }
  .dateline .what { font-size: 0.88rem; }
  .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
