/* AnswerTrail landing page. Colours and type follow the logo: navy stones, sage trail. */
:root {
  --navy: #28353f;
  --navy-deep: #1f2a33;
  --sage: #6c7e6f;
  --sage-dark: #56675a; /* text-safe sage on light backgrounds */
  --sage-light: #a3b8a7;
  --paper: #f7f8f5;
  --mist: #e7ece5;
  --white: #ffffff;
  --ink: #28353f;
  --ink-soft: #4a5963;
  --line: #d6ddd4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(40, 53, 63, 0.06), 0 12px 32px rgba(40, 53, 63, 0.1);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--sage-light); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

.eyebrow {
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.97rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { color: var(--navy); }
.btn-ghost:hover { background: var(--mist); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--mist); transform: translateY(-1px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a { text-decoration: none; font-weight: 500; font-size: 0.97rem; color: var(--ink-soft); }
.site-nav > a:hover { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--navy); padding: 8px; border-radius: 8px; cursor: pointer;
}

/* Hero */
.hero { position: relative; background: linear-gradient(180deg, #fbfcfa 0%, var(--paper) 60%); padding: 72px 0 150px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; position: relative; z-index: 1; }
.lede { font-size: 1.18rem; color: var(--ink-soft); margin-top: 20px; max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 0.95rem; color: var(--ink-soft); }
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; display: block; }

.hero-card {
  margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; box-shadow: var(--shadow);
}
.card-top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--mist); color: var(--ink-soft);
}
.chip-green { background: #dfe8e0; color: #3f5244; }
.card-q { font-weight: 700; font-size: 1.08rem; line-height: 1.35; }
.card-a {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  margin-top: 14px; padding: 14px; background: var(--paper); border-radius: 12px; font-size: 0.95rem;
  color: var(--ink-soft);
}
.card-a .value {
  background: var(--navy); color: var(--white); font-weight: 700; font-size: 0.8rem;
  padding: 3px 10px; border-radius: 6px; margin-top: 2px;
}
.card-trail { list-style: none; margin: 16px 0 0; padding: 0 0 0 5px; font-size: 0.88rem; color: var(--ink-soft); border-left: 2px dashed var(--sage-light); }
.card-trail li { position: relative; padding: 4px 0 4px 16px; }
.card-trail .dot {
  position: absolute; left: -11px; top: 0.78em; width: 10px; height: 10px; border-radius: 50%;
  background: var(--sage); border: 2px solid var(--white);
}
.card-actions { display: flex; gap: 8px; margin-top: 18px; }
.fake-btn {
  font-size: 0.85rem; font-weight: 600; padding: 7px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--ink-soft); user-select: none;
}
.fake-primary { background: var(--sage-dark); border-color: var(--sage-dark); color: var(--white); }
.hero-card figcaption { margin-top: 14px; font-size: 0.78rem; color: #6b7780; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--mist); }
.section-dark { background: var(--navy); color: #eef2ee; }
.section-dark .eyebrow { color: var(--sage-light); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { text-align: left; margin: 0; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); margin-top: 16px; font-size: 1.08rem; }

/* Problem */
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.stat-num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--navy); }
.stat-label { margin-top: 8px; color: var(--ink-soft); }
.stat-plain { background: var(--navy); border-color: var(--navy); color: #eef2ee; }
.stat-plain h3 { color: var(--white); margin-bottom: 10px; font-size: 1.2rem; }
.stat-plain p { color: #d5ddd7; font-size: 0.98rem; }
.source-note { margin-top: 18px; font-size: 0.86rem; color: #5f6c75; text-align: center; }

/* Trail (how it works) */
.trail { position: relative; }
.trail-path { position: absolute; left: 0; right: 0; top: -8px; width: 100%; height: 80px; display: block; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; position: relative; }
.steps li { text-align: center; }
.waypoint {
  display: grid; place-items: center; width: 64px; height: 44px; margin: 10px auto 22px;
  background: var(--navy); color: var(--white); font-weight: 800; font-size: 1.05rem;
  border-radius: 50% / 55% 55% 45% 45%; /* a cairn stone */
  box-shadow: 0 0 0 7px var(--mist);
}
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 0.95rem; color: var(--ink-soft); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature svg { width: 32px; height: 32px; color: var(--sage-dark); margin-bottom: 14px; display: block; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 0.95rem; color: var(--ink-soft); }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.calc-intro h2 { color: var(--white); }
.calc-intro > p:not(.eyebrow) { color: #d5ddd7; margin-top: 16px; }
.calc-form { display: grid; gap: 16px; margin-top: 28px; }
.calc-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; color: #eef2ee; }
.calc-form input {
  font: inherit; font-size: 1.1rem; font-weight: 600; color: var(--white);
  background: rgba(255, 255, 255, 0.07); border: 1.5px solid #7a8a92; border-radius: 10px;
  padding: 11px 14px; width: 100%; max-width: 280px;
}
.calc-form input:focus-visible { outline: 3px solid var(--sage-light); outline-offset: 2px; border-color: var(--sage-light); }
.assumptions { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.assumptions h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sage-light); margin-bottom: 10px; }
.assumptions ul { margin: 0; padding-left: 18px; color: #d5ddd7; font-size: 0.9rem; }
.assumptions li + li { margin-top: 4px; }

.calc-result { background: var(--white); color: var(--ink); border-radius: 18px; padding: 30px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }
.result-kicker { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sage-dark); margin-bottom: 20px; }
.result-row + .result-row { margin-top: 22px; }
.result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.result-head span { font-weight: 600; color: var(--ink-soft); }
.result-head strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.bar { height: 12px; background: var(--mist); border-radius: 999px; margin: 8px 0 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 45%; background: var(--sage); border-radius: 999px; transition: width 0.3s ease; }
.bar-muted { background: #9aa5ab; width: 100%; }
.result-cost { font-size: 0.95rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.result-total { margin-top: 26px; padding: 18px; background: #e3ebe4; border-radius: 12px; }
.result-total span { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #3f5244; }
.result-total p { font-size: 1.15rem; margin-top: 4px; }
.result-total strong { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.estimate-note { margin-top: 16px; font-size: 0.84rem; color: #5f6c75; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px 28px;
}
.plan-featured { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -13px; left: 28px; background: var(--navy); color: var(--white);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.plan-badge-quiet { background: var(--mist); color: #3f5244; border: 1px solid var(--line); }
.plan h3 { font-size: 1.3rem; }
.plan-for { color: var(--ink-soft); font-size: 0.95rem; margin-top: 6px; min-height: 3em; }
.price { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 4px; }
.price .amount { font-size: 2.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price .per { color: var(--ink-soft); font-weight: 500; }
.plan ul { list-style: none; margin: 18px 0 26px; padding: 0; flex: 1; }
.plan li { position: relative; padding: 7px 0 7px 28px; font-size: 0.97rem; border-top: 1px solid #edf0eb; }
.plan li:first-child { border-top: 0; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 0.82em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--sage); border-bottom: 2.5px solid var(--sage); transform: rotate(-45deg);
}
.pricing-note { margin-top: 28px; text-align: center; color: var(--ink-soft); }

/* Security */
.security-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.security-aside { font-size: 0.93rem !important; padding: 14px 16px; background: var(--paper); border-left: 4px solid var(--sage); border-radius: 0 10px 10px 0; }
.security-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.security-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.security-list h3 { margin-bottom: 6px; }
.security-list p { font-size: 0.94rem; color: var(--ink-soft); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 4px; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2.5px solid var(--sage-dark); border-bottom: 2.5px solid var(--sage-dark);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 44px 22px 4px; color: var(--ink-soft); }

/* CTA band */
.cta-band { background: var(--sage-dark); color: var(--white); padding: 56px 0; }
.cta-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.cta-inner img { width: 72px; height: 72px; }
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin-top: 8px; color: #e9efea; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c9d2cc; padding: 48px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.site-footer img { height: 36px; width: auto; }
.footer-tag { margin-top: 10px; font-size: 0.95rem; color: var(--sage-light); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; max-width: 520px; }
.site-footer nav a { text-decoration: none; color: #e3e9e4; font-size: 0.95rem; }
.site-footer nav a:hover { text-decoration: underline; }
.footer-note {
  margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 0.85rem; color: #aab6ae;
}
.footer-note p:first-child { max-width: 70ch; }

/* Responsive */
@media (max-width: 1040px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 18px; }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    box-shadow: 0 16px 28px rgba(40, 53, 63, 0.12);
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-actions { margin: 16px 0 0; gap: 10px; }
  .nav-actions .btn { flex: 1; }
  .nav-actions .btn-ghost { border-color: var(--navy); }

  .hero { padding: 48px 0 120px; }
  .hero-grid, .calc-grid, .security-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .section { padding: 64px 0; }
  .stat-grid, .price-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-for { min-height: 0; }
  .price-grid { gap: 30px; max-width: 480px; margin: 0 auto; }

  /* The trail turns vertical: a dashed path down the left with stones on it. */
  .trail-path { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 560px; margin: 0 auto; }
  .steps li { text-align: left; position: relative; padding: 0 0 30px 84px; min-height: 76px; }
  .steps li::before {
    content: ""; position: absolute; left: 31px; top: 44px; bottom: -2px;
    border-left: 3px dotted var(--sage);
  }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:last-child::before { display: none; }
  .waypoint { position: absolute; left: 0; top: 0; margin: 0; box-shadow: none; }

  .cta-inner { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .feature-grid, .security-list { grid-template-columns: minmax(0, 1fr); }
  .brand img { height: 34px; }
  .hero-card { padding: 18px; }
  .card-a { grid-template-columns: minmax(0, 1fr); }
  .card-a .value { justify-self: start; }
  .cta-row .btn { flex: 1 1 100%; }
  .calc-result { padding: 22px; }
  .calc-form input { max-width: none; }
  .section-head { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
