/* Caddie+Training — PREMIUM etusivu (vain index.html).
 * Sama brändi kuin style.css (Augusta-vihreä + kulta + Great Vibes),
 * mutta hero + laitekehykset + oikeat appikuvat + syvyys. */

:root {
  --forest: #15362a;
  --forest-2: #1e4a36;
  --forest-dark: #0d2318;
  --forest-deep: #081610;
  --cream: #faf8f4;
  --cream-2: #f1ece2;
  --gold: #c9a84c;
  --gold-bright: #e8c870;
  --ink: #15271d;
  --ink-soft: #4d5e54;
}

/* Hero ei kuulu vanhaan <main>-rajaukseen → nolla globaalit */
.home-main { max-width: none; margin: 0; padding: 0; }
.home-main h2, .home-main h3, .home-main p { max-width: none; }

/* ─────────────────────────── HERO ─────────────────────────── */
.hero2 {
  position: relative;
  overflow: hidden;
  padding: 150px 24px 90px;
  background:
    radial-gradient(130% 90% at 72% 8%, rgba(232,200,112,.14), transparent 55%),
    linear-gradient(170deg, var(--forest-2) 0%, var(--forest-dark) 55%, var(--forest-deep) 100%);
  color: #fff;
}
.hero2::before {           /* ilmakuva kentästä, himmennetty pohjalle */
  content: "";
  position: absolute; inset: 0;
  background: url("img/course-aerial.jpg") center 30% / cover no-repeat;
  opacity: .12;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.hero2-inner { position: relative; max-width: 1120px; margin: 0 auto; }
.hero2-head { text-align: center; margin-bottom: 46px; }
.hero2-body { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero2-copy { max-width: 520px; }
.hero2-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(232,200,112,.35);
  border-radius: 999px; padding: 7px 15px; margin-bottom: 26px;
  background: rgba(232,200,112,.06);
}
.hero2 h1 {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: clamp(34px, 9.5vw, 116px);
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  margin: 0;
  text-shadow: 0 6px 40px rgba(0,0,0,.4);
}
.hero2 .tagline2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(21px, 3vw, 29px);
  font-weight: 600; color: #eef4ef;
  margin: 0 0 18px; line-height: 1.25;
}
.hero2 .lead {
  font-size: 17px; color: #cfe0d4; line-height: 1.65;
  margin: 0 0 32px; max-width: 480px;
}
.hero2 .badges2 { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero2 .badges2 img { height: 52px; width: auto; display: block; }
.hero2 .badges2 img[src*="google"] { height: 46px; }
.hero2 .platforms {
  margin-top: 26px; font-size: 13px; letter-spacing: .3px;
  color: #9fb8a6; display: flex; flex-wrap: wrap; gap: 6px 14px;
}
.hero2 .platforms b { color: var(--gold-bright); font-weight: 700; }

/* ───────────────────── PUHELINKEHYS ───────────────────── */
.phone {
  position: relative;
  width: 400px; max-width: 90vw;
  margin: 0 auto;
  border-radius: 46px;
  background: linear-gradient(160deg, #20241f, #0c0f0c);
  padding: 11px;
  box-shadow:
    0 2px 0 rgba(255,255,255,.06) inset,
    0 40px 80px -24px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,255,255,.04),
    0 0 90px -30px rgba(232,200,112,.45);
}
.phone::after {           /* notch */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 24px; border-radius: 14px; background: #0c0f0c; z-index: 3;
}
.phone img { display: block; width: 100%; border-radius: 36px; }
.hero2 .phone { transform: rotate(1.5deg); }
.hero2-visual { display: flex; justify-content: center; }

/* ───────────────────── OSIO-POHJA ───────────────────── */
.sec { padding: 92px 24px; }
.sec-wrap { max-width: 1120px; margin: 0 auto; }
.sec-cream { background: var(--cream); color: var(--ink); }
.sec-cream-2 { background: var(--cream-2); color: var(--ink); }

.eyebrow {
  font-size: 12.5px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; display: block;
}
.sec h2.big {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; line-height: 1.1;
  color: var(--ink); margin: 0 0 18px; letter-spacing: -.5px;
  max-width: 14ch; text-wrap: balance;
}
.sec .sec-lead { font-size: 17.5px; color: var(--ink-soft); line-height: 1.7; max-width: 46ch; }

/* ───────────────── FEATURE-RIVIT (vuorottelu) ───────────────── */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.frow + .frow { margin-top: 110px; }
.frow.rev .frow-text { order: 2; }
.frow.rev .frow-visual { order: 1; }
.frow-visual { display: flex; justify-content: center; position: relative; }
.frow-visual .phone { transform: none; }
.frow.rev .frow-visual .phone { transform: none; }
.frow-visual::before {   /* pehmeä kulta-hehku kuvan taakse */
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.22), transparent 68%);
  z-index: 0; filter: blur(14px);
}
.flist { list-style: none; margin: 22px 0 0; padding: 0; }
.flist li {
  position: relative; padding: 0 0 0 30px; margin-bottom: 14px;
  font-size: 16px; color: var(--ink-soft); line-height: 1.55;
}
.flist li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,.15);
}
.flist li b { color: var(--ink); font-weight: 700; }

/* ───────────────── LAITENAUHA (kellot) ───────────────── */
.wrist { background: linear-gradient(170deg, var(--forest-2), var(--forest-deep)); color: #fff; }
.wrist h2.big { color: #fff; }
.wrist .sec-lead { color: #cfe0d4; }
.wrist-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; margin-top: 48px; max-width: 640px; margin-left: auto; margin-right: auto; }
.wrist-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(232,200,112,.16);
  border-radius: 22px; padding: 30px 24px; text-align: center;
}
.wrist-card img { width: 148px; height: auto; border-radius: 16px; margin: 0 auto 20px; display: block;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.6); }
.wrist-card h3 { font-size: 18px; font-weight: 800; color: var(--gold-bright); margin: 0 0 6px; }
.wrist-card p { font-size: 14.5px; color: #bcd0c2; line-height: 1.55; margin: 0; }

/* ───────────────── golf.fi -nauha ───────────────── */
.fgu { background: linear-gradient(160deg, #10302330, #faf8f4); }
.fgu-card {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--forest-2), var(--forest-deep));
  border-radius: 30px; padding: 56px; color: #fff;
  box-shadow: 0 40px 80px -30px rgba(13,35,24,.55);
  border: 1px solid rgba(232,200,112,.2);
}
.fgu-card::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 60%; height: 180%;
  background: radial-gradient(circle, rgba(232,200,112,.16), transparent 60%);
}
.fgu-card .eyebrow { color: var(--gold-bright); }
.fgu-card h2.big { color: #fff; }
.fgu-card .sec-lead { color: #d3e3d8; max-width: 52ch; }
.fgu-logo { display: inline-block; background: #fff; border-radius: 16px; padding: 13px 22px; margin-bottom: 20px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.fgu-logo img { height: 34px; width: auto; display: block; }

/* ───────────────── HINNOITTELU ───────────────── */
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 40px auto 0; }
.price-card {
  background: #fff; border: 1px solid var(--cream-2); border-radius: 22px; padding: 34px;
  box-shadow: 0 20px 50px -30px rgba(21,39,29,.25); text-align: center;
}
.price-card.pro { border: 1.5px solid var(--gold); position: relative; }
.price-card.pro::before {
  content: attr(data-tag); position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #1c1403; font-size: 11px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.price-card .pname { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.price-card .pprice { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 700; color: var(--ink); margin: 10px 0 4px; }
.price-card .pprice small { font-size: 16px; color: var(--ink-soft); font-weight: 400; }
.price-card .pdesc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin-top: 10px; }
.price-note { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin-top: 22px; }

/* ───────────────── LOPPU-CTA ───────────────── */
.home-cta {
  text-align: center; padding: 100px 24px;
  background: linear-gradient(170deg, var(--forest-2), var(--forest-deep)); color: #fff;
}
.home-cta h2 { font-family: 'Great Vibes', cursive; font-weight: 400; font-size: clamp(44px, 7vw, 76px); margin: 0 0 8px; color: var(--gold-bright); }
.home-cta p { font-family: 'Playfair Display', serif; font-size: 22px; color: #eef4ef; margin: 0 0 30px; }
.home-cta .badges2 { display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.home-cta .badges2 img { height: 54px; }
.home-cta .badges2 img[src*="google"] { height: 48px; }
.trial-highlight { color: var(--gold); font-weight: 800; font-size: 18.5px; letter-spacing: .2px; margin: 18px auto 0; }
.home-cta .contact { margin-top: 34px; font-size: 14px; color: #a8c0af; }
.home-cta .contact a { color: var(--gold-bright); }

/* ───────────────── entrance (näkyvä lepotila) ───────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ───────────────── RESPONSIIVINEN ───────────────── */
@media (max-width: 860px) {
  .hero2 { padding: 128px 20px 70px; }
  .hero2-head { margin-bottom: 36px; }
  .hero2-body { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero2-copy { margin: 0 auto; }
  .hero2 .badges2, .hero2 .platforms { justify-content: center; }
  .frow { grid-template-columns: 1fr; gap: 36px; }
  .frow.rev .frow-text, .frow.rev .frow-visual { order: 0; }
  .frow-text { text-align: center; }
  .flist { display: inline-block; text-align: left; }
  .sec h2.big, .sec .sec-lead { margin-left: auto; margin-right: auto; }
  .frow-text .eyebrow { display: block; }
  .wrist-grid { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
  .price-wrap { grid-template-columns: 1fr; max-width: 420px; }
  .fgu-card { padding: 38px 26px; text-align: center; }
  .fgu-card .sec-lead { margin-left: auto; margin-right: auto; }
}
