/* Golf Coach website. Same palette as the app: cream, forest, sand.
   Dark mode uses charcoal and soft text (about 12:1), never pure black or white. */

:root {
  --bg: #F4F0E8;
  --card: #FBF9F5;
  --field: #EBE5D9;
  --forest: #1F4D3A;
  --forest-text: #1F4D3A;
  --on-forest: #F4F0E8;
  --on-forest-2: #BFD0C6;
  --sand: #CFAE78;
  --sand-soft: #F0E2CA;
  --sand-ink: #6B4C1F;
  --ink: #1F2421;
  --ink-2: #5F5B54;
  --divider: #E3DCCF;
  --shadow: 0 4px 14px rgba(31, 36, 33, 0.07);
  --radius: 20px;
  --radius-lg: 26px;
  --measure: 66ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B2321;
    --card: #242E2B;
    --field: #2C3734;
    --forest: #2F6B51;
    --forest-text: #9CCBB2;
    --on-forest: #E6EEE9;
    --on-forest-2: #B9CFC3;
    --sand: #C9A86F;
    --sand-soft: #3A3326;
    --sand-ink: #E2C89A;
    --ink: #DCE5E1;
    --ink-2: #A3B4AE;
    --divider: #33403C;
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

/* Language: both versions are in each page; the script picks one (English without script). */
html:not([lang|="de"]) [data-lang="de"],
html[lang|="de"] [data-lang="en"] { display: none !important; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.125rem;
}
.wordmark .mark { width: 34px; height: 34px; border-radius: 22.5%; display: block; }
/* App icon on the home page, with iOS-like rounded corners */
.app-icon {
  width: 112px; height: 112px; border-radius: 22.5%; display: block;
  margin-bottom: 24px; box-shadow: var(--shadow);
}
.lang-switch { display: inline-flex; background: var(--field); border-radius: 999px; padding: 3px; }
.lang-switch a {
  min-width: 44px; min-height: 36px; display: grid; place-items: center;
  padding: 0 12px; border-radius: 999px; font-size: 0.875rem; font-weight: 600;
  color: var(--ink-2); text-decoration: none;
}
.lang-switch a[aria-current="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 48px 0 88px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.25rem);
  line-height: 1.04; letter-spacing: -0.025em; font-weight: 750;
  margin: 0 0 22px; max-width: 12ch;
}
.hero p.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 46ch; margin: 0 0 30px; }
.store-note {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--forest); color: var(--on-forest);
  border-radius: 999px; padding: 13px 22px; font-weight: 600;
}
a.store-note { text-decoration: none; transition: filter 150ms ease; }
a.store-note:hover { filter: brightness(1.12); }
.store-note svg { width: 18px; height: 18px; }
.hero .small { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; }

/* App-style lesson timeline in the hero */
.timeline { position: relative; display: grid; gap: 14px; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 30px; bottom: 30px; width: 2px;
  background: color-mix(in srgb, var(--forest) 25%, transparent);
}
.lesson {
  position: relative; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 16px 16px 18px;
  display: grid; grid-template-columns: 26px 1fr 72px; gap: 12px; align-items: center;
}
.lesson::before {
  content: ""; position: absolute; left: -28px; top: 50%; translate: 0 -50%;
  width: 12px; height: 12px; border-radius: 50%; background: var(--forest);
  box-shadow: 0 0 0 4px var(--bg);
}
.lesson .num { color: var(--sand-ink); font-weight: 600; font-variant-numeric: tabular-nums; align-self: start; padding-top: 1px; }
.lesson .when { color: var(--ink-2); font-size: 0.8125rem; }
.lesson .title { font-weight: 650; margin: 2px 0 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--sand-soft); color: var(--sand-ink); border-radius: 999px; padding: 3px 10px; font-size: 0.8125rem; font-weight: 500; }
.thumb { width: 72px; height: 90px; border-radius: 12px; overflow: hidden; }
.thumb svg { width: 100%; height: 100%; display: block; }
.lesson.faded { opacity: 0.75; }

/* The one moment of motion: the swing line draws itself once */
.draw { stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw 1.1s 0.5s ease-out forwards; }
.draw.second { animation-delay: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .draw { animation: none; stroke-dashoffset: 0; }
}

/* Explainer reel */
.reel { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.reel-video {
  width: min(340px, 100%); height: auto; aspect-ratio: 9 / 16; display: block;
  border-radius: 28px; background: var(--forest); box-shadow: var(--shadow);
}

/* Round Analysis */
.round-steps { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; counter-reset: round; }
.round-steps li { counter-increment: round; }
.round-steps img {
  width: 100%; height: auto; display: block; margin-bottom: 20px;
  border-radius: 30px; border: 1px solid var(--divider); box-shadow: var(--shadow);
}
.round-steps h3 { margin: 0 0 6px; font-size: 1.1875rem; line-height: 1.3; }
.round-steps h3::before { content: counter(round) ". "; color: var(--sand-ink); }
.round-steps p { margin: 0; color: var(--ink-2); }
.round-how { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 64px; }
.round-how h3 { margin: 0 0 6px; font-size: 1.375rem; line-height: 1.25; }
.round-how p { margin: 0 0 12px; color: var(--ink-2); max-width: 48ch; }
.areas { margin: 20px 0 0; }
.areas > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--divider); }
.areas dt { font-weight: 650; }
.areas dd { margin: 0; color: var(--ink-2); }
.ratings { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 10px; }
.ratings li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; border-radius: 18px; line-height: 1.4; }
.ratings strong { display: block; }
.ratings b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
/* The app's rating colours, the same in light and dark */
.ratings .green { background: #3D8A4E; color: #FBF9F5; }
.ratings .yellow { background: #E3BC47; color: #1F2421; }
.ratings .red { background: #B34A3C; color: #FBF9F5; }

/* Sections */
section.block { padding: 72px 0; border-top: 1px solid var(--divider); }
section.block h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 12px; }
section.block > .wrap > p.intro { color: var(--ink-2); max-width: 56ch; margin: 0 0 40px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.feature { padding: 24px 0; border-top: 1px solid var(--divider); }
.feature h3 { font-size: 1.1875rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--ink-2); max-width: 44ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 14px;
  background: var(--forest); color: var(--on-forest); font-weight: 700; font-size: 0.9375rem;
}
.steps h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.9688rem; }

.students {
  background: var(--forest); color: var(--on-forest); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.students h2 { color: var(--on-forest); }
.students p { color: var(--on-forest-2); margin: 0; max-width: 48ch; }
.code {
  justify-self: end; font: 700 clamp(2rem, 5vw, 3rem)/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em; padding: 22px 26px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--on-forest) 10%, transparent); color: var(--on-forest);
}

/* Legal / text pages */
.doc { padding: 24px 0 80px; }
.doc article { max-width: var(--measure); }
.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em; margin: 16px 0 8px; }
.doc .updated { color: var(--ink-2); margin: 0 0 32px; font-size: 0.9375rem; }
.doc h2 { font-size: 1.3125rem; margin: 40px 0 8px; line-height: 1.3; }
.doc h3 { font-size: 1.0625rem; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }
.doc address { font-style: normal; }
.note {
  background: var(--sand-soft); color: var(--sand-ink); border-radius: 14px;
  padding: 14px 18px; font-size: 0.9375rem; margin: 0 0 28px;
}
.faq details { border-top: 1px solid var(--divider); padding: 6px 0; }
.faq details:last-child { border-bottom: 1px solid var(--divider); }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; min-height: 44px; }
.faq details p { margin: 0 0 14px; color: var(--ink-2); }
.contact-card {
  background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius-lg);
  padding: 24px; margin: 8px 0 40px;
}
.contact-card a { font-size: 1.25rem; font-weight: 650; }

/* Footer */
.site-footer { border-top: 1px solid var(--divider); padding: 28px 0 40px; color: var(--ink-2); font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Small screens */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 24px 0 64px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .students { grid-template-columns: 1fr; }
  .reel { grid-template-columns: 1fr; gap: 28px; }
  .round-steps { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .round-how { grid-template-columns: 1fr; gap: 48px; }
  .reel-video { justify-self: center; }
  .code { justify-self: start; }
}
@media (max-width: 560px) {
  .round-steps { grid-template-columns: 1fr; gap: 48px; }
  .round-steps img { width: min(280px, 100%); margin-inline: auto; }
}
@media (max-width: 420px) {
  .lesson { grid-template-columns: 22px 1fr 56px; padding: 14px; }
  .thumb { width: 56px; height: 72px; }
}
