/* Odralyst palette
   --navy  #00487C  (deep blue: logo, headings, primary buttons)
   --sky   #00A5CF  (bright blue: accents, highlights, rocket tail)
   --paper #EEF1EF  (paper white, textured background)            */
:root {
  --navy: #00487C;
  --navy-deep: #003358;
  --sky: #00A5CF;
  --paper: #EEF1EF;
  --paper-shade: #e2e7e4;
  --ink: #0d2f4a;
  --ink-soft: #3d5a70;

  --font-display: "Sarpanch", "Arial Black", sans-serif;  /* same face as the logo */
  --font-slab: "Rokkitt", "Rockwell", Georgia, serif;
  --font-body: "Karla", system-ui, sans-serif;

  /* Hand-drawn, slightly irregular corners */
  --wobble: 255px 14px 225px 12px / 12px 225px 14px 255px;
  --wobble-2: 14px 225px 12px 255px / 255px 12px 225px 14px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background-color: var(--paper);
  /* Paper texture: fine grain + soft mottling, tinted to the palette white */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .25  0 0 0 0 .28  0 0 0 0 .27  0 0 0 .55 -.18'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='3' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .55  0 0 0 0 .52  0 0 0 .22 -.04'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='e'><feTurbulence type='fractalNoise' baseFrequency='.045' numOctaves='4' seed='9' stitchTiles='stitch' result='t'/><feDiffuseLighting in='t' surfaceScale='1.6' lighting-color='%23ffffff' result='l'><feDistantLight azimuth='45' elevation='58'/></feDiffuseLighting><feColorMatrix in='l' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  -1 0 0 0 .95'/></filter><rect width='100%' height='100%' filter='url(%23e)' opacity='.35'/></svg>");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--navy); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { color: var(--navy); margin: 0; line-height: 1.12; }
h2 {
  font-family: var(--font-slab);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.01em;
}
h2 em { font-weight: 400; font-style: italic; color: var(--sky); }
h3 { font-family: var(--font-slab); font-weight: 700; font-size: 1.5rem; }

.eyebrow {
  margin: 0 0 .6rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sky);
}
.section-lede { max-width: 42rem; color: var(--ink-soft); font-size: 1.125rem; margin: 1rem 0 0; }

section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy);
  --fg: var(--paper);
  --edge: var(--navy-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  border: 2px solid var(--edge);
  border-radius: var(--wobble);
  box-shadow: 4px 4px 0 var(--sky);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sky); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--sky); }
.btn:focus-visible { outline: 3px dashed var(--sky); outline-offset: 4px; }
.btn-ghost { --bg: transparent; --fg: var(--navy); --edge: var(--navy); box-shadow: 4px 4px 0 var(--navy); }
.btn-ghost:hover { box-shadow: 6px 6px 0 var(--navy); background: rgba(0, 165, 207, .08); }
.btn-light { --bg: var(--paper); --fg: var(--navy); --edge: var(--paper); box-shadow: 4px 4px 0 var(--sky); }
.btn-ghost-light { --bg: transparent; --fg: var(--paper); --edge: var(--paper); box-shadow: 4px 4px 0 rgba(238, 241, 239, .35); }
.btn-small { padding: .5rem 1.1rem; font-size: .9rem; box-shadow: 3px 3px 0 var(--sky); }
.btn-block { display: flex; width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 2rem; }
.cta-row.center { justify-content: center; }
.cta-note { margin: 1rem 0 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 241, 239, .88);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid rgba(0, 72, 124, .12);
}
.header-inner { display: flex; align-items: center; gap: 2rem; padding: .7rem 0; }
.brand { color: var(--navy); display: block; }
.brand-mark { width: 150px; height: auto; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  background: linear-gradient(var(--sky), var(--sky)) 0 100% / 0 2px no-repeat;
  transition: background-size .25s ease;
}
.nav a:hover { background-size: 100% 2px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.logo { color: var(--navy); width: min(760px, 100%); margin: 0; }
.logo-svg { width: 100%; height: auto; overflow: visible; }
.logo-sub {
  margin: -.5rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.9rem, 2vw, 1.2rem);
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--navy);
  padding-left: .4em; /* balance trailing letter-spacing */
}
.tagline {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin: 2.2rem 0 0;
  padding: .55rem .9rem .55rem 1.4rem;
  font-family: var(--font-slab);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.8vw, 1.6rem);
  color: var(--navy);
  border-top: 2px solid var(--sky);
  border-bottom: 2px solid var(--sky);
}
.rocket-dock { display: inline-block; width: 70px; height: 34px; flex: none; }
.lede {
  max-width: 38rem;
  margin: 1.6rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
}
.lede em { color: var(--navy); font-family: var(--font-slab); }
.hero .cta-row { justify-content: center; }

/* Speed-line divider, borrowed from the logo's motif */
.speedline {
  height: 30px;
  width: 100%;
  background:
    linear-gradient(var(--navy), var(--navy)) 8% 6px / 52% 7px no-repeat,
    linear-gradient(var(--sky), var(--sky)) 34% 19px / 58% 4px no-repeat;
  transform: rotate(-1.2deg);
  filter: url(#ink-soft);
  opacity: .9;
}
.speedline.flip { transform: rotate(1.2deg) scaleX(-1); }

/* ---------- Craft ---------- */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}
.craft-card {
  padding: 1.8rem 1.6rem;
  border: 2px solid var(--navy);
  border-radius: var(--wobble-2);
  background: rgba(255, 255, 255, .28);
}
.craft-card:nth-child(2) { transform: rotate(.6deg); }
.craft-card:nth-child(3) { transform: rotate(-.5deg); }
.craft-card p { margin: .6rem 0 0; color: var(--ink-soft); }

/* ---------- Packages ---------- */
.packages { background: rgba(0, 72, 124, .04); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 3rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.7rem 1.8rem;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: var(--wobble);
  box-shadow: 6px 6px 0 var(--navy);
}
.price-card.featured {
  background: var(--navy);
  color: var(--paper);
  box-shadow: 6px 6px 0 var(--sky);
  transform: translateY(-12px);
}
.price-card.featured h3,
.price-card.featured .amt,
.price-card.featured .monthly { color: var(--paper); }
.price-card.featured .unit,
.price-card.featured .plus { color: rgba(238, 241, 239, .75); }
.price-card.featured li::before { color: var(--sky); }
.price-card.featured .btn { --bg: var(--sky); --fg: var(--navy-deep); --edge: var(--sky); box-shadow: 4px 4px 0 var(--paper); }

.ribbon {
  position: absolute;
  top: -15px;
  right: 18px;
  padding: .25rem .8rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--sky);
  color: var(--navy-deep);
  border-radius: var(--wobble-2);
  transform: rotate(3deg);
}
.price-card header { padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 2px dashed currentColor; border-bottom-color: rgba(0, 165, 207, .55); }
.price-card h3 { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; transform: skewX(-12deg); transform-origin: left; }
.price { margin: .7rem 0 0; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.amt { font-family: var(--font-slab); font-weight: 800; font-size: 3.1rem; line-height: 1; color: var(--navy); }
.unit { font-size: .9rem; color: var(--ink-soft); }
.monthly { margin: .35rem 0 0; font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.monthly span { font-weight: 400; font-size: .9rem; }
.plus { margin: 0 0 .6rem; font-size: .9rem; font-style: italic; color: var(--ink-soft); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.8rem; flex: 1; }
.price-card li { position: relative; padding-left: 1.6rem; margin: .55rem 0; font-size: .98rem; line-height: 1.45; }
.price-card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sky);
  font-size: .9rem;
}

.included {
  margin-top: 3.2rem;
  padding: 1.5rem 1.8rem;
  border: 2px dashed var(--navy);
  border-radius: var(--wobble-2);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem 2rem;
  align-items: center;
}
.included h3 { font-size: 1.15rem; }
.included p { margin: 0; color: var(--ink-soft); }

/* ---------- Add-ons: grouped checklist + running estimate ---------- */
.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2.6rem;
}
.addon-groups { display: grid; gap: 2rem; min-width: 0; }
.addon-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: .7rem; }
.addon-group legend {
  padding: 0;
  margin-bottom: .7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sky);
}
.addon {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 2px solid rgba(0, 72, 124, .35);
  border-radius: var(--wobble-2);
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.addon:hover { border-color: var(--navy); }
.addon input { position: absolute; opacity: 0; pointer-events: none; }
/* hand-drawn checkbox */
.addon::before {
  content: "";
  width: 1.4rem;
  height: 1.4rem;
  border: 2px solid var(--navy);
  border-radius: 4px 7px 5px 6px;
  background: var(--paper) center / 70% no-repeat;
}
.addon:has(input:checked) { border-color: var(--navy); background: rgba(0, 165, 207, .1); box-shadow: 4px 4px 0 var(--navy); }
.addon:has(input:checked)::before {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23EEF1EF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.addon:has(input:focus-visible) { outline: 3px dashed var(--sky); outline-offset: 3px; }
.addon-text { display: grid; gap: .1rem; min-width: 0; }
.addon-text strong { font-weight: 700; color: var(--navy); }
.addon-text span { font-size: .92rem; color: var(--ink-soft); line-height: 1.4; }
.addon-price {
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.addon-custom {
  padding: 1.2rem 1.4rem;
  border: 2px dashed var(--navy);
  border-radius: var(--wobble);
}
.addon-custom h3 { font-size: 1.2rem; }
.addon-custom p { margin: .3rem 0 0; color: var(--ink-soft); }
.addon-custom strong { color: var(--navy); }

/* The estimate reads like an order ticket */
.estimate {
  position: sticky;
  top: 6rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: var(--wobble);
  box-shadow: 6px 6px 0 var(--sky);
}
.estimate h3 { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; transform: skewX(-12deg); transform-origin: left; }
.estimate-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: 1rem 0 1.1rem; }
.estimate-packages label { position: relative; cursor: pointer; }
.estimate-packages input { position: absolute; opacity: 0; }
.estimate-packages span {
  display: block;
  padding: .45rem .2rem;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--wobble-2);
  transition: background .15s ease, color .15s ease;
}
.estimate-packages input:checked + span { background: var(--navy); color: var(--paper); }
.estimate-packages input:focus-visible + span { outline: 3px dashed var(--sky); outline-offset: 2px; }
.estimate-lines { list-style: none; margin: 0; padding: .8rem 0; border-top: 2px dashed rgba(0, 72, 124, .4); border-bottom: 2px dashed rgba(0, 72, 124, .4); display: grid; gap: .45rem; }
.estimate-lines li { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; }
.estimate-lines li span:last-child { font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 700; white-space: nowrap; }
.estimate-lines li.empty { color: var(--ink-soft); font-style: italic; }
.estimate-total, .estimate-monthly { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.estimate-total { margin-top: .9rem; }
.estimate-total strong { font-family: var(--font-slab); font-weight: 800; font-size: 2rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.estimate-monthly { margin: .1rem 0 1.2rem; font-size: .95rem; color: var(--ink-soft); }
.estimate-monthly strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.estimate-note { margin: .9rem 0 0; font-size: .82rem; color: var(--ink-soft); line-height: 1.45; }
.select-all { user-select: all; color: var(--navy); font-weight: 700; }

.fine-print {
  margin-top: 2rem;
  color: var(--ink-soft);
  font-size: .95rem;
}
.fine-print summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.fine-print summary::-webkit-details-marker { display: none; }
.fine-print summary::before { content: "+ "; color: var(--sky); font-weight: 700; }
.fine-print[open] summary::before { content: "– "; }
.fine-print p { max-width: 50rem; }


/* ---------- Process ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 3.6rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--paper);
  background: var(--navy);
  border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%;
}
.steps p { color: var(--ink-soft); margin: .5rem 0 0; }

/* ---------- Contact ---------- */
.contact {
  background: var(--navy);
  color: var(--paper);
  text-align: center;
  overflow: hidden;
}
.contact::before {
  /* faint star field for the Space City finale */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(238,241,239,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 70%, rgba(238,241,239,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 15%, rgba(0,165,207,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 82%, rgba(238,241,239,.6) 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 28%, rgba(238,241,239,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 60%, rgba(0,165,207,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 85%, rgba(238,241,239,.5) 50%, transparent 51%);
  pointer-events: none;
}
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact h2 { color: var(--paper); max-width: 22ch; }
.contact h2 em { color: var(--sky); }
.contact p { max-width: 34rem; color: rgba(238, 241, 239, .82); font-size: 1.125rem; margin: 1.2rem auto 0; }
.rocket-pad { display: block; width: 70px; height: 70px; margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(238, 241, 239, .75); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 2rem; padding: 1.6rem 0; }
.footer-logo { width: 120px; height: auto; color: var(--paper); }

/* ---------- Rocket ---------- */
.rocket {
  position: fixed;
  left: 0;
  top: 0;
  width: 78px;
  height: 39px;
  z-index: 30;
  pointer-events: none;
  will-change: transform;
  /* positioned by rocket.js; hidden until placed to avoid a flash at 0,0 */
  visibility: hidden;
}
.rocket.ready { visibility: visible; }
.rocket-svg { width: 100%; height: 100%; overflow: visible; }
/* Two colors only: navy hull and pods with a sky lighting line, flipping to sky and paper on the dark contact section */
.rocket .body, .rocket .pods { fill: var(--navy); transition: fill .3s ease; }
.rocket .glint { fill: none; stroke: var(--sky); stroke-width: 2.8; stroke-linecap: round; transition: stroke .3s ease; }
.rocket.on-dark .body, .rocket.on-dark .pods { fill: var(--sky); }
.rocket.on-dark .glint { stroke: var(--paper); }
.rocket-tail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 29;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .craft-grid, .price-grid, .steps { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .craft-card:nth-child(n) { transform: none; }
  .builder { grid-template-columns: minmax(0, 1fr); }
  .estimate { position: static; max-width: 30rem; }
  .included { grid-template-columns: 1fr; }
  .price-grid { max-width: 480px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .brand-mark { width: 120px; }
  .logo-sub { letter-spacing: .2em; font-size: .72rem; margin-top: .4rem; }
  .tagline { padding-left: .9rem; gap: .5rem; }
  .rocket-dock { width: 52px; }
  .rocket { width: 58px; height: 29px; }
  .addon { gap: .8rem; padding: .9rem 1rem; }
  .addon-price { font-size: 1.05rem; }
}
