@font-face {
  font-family: Geist;
  src: url("./assets/fonts/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("./assets/fonts/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("./assets/fonts/Manrope-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("./assets/fonts/Manrope-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("./assets/fonts/Manrope-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

/* Colours and card radius come from HorkosStyle in the native app. */
:root {
  color-scheme: dark;
  --ink: #000f0b;
  --forest: #003221;
  --home: #001f16;
  --accent: #03624c;
  --mint: #00df81;
  --meadow: #2cc295;
  --paper: #f1f7f6;
  --cream: #eaefde;
  --muted: #b1cabe;
  --surface: #0d3127;
  --ring-aqua: #99f6e0;
  --ring-lime: #ccf878;
  --line: #2b6352;
  --radius: 1.25rem;
  --gutter: clamp(1.125rem, 5vw, 5rem);
  --wrap: 74rem;
  --heading: Manrope, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: linear-gradient(to bottom right, var(--forest), var(--ink) 65%) top / 100% 100svh no-repeat, var(--ink);
  font: 1rem / 1.6 Geist, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.08; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
section[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  inset: .5rem auto auto .5rem;
  z-index: 2;
  padding: .75rem;
  background: var(--forest);
  color: var(--paper);
}

.site-header, .site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .25rem 1.5rem;
}
.site-header { min-height: 5rem; border-bottom: 1px solid var(--line); }
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  gap: .5rem;
  width: fit-content;
  font: 700 1.19rem / 1 var(--heading);
  letter-spacing: .15rem;
  text-decoration: none;
}
.wordmark img { object-fit: contain; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 clamp(1rem, 3vw, 2.25rem); }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: .28em;
}
.site-nav a:hover { color: var(--paper); text-decoration: underline; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-landscape, .hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-landscape { z-index: -2; }
.hero-landscape img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero::before {
  content: "";
  z-index: -1;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(0, 15, 11, .94) 26%, rgba(0, 15, 11, .24) 82%),
    linear-gradient(0deg, var(--ink), transparent 46%);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3.6rem, 5vw, 5rem);
}
.hero-copy { padding-bottom: 1.4rem; }
.section-label {
  margin-bottom: .75rem;
  color: var(--mint);
  font-weight: 600;
  font-size: .9rem;
}
.hero h1 {
  font-size: clamp(3.15rem, 6vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.02;
}
.hero-description {
  max-width: 29rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.55vw, 1.25rem);
  line-height: 1.55;
}
.download { margin-top: 1.9rem; }
.store-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: .68rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 100vw;
  background: var(--mint);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.store-action:disabled { background: var(--surface); border-color: var(--line); color: var(--paper); }
a.store-action:hover { background: var(--ring-aqua); }
.release-note { margin-top: .42rem; color: var(--muted); font-size: .85rem; }

.phone {
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--ink);
  box-shadow: 0 .7rem 1.4rem rgba(0, 20, 13, .22);
}
.phone img { width: 100%; height: auto; border-radius: 1.75rem; }

figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  justify-content: space-between;
  padding-top: .57rem;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 600;
}
figcaption span { font-weight: 400; }


.hero-figure { display: grid; justify-items: center; gap: .85rem; }
.hero-phone { width: clamp(13rem, 18.7vw, 17.3rem); box-shadow: 0 1rem 2.5rem rgba(0, 15, 11, .42); }
.hero-figure figcaption { flex-wrap: wrap; justify-content: center; gap: 0 .85rem; padding-top: 0; }

.section { padding-block: clamp(3.25rem, 7vw, 6.2rem); }
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  gap: clamp(.7rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1.4rem, 3.65vw, 3.15rem);
}
.section h2 {
  font-size: clamp(2.45rem, 4.7vw, 4.15rem);
  font-weight: 700;
  letter-spacing: -.052em;
}
.section-intro > p {
  max-width: 29rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.stats-section { background: var(--home); border-block: 1px solid var(--line); }
.stats-grid, .play-grid, .comparison-section {
  display: grid;
  gap: clamp(1.2rem, 3.4vw, 3.25rem);
}
.stats-grid { grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); }
.overview-card, .widget-showcase, .course-showcase {
  min-width: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.overview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1rem, 2.8vw, 2rem);
  background: var(--surface);
}
.panel-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .45rem 1rem; }
.panel-heading h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; }
.panel-heading span, .ring-stat small, .panel-caption { color: var(--muted); font-size: .84rem; }
.panel-caption { border-top: 1px solid var(--line); padding-top: .85rem; }
.ring-grid { display: grid; gap: .5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ring-stat { display: grid; justify-items: center; align-content: start; gap: .51rem; text-align: center; font-size: .9rem; }
.ring-stat small { display: block; }
.ring {
  display: grid;
  place-items: center;
  width: min(100%, 5rem);
  aspect-ratio: 1;
  border-radius: 100%;
  background: conic-gradient(var(--ring-color) var(--progress), rgba(44, 194, 149, .24) 0);
  position: relative;
}
.ring::before { content: ""; position: absolute; inset: 11.25%; border-radius: inherit; background: var(--surface); }
.ring strong { z-index: 1; font: 700 1.25rem / 1 var(--heading); font-variant-numeric: tabular-nums; }
.ring strong span { font-size: .62em; }
.widget-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .45rem;
  flex: 1;
  min-height: 12rem;
  padding: clamp(1rem, 2.1vw, 1.65rem);
  border-radius: calc(var(--radius) - .25rem);
  background: var(--surface);
}
.widget-cream { align-content: center; grid-template-rows: auto auto auto 1fr; }
.widget-panel:focus-visible { outline-offset: 2px; }
.widget-cream { background: var(--cream); color: var(--ink); }
.widget-cream:focus-visible { outline-color: var(--accent); outline-offset: -4px; }
.widget-panel h3 { margin-bottom: .5rem; font-size: 1.0625rem; font-weight: 600; }
.widget-form { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: center; }
.widget-value { display: block; font: 800 clamp(2.25rem, 4.2vw, 3.5rem) / 1.1 var(--heading); letter-spacing: -.055em; }
.widget-value span { font-size: .58em; }
.widget-note, .widget-change { display: block; font-size: .82rem; }
.widget-note { color: var(--muted); }
.widget-cream .widget-note { color: #345344; }
.widget-change { color: var(--mint); margin-top: .34rem; }
.round-marks { display: flex; flex-wrap: wrap; align-items: center; gap: .28rem; margin-top: .55rem; }
.round-marks i { width: .65rem; height: .55rem; border-radius: .12rem; background: #b9c9bc; }
.round-marks .met { background: var(--forest); }
.widget-chart { width: 100%; height: 4.5rem; }
.chart-grid { stroke: #386050; stroke-dasharray: 4 5; fill: none; }
.chart-trend { stroke: var(--mint); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.club-bars { display: grid; gap: .35rem; padding-block: .12rem; font-size: .84rem; }
.club-bars > div, .club-bars dd { display: grid; align-items: center; gap: .5rem; }
.club-bars > div { grid-template-columns: 3.1rem 1fr; }
.club-bars dd { grid-template-columns: minmax(0, 1fr) 3.6rem; }
.club-bars i { display: block; width: var(--bar); border-radius: 1rem; background: var(--meadow); height: .45rem; }
.club-bars span { text-align: right; font-variant-numeric: tabular-nums; }


.widget-showcase {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: .6rem;
  background: var(--ink);
}
.showcase-tabs {
  display: grid;
  gap: .25rem;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  padding: .23rem;
  background: var(--home);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - .25rem);
}
.showcase-tabs button {
  min-height: 2.75rem;
  padding: .45rem .25rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
}
.showcase-tabs button:hover { color: var(--paper); }
.showcase-tabs button[aria-selected="true"] { color: var(--mint); background: var(--surface); border-color: var(--line); }
.showcase-tabs button:focus-visible { outline-offset: -2px; }

.play-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 6.5rem);
}
.course-showcase {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  padding: clamp(.8rem, 2.4vw, 1.75rem);
  background: var(--home);
}
.course-tabs { width: min(100%, 19rem); }
.course-panel { width: 100%; }
.course-panel:focus-visible { outline-offset: 0; border-radius: .6rem; }
.course-figure { display: grid; justify-items: center; gap: .35rem; }
.course-phone { width: clamp(12rem, 17vw, 14.75rem); }
.course-figure figcaption { width: min(100%, 19rem); }

.feature-list {
  border-top: 1px solid var(--line);
}
.feature-list div {
  display: grid;
  gap: .22rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--line);
}
.feature-list dt { color: var(--paper); font: 600 1.0625rem / 1.45 var(--heading); }
.feature-list dd { color: var(--muted); }

.comparison-section {
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  align-items: start;
  border-top: 1px solid var(--line);
}
.comparison-section h2 { max-width: 9ch; }
.comparison-section table {
  width: 100%;
  margin-bottom: .8rem;
  border-spacing: 0;
  table-layout: fixed;
  font-size: .95rem;
}
.feature-col { width: 39%; }
.comparison-section th, .comparison-section td {
  border-bottom: 1px solid var(--line);
  padding: .72rem .45rem;
  text-align: center;
}
.comparison-section th:first-child { text-align: left; padding-left: 0; }
.comparison-section thead th { font-weight: 600; }
.comparison-section tbody th { font-weight: 400; }
.comparison-section .ours { background: var(--surface); color: var(--ring-aqua); font-weight: 600; }
.comparison-section thead .ours { border-radius: .45rem .45rem 0 0; }
.source-note { color: var(--muted); font-size: .84rem; }
.source-note a, .credits a { text-underline-offset: .18em; }

.site-footer { align-items: start; border-top: 1px solid var(--line); padding-block: 1.15rem 1.65rem; }
.credits { max-width: 25rem; color: var(--muted); font-size: .85rem; }
.credits summary { min-height: 2.75rem; align-content: center; cursor: pointer; }
.credits p { padding-top: .2rem; }

@media (max-width: 900px) {
  .hero-layout { gap: 1.8rem; }
  .hero h1 { font-size: clamp(2.85rem, 6vw, 3.65rem); }
  .comparison-section { grid-template-columns: minmax(0, .58fr) minmax(0, 1.42fr); }
}

@media (max-width: 700px) {
  .hero-layout, .section-intro, .stats-grid, .play-grid, .comparison-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-layout { padding-block: 2.55rem 2.2rem; gap: 2.15rem; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.85rem, 9vw, 4.4rem); }
  .hero-landscape { inset-block-start: 24%; }
  .hero::before {
    background:
      linear-gradient(180deg, var(--ink) 23%, rgba(0, 15, 11, .86) 44%, transparent 77%, var(--ink) 100%),
      linear-gradient(90deg, rgba(0, 15, 11, .47), rgba(0, 15, 11, .12) 65%);
  }
  .hero-phone, .course-phone { width: min(62%, 13rem); }
  .comparison-section h2 { max-width: none; }
}

@media (max-width: 460px) {
  .site-header { align-content: center; padding-block: .35rem; gap: 0 1rem; }
  .site-nav { width: 100%; justify-content: space-between; gap: 0 .5rem; }
  .site-nav a { font-size: .875rem; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.4rem); }
  .hero-phone, .course-phone { border-radius: 1.6rem; }
  .phone img { border-radius: 1.33rem; }
  .feature-col { width: 36%; }
  .comparison-section table { font-size: .82rem; }
  .comparison-section th, .comparison-section td { padding: .66rem .12rem; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
