/* Leven — levengolf.co.za
   Brand: deep-green ink #0E362D (the logo ink) on Leven cream.
   Display serif = Playfair Display (mirrors the serif wordmark),
   body = Inter, numerals = JetBrains Mono (the app's yardage face).
   No JavaScript ships with this site — everything here is HTML + CSS. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #f6f4ea;
  --cream-band: #efebdd;
  --paper: #fcfbf5;
  --ink: #0e362d;
  --ink-soft: #33544b;
  --muted: #5b6f68;
  --green: #0e5e3f;
  --emerald: #00e676;
  --lime: #ccff00;
  --line: rgba(14, 54, 45, 0.14);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--ink); color: var(--cream); }

img { max-width: 100%; height: auto; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 40px); }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 244, 234, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.nav a:not(.btn) {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:not(.btn):hover { color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--green);
  color: var(--cream);
  box-shadow: 0 10px 24px -12px rgba(14, 94, 63, 0.7);
}
.btn--primary:hover { background: var(--ink); color: var(--cream); }
.btn--ghost {
  color: var(--ink);
  border: 1.5px solid var(--line);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--bright { background: var(--emerald); color: #07271f; box-shadow: 0 10px 24px -12px rgba(0, 230, 118, 0.6); }
.btn--bright:hover { background: var(--lime); color: #233503; }
.btn--big { padding: 16px 34px; font-size: 1.0625rem; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 60% at 82% 20%, rgba(14, 94, 63, 0.09), transparent 70%),
    radial-gradient(40% 45% at 8% 90%, rgba(14, 54, 45, 0.07), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(56px, 9vh, 110px);
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--green); }
.hero .lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 0.875rem;
}
.hero-proof span::before { content: "●"; font-size: 0.55em; vertical-align: 2px; margin-right: 9px; color: var(--green); }

/* phones */

.hero-shot { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(310px, 78vw);
  border-radius: 40px;
  padding: 10px;
  background: #0b0d0e;
  box-shadow:
    inset 0 0 0 1.5px #2a3136,
    0 34px 70px -24px rgba(14, 54, 45, 0.5),
    0 14px 28px -14px rgba(0, 0, 0, 0.4);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 31px; }
.phone--back {
  position: absolute;
  width: min(268px, 66vw);
  right: max(-8px, -4vw);
  top: 44px;
  transform: rotate(4deg);
  z-index: -1;
  opacity: 0.96;
}

/* ---------- dark bands ---------- */

.band { background: var(--ink); color: var(--cream); }
.band .eyebrow { color: var(--emerald); }
.band .muted, .band p { color: rgba(246, 244, 234, 0.78); }
.band h2, .band h3 { color: var(--cream); }

.section-head { max-width: 46em; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-head p { font-size: clamp(1rem, 1.4vw, 1.125rem); }

/* ---------- stats ---------- */

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(44px, 7vw, 72px);
}
.stat { border-left: 1px solid rgba(246, 244, 234, 0.22); padding-left: clamp(16px, 2vw, 26px); }
.stat .num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--cream);
  line-height: 1.1;
}
.stat .num sup { font-size: 0.5em; }
.stat .num .u { color: var(--emerald); }
.stat .label { margin-top: 8px; font-size: 0.9rem; color: rgba(246, 244, 234, 0.72); }

/* ---------- feature cards ---------- */

.section { padding-block: clamp(64px, 10vw, 120px); }
.section--tint { background: var(--cream-band); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 32px);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(14, 54, 45, 0.4);
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--cream-band);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--green); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.32rem;
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- on-course rows ---------- */

.row {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}
.row + .row { margin-top: clamp(64px, 9vw, 110px); }
.row--flip .row-media { order: 2; }
.row-media { display: flex; justify-content: center; }
.row h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 14px;
}
.row .sub { color: var(--muted); margin-bottom: 20px; max-width: 30em; }
.checks { list-style: none; }
.checks li {
  padding: 11px 0 11px 34px;
  border-top: 1px solid var(--line);
  position: relative;
  font-size: 0.98rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%230E5E3F'/%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23F6F4EA' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- caddy band ---------- */

.caddy .wrap {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.caddy .wrap > * { min-width: 0; }
.principles { list-style: none; margin-top: 28px; }
.principles li { padding: 14px 0; border-top: 1px solid rgba(246, 244, 234, 0.18); }
.principles strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; margin-bottom: 3px; }
.principles span { color: rgba(246, 244, 234, 0.72); font-size: 0.95rem; }

.caddy-card {
  background: #14181b;
  border: 1px solid #262b2e;
  border-radius: 20px;
  padding: 26px 26px 18px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.caddy-card .title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.caddy-card .title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.9);
}
.caddy-card .line {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #e8eef0;
  padding: 12px 14px;
  border-left: 3px solid var(--emerald);
  background: #0b0d0e;
  border-radius: 0 10px 10px 0;
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.caddy-card .note { color: #94a3b8; font-size: 0.82rem; padding-top: 6px; }

/* ---------- courses ---------- */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.course {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.course .name { font-weight: 600; font-size: 0.98rem; line-height: 1.3; }
.course .meta { color: var(--muted); font-size: 0.84rem; margin-top: 4px; }
.course .tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  background: var(--cream-band);
  border-radius: 999px;
  padding: 3px 9px;
  margin-left: 8px;
  vertical-align: 2px;
}
.courses-note {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: baseline;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- beta ---------- */

.beta-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  box-shadow: 0 40px 80px -40px rgba(14, 54, 45, 0.8);
}
.beta-card .eyebrow { color: var(--emerald); }
.beta-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  margin-bottom: 14px;
}
.beta-card p { color: rgba(246, 244, 234, 0.78); max-width: 34em; }
.beta-card .side { text-align: left; }
.beta-card .side .foot { margin-top: 16px; font-size: 0.88rem; color: rgba(246, 244, 234, 0.66); }

/* ---------- footer ---------- */

.site-foot { background: var(--ink); color: rgba(246, 244, 234, 0.78); padding: clamp(48px, 7vw, 80px) 0 36px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(246, 244, 234, 0.16);
}
.foot-grid img { height: 62px; width: auto; margin-bottom: 14px; }
.foot-grid .tagline {
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  color: var(--emerald);
  margin-bottom: 14px;
}
.foot-grid p { font-size: 0.92rem; max-width: 26em; }
.foot-grid h3.foot-head {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 244, 234, 0.55);
  margin-bottom: 14px;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: rgba(246, 244, 234, 0.85); text-decoration: none; }
.foot-grid a:hover { color: var(--cream); text-decoration: underline; }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 0.84rem;
  color: rgba(246, 244, 234, 0.6);
}
.foot-base a { color: inherit; }
.foot-base a:hover { color: var(--cream); }
.site-foot .foot-base:first-child { padding-top: 0; }

/* ---------- legal / 404 ---------- */

.prose { max-width: 720px; padding-block: clamp(48px, 8vw, 96px); }
.prose h1 { font-family: var(--serif); font-weight: 500; font-size: 2.4rem; margin-bottom: 8px; }
.prose .crumb { font-size: 0.9rem; margin-bottom: 40px; display: block; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li { margin-bottom: 6px; }
.prose .small { color: var(--muted); font-size: 0.9rem; }

.oob { text-align: center; padding-block: clamp(80px, 16vw, 160px); }
.oob h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 14px; }
.oob p { color: var(--muted); margin-bottom: 30px; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(3, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .caddy .wrap { grid-template-columns: 1fr; }
  .beta-card { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav a:not(.btn) { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shot { margin-top: 10px; }
  .row { grid-template-columns: 1fr; gap: 34px; }
  .row--flip .row-media { order: 0; }
  .phone--back { display: none; }
}

@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .beta-card .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .btn:hover { transform: none; }
  .card:hover { transform: none; }
}
