:root {
  --ink: #10231c;
  --muted: #61746c;
  --line: #dfe8e3;
  --paper: #ffffff;
  --mist: #f3f7f2;
  --green: #0d5f43;
  --fairway: #159464;
  --light-green: #dff5e6;
  --sky: #d8ecf1;
  --gold: #d9a441;
  --graphite: #22302b;
  --shadow: 0 18px 50px rgba(16, 35, 28, 0.12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--mist);
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(16, 35, 28, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--fairway));
}

.brand strong { display: block; font-size: 16px; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.top-nav a:hover { color: var(--green); }

.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.nav-cta, .button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 95, 67, 0.22);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.button.dark { background: var(--ink); }

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: var(--ink);
}

.hero-media, .hero-media img, .hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 31, 24, 0.92) 0%, rgba(12, 31, 24, 0.74) 38%, rgba(12, 31, 24, 0.2) 70%, rgba(12, 31, 24, 0.05) 100%),
    linear-gradient(0deg, rgba(12, 31, 24, 0.48), transparent 46%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 56px;
  align-items: center;
}

.proposal-by {
  margin: 0 0 18px;
  color: #c4ddcd;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: #dce9e0;
  font-size: 19px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
  margin: 46px 0 0;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.hero-stats dt {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: #cfe2d6;
  font-size: 12px;
  font-weight: 600;
}

.phone-shell {
  justify-self: end;
  width: min(390px, 100%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  background: rgba(243, 247, 242, 0.94);
  box-shadow: var(--shadow);
}

.phone-top, .phone-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.phone-top strong, .phone-line strong { color: var(--green); }

.course-card {
  margin-top: 18px;
  padding: 26px;
  min-height: 190px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.32) 0 16%, transparent 17%),
    linear-gradient(135deg, #0d5f43, #2eab72);
}

.course-card span, .course-card small { display: block; color: #d9f4e2; font-weight: 700; }
.course-card strong { display: block; margin-top: 16px; font-size: 58px; line-height: 1; }
.course-card small { margin-top: 10px; }

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.score-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.score-grid span, .round-metrics span, .kpi-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.score-grid strong, .round-metrics strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.phone-line {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--light-green);
}

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.phone-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.phone-tabs .active { color: #fff; background: var(--green); }

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 80px minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 34px;
}

.section-heading.compact {
  grid-template-columns: 80px minmax(0, 860px);
  grid-template-rows: auto auto;
  align-items: start;
}

.section-heading.compact .section-index {
  grid-row: 1 / span 2;
}

.section-heading.compact h2,
.section-heading.compact p {
  grid-column: 2;
}

.section-heading.compact p {
  max-width: 740px;
  margin: 2px 0 0;
  font-size: 18px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--green);
  background: var(--light-green);
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 { margin: 0; font-size: 19px; }
p { color: var(--muted); line-height: 1.7; }

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.challenge-grid article, .persona-output, .budget-card, .kpi-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(16, 35, 28, 0.06);
}

.challenge-grid article {
  min-height: 250px;
  padding: 24px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: 12px;
  color: var(--green);
  background: var(--light-green);
  font-size: 12px;
  font-weight: 800;
}

.round-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 38px;
  align-items: center;
}

.hole-selector, .module-tabs, .phase-switcher, .persona-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hole-selector { margin-top: 28px; }

.hole, .module-tab, .phase, .persona {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.hole.active, .module-tab.active, .phase.active, .persona.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.round-dashboard {
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.map-panel {
  height: 360px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, #cae5c7, #7fcf92);
}

.fairway {
  position: relative;
  height: 100%;
  margin: 0 14%;
  border-radius: 52% 48% 44% 56%;
  background:
    radial-gradient(circle at 72% 22%, #dff5e6 0 8%, transparent 8.5%),
    radial-gradient(circle at 33% 56%, rgba(64, 120, 80, 0.22) 0 12%, transparent 12.5%),
    linear-gradient(160deg, #2fab70, #0d7a50);
}

.tee, .pin, .hazard {
  position: absolute;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 35, 28, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.tee { left: 15%; bottom: 7%; }
.pin { right: 15%; top: 13%; background: var(--gold); color: var(--ink); }
.hazard { left: 27%; top: 52%; background: #397f9c; }

.shot-line {
  position: absolute;
  left: 25%;
  bottom: 20%;
  width: 52%;
  height: 2px;
  transform: rotate(-35deg);
  transform-origin: left center;
  background: rgba(255, 255, 255, 0.8);
}

.round-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.round-metrics div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.scorecard-table {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.table-head, .table-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 10px;
  padding: 13px 14px;
  align-items: center;
}

.table-head {
  color: var(--muted);
  background: #f8faf8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.table-row { font-weight: 700; border-top: 1px solid var(--line); }
.table-row.active { color: var(--green); background: var(--light-green); }

.module-tabs { margin-bottom: 18px; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.module-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.module-card span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.module-card h3 { margin-bottom: 8px; }
.module-card p { margin: 0; font-size: 14px; }

.persona-panel {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 20px;
}

.persona-output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 26px;
}

.persona-output ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.persona-metric {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.persona-metric div {
  padding: 16px;
  border-radius: 12px;
  background: var(--mist);
}

.persona-metric strong { display: block; font-size: 24px; }
.persona-metric span { color: var(--muted); font-size: 12px; font-weight: 700; }

.phase-output {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 18px;
  margin-top: 18px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--graphite);
  color: #fff;
}

.phase-output p, .phase-output li { color: #d4dfd8; }
.phase-output ul { margin: 0; padding-left: 18px; line-height: 1.85; }
.phase-output strong { color: #fff; font-size: 28px; }

.investment-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

.budget-card {
  padding: 28px;
}

.budget-total {
  display: block;
  margin-top: 34px;
  color: var(--green);
  font-size: clamp(44px, 7vw, 74px);
  line-height: 1;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.kpi-grid div { padding: 22px; }
.kpi-grid strong { display: block; color: var(--green); font-size: 32px; }

.pilot-section {
  width: min(1180px, calc(100% - 40px));
  margin: 36px auto 0;
  padding: 46px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #0c3328);
}

.pilot-section h2 { color: #fff; max-width: 700px; }
.pilot-section p { color: #dff5e6; max-width: 760px; }

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.document-body {
  background: #f7faf6;
}

.document-main {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.document-hero {
  padding: 56px;
  border-radius: var(--radius);
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 95, 67, 0.96), rgba(21, 148, 100, 0.9)),
    url("assets/swings-golf-hero.png") center/cover;
  box-shadow: var(--shadow);
}

.document-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
}

.document-hero p:not(.proposal-by) {
  max-width: 740px;
  color: #e6f3ea;
  font-size: 18px;
}

.document-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.document-meta span,
.document-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.document-meta span {
  padding: 14px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.document-section {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 28px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.document-section h2 {
  margin-bottom: 18px;
}

.document-section blockquote {
  margin: 26px 0 0;
  padding: 22px 24px;
  border-left: 5px solid var(--fairway);
  border-radius: var(--radius);
  color: var(--green);
  background: var(--light-green);
  font-size: 22px;
  font-weight: 800;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.document-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.document-grid article {
  padding: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.document-grid article h3 {
  margin-bottom: 10px;
  color: var(--ink);
}

.document-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
}

.document-list li + li {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .top-nav { display: none; }
  .brand { min-width: 0; }
  .hero-inner, .round-section, .persona-panel, .persona-output, .phase-output, .investment-section {
    grid-template-columns: 1fr;
  }
  .phone-shell { justify-self: start; }
  .section-heading, .section-heading.compact {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section-heading.compact .section-index,
  .section-heading.compact h2,
  .section-heading.compact p {
    grid-column: auto;
    grid-row: auto;
  }
  .challenge-grid, .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .document-meta, .document-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .nav-cta { display: none; }
  .hero { min-height: auto; }
  .hero-inner { width: calc(100vw - 32px); max-width: calc(100vw - 32px); padding: 84px 0 52px; gap: 32px; overflow: hidden; }
  .hero-copy { width: 100%; max-width: 100%; min-width: 0; }
  .hero h1 { width: min(100%, 330px); font-size: 38px; line-height: 1.04; max-width: calc(100vw - 32px); }
  .hero-text { width: min(100%, 340px); font-size: 17px; max-width: calc(100vw - 32px); }
  .hero-stats, .challenge-grid, .module-grid, .round-metrics, .kpi-grid {
    grid-template-columns: 1fr;
  }
  .section { width: calc(100% - 32px); padding: 58px 0; }
  .pilot-section {
    width: calc(100% - 32px);
    padding: 28px;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer { width: calc(100% - 32px); flex-direction: column; }
  .table-head, .table-row { grid-template-columns: repeat(5, minmax(54px, 1fr)); font-size: 12px; }
  .document-main {
    width: calc(100% - 32px);
    padding: 32px 0 72px;
  }
  .document-hero {
    padding: 32px 20px;
  }
  .document-hero h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .document-hero p,
  .document-hero .proposal-by {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .document-meta,
  .document-grid,
  .document-grid.four,
  .document-section {
    grid-template-columns: 1fr;
  }
  .document-section {
    gap: 18px;
    padding: 42px 0;
  }
}
