body { background: linear-gradient(180deg, #f7f6ef 0%, #eef2ed 44%, #f7f6ef 100%); }

.cycling-hero,
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: 40px;
  align-items: center;
  padding: 72px 0 52px;
}

.cycling-hero h1,
.product-hero h1 {
  max-width: 880px;
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 500;
  line-height: 0.97;
  letter-spacing: -0.025em;
}

.cycling-note { align-self: stretch; display: grid; align-content: center; gap: 14px; }
.cycling-note h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; }
.cycling-note p { margin: 0; color: var(--muted); }

.featured-product-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.6fr); gap: 28px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(135deg, #fff 0%, #f3eee2 100%); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 42px); }
.featured-product-card:hover { border-color: var(--gold); }
.featured-product-card h3 { margin: 14px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; }
.featured-product-card p { margin: 0 0 16px; color: var(--muted); font-size: 1.05rem; }
.product-path { border-left: 1px solid var(--line); padding-left: 26px; }
.product-path ol { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.product-path li + li { margin-top: 6px; }

.territory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.territory-card { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.82); padding: 18px; }
.territory-card h3 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 500; }
.territory-card p { margin: 0; color: var(--muted); }
.territory-card span { display: inline-block; margin-top: 12px; color: var(--green); font-weight: 800; font-size: 0.9rem; }

.library-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.library-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 500; }
.filter-control { display: grid; gap: 6px; min-width: 240px; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.filter-control select { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 12px; color: var(--ink); font: inherit; }

.trigger-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trigger-card { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.92); box-shadow: 0 10px 28px rgba(32,35,31,0.05); padding: 18px; }
.trigger-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.trigger-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.trigger-code { color: var(--plum); font-weight: 850; font-size: 0.82rem; letter-spacing: 0.04em; }
.trigger-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.42rem; font-weight: 500; line-height: 1.15; }
.trigger-card p { margin: 0; color: var(--muted); }
.trigger-family { color: var(--green); font-weight: 800; font-size: 0.9rem; }

.product-state-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.state-card { border: 1px solid var(--line); border-radius: 10px; padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); }
.before-state { background: #fff8f2; }
.after-state { background: #f2f7f2; }
.state-card h2 { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; }
.state-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.state-card li + li { margin-top: 8px; }

.readiness-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.readiness-card { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.9); padding: 20px; }
.readiness-card span { color: var(--gold); font-weight: 850; }
.readiness-card h3 { margin: 8px 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; }
.readiness-card p { margin: 0; color: var(--muted); }

.assessment-section { scroll-margin-top: 20px; }
.assessment-form { display: grid; gap: 16px; }
.assessment-form fieldset { display: grid; gap: 10px; margin: 0; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.94); padding: clamp(18px, 3vw, 26px); transition: border-color 160ms ease, box-shadow 160ms ease; }
.assessment-form fieldset.question-missing { border-color: #9d3f35; box-shadow: 0 0 0 3px rgba(157,63,53,0.12); }
.assessment-form legend { max-width: 900px; padding: 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.25; }
.assessment-form label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid transparent; border-radius: 7px; padding: 9px 10px; color: var(--muted); cursor: pointer; }
.assessment-form label:hover { border-color: var(--line); background: #faf9f4; color: var(--ink); }
.assessment-form input { margin-top: 5px; accent-color: var(--green); }
.assessment-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.assessment-result { margin-top: 24px; border: 1px solid var(--green); border-radius: 10px; background: #f2f7f2; box-shadow: var(--shadow); padding: clamp(24px, 5vw, 42px); scroll-margin-top: 18px; }
.assessment-result[hidden] { display: none; }
.assessment-result h2 { margin: 4px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; }
.assessment-result h3 { margin-top: 24px; }
.result-score { display: flex; align-items: baseline; gap: 6px; }
.result-score strong { font-family: Georgia, "Times New Roman", serif; font-size: 4rem; font-weight: 500; line-height: 1; }
.result-score span { color: var(--muted); }
.result-profile { display: grid; gap: 6px; margin: 20px 0; border-left: 4px solid var(--gold); padding: 8px 0 8px 16px; }
.result-profile strong { font-size: 1.15rem; }
.result-profile span { color: var(--muted); }
.result-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 22px; }
.hard-stop { margin: 20px 0; border: 1px solid #d7aaa4; border-radius: 8px; background: #fff5f3; padding: 16px; }
.hard-stop ul { margin-bottom: 0; }
.assessment-note { margin-top: 24px; color: var(--muted); font-size: 0.92rem; }

.compatibility-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.compatibility-form label { display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 16px; font-weight: 750; }
.compatibility-form select { min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background: #faf9f4; padding: 0 10px; color: var(--ink); font: inherit; }
.compatibility-form button { width: fit-content; }
.compact-result h3 { margin: 4px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.organizer-tool { border-top: 1px solid var(--line); }
.question-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 0; padding-left: 24px; }
.question-list li { color: var(--muted); padding-left: 4px; }

.ride-day-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ride-day-grid article { border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(32,35,31,0.05); padding: 20px; }
.ride-day-grid article:last-child { background: #fff5f3; border-color: #d7aaa4; }
.ride-day-grid span { color: var(--gold); font-size: 0.8rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.ride-day-grid h3 { margin: 8px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; font-weight: 500; }
.ride-day-grid ul { margin: 0; padding-left: 20px; color: var(--muted); }
.ride-day-grid li + li { margin-top: 7px; }
.debrief-form { align-items: start; }

.progression-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: progression; }
.progression-list li { counter-increment: progression; display: grid; grid-template-columns: 48px minmax(180px, 0.45fr) minmax(0, 1fr); gap: 18px; align-items: start; border-top: 1px solid var(--line); padding: 18px 0; }
.progression-list li::before { content: counter(progression, decimal-leading-zero); color: var(--gold); font-weight: 850; }
.progression-list span { color: var(--muted); }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-grid article { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 18px; }
.tool-grid span { color: var(--muted); }
.boundary-panel { border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(135deg, #fff, #efe8d8); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 44px); }
.boundary-panel h2 { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 500; }
.boundary-panel p:last-child { max-width: 820px; margin-bottom: 0; color: var(--muted); }
.site-footer { padding: 38px 0 54px; color: var(--muted); }

@media (max-width: 900px) {
  .cycling-hero, .product-hero, .featured-product-card { grid-template-columns: 1fr; }
  .territory-grid, .readiness-grid, .tool-grid, .ride-day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trigger-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-path { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
}

@media (max-width: 620px) {
  .site-header { align-items: flex-start; }
  .cycling-hero, .product-hero { padding-top: 48px; }
  .territory-grid, .trigger-grid, .product-state-grid, .readiness-grid, .tool-grid, .result-columns, .compatibility-form, .question-list, .ride-day-grid { grid-template-columns: 1fr; }
  .library-heading { align-items: stretch; flex-direction: column; }
  .filter-control { min-width: 0; }
  .progression-list li { grid-template-columns: 34px 1fr; }
  .progression-list span { grid-column: 2; }
  .assessment-form label { padding-left: 4px; }
}
