/* =========================================================
   Dimplez Golf — mobile-first base styles
   ========================================================= */

:root {
  --vert: #1e5631;
  --vert-deep: #163f24;
  --vert-card: #1a2e1d;
  --light-green: #68a734;
  --light-green-soft: rgba(104, 167, 52, 0.18);
  --sage: #b0c494;
  --blanc: #ffffff;
  --blanc-b: #fafaf9;
  --noir: #000000;
  --ink: #0f1a12;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-dark: rgba(15, 26, 18, 0.68);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --container: 72rem;
  --gutter: 1.25rem;
  --header-h: 4.25rem;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow-phone: 0 28px 60px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bg-image: url("/assets/images/dimplez-background-mobile.png");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--blanc);
  background-color: #031f12;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Gradient zone: header + hero + phone CTA */
.landing-top {
  background: linear-gradient(180deg, #031f12 0%, #1e5631 100%);
}

/* Image background from time section downward */
.landing-scene {
  background-color: #0a1810;
  background-image: var(--bg-image);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

@media (min-width: 768px) {
  :root {
    --bg-image: url("/assets/images/dimplez-background-desktop.png");
  }

  .landing-scene {
    background-attachment: fixed;
  }
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--space-8);
  overflow: clip;
}

.section-title,
.hero-title {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 7.5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(1.65rem, 5.5vw, 2.75rem);
  margin-bottom: var(--space-4);
}

.section-lead,
.hero-lead {
  font-size: 1.05rem;
  max-width: 36ch;
  color: var(--muted);
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}

.text-accent {
  color: var(--light-green);
}

.section-header {
  margin-bottom: var(--space-7);
  max-width: 36rem;
}

.section-header .section-lead + .section-lead {
  margin-top: var(--space-4);
}

/* ---------- Shared bar list ---------- */

.bar-list {
  display: grid;
  gap: 0.65rem;
  text-align: left;
}

.bar-list li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.95rem;
  color: var(--blanc);
  line-height: 1.4;
}

.bar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 2px;
  border-radius: 1px;
  background: var(--light-green);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.85rem 0 0.85rem var(--gutter);
  background: transparent;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 3.5rem;
  padding: 0.75rem 1.75rem 0.75rem 1.5rem;
  background: #2a2a2a;
  border-radius: 999px 0 0 999px;
  box-shadow:
    inset 6px 6px 14px rgba(255, 255, 255, 0.14),
    inset -6px -6px 14px rgba(0, 0, 0, 0.55),
    0 8px 28px rgba(0, 0, 0, 0.22);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 1.75rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.lang-link {
  color: rgba(255, 255, 255, 0.55);
  padding: 0.2rem 0;
  transition: color 0.2s var(--ease);
}

.lang-link:hover,
.lang-link.is-active {
  color: var(--blanc);
  font-weight: 700;
}

.store-badge img {
  width: auto;
  height: 2.25rem;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.45rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--blanc);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 200;
  width: min(80vw, 320px);
  height: 100dvh;
  padding: 1.25rem 1.5rem 2rem;
  background: var(--blanc);
  color: var(--ink);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}

.nav-drawer__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--noir);
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
}

.nav-drawer__body {
  display: grid;
  gap: 1.75rem;
  margin-top: 3rem;
}

.nav-drawer__downloads {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.nav-drawer__downloads .store-badge img {
  height: 2.75rem;
}

.lang-switch--drawer {
  gap: 0.85rem;
  color: var(--ink);
}

.lang-switch--drawer .lang-link {
  color: rgba(15, 26, 18, 0.45);
}

.lang-switch--drawer .lang-link:hover,
.lang-switch--drawer .lang-link.is-active {
  color: var(--ink);
}

.nav-drawer__contact {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--vert);
  word-break: break-all;
}

.nav-drawer__contact:hover {
  color: var(--light-green);
}

body.drawer-open {
  overflow: hidden;
}

body.drawer-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open .nav-drawer {
  transform: translateX(0);
}

@media (max-width: 767px) {
  .burger {
    display: flex;
  }
}

@media (min-width: 768px) {
  .burger,
  .nav-backdrop,
  .nav-drawer {
    display: none !important;
  }

  .logo img {
    height: 2rem;
  }

  .header-bar {
    padding: 0.85rem 2.25rem 0.85rem 1.75rem;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--light-green);
  color: var(--blanc);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--light-green) 85%, white);
}

.btn-download {
  width: 100%;
  min-height: 3.25rem;
  background: var(--blanc);
  color: var(--noir);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-download:hover {
  background: color-mix(in srgb, var(--blanc) 92%, var(--vert));
}

.btn-ghost {
  background: transparent;
  color: var(--blanc);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: var(--space-6);
  background: transparent;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-layout .hero-title {
  margin-bottom: var(--space-4);
}

.hero-layout .hero-lead {
  margin-bottom: var(--space-7);
}

.hero-kickstart {
  width: 100%;
  margin-bottom: var(--space-5);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--blanc);
  line-height: 1.45;
}

.hero-kickstart__swap {
  display: inline-block;
  min-width: 6.5ch;
  text-align: left;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.hero-kickstart__swap.is-fading {
  opacity: 0;
  transform: translateY(0.2em);
}

/* Hero stage: ball drops into hole, phone appears over it */
.hero-stage {
  --hero-drop: 0;
  --hero-phone: 0;
  width: 100%;
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-media-line {
  width: 2px;
  height: calc(3.5rem * (1 - var(--hero-drop)));
  opacity: calc(1 - var(--hero-drop));
  border-radius: 1px;
  background: var(--light-green);
  transform-origin: top center;
  will-change: height, opacity;
}

.hero-stage__well {
  position: relative;
  width: min(14rem, 70vw);
  height: 18rem;
  margin-top: var(--space-2);
}

.hero-stage__ball {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  transform: translate(
      -50%,
      calc(var(--hero-drop) * 9.5rem)
    )
    scale(calc(1 - var(--hero-drop) * 0.82));
  opacity: calc(1 - var(--hero-drop) * 1.05);
  will-change: transform, opacity;
}

.hero-stage__ball .media-placeholder--ball {
  width: 5.5rem;
}

.hero-stage__hole {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 1;
  transform: translateX(-50%);
}

.hero-stage__hole .media-placeholder--hole {
  width: 5.5rem;
}

.hero-stage__phone {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  transform: translate(-50%, calc((1 - var(--hero-phone)) * 2.5rem))
    scale(calc(0.72 + var(--hero-phone) * 0.28))
    rotate(6deg);
  opacity: var(--hero-phone);
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

.hero-stage__phone .media-placeholder--phone {
  width: min(12.5rem, 52vw);
}

.hero.is-hero-done .hero-stage__phone {
  pointer-events: auto;
}

/* 3D mount slots (temporary placeholders) */
.media-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.media-placeholder__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem;
  line-height: 1.35;
}

.media-placeholder--phone {
  width: min(11.5rem, 46vw);
  aspect-ratio: 220 / 448;
}

.media-placeholder--ball {
  width: 5.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
}

.media-placeholder--ball .media-placeholder__label {
  font-size: 0.62rem;
}

.media-placeholder--hole {
  width: 5rem;
  aspect-ratio: 1.6 / 1;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.16);
}

.media-placeholder--hole .media-placeholder__label {
  font-size: 0.58rem;
}

/* ---------- Phone CTA (post-hero) ---------- */

.phone-cta {
  padding-block: 0 var(--space-5);
  margin-top: -6.5rem;
}

.phone-cta-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  min-height: 11rem;
  padding-top: 7rem;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--vert);
}

.phone-cta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.9rem 1.25rem;
  background: var(--blanc);
  color: var(--vert);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease);
}

.phone-cta-bar:hover {
  background: color-mix(in srgb, var(--blanc) 92%, var(--vert));
}

/* ---------- Time gauge ---------- */

.time-inner {
  text-align: left;
  display: grid;
  gap: var(--space-6);
}

.time-inner .section-title {
  max-width: 14ch;
}

.time-gauge {
  position: relative;
  width: min(100%, 22rem);
  margin-inline: auto;
}

.time-gauge-svg {
  display: block;
  width: 100%;
  height: auto;
}

.time-gauge-arc {
  transition: stroke-dashoffset 0.08s linear;
}

.time-gauge-readout {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.time-value {
  font-size: clamp(2.75rem, 12vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blanc);
  line-height: 1;
}

.time-unit {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Guided practice ---------- */

.guided {
  background: transparent;
}

.guided-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 var(--space-5);
  align-items: start;
}

.guided-line {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.guided-line-track {
  position: relative;
  flex: 1;
  width: 2px;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.22) 0px,
    rgba(255, 255, 255, 0.22) 6px,
    transparent 6px,
    transparent 14px
  );
  border-radius: 1px;
  overflow: hidden;
}

.guided-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--vert), var(--light-green));
  border-radius: 1px;
  transition: height 0.1s linear;
  will-change: height;
}

.guided-hole-marker {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--blanc);
  border: 0;
  margin-top: var(--space-2);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.steps {
  display: grid;
  gap: var(--space-8);
  padding-top: 0.25rem;
}

.step {
  display: block;
}

.step-num {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-green);
}

.step-title {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.step-text {
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: var(--space-5);
}

.step-media {
  display: flex;
  justify-content: center;
}

.step-media .media-placeholder--phone {
  width: min(12.5rem, 52vw);
  transform: rotate(-4deg);
}

/* ---------- Build Your Focus ---------- */

.focus .section-header {
  margin-bottom: var(--space-6);
}

.focus-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 200vh;
  padding-bottom: 30vh;
}

.focus-stack-card {
  position: sticky;
  top: var(--stack-top, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 18rem;
  margin-bottom: 1.5rem;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #2a4a32 0%, var(--vert-card) 100%);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.focus-stack-card__title {
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blanc);
}

.focus-stack-card__text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 34ch;
}

.focus-stack-card--last {
  min-height: min(72vh, 34rem);
}

.focus-stack-card__media {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: var(--space-4);
}

.focus-stack-card__media .media-placeholder--phone {
  width: min(13rem, 55vw);
}

/* ---------- Improve ---------- */

.improve-title {
  max-width: 22ch;
  margin-bottom: var(--space-7);
}

.improve-body {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

.improve-lead {
  font-size: 1.05rem;
  color: var(--blanc);
  margin-bottom: var(--space-5);
  max-width: 28ch;
}

.improve-media {
  display: flex;
  justify-content: center;
}

.improve-media .media-placeholder--phone {
  width: min(12.5rem, 52vw);
  transform: rotate(5deg);
}

/* ---------- CTA ---------- */

.cta {
  padding-block: var(--space-7);
  background: transparent;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-7) var(--space-5) var(--space-6);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #2d4a30 0%, #1a2e1d 100%);
  text-align: center;
}

.cta-logo {
  width: 3.5rem;
  height: 3.5rem;
  margin-inline: auto;
}

.cta-title {
  font-size: clamp(1.65rem, 6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: uppercase;
  max-width: 16ch;
}

.cta-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 28ch;
}

.cta-card .bar-list {
  width: 100%;
  max-width: 18rem;
  margin-inline: auto;
}

.cta-card .bar-list li {
  text-align: left;
}

.cta-actions {
  width: 100%;
  max-width: 18rem;
  margin-top: var(--space-2);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: var(--space-7) 0 var(--space-8);
  overflow: hidden;
  background: transparent;
}

.footer-panel {
  --footer-shape-width: 168vw;
  --footer-shape-height: 88rem;

  position: relative;
  width: 100%;
  margin-inline: 0;
  padding: var(--space-7) var(--gutter) var(--space-8);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.footer-dodecagon {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 0;
  width: var(--footer-shape-width);
  height: var(--footer-shape-height);
  transform: translateX(-50%);
  margin: 0;
  pointer-events: none;
  background: var(--blanc);
  clip-path: polygon(
    50% 0%,
    75% 6.7%,
    93.3% 25%,
    100% 50%,
    93.3% 75%,
    75% 93.3%,
    50% 100%,
    25% 93.3%,
    6.7% 75%,
    0% 50%,
    6.7% 25%,
    25% 6.7%
  );
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  width: 100%;
  color: var(--ink);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted-dark);
}

.footer-nav a:hover {
  color: var(--vert);
}

.footer-legal {
  font-size: 0.8rem;
  color: rgba(15, 26, 18, 0.55);
}

/* ---------- Desktop / tablet ---------- */

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
  }

  .guided-timeline {
    grid-template-columns: 3rem 1fr;
    gap: 0 var(--space-7);
  }

  .improve-body {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--space-7);
  }

  .improve-media {
    justify-content: flex-end;
  }

  .cta-card {
    max-width: 28rem;
    margin-inline: auto;
    padding: var(--space-8) var(--space-7) var(--space-7);
  }

  .media-placeholder--phone {
    width: min(13.5rem, 28vw);
  }

  .focus-stack {
    max-width: 28rem;
    margin-inline: auto;
  }

  .footer-panel {
    --footer-shape-width: 152vw;
    --footer-shape-height: 96rem;

    padding: var(--space-8) var(--gutter) var(--space-8);
  }

  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-legal {
    justify-self: end;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: 5.5rem;
  }

  .hero-stage__phone .media-placeholder--phone {
    width: min(14rem, 22vw);
  }

  .hero-stage__well {
    height: 20rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
