/* Centrace Takeoff marketing site */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo.woff2) format('woff2-variations'), url(fonts/archivo.woff2) format('woff2');
}

:root {
  --red: #d00202;          /* roof red from the logo */
  --red-dark: #a50202;
  --ink: #1e2024;          /* lettering */
  --ink-2: #4a505a;
  --ink-3: #6b7280;
  --paper: #ffffff;
  --plan: #eef1f4;         /* plan-sheet grey behind screenshots */
  --rule: #d5dae1;
  --dim: #2f6fde;          /* measurement blue, as in the app */
  --grid-major: rgba(47, 111, 222, .13);
  --grid-minor: rgba(47, 111, 222, .06);
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-stretch: 112%; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-stretch: 105%; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.faq details, .faq h2 { max-width: 780px; }

:focus-visible { outline: 3px solid var(--dim); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-weight: 700; font-stretch: 105%; text-decoration: none;
  color: #fff; background: var(--red); border: 2px solid var(--red); border-radius: 8px;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-quiet:hover { background: var(--plan); border-color: var(--ink-3); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--plan); border-color: var(--plan); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; gap: 28px; height: 92px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 66px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; position: relative; isolation: isolate; }
/* Drafting-paper grid behind the hero, fading out toward the screenshot */
.hero::before {
  content: ''; position: absolute; inset: 0 0 35% 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.hero h1 {
  font-size: clamp(2.5rem, 6.6vw, 5.25rem);
  font-stretch: 125%; font-weight: 850; letter-spacing: -0.025em; line-height: .98;
  max-width: 13ch;
}
.hero-intro { display: grid; grid-template-columns: minmax(0, 36rem) auto; gap: 16px 48px; align-items: end; margin-top: 32px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36rem; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: .9rem; color: var(--ink-3); margin: 0; grid-column: 1 / -1; }

.hero-shot { margin-top: clamp(40px, 6vw, 64px); margin-bottom: 0; }
.window {
  position: relative; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: 0 30px 60px -30px rgba(30, 32, 36, .35);
  background: var(--plan);
}
.shot-after { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--red); opacity: 0; }

/* The one moment, on a loop: the finished takeoff sweeps across the bare blueprint,
   holds, fades back to the bare plan, and sweeps again. Paused while off screen. */
@media (prefers-reduced-motion: no-preference) {
  .shot-after { clip-path: inset(0 100% 0 0); animation: reveal 9s cubic-bezier(.65, 0, .35, 1) .4s infinite; }
  .scan { animation: scan 9s cubic-bezier(.65, 0, .35, 1) .4s infinite; }
  .window.is-paused .shot-after, .window.is-paused .scan { animation-play-state: paused; }
}
@keyframes reveal {
  0%, 8%   { clip-path: inset(0 100% 0 0); opacity: 1; }
  30%, 80% { clip-path: inset(0 0 0 0); opacity: 1; }
  88%      { clip-path: inset(0 0 0 0); opacity: 0; }
  89%      { clip-path: inset(0 0 0 100%); opacity: 0; }
  90%, 100% { clip-path: inset(0 100% 0 0); opacity: 1; }
}
@keyframes scan {
  0%, 8%   { left: 0; opacity: 0; }
  8.5%     { left: 0; opacity: 1; }
  29%      { opacity: 1; }
  30%      { left: 100%; opacity: 0; }
  100%     { left: 100%; opacity: 0; }
}

/* Ruler under the hero shot, like the one in the logo */
.hero-shot figcaption { margin-top: 22px; }
.dim {
  display: block; height: 16px;
  border-bottom: 3px solid var(--red);
  background:
    linear-gradient(var(--red), var(--red)) left bottom / 3px 16px no-repeat,
    linear-gradient(var(--red), var(--red)) right bottom / 3px 16px no-repeat,
    repeating-linear-gradient(90deg, var(--red) 0 2px, transparent 2px 24px) left bottom / 100% 8px no-repeat;
}
.dim-label { display: block; text-align: center; color: var(--ink-2); font-size: .95rem; font-weight: 600; margin-top: 10px; }

/* Aerial photos */
.aerial { padding: 0 0 clamp(64px, 10vw, 120px); }
.aerial-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(32px, 5vw, 72px); align-items: start; margin-bottom: 40px; }
.aerial-intro .lead { max-width: 40rem; }
.aerial-pair { display: grid; grid-template-columns: minmax(0, 1.148fr) minmax(0, 1.545fr); gap: 24px; }
.aerial-pair figure { margin: 0; display: flex; flex-direction: column; }
.aerial-pair .plate { flex: 1; display: flex; align-items: center; }
.aerial-pair figcaption { margin-top: 14px; color: var(--ink-2); max-width: 36rem; }
.aerial-pair strong { color: var(--ink); }

/* Sections */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section h2 { margin-bottom: 40px; max-width: 22ch; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before {
  content: counter(step); display: block;
  font-size: 2.5rem; font-weight: 800; font-stretch: 125%; line-height: 1; color: var(--red); margin-bottom: 14px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; }

.features {
  padding: clamp(64px, 10vw, 120px) 0;
  background-color: var(--plan);
  background-image:
    linear-gradient(rgba(30, 32, 36, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 32, 36, .045) 1px, transparent 1px);
  background-size: 24px 24px;
}
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px);
  align-items: center; padding: clamp(32px, 5vw, 56px) 0;
}
.feature + .feature { border-top: 1px solid var(--rule); }
.feature:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text h2 { margin-bottom: 18px; }
.feature-text p { color: var(--ink-2); max-width: 34rem; }
.plate { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 10px; box-shadow: 0 22px 44px -28px rgba(30, 32, 36, .45); }
.plate img { border-radius: 4px; }
.plate-narrow { max-width: 400px; justify-self: center; width: 100%; padding: 0; border: 0; background: none; }
.plate-narrow img { border-radius: 10px; box-shadow: 0 24px 48px -24px rgba(30, 32, 36, .4); }

/* Before/after slider (walls section) */
@property --pos { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.compare.is-gliding { transition: --pos .6s cubic-bezier(.65, 0, .35, 1); }
.compare-wrap { margin: 0; }
.compare-wrap figcaption { margin-top: 12px; font-size: .95rem; color: var(--ink-3); }
.compare {
  position: relative; overflow: hidden; border-radius: 4px;
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.compare img { width: 100%; height: auto; border-radius: 0; pointer-events: none; -webkit-user-drag: none; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-top img { height: 100%; object-fit: cover; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: var(--red); pointer-events: none;
}
.compare-handle::after {
  content: '\2039\00a0\203A'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 3px solid var(--red);
  display: grid; place-items: center; font: 800 1.25rem/1 'Archivo', sans-serif; color: var(--red);
  box-shadow: 0 6px 16px -6px rgba(30, 32, 36, .45);
}
.compare.is-dragging .compare-handle::after { transform: translate(-50%, -50%) scale(1.08); }
.compare-tag {
  position: absolute; top: 10px; padding: 6px 12px; border: 0; border-radius: 6px; cursor: pointer;
  background: rgba(30, 32, 36, .85); color: #fff; font: 600 .8rem/1.2 'Archivo', sans-serif;
}
.compare-tag:hover { background: var(--red); }
.compare-tag-left { left: 10px; }
.compare-tag-right { right: 10px; }
.compare-range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.compare:has(.compare-range:focus-visible) { outline: 3px solid var(--dim); outline-offset: 3px; }
@media (max-width: 560px) { .compare-tag { font-size: .7rem; padding: 3px 7px; } }

.extras { border-top: 1px solid var(--rule); padding-top: clamp(40px, 6vw, 64px); margin-top: clamp(16px, 3vw, 32px); }
.extras h2 { margin-bottom: 28px; }
.extras ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 40px; }
.extras li { color: var(--ink-2); padding-left: 18px; position: relative; }
.extras li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.extras strong { color: var(--ink); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.price-panel { border: 2px solid var(--ink); border-radius: 12px; padding: clamp(28px, 4vw, 48px); }
.price-panel h2 { margin-bottom: 20px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 24px; }
.amount { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 850; font-stretch: 125%; line-height: 1; letter-spacing: -0.02em; }
.per { font-size: 1.1rem; color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { padding: 10px 0 10px 32px; border-top: 1px solid var(--rule); position: relative; }
.checks li::before {
  content: ''; position: absolute; left: 4px; top: 16px; width: 14px; height: 8px;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg);
}
.crew { color: var(--ink-2); }
.buying { padding-top: 8px; }
.buying h3 { font-size: 1.4rem; margin-bottom: 20px; }
.buying ol { margin: 0 0 24px; padding-left: 1.3em; }
.buying li { margin-bottom: 14px; padding-left: 6px; color: var(--ink-2); }
.buying li::marker { font-weight: 800; color: var(--red); }
.buying a { font-weight: 700; color: var(--ink); }

/* FAQ */
details { border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 1.15rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { color: var(--ink-2); padding-bottom: 12px; max-width: 60ch; }

/* Contact */
.contact { background: var(--ink); color: #fff; padding: clamp(64px, 10vw, 112px) 0; }
.contact h2 { max-width: 20ch; margin-bottom: 16px; font-size: clamp(2rem, 4.4vw, 3.4rem); font-stretch: 125%; }
.contact .lead { color: #c4c9d1; margin-bottom: 28px; }
.big-email {
  display: inline-block; text-decoration: none; margin-bottom: 28px;
  font-size: clamp(1.35rem, 5.4vw, 3.6rem); font-weight: 850; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1;
  border-bottom: 4px solid var(--red); padding-bottom: 6px;
}
.big-email:hover { color: #ffd7d9; }
.contact .email { margin: 0; color: #c4c9d1; }
.contact .email a { color: #fff; font-weight: 600; text-underline-offset: 4px; }

.site-footer { border-top: 1px solid var(--rule); padding: 28px 0; font-size: .9rem; color: var(--ink-3); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer-logo { height: 44px; width: auto; margin-right: auto; }
.footer-row a { text-decoration: none; font-weight: 600; color: var(--ink-2); }

/* Smaller screens */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-row > .btn { margin-left: auto; }
  .hero-intro { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .extras ul { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .aerial-intro, .aerial-pair { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-row { height: 68px; gap: 12px; }
  .brand img { height: 42px; }
  .header-row > .btn { padding: 0 12px; font-size: .85rem; }
  .steps, .extras ul { grid-template-columns: 1fr; }
  .big-email { font-stretch: 100%; letter-spacing: -0.01em; }
  .hero-actions .btn { flex: 1 1 auto; }
}
.buying a, .email a, .footer-row a { overflow-wrap: anywhere; }
