/* COMPASS site. Palette from FAA sectional charts. */
:root {
  --paper: #F3F6F8;
  --paper-2: #E6ECF1;
  --ink: #14304A;
  --ink-soft: #4A6075;
  --magenta: #B4306E;   /* Horizon View */
  --blue: #2F6DB0;      /* Bird's Eye View */
  --rule: #C9D3DD;
  --white: #FFFFFF;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --measure: 68ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  background-image:
    linear-gradient(var(--paper-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-2) 1px, transparent 1px);
  background-size: 48px 48px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 10; }

/* ---------- header ---------- */
.top { padding: 1.1rem 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand span { font: 700 1.6rem/1 var(--display); letter-spacing: .04em; }
.nav { display: flex; gap: 1.5rem; font-weight: 500; font-size: .98rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--magenta); }

/* ---------- hero ---------- */
.hero { padding: 2.5rem 0 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(2.9rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: 1.55rem; line-height: 1.1; }
.lede { font-size: 1.22rem; color: var(--ink-soft); max-width: 34rem; margin: 1.3rem 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn {
  display: inline-block; padding: .85rem 1.4rem; border-radius: 6px; font-weight: 600;
  text-decoration: none; border: 2px solid var(--ink); color: var(--ink); background: transparent;
}
.btn.primary { background: var(--ink); color: var(--white); }
.btn.primary:hover { background: var(--magenta); border-color: var(--magenta); color: var(--white); }
.btn:hover { color: var(--magenta); border-color: var(--magenta); }
.small { font-size: .9rem; color: var(--ink-soft); }

/* the plan diagram */
.plan { width: 100%; max-width: 560px; justify-self: center; }
.plan .ring { fill: none; stroke: var(--rule); stroke-width: 1.2; }
.plan .tick { stroke: var(--ink); stroke-width: 1.2; }
.plan .lbl { font: 600 15px var(--display); fill: var(--ink); }
.plan .alt { font: 500 12px var(--body); fill: var(--ink-soft); }
.plan .parcel { fill: rgba(47,109,176,.10); stroke: var(--ink); stroke-width: 1.6; }
.plan .route { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.plan .h { fill: var(--magenta); }
.plan .b { fill: var(--blue); }
.plan .home { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .plan .route { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: fly 4.2s 0.3s cubic-bezier(.45,.05,.35,1) forwards; }
  .plan .stop { opacity: 0; animation: show .3s forwards; animation-delay: calc(.3s + var(--t) * 4.2s); }
  @keyframes fly { to { stroke-dashoffset: 0; } }
  @keyframes show { to { opacity: 1; } }
}
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: center; margin-top: .6rem; font-size: .92rem; color: var(--ink-soft); }
.legend span { white-space: nowrap; }
.legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .4rem; vertical-align: -.05rem; }

/* ---------- sections ---------- */
section { padding: 4.5rem 0; }
.band { background: var(--white); border-block: 1px solid var(--rule); }
.intro { max-width: var(--measure); margin-bottom: 2.4rem; }
.intro p { color: var(--ink-soft); margin: .8rem 0 0; }

.shot { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(20,48,74,.45); }
.steps { list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: .9rem; }
.steps li::before { content: counter(s); font: 700 2.2rem/1 var(--display); color: var(--magenta); display: block; margin-bottom: .5rem; }
.steps p { margin: .45rem 0 0; color: var(--ink-soft); font-size: .98rem; }

.views { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; }
.view figure { margin: 0; }
.view img { border-radius: 6px; border: 1px solid var(--rule); }
.view h3 { margin: 1.1rem 0 .4rem; display: flex; align-items: center; gap: .6rem; }
.view h3::before { content: ""; width: .8rem; height: .8rem; border-radius: 50%; background: var(--c); }
.view p { margin: 0; color: var(--ink-soft); max-width: 46ch; }
.view.h { --c: var(--magenta); }
.view.b { --c: var(--blue); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-soft); }
.label-demo {
  position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden;
  background: #8C9A6A url(/assets/label-bg.jpg) center / cover no-repeat;
  border: 1px solid var(--rule);
}
.label-demo .tag {
  position: absolute; left: 4%; bottom: 7%; display: flex; align-items: center; gap: .7rem;
  font: 700 clamp(1rem, 2.6vw, 1.7rem)/1 var(--body); color: #fff;
  text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 3px #000, 0 0 3px #000;
}
.label-demo svg { width: 2.4em; height: 2.4em; }
.code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; background: var(--paper-2); padding: .1rem .35rem; border-radius: 4px; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 900px; }
.plan-box { background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 2rem; display: flex; flex-direction: column; }
.plan-box.annual { border: 2px solid var(--ink); }
.price { font: 700 3.6rem/1 var(--display); margin: .8rem 0 .2rem; }
.price small { font: 500 1.05rem var(--body); color: var(--ink-soft); }
.plan-box ul { padding-left: 1.1rem; margin: 1.1rem 0 1.6rem; color: var(--ink-soft); }
.plan-box .pp { margin-top: auto; min-height: 50px; }
.save { color: var(--magenta); font-weight: 600; }
.pp-note { margin-top: 1.4rem; max-width: var(--measure); }
.done { background: var(--white); border: 2px solid var(--blue); border-radius: 8px; padding: 1.4rem 1.6rem; max-width: 900px; margin-bottom: 2rem; }

/* faq */
.faq { max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; }
.faq details p { margin: .7rem 0 0; color: var(--ink-soft); }

/* footer */
footer { padding: 3rem 0 4rem; font-size: .95rem; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 2rem; }
footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* document pages */
.doc { max-width: var(--measure); padding: 2rem 0 4rem; }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.doc h2 { font-size: 1.8rem; margin: 2.2rem 0 .6rem; }
.doc ol li, .doc ul li { margin: .4rem 0; }
.draft { background: #FBE9F1; border-left: 4px solid var(--magenta); padding: .8rem 1rem; margin: 1rem 0 2rem; }

@media (max-width: 900px) {
  .hero .wrap, .split, .views, .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plan { max-width: 440px; }
  .nav { gap: 1rem; font-size: .92rem; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: .2rem; }
  .nav a:not(.keep) { display: none; }
}
