/* =========================================================
   World Weight Loss Day: design system
   Clean, calm, generous. Tokens first, then components.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);

  /* Text */
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;

  /* Lines */
  --line: #d2d2d7;
  --line-soft: rgba(0, 0, 0, 0.08);

  /* Brand */
  --accent: #0b7a55;
  --accent-hover: #086447;
  --accent-press: #065239;
  --accent-soft: #e7f4ee;
  --accent-soft-hover: #d6ede2;
  --on-accent: #ffffff;
  --grad-a: #076b4b;
  --grad-b: #11906a;
  --grad-c: #3d8d3a;
  --glow-1: rgba(17, 144, 106, 0.22);
  --glow-2: rgba(120, 190, 90, 0.18);

  /* Feedback */
  --warn-bg: #fff6e5;
  --warn-line: #e8a33d;
  --warn-ink: #6b4300;
  --error-bg: #fdeeee;
  --error-line: #d93025;
  --error-ink: #8c1d18;
  --tag-example-bg: #f2f2f7;
  --tag-example-ink: #6e6e73;

  /* Shape and depth */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 980px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.05);
  --focus: 0 0 0 4px rgba(11, 122, 85, 0.32);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.75rem, 1.6rem + 5.2vw, 5.5rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.3vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  --fs-lead: clamp(1.15rem, 1.02rem + .55vw, 1.5rem);
  --fs-body: 1.0625rem; /* 17px */
  --fs-small: .875rem;

  /* Layout */
  --wrap: 1080px;
  --wrap-narrow: 720px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 52px;
  --ease: cubic-bezier(.25, .1, .25, 1);
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: -0.022em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; color: var(--ink); }
h3 { letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
::selection { background: var(--accent-soft-hover); }

:focus { outline: none; }
:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus); border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-pill);
  font-size: var(--fs-small); font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); text-decoration: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-tight { padding-block: clamp(48px, 7vw, 88px); }
.bg-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { font-size: var(--fs-lead); color: var(--muted); margin: 16px 0 0; line-height: 1.4; letter-spacing: -0.015em; }
.eyebrow {
  display: block; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0;
  color: var(--accent); margin-bottom: 12px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a:not(.btn) {
  color: var(--ink-2); font-size: .875rem; padding: 8px 12px; border-radius: var(--r-pill);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-menu a:not(.btn):hover { color: var(--ink); background: var(--line-soft); text-decoration: none; }
.nav-menu a[aria-current="page"]:not(.btn) { color: var(--ink); font-weight: 600; }
.nav-menu .btn { margin-left: 8px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none;
  color: var(--ink); cursor: pointer; border-radius: var(--r-pill); align-items: center; justify-content: center;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { transform: translateY(-6px); }
.nav-toggle .bars::after { transform: translateY(6px); }
.nav[data-open="true"] .nav-toggle .bars { background: transparent; }
.nav[data-open="true"] .nav-toggle .bars::before { transform: rotate(45deg); }
.nav[data-open="true"] .nav-toggle .bars::after { transform: rotate(-45deg); }

@media (max-width: 820px) {
  .js .nav-toggle { display: inline-flex; }
  .nav-inner { flex-wrap: wrap; }
  .js .nav-menu {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 20px;
  }
  .js .nav[data-open="true"] .nav-menu { display: flex; animation: menu-in .3s var(--ease); }
  .js .nav-menu a:not(.btn) {
    font-size: 1.5rem; font-weight: 600; color: var(--ink); padding: 12px 0; border-radius: 0;
    border-bottom: 1px solid var(--line-soft); letter-spacing: -0.025em;
  }
  .js .nav-menu a:not(.btn):hover { background: none; }
  .js .nav-menu .btn { margin: 20px 0 0; height: 48px; font-size: 1.0625rem; }
  html:not(.js) .nav-menu { flex-wrap: wrap; padding-bottom: 8px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  height: var(--h); padding: 0 calc(var(--h) * .5);
  border: 0; border-radius: var(--r-pill);
  font: inherit; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1;
  white-space: nowrap; cursor: pointer; text-decoration: none !important;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { border-radius: var(--r-pill); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn .icon { width: 1.05em; height: 1.05em; flex: none; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }

.btn-tinted { background: var(--accent-soft); color: var(--accent); }
.btn-tinted:hover { background: var(--accent-soft-hover); }

.btn-outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }

.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--line-soft); }

.btn-sm { --h: 32px; font-size: .875rem; padding: 0 14px; }
.btn-lg { --h: 56px; font-size: 1.125rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .3em; font-size: var(--fs-body); font-weight: 400; color: var(--accent);
}
.link-arrow::after {
  content: ""; width: .45em; height: .45em; border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor;
  transform: rotate(45deg); margin-left: .1em; transition: transform .2s var(--ease);
}
.link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions.center { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding-block: clamp(72px, 12vw, 160px) clamp(64px, 9vw, 120px);
  isolation: isolate;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 45% at 30% 30%, var(--glow-1), transparent 70%),
    radial-gradient(35% 40% at 72% 38%, var(--glow-2), transparent 70%);
  filter: blur(20px);
}
.date-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; margin: 0 0 28px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--shadow-md);
  font-size: .9375rem; font-weight: 600; color: var(--ink);
}
.date-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.gradient-text {
  background: linear-gradient(100deg, var(--grad-a) 10%, var(--grad-b) 50%, var(--grad-c) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  font-size: var(--fs-lead); color: var(--muted); line-height: 1.38; letter-spacing: -0.015em;
  max-width: 640px; margin: 24px auto 40px;
}
.hero .actions { justify-content: center; }

.countdown {
  display: inline-grid; grid-template-columns: repeat(3, minmax(84px, 1fr)); gap: 1px;
  margin-top: clamp(48px, 7vw, 72px); border-radius: var(--r-lg); overflow: hidden;
  background: var(--line-soft); box-shadow: var(--shadow-sm);
}
.countdown > div { background: var(--surface); padding: 18px 20px 16px; }
.countdown strong { display: block; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.countdown span { display: block; margin-top: 6px; font-size: .8125rem; color: var(--muted); letter-spacing: 0; }

.page-hero { text-align: center; padding-block: clamp(64px, 10vw, 128px) clamp(32px, 5vw, 56px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero h1 { font-size: var(--fs-h1); letter-spacing: -0.04em; }
.page-hero p { font-size: var(--fs-lead); color: var(--muted); max-width: 640px; margin: 20px auto 0; line-height: 1.38; letter-spacing: -0.015em; }

/* ---------- Tiles (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; grid-column: span 2;
  background: var(--surface); border-radius: var(--r-xl); padding: clamp(28px, 3.5vw, 40px);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; min-height: 260px;
}
.bg-alt .tile { box-shadow: none; }
.tile-wide { grid-column: span 4; }
.tile-half { grid-column: span 3; }
.tile-full { grid-column: 1 / -1; }
.tile h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.tile p { color: var(--muted); margin: 0; }
.tile-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: auto;
}
.tile-icon svg { width: 24px; height: 24px; }
.tile-body { margin-top: 32px; }
.tile-feature {
  background: linear-gradient(145deg, var(--grad-a), var(--grad-b) 60%, var(--grad-c));
  color: #fff;
}
.tile-feature h3, .tile-feature p { color: #fff; }
.tile-feature p { opacity: .88; }
.tile-feature .big { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; margin-bottom: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip-static {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: var(--r-pill);
  font-size: .9375rem; font-weight: 500; background: var(--bg-alt); color: var(--ink);
}
.tile-feature .chip-static { background: rgba(255, 255, 255, .18); color: inherit; }

@media (max-width: 900px) {
  .tile, .tile-wide, .tile-half { grid-column: span 3; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile-wide, .tile-half, .tile-full { grid-column: 1 / -1; min-height: 0; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step; background: var(--surface); border-radius: var(--r-xl); padding: 32px;
  box-shadow: var(--shadow-sm);
}
.bg-alt .steps li { box-shadow: none; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 40px;
  font-size: .9375rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.375rem; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- Link list (resources) ---------- */
.link-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.bg-alt .link-list { box-shadow: none; }
.link-list li + li { border-top: 1px solid var(--line-soft); }
.link-list a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
  padding: 22px clamp(20px, 3vw, 32px); color: var(--ink); transition: background .2s var(--ease);
}
.link-list a:hover { background: var(--bg-alt); text-decoration: none; }
.link-list strong { font-weight: 600; font-size: 1.0625rem; }
.link-list span { grid-column: 1; color: var(--muted); font-size: .9375rem; }
.link-list a::after {
  content: ""; grid-row: 1 / span 2; grid-column: 2; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.link-list a:hover::after { transform: translateX(3px) rotate(45deg); border-color: var(--accent); }

/* ---------- Signup card ---------- */
.signup-card {
  text-align: center; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); max-width: 760px; margin-inline: auto;
}
.signup-card h2 { font-size: var(--fs-h2); }
.signup-card > p { color: var(--muted); font-size: var(--fs-lead); margin: 14px 0 32px; line-height: 1.4; }
.inline-form {
  display: flex; gap: 8px; max-width: 480px; margin: 0 auto; padding: 6px;
  border-radius: var(--r-pill); background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: box-shadow .2s var(--ease);
}
.inline-form:focus-within { box-shadow: inset 0 0 0 1px var(--accent), var(--focus); }
.inline-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font: inherit; font-size: 1.0625rem; color: var(--ink);
}
.inline-form input::placeholder { color: var(--muted); }
.inline-form input:focus-visible { box-shadow: none; }
.inline-form .btn { --h: 44px; }
.fine-print { font-size: var(--fs-small); color: var(--muted); margin: 18px 0 0; }
@media (max-width: 480px) {
  .inline-form { flex-direction: column; border-radius: var(--r-lg); padding: 8px; }
  .inline-form input { height: 44px; }
}

/* ---------- Stories ---------- */
.segmented {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 4px;
  background: var(--bg-alt); border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-soft);
}
.segmented button {
  border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .9375rem; font-weight: 500;
  height: 36px; padding: 0 18px; border-radius: var(--r-pill); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
.filters-bar { display: flex; justify-content: center; margin-bottom: 40px; }

.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.story {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 36px); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.bg-alt .story { box-shadow: none; }
.story:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.story-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 600; letter-spacing: 0; background: var(--accent-soft); color: var(--accent);
}
.tag-example { background: var(--tag-example-bg); color: var(--tag-example-ink); }
.story h3 { font-size: 1.5rem; line-height: 1.18; letter-spacing: -0.025em; margin-bottom: 14px; }
.story h3::before { content: "\201C"; }
.story h3::after { content: "\201D"; }
.story p { color: var(--ink-2); margin: 0 0 28px; }
.story-by { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--grad-a), var(--grad-c)); color: #fff; font-weight: 600; font-size: 1rem;
}
.story-by strong { display: block; font-size: .9375rem; font-weight: 600; }
.story-by span { display: block; font-size: .8125rem; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

.callout {
  display: flex; gap: 14px; align-items: flex-start; max-width: 760px; margin: 0 auto 32px;
  padding: 16px 20px; border-radius: var(--r-lg); background: var(--bg-alt); color: var(--ink-2); font-size: .9375rem;
}
.callout svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--muted); }
.callout p { margin: 0; }
.callout-warn { background: var(--warn-bg); color: var(--warn-ink); }
.callout-warn svg { color: var(--warn-line); }

.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--fs-h2); }
.cta-band p { font-size: var(--fs-lead); color: var(--muted); margin: 14px 0 32px; }

/* ---------- Share page ---------- */
.share-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.share-aside { position: sticky; top: calc(var(--nav-h) + 32px); }
.share-aside h1 { font-size: var(--fs-h1); letter-spacing: -0.04em; }
.share-aside .lead { font-size: 1.1875rem; color: var(--muted); line-height: 1.45; margin: 20px 0 32px; }
@media (max-width: 900px) {
  .share-layout { grid-template-columns: 1fr; }
  .share-aside { position: static; }
}
.rules-card { background: var(--bg-alt); border-radius: var(--r-lg); padding: 24px; }
.rules-card h2 { font-size: 1.0625rem; letter-spacing: -0.015em; margin-bottom: 16px; }
.rule-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.rule-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: .9375rem; color: var(--ink-2); line-height: 1.45; }
.rule-list strong { color: var(--ink); font-weight: 600; }
.ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.ico svg { width: 12px; height: 12px; }
.ico-yes { background: var(--accent-soft); color: var(--accent); }
.ico-no { background: var(--error-bg); color: var(--error-line); }

.form-card { background: var(--surface); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.form-card .sub { color: var(--muted); margin-bottom: 32px; font-size: .9375rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-size: .9375rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); padding: 0; }
.opt, .req { font-weight: 400; color: var(--muted); }
.input, .field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink); letter-spacing: -0.015em;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 16px; min-height: 50px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 200px; resize: vertical; line-height: 1.5; }
.field select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--accent); box-shadow: var(--focus); border-radius: var(--r-md); }
.field [aria-invalid="true"] { border-color: var(--error-line); }
.field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 4px var(--error-bg); }
.hint { margin: 8px 0 0; font-size: .8125rem; color: var(--muted); letter-spacing: -0.01em; }
.hint-row { display: flex; justify-content: flex-end; }

.consents { background: var(--bg-alt); border-radius: var(--r-lg); padding: 20px 20px 8px; margin-top: 8px; }
.consents > legend { float: left; width: 100%; margin-bottom: 14px; }
.consents > legend + * { clear: both; }
.field > .check, .check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .9375rem; color: var(--ink-2); margin-bottom: 14px; cursor: pointer; line-height: 1.45; }
.check input {
  -webkit-appearance: none; appearance: none; margin: 0; width: 24px; height: 24px; border-radius: 7px;
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.check input::after {
  content: ""; width: 6px; height: 11px; border: solid var(--on-accent); border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform .15s var(--ease);
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible { box-shadow: var(--focus); border-radius: 7px; }
.check input[aria-invalid="true"] { border-color: var(--error-line); }

.warnings:empty { display: none; }
.warnings { display: grid; gap: 8px; margin-top: 12px; }
.warnings p { margin: 0; padding: 12px 14px 12px 40px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--warn-ink); font-size: .875rem; line-height: 1.45; position: relative; }
.warnings p::before {
  content: "!"; position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--warn-line); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.errors { padding: 16px 20px; border-radius: var(--r-lg); background: var(--error-bg); color: var(--error-ink); margin-bottom: 20px; font-size: .9375rem; }
.errors p { margin: 0 0 6px; }
.errors ul { margin: 0; }
.status { margin: 16px 0 0; padding: 14px 18px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink); font-size: .9375rem; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; }
.submit-row .fine-print { margin: 0; }

/* ---------- Prose pages ---------- */
.prose { font-size: 1.0625rem; color: var(--ink-2); }
.prose h1 { font-size: var(--fs-h1); color: var(--ink); letter-spacing: -0.04em; margin-bottom: 20px; }
.prose h2 { font-size: 1.625rem; color: var(--ink); margin: 56px 0 16px; }
.prose li { margin-bottom: 8px; }
.prose .lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.4; }
.meta-line { color: var(--muted); font-size: .9375rem; }

.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0; }
@media (max-width: 720px) { .do-dont { grid-template-columns: 1fr; } }
.do-dont > div { background: var(--bg-alt); border-radius: var(--r-xl); padding: 28px; }
.do-dont h2 { margin: 0 0 20px; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.rules-dl { margin: 0; }
.rules-dl dt { font-weight: 600; color: var(--ink); margin-top: 20px; }
.rules-dl dt:first-child { margin-top: 0; }
.rules-dl dd { margin: 4px 0 0; font-size: .9375rem; color: var(--muted); }

.process { list-style: none; padding: 0; counter-reset: p; display: grid; gap: 12px; }
.process li { counter-increment: p; display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: center; background: var(--bg-alt); border-radius: var(--r-lg); padding: 16px 20px; margin: 0; }
.process li::before { content: counter(p); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent); font-weight: 700; box-shadow: var(--shadow-sm); }

.center-page { text-align: center; padding-block: clamp(96px, 16vw, 200px); }
.center-page h1 { font-size: var(--fs-h1); letter-spacing: -0.04em; }
.center-page p { font-size: var(--fs-lead); color: var(--muted); max-width: 560px; margin: 20px auto 36px; line-height: 1.4; }
.success-mark { width: 72px; height: 72px; margin: 0 auto 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.success-mark svg { width: 34px; height: 34px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--muted); font-size: .8125rem; letter-spacing: -0.01em; padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer-disclaimer { padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); line-height: 1.55; margin: 0; max-width: 860px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line-soft); }
.footer-cols h2 { font-size: .8125rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 10px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; }
.footer-bottom p { margin: 0; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }

/* Sign-up confirmation */
.form-done { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 480px; margin: 0 auto; min-height: 56px; padding: 0 20px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.form-done::before { content: ""; width: 8px; height: 13px; border: solid var(--accent); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); margin-top: -4px; }
.form-error { color: var(--error-ink); font-size: var(--fs-small); margin: 12px 0 0; }
.cta-band .eyebrow { margin-bottom: 12px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-4 { grid-template-columns: 1fr; } }
.steps-4 li { padding: 28px; }
.steps-4 li::before { margin-bottom: 28px; }
.cta-band > p { max-width: 640px; margin-inline: auto; }

/* Cookie consent */
.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-inline: auto; padding: 20px; border-radius: var(--r-lg);
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft); font-size: .9375rem; color: var(--ink-2);
  animation: menu-in .35s var(--ease);
}
.consent p { margin: 0 0 16px; line-height: 1.45; }
.consent strong { color: var(--ink); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-actions .btn { --h: 44px; font-size: 1rem; }
.cookie-settings { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; }
.cookie-settings:hover { color: var(--ink); text-decoration: underline; }

/* Logo */
.brand-mark { width: 30px; height: 30px; }
.hero-logo { display: block; width: clamp(200px, 26vw, 300px); margin: 0 auto 28px; }
.hero-logo img { width: 100%; height: auto; }

/* Sign-up pop-up */
.popup {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.22), 0 6px 20px rgba(0,0,0,.08);
  overflow: auto;
}
.popup[open] { animation: popup-in .45s var(--ease); }
.popup::backdrop { background: rgba(20, 24, 22, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.popup[open]::backdrop { animation: fade-in .3s var(--ease); }
@keyframes popup-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.popup-body { padding: 40px 32px 28px; text-align: center; }
@media (max-width: 420px) { .popup-body { padding: 36px 20px 24px; } }
.popup-logo { width: 64px; height: 64px; margin: 0 auto 18px; }
.popup .eyebrow { margin-bottom: 8px; }
.popup h2 { font-size: 2rem; letter-spacing: -0.035em; }
.popup-lead { color: var(--muted); margin: 10px 0 24px; line-height: 1.45; }
.popup-form { text-align: left; }
.popup-form .field { margin-bottom: 14px; }
.popup-options { background: var(--bg-alt); border-radius: var(--r-lg); padding: 16px 16px 4px; margin-bottom: 18px; }
.popup-options .check { margin-bottom: 12px; }
.popup-org { margin: 4px 0 12px; }
.popup-org label { font-size: .875rem; }
.popup-dismiss { display: block; margin: 12px auto 0; background: none; border: 0; font: inherit; font-size: .9375rem; color: var(--muted); cursor: pointer; padding: 6px 10px; border-radius: var(--r-pill); }
.popup-dismiss:hover { color: var(--ink); }
.popup .fine-print { text-align: center; font-size: .8125rem; margin-top: 10px; }
.popup-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--bg-alt); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; transition: background .2s var(--ease);
}
.popup-close:hover { background: var(--line-soft); color: var(--ink); }
.popup-close svg { width: 14px; height: 14px; }
.popup-done { display: block; min-height: 0; padding: 20px; border-radius: var(--r-lg); font-weight: 400; }
.popup-done::before { display: none; }
.popup-done p { margin: 0 0 12px; }
.popup-done .btn { margin-top: 4px; }

.popup h2:focus { box-shadow: none; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { margin: 0 4px 24px; color: var(--ink-2); max-width: 640px; }

/* Guide page */
.toc { background: var(--bg-alt); border-radius: var(--r-lg); padding: 20px 24px; margin: 8px 0 8px; }
.toc-title { font-weight: 600; color: var(--ink); margin: 0 0 8px; font-size: .9375rem; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: .9375rem; }
.prose h2[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
.cta-inline { margin-top: 64px; padding: 36px; border-radius: var(--r-xl); background: var(--accent-soft); }
.cta-inline h2 { margin: 0 0 8px; font-size: 1.625rem; }
.cta-inline p { color: var(--ink-2); margin: 0 0 24px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.post-card { background: var(--surface); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bg-alt .post-card { box-shadow: none; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.post-card-link:hover { text-decoration: none; }
.post-card-band { height: 112px; }
.band-tips { background: linear-gradient(135deg, #1f5c4a, #2f8a6a 55%, #d4a64a); }
.band-story { background: linear-gradient(135deg, #c8745a, #d4a64a 50%, #8a5a83); }
.post-card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.25rem; line-height: 1.22; letter-spacing: -0.02em; margin: 14px 0 10px; }
.post-card-link:hover h3 { color: var(--accent); }
.post-card p { color: var(--muted); font-size: .9375rem; margin: 0 0 18px; }
.post-meta { margin-top: auto; font-size: .8125rem; color: var(--muted); }
.tag-story { background: #f6ece4; color: #8a4a33; }

.post h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -0.04em; line-height: 1.08; margin: 16px 0 14px; }
.post-byline { color: var(--muted); font-size: .9375rem; margin-bottom: 28px; }
.post .callout { margin: 0 0 14px; max-width: none; }
.callout-story { background: #f6ece4; color: #6b3a27; }
.callout-story svg { color: #c8745a; }
.post-body { margin-top: 36px; font-size: 1.125rem; line-height: 1.65; }
.post-body h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.personal-note { margin-top: 56px; padding: 28px 32px; border-radius: var(--r-xl); background: var(--accent-soft); }
.personal-note h2 { font-size: 1.25rem; margin: 0 0 8px; }
.personal-note p { margin: 0; color: var(--ink-2); }
.post-card-body .tag { align-self: flex-start; }

/* Photography */
.hero-media { position: relative; margin-top: clamp(48px, 7vw, 80px); border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-alt) url("/assets/video/friends-outdoors-poster.jpg") center / cover; box-shadow: var(--shadow-lg); }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-toggle {
  position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .38);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .2s var(--ease);
}
.media-toggle:hover { background: rgba(0, 0, 0, .55); }
.media-toggle svg { width: 15px; height: 15px; }
.media-toggle .i-play, .media-toggle[data-state="paused"] .i-pause { display: none; }
.media-toggle[data-state="paused"] .i-play { display: block; }

.tile-photo { padding: 0; justify-content: flex-end; color: #fff; min-height: 340px; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-photo-text { position: relative; padding: clamp(24px, 3vw, 32px); padding-top: 96px; background: linear-gradient(180deg, transparent, rgba(10, 30, 24, .78)); }
.tile-photo h3, .tile-photo p { color: #fff; }
.tile-photo p { opacity: .92; }

.wide-photo { margin: 0 0 16px; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 21 / 9; background: var(--bg-alt); }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 620px) { .wide-photo { aspect-ratio: 4 / 3; } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-alt); }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split-text h2 { font-size: var(--fs-h2); }
.split-text p { font-size: var(--fs-lead); color: var(--muted); margin: 16px 0 32px; line-height: 1.4; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split-photo { aspect-ratio: 4 / 3; } }

.inline-photo { margin: 8px 0 24px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.inline-photo img { width: 100%; height: 100%; object-fit: cover; }
