/* PowderSharing – shared stylesheet */
:root {
  --ice-50: #eaf4fb;
  --ice-100: #cfe5f6;
  --accent: #1e6fd9;
  --accent-dark: #1757ac;
  --ink: #0f2438;
  --ink-soft: #35506a;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(15, 36, 56, 0.08);
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--white);
  padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 720px; }
.section { padding: 3.5rem 0; }
.section--tint { background: var(--ice-50); }
.section__lead { color: var(--ink-soft); max-width: 60ch; }
.eyebrow { color: var(--accent-dark); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--ice-100);
  backdrop-filter: blur(6px);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.logo:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: var(--ice-50); color: var(--ink);
  border: 1px solid var(--ice-100); border-radius: var(--radius-sm);
  padding: .5rem .85rem; font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle__bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: .5rem; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav-list a {
  display: block; padding: .5rem .9rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.nav-list a:hover { background: var(--ice-50); color: var(--ink); }
.nav-list a[aria-current="page"] { background: var(--ice-100); color: var(--ink); }

@media (max-width: 759px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem;
    background: var(--white); border-bottom: 1px solid var(--ice-100); box-shadow: var(--shadow);
  }
  .js .nav-list.is-open { display: flex; }
  .nav-list a { padding: .85rem .5rem; border-radius: var(--radius-sm); }
  .nav { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .85rem 1.5rem; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid var(--accent); background: var(--accent); color: var(--white);
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--accent-dark); }
.btn--ghost:hover { background: var(--ice-50); color: var(--accent-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--ice-50), var(--white)); padding: 4rem 0 3.5rem; }
.hero p { font-size: 1.2rem; color: var(--ink-soft); max-width: 55ch; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 760px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--white); border: 1px solid var(--ice-100); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--accent); color: var(--white); font-weight: 800; margin-bottom: .75rem;
}
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 800; }

.notice { background: var(--ice-50); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }

/* ---------- Forms ---------- */
.tabs { display: flex; gap: .5rem; margin: 1.5rem 0 1rem; flex-wrap: wrap; }
.tab {
  font: inherit; font-weight: 700; padding: .7rem 1.25rem; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--ice-100); background: var(--white); color: var(--ink);
}
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.tab-panel[hidden] { display: none; }

.form { display: grid; gap: 1.1rem; background: var(--white); border: 1px solid var(--ice-100); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .3rem; padding: 0; }
.field .hint { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid var(--ice-100); border-radius: var(--radius-sm); padding: .65rem .8rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9cc4ea; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 110px; resize: vertical; }
.field--check { display: flex; gap: .6rem; align-items: flex-start; }
.field--check input { width: 1.2rem; height: 1.2rem; margin-top: .3rem; flex: none; accent-color: var(--accent); }
.field--check label { font-weight: 400; margin: 0; }
.row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .row--2 { grid-template-columns: 1fr 1fr; } }
.req { color: #b3261e; }
.form-status { min-height: 1.5em; font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* ---------- Prose (privacy) ---------- */
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose ul { padding-left: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #dbe9f6; padding: 2.5rem 0; font-size: .95rem; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: var(--ice-100); }
.site-footer p { margin-bottom: .75rem; max-width: 60ch; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer :focus-visible { outline-color: #ffffff; }

.center { text-align: center; }
.not-found { padding: 6rem 0; text-align: center; }
