/* easygolfrules.app: EasyGolf Learn website. Tokens follow design/GIAO-DIEN-CHOT.md. */
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-var.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/barlow-semi-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --green-light: #4E9F0A;
  --green: #11801A;
  --green-hover: #0D6C15;
  --bg: #FFFFFF;
  --bg-soft: #F2F2F2;
  --surface: #FFFFFF;
  --tint: #EEF6EA;
  --ink: #111611;
  --muted: #565D57;
  --line: #E1E4E0;
  --link: #106DA3;
  --icon: #11801A;
  --icon-bg: #E6F2DF;
  --number: #11801A;
  --radius-sheet: 24px;
  --radius-card: 15px;
  --wrap: 1080px;
  --gutter: 16px;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Barlow Semi Condensed", "Open Sans", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121412;
    --bg-soft: #171917;
    --surface: #1D201D;
    --tint: #18211A;
    --ink: #ECEDEC;
    --muted: #A9AFA9;
    --line: #2E332E;
    --link: #5AB4EA;
    --icon: #7BC96F;
    --icon-bg: #1F2A1D;
    --number: #7BC96F;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  /* Long words and the email address wrap instead of overflowing at 320px or large text. */
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
svg { flex: none; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #F2B705; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: 12px; top: 12px; z-index: 10; transform: translateY(-200%);
  background: #fff; color: #111; padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip:focus { transform: none; }

/* Green header: #11801A with faint contour lines (white at 5%: white text stays >= 4.6:1); the light brand
   green only glows at the bottom right, behind the phone, away from small text. */
.hero {
  color: #fff;
  background-color: var(--green);
  background-image:
    url("/assets/contour.svg"),
    radial-gradient(440px 440px at 92% 100%, rgba(78, 159, 10, .95), rgba(78, 159, 10, 0) 70%);
  background-size: 240px 240px, 100% 100%;
}
/* Inner pages have text right down to the sheet: no glow there. */
.page-hero { background-image: url("/assets/contour.svg"); background-size: 240px 240px; }
.hero a { color: #fff; }

.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 72px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 148px; height: auto; }
.brand-learn {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1.375rem; letter-spacing: .01em; line-height: 1;
}
.brand-learn::before { content: ""; width: 2px; height: 26px; background: currentColor; opacity: .85; }
.topnav { display: none; gap: 24px; font-size: .9375rem; font-weight: 600; }
.topnav a, .lang { text-decoration: none; }
.topnav a:hover, .lang:hover { text-decoration: underline; }
.lang svg { width: 18px; height: 18px; }
.lang {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px; font-size: .9375rem; font-weight: 600;
}
@media (min-width: 760px) { .topnav { display: flex; } }
.lang { white-space: nowrap; }
@media (max-width: 419px) {
  .topbar { gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 118px; }
  .brand-learn { font-size: 1.125rem; gap: 10px; }
  .brand-learn::before { height: 21px; }
  .lang { padding: 0 12px; font-size: .875rem; gap: 6px; }
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 36px; }
.eyebrow {
  font-family: var(--font-num); font-weight: 600; font-size: .9375rem; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.25rem, 1.35rem + 4.2vw, 4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.lead { font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem); margin-top: 20px; max-width: 34em; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.status-note { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.status-note::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
}
.play-badge img { height: 60px; width: auto; }
.status a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.chips li {
  padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .2);
  font-size: .9375rem; font-weight: 600;
}
.net-note { font-size: .9375rem; margin-top: 12px; max-width: 36em; }

.shot { margin: 0; }
.phone {
  width: min(300px, 76vw); margin: 0 auto; border-radius: 40px; overflow: hidden;
  border: 10px solid #0E110F; background: #0E110F;
  box-shadow: 0 18px 40px rgba(0, 25, 5, .22);
}
.phone img { width: 100%; aspect-ratio: 720 / 1396; border-radius: 30px; }
.shot figcaption { text-align: center; color: var(--muted); font-size: .9375rem; margin-top: 16px; }

/* The phone hangs out of the green into the first white sheet (the one EasyGolf sheet overlap). */
.hero .shot { position: relative; z-index: 2; margin-bottom: -170px; }
.sheet {
  position: relative; z-index: 1; margin-top: calc(-1 * var(--radius-sheet));
  background: var(--bg); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  padding: 232px 0 72px;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 56px; }
  .hero-text { padding-bottom: 96px; align-self: center; }
  .hero .shot { margin-bottom: -150px; align-self: end; }
  .phone { width: 300px; }
  .sheet { padding-top: 64px; }
  .sheet .section-head { max-width: calc(100% - 380px); min-height: 140px; }
}

section { scroll-margin-top: 24px; }
.section-head h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin-top: 12px; max-width: 40em; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { border-top: 2px solid var(--line); padding-top: 20px; }
.step-num { font-family: var(--font-num); font-weight: 600; font-size: 2.75rem; line-height: 1; color: var(--number); }
.steps h3 { font-size: 1.25rem; margin: 14px 0 6px; }
.steps p { color: var(--muted); }
.after-steps { margin-top: 36px; max-width: 46em; color: var(--muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.features { background: var(--bg-soft); padding: 72px 0; }
.feature-row { display: grid; gap: 40px; margin-top: 48px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.icon {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--icon-bg); color: var(--icon);
}
.icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1875rem; margin: 10px 0 6px; }
.feature p { color: var(--muted); }
.feature .caution { color: var(--ink); font-weight: 600; margin-top: 8px; font-size: 1rem; }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 320px minmax(0, 1fr); gap: 72px; margin-top: 64px; }
  .feature-row.reverse { grid-template-columns: minmax(0, 1fr) 320px; }
  .feature-row.reverse .shot { order: 2; }
}

.privacy { padding: 72px 0; }
.privacy-panel {
  background: var(--tint); border-radius: var(--radius-sheet); padding: 32px 24px;
  display: grid; gap: 20px;
}
.privacy-panel .icon { background: var(--surface); }
.privacy-panel h2 { margin-bottom: 12px; }
.privacy-panel p { max-width: 46em; }
.privacy-panel p + p { margin-top: 12px; }
.privacy-panel p:last-child { margin-top: 24px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 700; text-decoration: none;
}
.button:hover { background: var(--green-hover); text-decoration: none; }
.button svg { width: 20px; height: 20px; }
@media (min-width: 760px) {
  .privacy-panel { grid-template-columns: 48px 1fr; gap: 24px; padding: 48px; }
}

.rules-note { padding: 0 0 56px; }
.rules-note p {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); font-size: 1rem; max-width: 52em;
}
.rules-note svg { width: 24px; height: 24px; color: var(--icon); margin-top: 1px; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .9375rem; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green); margin-right: auto; text-decoration: none; }
.footer-brand img { width: 120px; }
.footer-brand .brand-learn { font-size: 1.125rem; }
.footer-brand .brand-learn::before { height: 20px; }
@media (prefers-color-scheme: dark) { .footer-brand { color: #fff; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--ink); display: inline-flex; min-height: 44px; align-items: center; }
.footer-meta { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-meta a { color: var(--muted); }

/* Inner pages: privacy, support, 404. */
.page-hero .page-title { padding-top: 32px; padding-bottom: 72px; }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { margin-top: 12px; font-size: 1.125rem; max-width: 36em; }
.page {
  position: relative; margin-top: calc(-1 * var(--radius-sheet)); background: var(--bg);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; padding: 40px 0 64px;
}
.prose { max-width: 720px; }
.prose h2 { font-size: 1.375rem; margin: 40px 0 10px; scroll-margin-top: 24px; }
.prose p { margin: 10px 0; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.updated { color: var(--muted); font-size: .9375rem; }
.toc {
  border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 20px; margin: 24px 0 8px;
  font-size: 1rem;
}
.toc h2 { font-size: .9375rem; margin: 0 0 6px; font-family: var(--font-num); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 22px; columns: 2 220px; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }

.contact { display: grid; gap: 16px; padding-bottom: 8px; }
.contact .button { justify-self: start; max-width: 100%; font-size: 1.0625rem; padding-top: 10px; padding-bottom: 10px; }
.contact .button span { min-width: 0; overflow-wrap: anywhere; }
.contact p { color: var(--muted); max-width: 40em; }
.faq { margin-top: 8px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 0; font-weight: 700; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none; margin-right: 6px;
  border-right: 2.5px solid var(--icon); border-bottom: 2.5px solid var(--icon); transform: rotate(45deg) translateY(-3px);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 0 20px; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .hero, .page-hero { background: none; color: #000; }
  .hero a, .page-hero a { color: #000; }
  .topnav, .lang, .skip { display: none; }
}
