/* Pacific Funnel Repair: colors sampled from the logo */
:root {
  --forest: #04382c;      /* logo dark letters */
  --pine: #0a5a32;        /* logo outline */
  --leaf: #31a03b;        /* logo bright green */
  --mist: #eef4f0;        /* page background, cool pale green */
  --paper: #ffffff;
  --ink: #12261f;
  --ink-soft: #3d5249;
  --leak: #e9a21b;        /* amber: marks a problem */
  --leak-ink: #5a3b00;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--mist);
  font-variation-settings: "wdth" 100;
}

h1, h2, h3 { line-height: 1.12; margin: 0 0 .6em; color: var(--forest); }
h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  font-weight: 800;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 750;
  font-variation-settings: "wdth" 112;
}
h3 { font-size: 1.15rem; font-weight: 700; font-variation-settings: "wdth" 106; margin-bottom: .35em; }
p { margin: 0 0 1em; max-width: var(--measure); }

a { color: var(--pine); text-underline-offset: .18em; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--leak); outline-offset: 3px; border-radius: 4px; }

code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: rgba(4, 56, 44, .08); padding: .1em .35em; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  max-width: 1200px; margin: 0 auto;
}
.brand img { display: block; width: clamp(150px, 18vw, 210px); height: auto; }
.site-header nav { display: flex; gap: clamp(.8rem, 2vw, 1.8rem); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { text-decoration: none; color: var(--ink-soft); font-weight: 550; font-size: .97rem; }
.site-header nav a:hover { color: var(--forest); }
.site-header nav .nav-cta { color: var(--pine); border: 2px solid var(--pine); padding: .35rem .9rem; border-radius: 999px; }

/* Buttons */
.button {
  display: inline-block; text-decoration: none;
  background: var(--forest); color: #fff;
  font-weight: 700; font-variation-settings: "wdth" 110;
  padding: .9rem 1.5rem; border-radius: 10px;
  box-shadow: 0 3px 0 var(--leaf);
  transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 4px 0 var(--leaf); }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--leaf); }
.button-light { background: #fff; color: var(--forest); box-shadow: 0 3px 0 var(--leak); }
.button-light:hover { color: var(--forest); box-shadow: 0 4px 0 var(--leak); }

/* Hero */
.hero {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.lede { font-size: 1.2rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.hero-note { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* The ticket: the one bold element on the page */
.ticket {
  position: relative; margin: 0;
  background: var(--paper);
  border-radius: 14px 14px 14px 14px;
  padding: 1.6rem 1.6rem 1.3rem 2.6rem;
  box-shadow: 0 1px 0 rgba(4,56,44,.12), 0 18px 40px -18px rgba(4,56,44,.45);
  transform: rotate(1.4deg);
  border-left: 10px solid var(--leak);
}
.ticket::before { /* perforation along the stub */
  content: ""; position: absolute; left: 1.2rem; top: 1rem; bottom: 1rem;
  border-left: 2px dashed rgba(4,56,44,.22);
}
.ticket-punch {
  position: absolute; top: 1.15rem; right: 1.2rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--mist); box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
}
.ticket-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; margin-bottom: 1.1rem; padding-right: 2rem; }
.ticket-tag {
  background: var(--leak); color: var(--leak-ink);
  font-weight: 800; font-size: .85rem; font-variation-settings: "wdth" 115;
  padding: .2rem .6rem; border-radius: 4px;
}
.ticket-where { color: var(--ink-soft); font-size: .92rem; }
.ticket-body { margin: 0; display: grid; gap: .95rem; }
.ticket-body div { display: grid; gap: .1rem; }
.ticket-body dt { font-size: .82rem; font-weight: 650; color: var(--ink-soft); }
.ticket-body dd { margin: 0; }
.ticket-body dd.mono {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: var(--forest); font-weight: 600;
  text-decoration: underline wavy var(--leak) 2px; text-underline-offset: .28em;
}
.ticket figcaption { margin-top: 1.2rem; padding-top: .8rem; border-top: 1px solid rgba(4,56,44,.12); font-size: .82rem; color: var(--ink-soft); }

/* Bands and sections */
section:not(.hero) {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  padding-inline: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
}
.band { background: var(--paper); }

.steps { list-style: none; padding: 0; margin-top: 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 3.2rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest); color: #fff; font-weight: 800;
}
.steps li:not(:last-child)::after { /* the pipe between steps */
  content: ""; position: absolute; top: 1.1rem; left: 2.9rem; right: -1.5rem; height: 3px;
  background: linear-gradient(90deg, var(--leaf), rgba(49,160,59,.15));
}
.steps p { color: var(--ink-soft); }

.check-list { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; }
.check-list li { padding: 1.25rem 0; border-top: 2px solid rgba(4,56,44,.14); }
.check-list p { color: var(--ink-soft); margin: 0; }

.honest p { font-size: 1.12rem; }

.bot ul { padding-left: 1.2rem; max-width: var(--measure); margin-bottom: 1.25rem; }
.bot li { margin-bottom: .35rem; }

.contact { background: var(--forest); color: #dfeee5; }
.contact h2 { color: #fff; }
.contact p { font-size: 1.12rem; }
.contact .button { margin-top: .5rem; }

.site-footer { padding: 1.5rem max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter))); background: #032a21; color: #a9c5b6; font-size: .88rem; }
.site-footer p { margin: 0; }

/* Small screens */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .ticket { transform: none; max-width: 460px; }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { display: none; }
  .check-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .site-header nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
