/* ===== Ace — mini golf marketing + legal site ===== */
:root {
  --green: #2EA56A;
  --green-deep: #15784c;
  --green-darker: #0c4f33;
  --ink: #14241c;
  --muted: #5c6b62;
  --paper: #f5f9f4;
  --card: #ffffff;
  --accent: #ffc23c;       /* golf-y warm yellow */
  --sky: #4d8bf0;
  --line: #e4ece4;
  --radius: 20px;
  --shadow: 0 14px 40px rgba(12, 79, 51, 0.12);
  --shadow-sm: 0 6px 18px rgba(12, 79, 51, 0.10);
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand, .display {
  font-family: "Fredoka", "Trebuchet MS", -apple-system, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 22px; color: var(--ink); }
.brand .ball { font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--green-deep); text-decoration: none; }
.btn {
  display: inline-block; background: var(--green); color: #fff !important;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow); }
.btn.alt { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink) !important; border: 2px solid var(--line); box-shadow: none; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 55%, var(--green-darker) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1.5px, transparent 1.5px);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding: 74px 0 86px; }
.eyebrow { display: inline-block; background: rgba(255,255,255,.16); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .02em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6vw, 66px); margin-bottom: 16px; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); opacity: .94; max-width: 30ch; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.badge-soon { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,.22); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 15px; }
.hero-art { display: flex; justify-content: center; }
.phone {
  width: 250px; aspect-ratio: 9/19; border-radius: 38px; background: linear-gradient(180deg, #0e3a26, #07271a);
  border: 8px solid #06231733; box-shadow: 0 30px 70px rgba(0,0,0,.35); position: relative; overflow: hidden;
}
.phone .screen { position: absolute; inset: 8px; border-radius: 30px; overflow: hidden; background: linear-gradient(170deg, #3FB873, #1c7d4d 70%); }
.phone .green-felt { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 18px 18px; }
.phone .cup { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: #08311f; left: 50%; top: 26%; transform: translateX(-50%); box-shadow: inset 0 0 0 3px rgba(255,255,255,.5); }
.phone .flag { position: absolute; left: calc(50% + 0px); top: 8%; width: 2px; height: 60px; background: #fff; transform: translateX(12px); }
.phone .flag::after { content: ""; position: absolute; top: 0; left: 2px; border: 9px solid transparent; border-left-color: #ff5a52; border-top-color: #ff5a52; }
.phone .ball { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #d7e3da); left: 46%; bottom: 22%; box-shadow: 0 4px 10px rgba(0,0,0,.3); animation: roll 3.4s ease-in-out infinite; }
@keyframes roll { 0%,100% { transform: translate(0,0);} 45% { transform: translate(8px,-92px);} 55% { transform: translate(8px,-92px);} }

/* ===== Sections ===== */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

.stats { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 30px; padding-bottom: 30px; }
.stat { text-align: center; }
.stat .num { font-family: "Fredoka", system-ui, sans-serif; font-size: 34px; color: var(--green-deep); font-weight: 600; }
.stat .lbl { color: var(--muted); font-weight: 600; font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .14s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ico { font-size: 30px; margin-bottom: 12px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Worlds */
.worlds { background: linear-gradient(180deg, #eef5 ee, #f5f9f4); }
.worlds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.world { border-radius: var(--radius); padding: 22px; color: #fff; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.world h3 { font-size: 21px; }
.world span { font-size: 14px; opacity: .92; }
.world .tag { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.22); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.w-forest  { background: linear-gradient(150deg,#3FB873,#176b41); }
.w-desert  { background: linear-gradient(150deg,#e6b15e,#b6712b); }
.w-city    { background: linear-gradient(150deg,#6f5aa8,#2a2d52); }
.w-glacier { background: linear-gradient(150deg,#62bdd9,#1f4286); }
.w-sky     { background: linear-gradient(150deg,#6bb2f5,#b39ae8); }
.w-night   { background: linear-gradient(150deg,#27406b,#0a1226); }

/* CTA band */
.cta { background: linear-gradient(160deg, var(--green-deep), var(--green-darker)); color: #fff; text-align: center; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.cta p { opacity: .92; margin-bottom: 24px; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #cfe0d6; padding: 48px 0 30px; }
.footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer .brand { color: #fff; margin-bottom: 10px; }
.footer a { color: #cfe0d6; }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; font-size: 13px; color: #8fa89a; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== Legal / content pages ===== */
.page-hero { background: linear-gradient(160deg, var(--green), var(--green-deep)); color: #fff; padding: 56px 0 44px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 46px); }
.page-hero p { opacity: .9; margin-top: 8px; }
.doc { max-width: 800px; margin: 0 auto; padding: 50px 22px 70px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 24px; margin: 36px 0 12px; }
.doc h3 { font-size: 18px; margin: 22px 0 8px; }
.doc p, .doc li { color: #2c3b33; font-size: 16px; }
.doc ul, .doc ol { margin: 10px 0 10px 22px; }
.doc li { margin-bottom: 7px; }
.doc .callout { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; padding: 16px 18px; margin: 22px 0; box-shadow: var(--shadow-sm); }
.toc { background:#fff; border:1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 30px; box-shadow: var(--shadow-sm); }
.toc strong { display:block; margin-bottom: 8px; font-family:"Fredoka",system-ui,sans-serif; }
.toc ol { columns: 2; margin-left: 18px; }
.toc a { font-size: 15px; }

/* FAQ */
.faq details { background:#fff; border:1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--green); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; }
  .grid, .worlds-grid { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; gap: 24px; }
  .toc ol { columns: 1; }
}
@media (max-width: 540px) {
  .grid, .worlds-grid { grid-template-columns: 1fr; }
}
