/* Coil & Climb — marketing + compliance site
   One stylesheet, no framework, no runtime JS dependency. */

:root {
  --ink: #14243c;
  --ink-soft: #4a5b74;
  --line: #e2e8f2;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --sky-1: #8fd7ff;
  --sky-2: #d6eeb4;
  --coral: #f2622f;
  --coral-dark: #c0451b;
  --grass: #3f9c4c;
  --gold: #ffc93c;
  --focus: #1565c0;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(20, 36, 60, .10);
  --shadow-lg: 0 24px 60px rgba(20, 36, 60, .16);
  --wrap: 1120px;
  --font: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Baloo 2", var(--font);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef8;
    --ink-soft: #a8b6cb;
    --line: #26344a;
    --bg: #0e1726;
    --bg-soft: #14203440;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
p { margin: 0 0 1.1em; }
a { color: var(--focus); text-underline-offset: .18em; }
@media (prefers-color-scheme: dark) { a { color: #7cc0ff; } }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px;
}
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: .7rem 1.1rem; border-radius: 0 0 10px 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span i { color: var(--coral); font-style: normal; }
.nav { margin-left: auto; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 720px) { .nav { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 1.02rem;
  padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #ff8a5b, var(--coral)); color: #fff;
  box-shadow: 0 5px 0 var(--coral-dark);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--coral-dark); }
.btn.ghost {
  background: var(--bg); color: var(--ink); box-shadow: 0 5px 0 var(--line); border: 2px solid var(--line);
}
.btn.ghost:active { box-shadow: 0 1px 0 var(--line); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn small { display: block; font-family: var(--font); font-weight: 700; font-size: .72rem; opacity: .85; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 12% -10%, #fff3b0 0%, rgba(255,243,176,0) 55%),
    linear-gradient(180deg, var(--sky-1) 0%, #bdeaff 45%, var(--sky-2) 100%);
  padding: clamp(3rem, 2rem + 6vw, 6rem) 0 0;
}
@media (prefers-color-scheme: dark) {
  .hero { background: radial-gradient(1000px 460px at 12% -10%, #1d3a57 0%, rgba(0,0,0,0) 60%), linear-gradient(180deg, #12253c, #0e1726); }
}
.hero-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { color: #0f2740; }
.hero .lede { font-size: clamp(1.06rem, 1rem + .4vw, 1.3rem); color: #24445f; max-width: 46ch; }
@media (prefers-color-scheme: dark) { .hero h1, .hero .lede { color: var(--ink); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }
.hero-note { font-size: .9rem; color: #2c4a63; }
@media (prefers-color-scheme: dark) { .hero-note { color: var(--ink-soft); } }
.hero-shot { justify-self: center; filter: drop-shadow(0 30px 50px rgba(10, 40, 70, .35)); }
.hero-shot img { width: min(300px, 74vw); border-radius: 34px; }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; list-style: none; padding: 0; }
.badges li {
  background: rgba(255,255,255,.72); color: #16405f; border: 1px solid rgba(255,255,255,.9);
  padding: .3rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 800;
}
@media (prefers-color-scheme: dark) { .badges li { background: #ffffff14; color: var(--ink); border-color: #ffffff1f; } }

/* ---------- sections ---------- */
section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); margin: 0; }
.eyebrow {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; font-size: .78rem; color: var(--coral); margin: 0 0 .4rem;
}
.alt { background: var(--bg-soft); }

.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.card .ico { font-size: 1.6rem; line-height: 1; margin-bottom: .7rem; }

.shots { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.shots figure { margin: 0; }
.shots img { border-radius: 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.shots figcaption { margin-top: .8rem; font-size: .92rem; color: var(--ink-soft); }

.faq { max-width: 78ch; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem;
  margin-bottom: .7rem; background: var(--bg);
}
.faq summary { font-family: var(--display); font-weight: 800; cursor: pointer; font-size: 1.05rem; }
.faq summary::marker { color: var(--coral); }
.faq details[open] summary { margin-bottom: .6rem; }
.faq p { margin: 0; color: var(--ink-soft); }

.contact-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-grid .card a { font-weight: 800; }

/* ---------- legal pages ---------- */
.legal { padding-top: 2.5rem; }
.legal-body { max-width: 76ch; }
.legal-body h2 { margin-top: 2.2rem; }
.legal-body h3 { margin-top: 1.6rem; }
.legal-body ul { padding-left: 1.2rem; }
.legal-body li { margin-bottom: .45rem; }
.updated { color: var(--ink-soft); font-size: .92rem; margin-top: -.4rem; }
.callout {
  border-left: 4px solid var(--grass); background: var(--bg-soft);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
}
.callout.warn { border-left-color: var(--gold); }
.callout p:last-child { margin-bottom: 0; }
.toc { background: var(--bg-soft); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin-bottom: 2rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .3rem; }

table.data { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: var(--display); }
.table-scroll { overflow-x: auto; }

/* ---------- footer ---------- */
.site-foot { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); margin-bottom: .8rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .45rem; }
.foot-grid a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.foot-grid a:hover { text-decoration: underline; }
.foot-base {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between;
  color: var(--ink-soft); font-size: .88rem;
}

/* Small utilities. These exist as classes rather than style="" attributes
   because the hosting CSP is style-src 'self' and drops inline styles. */
.foot-about { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.legal-body.center { text-align: center; }
.pad-top { margin-top: 2rem; }
.contact-grid.spaced { margin: 2rem 0; }
