/* trailtreemail.com — one stylesheet for the three pages */
@font-face { font-family: "Plex"; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f7f8fa;      /* the app's own background */
  --white: #ffffff;
  --ink: #18202e;
  --muted: #5b6578;
  --rule: #dde2ea;
  --navy: #14213d;       /* the app's title bar */
  --line1: #2563eb;      /* trail colours, as the app draws them */
  --line2: #b42bd1;
  --line3: #ea580c;
  --good: #157347;
  --focus: #2563eb;
  --measure: 34em;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 "Plex", "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--paper); font-variant-numeric: tabular-nums; }
a { color: var(--line1); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* header */
.top { background: var(--navy); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top nav a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.top nav a:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 9px; font: 500 16px/1 "Plex", "Segoe UI", sans-serif; padding: 14px 20px; border-radius: 8px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: #1d2f57; }
.btn.light { background: #fff; color: var(--navy); }
.btn.quiet { color: var(--navy); border-color: var(--rule); background: var(--white); }
.btn.quiet:hover { border-color: #b9c1ce; }
.top .btn { padding: 9px 14px; font-size: 15px; }

/* hero: the trail map is the page's one bold element */
.hero { padding: 76px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.028em; font-weight: 600; margin: 0 0 22px; max-width: 11em; }
.lede { font-size: 20px; line-height: 1.55; color: #2c3546; max-width: var(--measure); margin: 0 0 30px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fine { color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.map { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: 22px 22px 16px; box-shadow: 0 18px 40px -24px rgba(20, 33, 61, .35); }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map .lbl { font: 500 13px "Plex", "Segoe UI", sans-serif; fill: var(--ink); }
.map .day { font: 400 11px "Plex", "Segoe UI", sans-serif; fill: #8a93a5; }
.map .ini { font: 600 9.5px "Plex", "Segoe UI", sans-serif; fill: #fff; }
.map .rev { font: 600 11px "Plex", "Segoe UI", sans-serif; }
.map figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s cubic-bezier(.3, .7, .2, 1) forwards; animation-delay: var(--d, 0s); }
  .pop { opacity: 0; animation: pop .35s ease-out forwards; animation-delay: var(--d, 0s); }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { to { opacity: 1; } }
}

/* the problem, in prose */
.story { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 72px 0; }
.story .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 18px; max-width: 16em; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.story p { max-width: var(--measure); margin: 0 0 16px; }
.does { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 20px; }
.does li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.does li::before { content: ""; height: 4px; margin-top: 13px; border-radius: 2px; background: var(--c); }
.does b { display: block; font-weight: 600; }
.does span { color: var(--muted); }

/* features: picture and words, alternating */
.feature { padding: 76px 0 8px; }
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.feature.flip .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.feature.flip .shot { order: 2; }
.feature p { color: #2c3546; max-width: var(--measure); }
.feature ul { padding-left: 1.1em; margin: 10px 0 0; color: #2c3546; max-width: var(--measure); }
.feature li { margin: 4px 0; }
.shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); box-shadow: 0 22px 48px -30px rgba(20, 33, 61, .45); background: var(--white); }

/* plans */
.plans { padding: 96px 0 40px; }
.compare { width: 100%; border-collapse: collapse; margin-top: 22px; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { background: #eef1f6; font-weight: 600; }
.compare td:nth-child(2), .compare td:nth-child(3), .compare th:nth-child(2), .compare th:nth-child(3) { width: 18%; text-align: center; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--good); font-weight: 600; }
.no { color: #a0a8b6; }

.prices { padding: 40px 0 24px; }
.priceRow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; margin-top: 22px; }
.region { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: 26px 28px; }
.region.main { border: 2px solid var(--navy); }
.amounts { display: flex; gap: 34px; flex-wrap: wrap; margin: 14px 0 18px; }
.amount b { display: block; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.amount span { color: var(--muted); font-size: 15px; }
.region p { margin: 0 0 12px; max-width: var(--measure); }
.soon { color: var(--muted); }
.note { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 44em; }

/* beta testers: a real sequence, so numbered */
.beta { background: var(--navy); color: #fff; padding: 72px 0; margin-top: 72px; }
.beta h2 { color: #fff; }
.beta p { color: rgba(255, 255, 255, .82); max-width: var(--measure); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: s; border-top: 3px solid rgba(255, 255, 255, .25); padding-top: 16px; }
.steps li::before { content: counter(s); display: block; font-size: 30px; font-weight: 600; line-height: 1; margin-bottom: 10px; color: #9cc3ff; }
.steps b { display: block; color: #fff; font-size: 18px; margin-bottom: 4px; }
.steps span { color: rgba(255, 255, 255, .78); font-size: 15.5px; }
.beta a { color: #9cc3ff; }

/* small print */
.facts { padding: 72px 0; }
.facts .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.facts p { color: #2c3546; margin: 0 0 10px; }
footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; margin-left: auto; }
footer a { color: var(--muted); }

/* legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 28px 80px; }
.doc h1 { font-size: 40px; max-width: none; }
.doc h2 { font-size: 22px; margin-top: 38px; }
.doc p, .doc li { max-width: 40em; }
.doc .updated { color: var(--muted); }

@media (max-width: 920px) {
  .hero .wrap, .story .wrap, .feature .wrap, .feature.flip .wrap, .priceRow, .facts .wrap { grid-template-columns: 1fr; }
  .feature.flip .shot { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .hero { padding-top: 48px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  body { font-size: 16px; }
  .lede { font-size: 18px; }
  .compare th, .compare td { padding: 10px 10px; font-size: 14.5px; }
}
