[hidden] { display: none !important; }
/* GI Planner: shared tokens and components */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..900&family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;1,500&display=swap");

:root {
  --paper: #f3efe6;
  --paper-2: #ebe5d7;
  --card: #fffdf8;
  --ink: #17201a;
  --ink-2: #39443c;
  --muted: #69726a;
  --line: #ddd5c4;
  --line-2: #cfc6b2;
  --sage: #8daa6c;
  --sage-2: #6f8f4f;
  --sage-deep: #3e5a2d;
  --sage-soft: #e2ead4;
  --sage-mist: #eff3e6;
  --forest: #1f3428;
  --forest-2: #2a4535;
  --brass: #b0843f;
  --brass-soft: #f2e5cb;
  --clay: #c0643a;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 0 rgba(23, 32, 26, 0.04), 0 18px 40px -22px rgba(23, 32, 26, 0.35);
  --shadow-sm: 0 1px 0 rgba(23, 32, 26, 0.05), 0 6px 16px -10px rgba(23, 32, 26, 0.3);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--sage-soft); }

/* Type */
.display, h1, h2, h3 {
  font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.02; margin: 0; text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.15; }
.label {
  font-family: var(--display); font-variation-settings: "wdth" 78; font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-deep);
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.num { font-family: var(--display); font-variation-settings: "wdth" 100; font-feature-settings: "tnum"; }
p { margin: 0 0 1em; }

/* Layout */
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
section { position: relative; }

/* Buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: progress; transform: none; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sage { --bg: var(--sage-deep); --fg: #fff; }
.btn-brass { --bg: var(--brass); --fg: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { --bg: var(--card); --fg: var(--ink); }
.btn-lg { min-height: 60px; font-size: 1.08rem; padding: 0 1.9em; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.input, .field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; font: inherit; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--sage-2); box-shadow: 0 0 0 4px var(--sage-soft);
}
.field .ok { color: var(--sage-deep); font-size: 0.85rem; min-height: 1.2em; }
.error { color: #9b2f1b; background: #fbe9e1; border-radius: 10px; padding: 10px 14px; font-size: 0.95rem; }
.error:empty { display: none; }

/* Demo ribbon */
.ribbon {
  background: var(--ink); color: #e9e4d6; font-size: 0.82rem; text-align: center; padding: 8px 16px;
}
.ribbon b { color: #fff; font-weight: 600; }
.ribbon a { color: #cfe0b8; }

/* Wordmark */
.wordmark {
  font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; letter-spacing: 0.08em;
  font-size: 1.02rem; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
}
.wordmark .mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: 0.86rem; letter-spacing: 0;
}

/* Progress ring */
.ring { position: relative; display: grid; place-items: center; }
.ring svg { transform: rotate(-90deg); overflow: visible; }
.ring .track { stroke: var(--paper-2); }
.ring .bar { stroke: var(--sage); transition: stroke-dashoffset 0.8s var(--ease), stroke 0.3s; stroke-linecap: round; }
.ring.full .bar { stroke: var(--sage-2); }
.ring .pct {
  position: absolute; font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 700;
  color: var(--sage-deep); font-feature-settings: "tnum";
}

/* Checkbox tick */
.tick {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; cursor: pointer;
  border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff; display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.tick::after {
  content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0;
  transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 0.25s var(--ease);
}
.tick:checked { background: var(--sage-2); border-color: var(--sage-2); }
.tick:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.tick:active { transform: scale(0.9); }
.tick:focus-visible { outline: 3px solid var(--sage-soft); outline-offset: 2px; }

/* Toast */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; pointer-events: none; width: min(92vw, 460px); }
.toast {
  background: var(--ink); color: var(--paper); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: center; font-size: 0.95rem;
  animation: toast-in 0.45s var(--ease) both;
}
.toast .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--sage); flex: none; display: grid; place-items: center; color: var(--ink); font-weight: 800; }
.toast.out { animation: toast-out 0.35s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Footer */
.footer { padding: 48px 0 64px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.footer a { color: var(--ink-2); }
