/* Cassie Calvert Finance: shared site styles.
   Brand tokens come from the Pinpoint report (pinpoint/templates/report.css)
   so the site, the quiz and the PDF look like one thing. */

:root {
  --deep: #0F4C4A;       /* headings, body text, primary buttons */
  --teal: #1F7A74;       /* links, accents */
  --muted: #2F5E5B;      /* secondary text */
  --mint: #BFE6D3;
  --mint-soft: #E6F5EE;
  --butter: #FBF0BE;
  --butter-soft: #FDF8E1;
  --gold: #D9B43C;
  --gold-soft: #E3D27E;
  --terracotta: #D9825A; /* decoration only: fails AA as text on light backgrounds */
  --paper: #FFFEF8;
  --line: #ECE5C3;
  --white: #FFFFFF;

  --display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --section: 72px;
  --radius: 14px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; --section: 104px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--deep);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7.2vw, 4.25rem); line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 4.4vw, 2.75rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }

a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--butter); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--deep); color: var(--white); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--white); }

.eyebrow {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 36em; }
.bar { width: 56px; height: 3px; background: var(--teal); margin: 28px 0; border: 0; }
.small { font-size: 0.9rem; color: var(--muted); }

.section-head { max-width: 44em; margin-bottom: 48px; }
.section-head h2 + p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border-radius: 999px; border: 2px solid var(--deep);
  background: var(--deep); color: var(--white);
  font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn.ghost { background: transparent; color: var(--deep); }
.btn.ghost:hover { background: var(--deep); border-color: var(--deep); color: var(--white); }
.btn.light { background: var(--butter); border-color: var(--butter); color: var(--deep); }
.btn.light:hover { background: var(--white); border-color: var(--white); color: var(--deep); }
.btn.sm { min-height: 44px; padding: 9px 18px; font-size: 0.92rem; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.text-link { font-weight: 600; color: var(--deep); }
.section-head .sample-link { margin-top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 254, 248, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em;
  color: var(--deep); text-decoration: none; white-space: nowrap;
}
.brand svg { flex: 0 0 auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 28px; }
.site-nav ul a { color: var(--deep); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 0; }
.site-nav ul a:hover { color: var(--teal); text-decoration: underline; }
@media (min-width: 900px) { .site-nav ul { display: flex; } }

/* Phones and tablets: a Menu button (nav.js) opens the same links. */
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--deep); cursor: pointer;
}
.menu-btn[hidden] { display: none; }
.menu-btn:hover { background: var(--mint-soft); }
@media (max-width: 899px) {
  .site-nav { gap: 10px; }
  .site-nav.open ul {
    display: block; position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 16px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 28px rgba(15, 76, 74, 0.12);
  }
  .site-nav.open li + li { border-top: 1px solid var(--line); }
  .site-nav.open ul a { display: block; padding: 14px 0; font-size: 1.05rem; }
}
@media (min-width: 900px) { .menu-btn { display: none; } }
@media (max-width: 559px) {
  .site-header .brand { font-size: 0.92rem; white-space: normal; line-height: 1.15; }
  .site-header .wrap { gap: 10px; }
  .site-header .btn { padding-inline: 14px; white-space: nowrap; }
  .site-header .btn .long { display: none; }
}
@media (max-width: 359px) {
  .site-header .brand svg { display: none; }
  .site-header .brand, .site-header .btn { font-size: 0.85rem; }
  .site-header .btn { padding-inline: 11px; }
  .site-nav { gap: 4px; }
}
@media (min-width: 560px) { .site-header .btn .short { display: none; } }

/* ---------- Hero (echoes the report cover) ---------- */
.hero { background: var(--butter); }
/* Phone order: eyebrow, headline, map, then the description, button and note (the header has a buy button). */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 40px 44px; }
.hero-text { display: contents; }
.hero .eyebrow { order: 1; }
.hero h1 { order: 2; max-width: 15em; }
.hero-map { order: 3; margin: 26px 0 4px; min-width: 0; }
.hero .bar { order: 4; margin: 28px 0; }
.hero .lede { order: 5; }
.hero .cta-row { order: 6; margin-top: 30px; }
.hero-note { order: 7; margin-top: 20px; font-size: 0.92rem; color: var(--muted); }

/* Phones see the Atlantic up close (the Americas to Europe); wider screens see the whole world. */
.map-frame { overflow: hidden; }
.hero-map svg { display: block; width: 200%; max-width: none; height: auto; margin-left: -30%; }
.hero-map figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.key-pin { background: var(--teal); }
.key-soon { border: 2px dashed var(--teal); }
.key-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; margin-right: 14px; }

@media (min-width: 720px) {
  .hero-map svg { width: 100%; margin-left: 0; }
}
@media (min-width: 900px) {
  .hero .wrap { padding-block: 88px 72px; }
  .hero-map { order: 8; margin: 56px 0 0; }
}

.facts { background: var(--butter); border-top: 1px solid var(--gold-soft); }
.facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; }
.facts dl > div { padding: 22px 0; }
.facts dl > div:nth-child(odd) { padding-right: 16px; }
.facts dl > div:nth-child(n+3) { border-top: 1px solid var(--gold-soft); }
.facts dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
@media (min-width: 720px) {
  .facts dl { grid-template-columns: repeat(4, 1fr); }
  .facts dl > div { padding: 28px 24px 28px 0; }
  .facts dl > div:nth-child(n+3) { border-top: 0; }
  .facts dd { font-size: 1.75rem; }
}

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--butter); padding-top: 24px; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--mint); color: var(--deep);
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  margin-bottom: 18px;
}
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps p { color: var(--muted); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- What's in the report ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .split .section-head { position: sticky; top: 112px; margin-bottom: 0; }
}
.contents { list-style: none; margin: 0; padding: 0; }
.contents li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contents li:first-child { padding-top: 0; }
.contents .n {
  grid-row: span 2; width: 40px; height: 40px; border-radius: 50%;
  background: var(--butter); border: 1px solid var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
}
.contents h3 { align-self: center; }
.contents p { grid-column: 2; color: var(--muted); font-size: 1rem; }

/* ---------- Is it right for you ---------- */
.tint { background: var(--mint-soft); }
.section.tint, .section.tint + .section { border-top: 0; }
.fit { display: grid; gap: 28px; }
@media (min-width: 860px) { .fit { grid-template-columns: 1fr 1fr; gap: 32px; } }
.card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border-top: 4px solid var(--teal); }
.card.alt { background: var(--butter-soft); border-top-color: var(--gold); }
@media (min-width: 720px) { .card { padding: 36px; } }
.card h3 { font-size: 1.3rem; margin-bottom: 18px; }
.checks, .dashes { list-style: none; margin: 0; padding: 0; }
.checks li, .dashes li { position: relative; padding-left: 38px; margin-bottom: 16px; }
.checks li:last-child, .dashes li:last-child { margin-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.dashes li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 16px; height: 2px; background: var(--gold); }
.card .after { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.97rem; color: var(--muted); }

/* ---------- Tiers ---------- */
.tiers { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--butter); }
.tiers li { display: grid; gap: 6px 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.tiers .name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.tiers .price { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.tiers p { color: var(--muted); margin: 0; }
.tiers .soon p, .tiers .soon .name, .tiers .soon .price { color: var(--muted); }
@media (min-width: 800px) {
  .tiers li { grid-template-columns: 15em 1fr auto; align-items: center; }
  .tiers .price { text-align: right; min-width: 9em; }
}
.pill {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; background: var(--butter); color: var(--muted); border: 1px solid var(--gold-soft);
  border-radius: 999px; padding: 3px 10px; vertical-align: middle; white-space: nowrap;
}
.pill.live { background: var(--mint); border-color: var(--mint); color: var(--deep); }

/* ---------- Free tools ---------- */
.tool {
  display: grid; gap: 24px; align-items: center;
  background: var(--butter-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
}
.tool + .tool { margin-top: 16px; }
.tool h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0; }
.tool p { color: var(--muted); max-width: 38em; }
@media (min-width: 800px) { .tool { grid-template-columns: 1fr auto; gap: 48px; padding: 44px 48px; } }

/* ---------- About ---------- */
.about { display: grid; gap: 36px; align-items: start; }
@media (min-width: 800px) { .about { grid-template-columns: 320px minmax(0, 1fr); gap: 72px; } }
.about h2 { margin-bottom: 20px; }
.about .lede { margin-bottom: 20px; }
.photo-slot {
  aspect-ratio: 4 / 5; width: 100%; max-width: 320px; border-radius: var(--radius);
  background: var(--mint-soft); display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.photo-slot.has-photo { padding: 0; background: none; }

/* Visible marker for content Cassie still needs to supply. Search the HTML for "PLACEHOLDER". */
.placeholder {
  display: inline-block; background: #FFE3D6; color: #8A3B12; border: 1px dashed var(--terracotta);
  border-radius: 8px; padding: 2px 10px; font-size: 0.9rem; font-weight: 500; line-height: 1.5;
}
p.placeholder, div.placeholder { display: block; padding: 14px 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 2px solid var(--butter); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 14px; width: 14px; height: 14px;
  background:
    linear-gradient(var(--teal), var(--teal)) center / 14px 2px no-repeat,
    linear-gradient(var(--teal), var(--teal)) center / 2px 14px no-repeat;
  transition: transform .15s ease;
}
.faq details[open] summary::after { background: linear-gradient(var(--teal), var(--teal)) center / 14px 2px no-repeat; }
.faq summary:hover { color: var(--teal); }
.faq .answer { padding: 0 34px 24px 0; color: var(--muted); }

/* ---------- Closing band ---------- */
.closing { background: var(--deep); color: var(--white); }
.closing .wrap { padding-block: var(--section); }
.closing .eyebrow { color: var(--mint); }
.closing h2 { color: var(--butter); max-width: 16em; }
.closing p { color: var(--mint); max-width: 36em; margin: 20px 0 32px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); font-size: 0.95rem; }
.site-footer .wrap { padding-block: 56px 40px; }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.site-footer h2 {
  font-family: var(--display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer li a { display: inline-block; padding: 5px 0; color: var(--deep); font-weight: 500; text-decoration: none; }
.site-footer li a:hover { color: var(--teal); text-decoration: underline; }
.site-footer .blurb { color: var(--muted); max-width: 24em; margin-top: 14px; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--gold-soft); color: var(--muted); font-size: 0.87rem;
  display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.legal p { margin: 0; }

/* ---------- Simple pages (404) ---------- */
.plain { min-height: 60vh; display: flex; align-items: center; }
.plain h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
.plain .lede { margin: 20px 0 32px; }

/* ============ Sales page (/pinpoint/) ============ */
.sales-hero .wrap { padding-block: 56px 56px; }
@media (min-width: 900px) { .sales-hero .wrap { padding-block: 96px 88px; } }

.buy { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .buy { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 56px; } }
.buy-info .lede { margin-top: 14px; }
.note { margin-top: 24px; padding: 20px 22px; background: var(--white); border-radius: var(--radius); border-left: 4px solid var(--teal); font-size: 0.97rem; }
.note p + p { margin-top: 12px; }

.buy-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border-top: 4px solid var(--deep); box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(15, 76, 74, 0.08); }
@media (min-width: 960px) { .buy-card { position: sticky; top: 96px; padding: 32px 28px; } }
.buy-card .price { font-family: var(--display); color: var(--muted); }
.buy-card .price span { font-weight: 800; font-size: 2.6rem; color: var(--deep); letter-spacing: -0.02em; margin-right: 6px; }
.disclaimer { margin: 16px 0 20px; padding: 14px 16px; background: var(--butter-soft); border-radius: 10px; font-size: 0.88rem; color: var(--muted); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 14px 0; font-size: 0.93rem; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.consent.optional { color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.btn.block { display: flex; width: 100%; justify-content: center; margin-top: 18px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--deep); border-color: var(--deep); }
.buy-status { min-height: 1.4em; margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.secure { margin-top: 6px; font-size: 0.82rem; color: var(--muted); }
/* Text for screen readers only (e.g. "opens in a new tab"). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* The "By continuing" line above the checkout button. */
.agree { margin: 18px 0 12px; font-size: 0.88rem; color: var(--muted); }

/* ---------- Long legal text (/privacy/) ---------- */
.legal-page .wrap { padding-block: 56px var(--section); }
.prose { max-width: 44em; overflow-wrap: break-word; }
.prose h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
.prose h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.25; margin: 48px 0 14px; }
.prose ul { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose .table-wrap { margin: 0 0 1.4em; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--display); font-weight: 600; border-bottom: 2px solid var(--gold-soft); }
.prose td:first-child { font-weight: 500; width: 46%; }
