:root {
  color-scheme: light;
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #eef2ee;
  --ink: #151a17;
  --muted: #65716a;
  --line: #d9dfda;
  --line-strong: #b9c3bc;
  --brand: #173b34;
  --accent: #b85b2b;
  --accent-soft: #f4e3d7;
  --good: #2e7d67;
  --shadow: 0 18px 54px rgba(21, 26, 23, 0.1);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(217, 223, 218, 0.86);
  background: rgba(246, 247, 245, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #f9fcfa;
  font-size: 0.82rem;
  font-weight: 850;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.top-nav a,
.link-button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 9px 11px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.top-nav a:hover,
.link-button:hover {
  background: var(--surface-2);
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--brand);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  min-height: 660px;
  padding: clamp(46px, 7vw, 82px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(246, 247, 245, 0.98), rgba(246, 247, 245, 0.95), rgba(246, 247, 245, 0.86)),
    url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=2200&q=82")
      center / cover;
}

.hero > *,
.planner-shell > *,
.section-header > *,
.kit-section > * {
  min-width: 0;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 4.7vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3.7vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
  line-height: 1.22;
}

.hero-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
}

.updated-line {
  margin-top: -4px;
  color: var(--brand) !important;
  font-size: 0.94rem !important;
  font-weight: 760;
}

.hero-actions,
.panel-actions,
.result-meta,
.filter-row,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 9px 14px;
  color: var(--brand);
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fbfffc;
}

.button.secondary {
  border-color: #c8d2cc;
  background: #edf3ef;
  color: var(--brand);
}

.button.quiet {
  background: transparent;
}

.button.small {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.9rem;
}

.button.full {
  width: 100%;
}

.hero-panel,
.control-panel,
.result-panel,
.gear-card,
.kit-card,
.modal-card {
  border: 1px solid rgba(217, 223, 218, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  padding: 22px;
  backdrop-filter: blur(12px);
}

.panel-toolbar {
  display: flex;
  gap: 6px;
}

.panel-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9d1cc;
}

.metric-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.metric-row small,
.stack-preview span,
.quick-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.metric-row strong {
  display: block;
  margin-top: 3px;
  color: var(--brand);
  font-size: 1.5rem;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid #cde2d8;
  border-radius: 999px;
  background: #eaf5ef;
  padding: 5px 9px;
  color: var(--good);
  font-size: 0.78rem;
  font-weight: 850;
}

.stack-preview {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stack-preview div {
  padding: 14px;
  background: #fbfcfb;
}

.stack-preview strong {
  display: block;
  margin-top: 3px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.quick-stats div {
  padding: 20px clamp(18px, 5vw, 64px);
  background: var(--surface);
  min-width: 0;
}

.quick-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--brand);
  font-size: 1.05rem;
}

.section {
  padding: clamp(54px, 8vw, 88px) clamp(18px, 5vw, 64px);
}

.planner-section,
.guides-section {
  background: var(--surface);
}

.section-header {
  margin-bottom: 26px;
}

.section-header.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.48fr);
  gap: 28px;
  align-items: end;
  max-width: 1180px;
}

.section-header p {
  color: var(--muted);
}

.planner-shell {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1180px;
}

.control-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

label,
legend {
  color: var(--brand);
  font-weight: 830;
}

select {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 8px 10px;
  color: var(--ink);
}

input[type="email"] {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 8px 10px;
  color: var(--ink);
}

.range-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 4px;
}

.segmented label {
  min-width: 0;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented span {
  display: grid;
  min-height: 36px;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.segmented input:checked + span {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 1px 5px rgba(21, 26, 23, 0.12);
}

.result-panel {
  display: grid;
  gap: 16px;
  min-height: 405px;
  padding: clamp(20px, 4vw, 30px);
}

.result-meta {
  justify-content: space-between;
}

.result-meta strong {
  color: var(--accent);
}

.result-panel p,
.gear-card p,
.guide-list p,
.kit-copy p,
.modal-card p,
.detail-list span {
  color: var(--muted);
}

.result-grid,
.gear-grid,
.modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.result-card,
.modal-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 14px;
}

.result-card strong,
.modal-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--brand);
}

.filter-row {
  margin-bottom: 18px;
  max-width: 1180px;
}

.section-actions {
  margin-top: 18px;
}

.chip {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 7px 12px;
  color: var(--muted);
  font-weight: 780;
  cursor: pointer;
}

.chip.active,
.chip:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fbfffc;
}

.gear-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
}

.gear-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.gear-card[hidden] {
  display: none;
}

.gear-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gear-tag {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.guide-list {
  display: grid;
  max-width: 1180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.guide-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.guide-list article + article {
  border-top: 1px solid var(--line);
}

.guide-list article > span {
  color: var(--line-strong);
  font-size: 1.35rem;
  font-weight: 860;
}

.kit-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 26px;
  align-items: center;
  background: var(--brand);
  color: #fbfffc;
}

.learning-section {
  background: #f1f4f1;
}

.learning-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
}

.learning-preview article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.learning-preview span {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 850;
}

.learning-main .article-content {
  max-width: none;
}

.learning-price h3 {
  font-size: 2rem;
}

.kit-section .kicker {
  color: #ffc18f;
}

.kit-copy p {
  color: #dbe9e3;
}

.kit-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  color: var(--ink);
}

.kit-card ul {
  margin: 0;
  padding-left: 20px;
}

.kit-card li + li {
  margin-top: 7px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.modal {
  width: min(720px, calc(100% - 32px));
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(15, 20, 17, 0.56);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--brand);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.detail-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 12px;
}

.detail-list strong,
.detail-list span {
  display: block;
}

.detail-list strong {
  margin-bottom: 3px;
  color: var(--brand);
}

.pick-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.pick-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 12px;
}

.pick-list strong,
.pick-list span {
  display: block;
}

.pick-list strong {
  margin-bottom: 3px;
  color: var(--brand);
}

.pick-list small {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.article-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(38px, 7vw, 76px) clamp(18px, 5vw, 48px);
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.article-hero p {
  color: var(--muted);
}

.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
}

.article-content {
  display: grid;
  gap: 28px;
  max-width: 820px;
  padding-top: 34px;
}

.article-content.wide-content {
  max-width: none;
}

.path-grid.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-content section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.article-content p,
.article-content li {
  color: var(--muted);
}

.article-content a {
  color: var(--brand);
  font-weight: 760;
}

.path-grid,
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.path-card,
.checklist-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.path-card h2,
.checklist-card h2 {
  font-size: 1.35rem;
}

.source-note {
  border-left: 4px solid var(--accent);
  background: #fbfcfb;
  padding: 12px 14px;
  color: var(--muted);
}

.guide-meta {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.guide-meta strong {
  color: var(--text);
}

.comparison-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-table table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--surface);
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--brand);
  font-size: 0.86rem;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.signup-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 650;
}

.consent-row input {
  margin-top: 4px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-note.success {
  color: var(--good);
  font-weight: 750;
}

.form-note.error {
  color: #a33d24;
  font-weight: 750;
}

@media (max-width: 1120px) {
  .hero,
  .section-header.split,
  .planner-shell,
  .kit-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 56px;
    background:
      linear-gradient(180deg, rgba(246, 247, 245, 0.98), rgba(246, 247, 245, 0.94)),
      url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1600&q=80")
        center / cover;
  }

  h1 {
    max-width: 760px;
    font-size: clamp(2.2rem, 7vw, 3.8rem);
  }

  .hero-copy,
  .hero-copy p {
    max-width: 760px;
  }

  .hero-panel {
    max-width: none;
    justify-self: stretch;
  }

  .result-grid,
  .gear-grid,
  .modal-grid,
  .learning-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .top-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    padding: 8px 18px 14px;
  }

  .top-nav.open {
    display: flex;
  }

  .top-nav a,
  .link-button {
    text-align: left;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .guide-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .article-hero {
    grid-template-columns: 1fr;
  }

  .path-grid,
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .button,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .article-main {
    max-width: none;
    padding: 0;
  }

  .article-content section,
  .path-card,
  .checklist-card {
    break-inside: avoid;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 62px;
    padding: 10px 16px;
  }

  .top-nav {
    top: 62px;
  }

  .hero {
    display: block;
    gap: 26px;
    padding: 38px 20px 46px;
    overflow: hidden;
  }

  .hero-copy {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    margin-bottom: 26px;
  }

  .kicker {
    max-width: 100%;
    font-size: 0.7rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  h1 {
    width: 100%;
    max-width: calc(100vw - 40px);
    font-size: 2rem;
    line-height: 1.1;
    overflow-wrap: normal;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-copy p {
    max-width: calc(100vw - 40px);
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .hero-panel,
  .control-panel,
  .result-panel,
  .gear-card,
  .kit-card {
    width: 100%;
    max-width: calc(100vw - 40px);
    padding: 18px;
  }

  .metric-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-row strong {
    font-size: 1.35rem;
  }

  .section {
    padding: 46px 20px;
  }

  .hero-actions .button,
  .panel-actions .button {
    width: 100%;
  }

  .segmented {
    grid-template-columns: 1fr;
  }
}
