/* Paper Route — marketing site styles.
   Source of truth: Paper-Route-Unified-Design-Spec-v1.0 and Marketing Design
   Spec v1.1 (October 2026). White canvas, Ink type, Fresh Coral as a sparing
   accent, DM Serif Display for display, DM Sans for everything else.

   Every page links this one file. Page-specific rules live in a small <style>
   block on the page that needs them, or in legal.css for the policy pages. */

/* ============ tokens ============ */
:root{
  --pr-white:#ffffff;
  --pr-ink:#151b22;
  --pr-coral:#f06449;
  --pr-coral-hover:#eb573c;   /* keeps Ink label above 4.5:1 */
  --pr-coral-deep:#b9412c;    /* small coral text on white; white-on-coral fills */
  --pr-surface:#f5f6f7;
  --pr-slate:#626970;
  --pr-line:#e3e6e8;

  --pr-font-display:'DM Serif Display',Georgia,'Times New Roman',serif;
  --pr-font-body:'DM Sans',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;

  /* type scale: mobile value → desktop value */
  --pr-size-hero:clamp(3.375rem,7.2vw,6.5rem);          /* 54 → 104; spec says 92, the approved mock reads larger */
  --pr-size-section:clamp(2.4375rem,4.05vw,3.625rem);   /* 39 → 58 */
  --pr-size-sub:clamp(1.875rem,2.5vw,2.25rem);          /* 30 → 36 */
  --pr-size-lead:clamp(1.125rem,1.4vw,1.25rem);         /* 18 → 20 */
  --pr-size-body:1.0625rem;                             /* 17 */
  --pr-size-small:.875rem;                              /* 14 */

  --pr-space-1:4px; --pr-space-2:8px; --pr-space-3:12px; --pr-space-4:16px;
  --pr-space-6:24px; --pr-space-8:32px; --pr-space-12:48px; --pr-space-16:64px;
  --pr-space-20:80px; --pr-space-26:104px; --pr-space-32:128px;

  --pr-container:1280px;
  --pr-gutter:56px;
  --pr-section-gap:112px;
  --pr-header-h:76px;

  --pr-radius-image:10px;
  --pr-radius-card:12px;
  --pr-radius-pill:9999px;
  --pr-button-height:50px;
  --pr-focus-ring:3px solid var(--pr-ink);
  --pr-ease:200ms ease;
}
@media (max-width:1023px){
  :root{--pr-gutter:36px;--pr-section-gap:88px}
}
@media (max-width:767px){
  :root{--pr-gutter:22px;--pr-section-gap:72px;--pr-button-height:48px;
    --pr-size-body:1rem;--pr-header-h:64px}
}

/* ============ base ============ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--pr-header-h) + 16px)}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--pr-white);color:var(--pr-ink);
  font-family:var(--pr-font-body);font-size:var(--pr-size-body);line-height:1.55;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4,p,figure,blockquote{margin:0}
h1,h2,h3{font-family:var(--pr-font-display);font-weight:400;color:var(--pr-ink);
  letter-spacing:-.022em;text-wrap:balance}
p{text-wrap:pretty}
a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:var(--pr-focus-ring);outline-offset:3px;border-radius:2px}
::selection{background:#fbd5cc}

.container{max-width:calc(var(--pr-container) + 2*var(--pr-gutter));margin:0 auto;padding:0 var(--pr-gutter)}
.section{padding-top:var(--pr-section-gap);padding-bottom:var(--pr-section-gap)}
.section--surface{background:var(--pr-surface)}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.skip-link{position:absolute;left:var(--pr-space-4);top:-100px;z-index:100;background:var(--pr-ink);
  color:var(--pr-white);padding:12px 18px;border-radius:var(--pr-radius-pill);font-weight:600;text-decoration:none}
.skip-link:focus{top:var(--pr-space-3)}

/* ============ type ============ */
.display-hero{font-size:var(--pr-size-hero);line-height:.94;letter-spacing:-.03em}
.display-section,.prose-page h1{font-size:var(--pr-size-section);line-height:1.04}
.display-sub{font-size:var(--pr-size-sub);line-height:1.08}
.lead{font-size:var(--pr-size-lead);line-height:1.45;color:var(--pr-ink)}
.muted{color:var(--pr-slate)}
.small{font-size:var(--pr-size-small);line-height:1.45}
.measure{max-width:34rem}
.measure-wide{max-width:42rem}

.eyebrow{font-family:var(--pr-font-body);font-size:11px;font-weight:500;line-height:1.5;
  letter-spacing:.14em;text-transform:uppercase;color:var(--pr-slate);margin:0 0 var(--pr-space-4)}

/* The one coral accent allowed in a major headline: a drawn underline. */
.accent-underline{position:relative;display:inline-block;white-space:nowrap}
.accent-underline::after{content:"";position:absolute;left:-.04em;right:-.02em;bottom:-.1em;height:.12em;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M2 12 C 70 5, 180 1, 298 4 C 200 6, 96 10, 6 15 Z' fill='%23F06449'/%3E%3C/svg%3E") no-repeat center/100% 100%}

/* ============ buttons & links ============ */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:var(--pr-button-height);padding:0 24px;border:0;border-radius:var(--pr-radius-pill);
  background:var(--pr-coral);color:var(--pr-ink);font:600 15px/1.2 var(--pr-font-body);
  text-decoration:none;cursor:pointer;transition:background-color var(--pr-ease)}
.btn:hover{background:var(--pr-coral-hover);text-decoration:none}
.btn .arrow{font-weight:500}
.btn--inverse{background:var(--pr-white);color:var(--pr-ink)}
.btn--inverse:hover{background:var(--pr-surface)}
.btn--inverse:focus-visible{outline-color:var(--pr-white)}
.btn--outline{background:transparent;color:var(--pr-ink);box-shadow:inset 0 0 0 1.5px var(--pr-ink)}
.btn--outline:hover{background:var(--pr-surface)}
.btn--block{width:100%}

/* Secondary action: a text link with an arrow, never a second solid button. */
.link-arrow{display:inline-flex;align-items:center;gap:8px;min-height:44px;
  font-weight:600;font-size:15px;color:var(--pr-ink);text-decoration:underline;
  text-decoration-color:var(--pr-line);text-decoration-thickness:2px;text-underline-offset:.3em}
.link-arrow:hover{text-decoration-color:var(--pr-coral)}

.actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--pr-space-4) var(--pr-space-8);
  margin-top:var(--pr-space-8)}

/* ============ header ============ */
.site-header{position:sticky;top:0;z-index:50;background:var(--pr-white);
  border-bottom:1px solid transparent;transition:border-color var(--pr-ease)}
.site-header.is-scrolled{border-bottom-color:var(--pr-line)}
.site-header .container{display:flex;align-items:center;gap:var(--pr-space-8);height:var(--pr-header-h)}

/* Placeholder wordmark, after the approved mock: DM Serif Display with the R's
   leg drawn out into a tail that tucks under the o. The tail is an SVG shape
   measured against the font's own R (units are 1/1000 em from the glyph's
   origin, baseline at 850), so it scales with the text. Replace the whole
   thing with the outlined custom artwork when it exists. */
.wordmark{font-family:var(--pr-font-display);font-size:34px;line-height:1;letter-spacing:-.03em;
  color:var(--pr-ink);text-decoration:none;white-space:nowrap;margin-right:auto;
  display:inline-flex;align-items:center;min-height:44px}
.wordmark:hover{text-decoration:none}
.wordmark .wm{line-height:1}
.wm-r{position:relative;display:inline-block}
.wm-r svg{position:absolute;left:0;top:0;width:1.4em;height:1.4em;overflow:visible;pointer-events:none;fill:currentColor}
@media (max-width:767px){.wordmark{font-size:30px}}

.nav-primary{display:flex;align-items:center;gap:var(--pr-space-8)}
.nav-primary ul{display:flex;gap:var(--pr-space-8);list-style:none;margin:0;padding:0}
.nav-primary a,.nav-utility{font-size:14px;font-weight:500;line-height:1.3;color:var(--pr-ink);
  text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.nav-primary a:hover,.nav-utility:hover{text-decoration:underline;text-underline-offset:.35em}
.nav-primary a[aria-current="page"]{text-decoration:underline;text-decoration-color:var(--pr-coral);
  text-decoration-thickness:2px;text-underline-offset:.35em}
.header-actions{display:flex;align-items:center;gap:var(--pr-space-6)}

.menu-toggle{display:none;align-items:center;gap:8px;min-height:44px;padding:0 4px;
  background:none;border:0;font:500 15px/1 var(--pr-font-body);color:var(--pr-ink);cursor:pointer}
.menu-toggle .bars{display:inline-block;width:18px;height:12px;position:relative;
  border-top:1.5px solid currentColor;border-bottom:1.5px solid currentColor}
.menu-toggle .bars::after{content:"";position:absolute;left:0;right:0;top:50%;
  border-top:1.5px solid currentColor;transform:translateY(-50%)}
.menu-toggle[aria-expanded="true"] .bars{border-color:transparent}
.menu-toggle[aria-expanded="true"] .bars::before,
.menu-toggle[aria-expanded="true"] .bars::after{content:"";position:absolute;left:0;right:0;top:50%;
  border-top:1.5px solid currentColor}
.menu-toggle[aria-expanded="true"] .bars::before{transform:rotate(45deg)}
.menu-toggle[aria-expanded="true"] .bars::after{transform:translateY(-50%) rotate(-45deg)}

.mobile-menu[hidden]{display:none}
@media (min-width:1024px){.mobile-menu{display:none!important}}
@media (max-width:479px){.header-actions .nav-utility{display:none}}

@media (max-width:1023px){
  .nav-primary,.header-actions .btn{display:none}
  .menu-toggle{display:inline-flex}
  .mobile-menu{position:fixed;inset:var(--pr-header-h) 0 0 0;z-index:49;background:var(--pr-white);
    overflow-y:auto;padding:var(--pr-space-6) var(--pr-gutter) var(--pr-space-12);
    border-top:1px solid var(--pr-line)}
  .mobile-menu ul{list-style:none;margin:0;padding:0}
  .mobile-menu li a{display:flex;align-items:center;min-height:56px;font-family:var(--pr-font-display);
    font-size:30px;line-height:1.1;text-decoration:none;border-bottom:1px solid var(--pr-line)}
  .mobile-menu .mobile-utility{display:flex;flex-direction:column;align-items:flex-start;gap:var(--pr-space-4);
    margin-top:var(--pr-space-8)}
  body.menu-open{overflow:hidden}
}

/* ============ footer ============ */
.site-footer{background:var(--pr-surface);padding:var(--pr-space-16) 0 var(--pr-space-8);
  font-size:var(--pr-size-small);line-height:1.45}
.footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:var(--pr-space-8)}
.footer-brand .wordmark{font-size:30px;margin:0 0 var(--pr-space-3)}
.footer-brand p{color:var(--pr-slate);max-width:22rem}
.site-footer h2{font-family:var(--pr-font-body);font-size:11px;font-weight:500;letter-spacing:.14em;
  text-transform:uppercase;color:var(--pr-slate);margin:0 0 var(--pr-space-3)}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li a{display:inline-flex;align-items:center;min-height:36px;text-decoration:none;color:var(--pr-ink)}
.site-footer li a:hover{text-decoration:underline}
.footer-legal{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--pr-space-3);
  margin-top:var(--pr-space-12);padding-top:var(--pr-space-6);border-top:1px solid var(--pr-line);color:var(--pr-slate)}
@media (max-width:1023px){.footer-grid{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}}
@media (max-width:479px){.footer-grid{grid-template-columns:1fr}}

/* ============ shared layout pieces ============ */
.split{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--pr-space-8);align-items:center}
@media (max-width:767px){.split{grid-template-columns:minmax(0,1fr)}}
.media{border-radius:var(--pr-radius-image);overflow:hidden;background:var(--pr-surface)}
.media img{width:100%;height:100%;object-fit:cover}
.page-hero{padding-top:var(--pr-space-20);padding-bottom:var(--pr-space-16)}
.page-hero .lead{margin-top:var(--pr-space-6)}
@media (max-width:767px){.page-hero{padding-top:var(--pr-space-12);padding-bottom:var(--pr-space-12)}}

/* Numbered steps: three open columns, no card chrome. */
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--pr-space-12);
  list-style:none;margin:var(--pr-space-16) 0 0;padding:0}
.step-icon{width:44px;height:44px;color:var(--pr-ink);margin-bottom:var(--pr-space-6)}
.step-num{display:block;font-size:13px;font-weight:500;letter-spacing:.08em;color:var(--pr-coral-deep);
  margin-bottom:var(--pr-space-2)}
.step h2,.step h3{font-size:var(--pr-size-sub);line-height:1.08;margin-bottom:var(--pr-space-3)}
.step p{color:var(--pr-slate);max-width:22rem}
@media (max-width:767px){
  .steps{grid-template-columns:1fr;gap:var(--pr-space-12);margin-top:var(--pr-space-12)}
  .step:has(.step-icon){display:grid;grid-template-columns:44px 1fr;column-gap:var(--pr-space-6)}
  .step-icon{grid-row:span 3;margin:0}
}

/* FAQ — native disclosure, restyled. */
.faq{border-top:1px solid var(--pr-ink);margin-top:var(--pr-space-8)}
.faq details{border-bottom:1px solid var(--pr-line)}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;
  gap:var(--pr-space-6);min-height:64px;padding:var(--pr-space-4) 0;font-size:18px;font-weight:500;line-height:1.35}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:none;width:32px;height:32px;display:grid;place-items:center;
  border-radius:50%;border:1px solid var(--pr-line);font-size:20px;font-weight:400;line-height:1}
.faq details[open] summary::after{content:"\2013"}
.faq summary:hover{text-decoration:underline;text-underline-offset:.25em}
.faq details>div{padding:0 0 var(--pr-space-6);max-width:44rem;color:var(--pr-slate)}
.faq details>div p+p{margin-top:var(--pr-space-3)}

/* The closing call to action, shared by inner pages. */
.cta-band{background:var(--pr-ink);color:var(--pr-white);border-radius:var(--pr-radius-card);
  padding:var(--pr-space-16) var(--pr-space-12);display:flex;flex-wrap:wrap;align-items:center;
  justify-content:space-between;gap:var(--pr-space-8)}
.cta-band h2{color:var(--pr-white);font-size:var(--pr-size-section);line-height:1.04;max-width:16ch}
.cta-band p{color:rgba(255,255,255,.8);margin-top:var(--pr-space-3)}
@media (max-width:767px){.cta-band{padding:var(--pr-space-12) var(--pr-space-6)}}
/* With a photograph: the words keep their dark panel, the picture takes the
   other half, so text never has to sit across a face. */
.cta-band--photo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:0;overflow:hidden;gap:0;align-items:stretch}
.cta-band--photo .cta-text{padding:var(--pr-space-16) var(--pr-space-12);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:var(--pr-space-8)}
.cta-band--photo .cta-media{margin:0;min-height:340px;position:relative}
.cta-band--photo .cta-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
@media (max-width:767px){
  .cta-band--photo{grid-template-columns:minmax(0,1fr)}
  .cta-band--photo .cta-media{order:-1;min-height:0;aspect-ratio:16/10}
  .cta-band--photo .cta-text{padding:var(--pr-space-8) var(--pr-space-6) var(--pr-space-12)}
}

/* Label distinguishing generated reading from what people sent. */
.label{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;letter-spacing:.04em;
  padding:3px 10px;border-radius:var(--pr-radius-pill);border:1px solid var(--pr-line);color:var(--pr-slate);background:var(--pr-white)}
.label--people::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--pr-coral)}
.label--generated::before{content:"";width:6px;height:6px;border-radius:50%;border:1.5px solid var(--pr-slate)}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
