/* ==========================================================================
   ClearRoute EDI — site.css
   Art direction: Apple-style structural discipline in an elegant
   brown / tan / green palette. Edit tokens below to retune the whole site.
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');

:root {
  /* Palette */
  --canvas: #FFFFFF;
  --canvas-soft: #F7F5F1;
  --sand: #E8DCC8;
  --sand-light: #F5F1ED;
  --brown: #4A3728;
  --espresso: #2E211A;
  --green: #2D5016;
  --green-hover: #3A6A1C;
  --gold: #C9A961;
  --grey: #6B6560;
  --hairline: rgba(74, 55, 40, 0.12);
  --hairline-strong: rgba(74, 55, 40, 0.22);

  /* Type */
  --font: 'Satoshi', 'General Sans', -apple-system, BlinkMacSystemFont,
    'Segoe UI', system-ui, sans-serif;
  --text-hero: clamp(2.5rem, 6.2vw, 4.75rem);   /* up to ~76px */
  --text-4xl: clamp(2rem, 4.4vw, 3.25rem);
  --text-3xl: clamp(1.65rem, 3.2vw, 2.35rem);
  --text-2xl: clamp(1.35rem, 2.2vw, 1.6rem);
  --text-xl: 1.1875rem;
  --text-lg: 1.0625rem;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.8125rem;

  /* Space */
  --section-y: 120px;
  --gutter: 24px;
  --maxw: 1120px;
  --measure: 62ch;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-sm: 12px;
  --nav-h: 48px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.6;
  color: var(--brown);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  color: var(--espresso);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.06;
  margin: 0;
  overflow-wrap: break-word;
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); line-height: 1.2; letter-spacing: -0.018em; }
h4 { font-size: var(--text-xl); line-height: 1.3; letter-spacing: -0.012em; font-weight: 500; }

p { margin: 0; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 780px; }
.section { padding: var(--section-y) 0; }
.section--tight { padding: 88px 0; }
.section--soft { background: var(--canvas-soft); }
.section--sand { background: var(--sand-light); }
.section--dark { background: var(--espresso); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #FFF; }
.section--dark p, .section--dark li { color: rgba(255,255,255,0.72); }

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  color: var(--grey);
  line-height: 1.65;
  max-width: var(--measure);
}
.body-text { color: var(--grey); max-width: var(--measure); }
.center { text-align: center; }
.center .lede, .center .body-text { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 20px;
}
.eyebrow--gold { color: #8A6D2F; }

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }
.gold-mark { display: block; width: 40px; height: 2px; background: var(--gold); margin: 0 0 28px; }
.center .gold-mark { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 980px;
  border: 1px solid transparent;
  font: inherit; font-size: var(--text-base); font-weight: 500;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-hover); color: #fff; }
.btn--quiet { background: transparent; color: var(--green); border-color: var(--hairline-strong); }
.btn--quiet:hover { background: rgba(45,80,22,0.06); }
.btn--onDark { background: #fff; color: var(--espresso); }
.btn--onDark:hover { background: var(--sand); color: var(--espresso); }
.btn--block { width: 100%; }

.link-chev {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-base); font-weight: 500; color: var(--green);
}
.link-chev svg { transition: transform .25s ease; }
.link-chev:hover svg { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.center .actions { justify-content: center; }

/* ---------- Header ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--espresso); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

.site-head {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.site-head__inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--espresso); }
.brand:hover { color: var(--espresso); }
.brand__name { font-size: var(--text-sm); font-weight: 700; letter-spacing: -0.01em; }
.brand__name span { font-weight: 400; color: var(--grey); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: var(--text-xs); font-weight: 400; color: var(--brown);
  opacity: .85; transition: opacity .2s ease;
}
.nav a:hover { opacity: 1; color: var(--brown); }
.nav a[aria-current="page"] { font-weight: 500; opacity: 1; }
.nav__portal { color: var(--green) !important; font-weight: 500 !important; opacity: 1 !important; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--espresso);
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 0 20px;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 15px var(--gutter); font-size: var(--text-lg); border-bottom: 1px solid var(--hairline); }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 11vh, 128px) 0 0; text-align: center; }
.hero h1 { max-width: 20ch; margin: 0 auto; }
.hero .lede { margin: 26px auto 0; max-width: 54ch; }
.hero .actions { margin-top: 34px; }
.hero__media {
  margin-top: clamp(48px, 7vw, 88px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.hero__media img { width: 100%; }

/* ---------- Panels & grids ---------- */
.panel {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
}
.panel--soft { background: var(--canvas-soft); }
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .grid--4 { grid-template-columns: 1fr; } }

.feature { border-top: 1px solid var(--hairline); padding-top: 24px; }
.feature h3 { font-size: var(--text-xl); font-weight: 500; margin-bottom: 12px; }
.feature p { color: var(--grey); font-size: var(--text-base); }
.feature__num { font-size: var(--text-xs); color: var(--gold); font-weight: 700; letter-spacing: .1em; display: block; margin-bottom: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hairline); }

/* ---------- Metrics band ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 860px) { .metrics { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }
@media (max-width: 460px) { .metrics { grid-template-columns: 1fr; } }
.metric__value {
  font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1; color: var(--espresso); display: block;
}
.section--dark .metric__value { color: #fff; }
.metric__label { font-size: var(--text-sm); color: var(--grey); margin-top: 12px; display: block; }
.section--dark .metric__label { color: rgba(255,255,255,0.66); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 1px; background: var(--hairline);
}
.timeline > li { position: relative; padding: 0 0 44px 40px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 0; top: 6px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--canvas);
  border: 2px solid var(--sand);
}
.timeline__dot--done { background: var(--green); border-color: var(--green); }
.timeline__dot--now { background: var(--gold); border-color: var(--gold); }
.timeline__week {
  font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; display: block; margin-bottom: 8px;
}
.timeline h3 { font-size: var(--text-xl); font-weight: 500; margin-bottom: 10px; }
.timeline p { color: var(--grey); font-size: var(--text-base); max-width: 60ch; }

.owner-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  display: inline-block; font-size: var(--text-xs); padding: 4px 11px;
  border-radius: 980px; border: 1px solid var(--hairline-strong); color: var(--brown);
  background: var(--canvas);
}
.tag--green { border-color: rgba(45,80,22,.3); color: var(--green); background: rgba(45,80,22,.05); }
.tag--sand { border-color: rgba(201,169,97,.5); color: #7A5C18; background: rgba(201,169,97,.1); }

/* ---------- Lists ---------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative; padding-left: 28px; margin-bottom: 12px;
  color: var(--grey); font-size: var(--text-base);
}
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 11px; height: 6px; border-left: 1.6px solid var(--green);
  border-bottom: 1.6px solid var(--green); transform: rotate(-45deg);
}
.ticks--no li::before {
  border-color: #A8968A; transform: none; width: 11px; height: 0;
  border-left: 0; top: .72em;
}

/* ---------- Tooltip / term component ---------- */
.term {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  cursor: help;
  border-bottom: 1px dotted var(--gold);
  text-align: left;
}
.term:hover { border-bottom-color: var(--brown); }
.term--note {
  border-bottom: 0; color: var(--gold); font-weight: 700;
  padding: 0 1px; vertical-align: super; font-size: .68em; cursor: help;
}
.term--note:hover { color: #8A6D2F; }
.tip {
  position: fixed; z-index: 300; max-width: 300px;
  background: var(--espresso); color: #fff;
  font-size: var(--text-sm); line-height: 1.5; font-weight: 400;
  padding: 14px 16px; border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(46,33,26,.22);
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.tip.is-visible { opacity: 1; transform: none; }
.tip__title { display: block; font-weight: 700; margin-bottom: 5px; color: var(--sand); }

/* ---------- Compare table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%; border-collapse: collapse; font-size: var(--text-base);
  min-width: 620px;
}
table.data th, table.data td {
  text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
table.data thead th {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em;
  color: var(--grey); font-weight: 500;
}
table.data tbody th { font-weight: 500; color: var(--espresso); }
table.data td { color: var(--grey); }
.yes { color: var(--green); font-weight: 700; }
.no { color: #A8968A; }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1080px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 28px 24px 32px; background: var(--canvas);
  display: flex; flex-direction: column; height: 100%;
}
.tier--featured { border-color: var(--gold); background: #FFFDF8; }
.tier__name { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; color: var(--espresso); }
.tier__who { font-size: var(--text-sm); color: var(--grey); margin-top: 6px; min-height: 42px; }
.tier__price {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em;
  color: var(--espresso); margin: 18px 0 4px; line-height: 1;
}
.tier__cadence { font-size: var(--text-xs); color: var(--grey); }
.tier__list { margin: 22px 0 26px; }
.tier .btn { margin-top: auto; }

/* ---------- Forms ---------- */
.field { margin-bottom: 22px; }
.field label { display: block; font-size: var(--text-sm); font-weight: 500; color: var(--espresso); margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--grey); }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: var(--text-base); color: var(--espresso);
  background: var(--canvas); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm); padding: 13px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6560' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,80,22,.13);
}
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #8E3B2B; }
.error-msg { display: none; font-size: var(--text-sm); color: #8E3B2B; margin-top: 7px; }
.field.has-error .error-msg { display: block; }
.form-note { font-size: var(--text-sm); color: var(--grey); }
.form-success {
  border: 1px solid rgba(45,80,22,.28); background: rgba(45,80,22,.05);
  border-radius: var(--radius); padding: 28px;
}
.checkline { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); color: var(--grey); }
.checkline input { width: 16px; height: 16px; accent-color: var(--green); }

/* ---------- Footer ---------- */
.site-foot { background: var(--canvas-soft); border-top: 1px solid var(--hairline); padding: 64px 0 40px; font-size: var(--text-sm); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px 24px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h2 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--espresso); font-weight: 500; margin-bottom: 16px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 11px; }
.site-foot a { color: var(--grey); }
.site-foot a:hover { color: var(--brown); text-decoration: underline; }
.foot-legal { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--hairline); color: var(--grey); display: grid; gap: 12px; }
.foot-legal p { font-size: var(--text-xs); max-width: 90ch; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tip { transition: none; }
  .btn, .link-chev svg { transition: none; }
}

/* ---------- Misc ---------- */
.notice {
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm);
  background: var(--sand-light); padding: 18px 20px; font-size: var(--text-sm); color: var(--brown);
}
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 40px; }
.head-block { max-width: 760px; margin-bottom: 64px; }
.center.head-block { margin-left: auto; margin-right: auto; }
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); padding: 22px 0; }
.faq summary { cursor: pointer; font-size: var(--text-xl); font-weight: 500; color: var(--espresso); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--gold); font-size: 1.4em; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--grey); font-size: var(--text-base); margin-top: 14px; max-width: 66ch; }
