/* --------------------
   Golf League Handicap Tracker – Styles
--------------------- */

:root {
  --green: #3d8b5e;
  --green-soft: #e8f5ee;
  --green-deep: #1a5c3a;
  --green-mid: #2d6a4f;

  --navy: #0d2218;
  --ink: #0f2118;
  --cream: #f5f4ef;
  --gold: #b8972a;
  --sand: #e8dfc4;
  --border-soft: #c3d9cb;

  --text-main: #0f2118;
  --text-muted: #4d6b59;
  --radius-lg: 24px;
  --shadow-soft: 0 18px 40px rgba(10, 40, 22, 0.14);
  --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #b8dfc5 0, #f5f7f4 40%, #f5f4ef 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

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

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(245, 247, 244, 0.88);
  border-bottom: 1px solid rgba(177, 214, 189, 0.7);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 36px; height: 36px; border-radius: 8px; }

.logo-text-main {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.logo-text-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a { padding: 4px 0; transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }

.nav-links a.active {
  color: var(--ink);
  font-weight: 600;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--green-deep));
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
}
.hamburger span { display: block; height: 3px; width: 25px; background: #0f2118; border-radius: 2px; }

/* --------------------
   Page Section Wrapper
--------------------- */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 20px 64px;
}

.section-narrow { max-width: 860px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
  font-weight: 600;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
  color: var(--ink);
  line-height: 1.2;
}

.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.75;
}

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

.hero {
  background: linear-gradient(140deg, var(--green-deep) 0%, #2d6a4f 55%, #1a4028 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 80px 60px;
  min-height: 400px;
  color: white;
  gap: 40px;
}

.hero-left { max-width: 56%; }

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 14px;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  opacity: 0.88;
  max-width: 460px;
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-stat-num {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  color: #a8e6c1;
}

.hero-stat-label {
  font-size: 11px;
  opacity: 0.68;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.store-buttons { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-start; }

.store-badge img {
  width: 180px;
  max-width: 220px;
  height: auto;
  display: block;
  border-radius: 8px;
}

.store-badge-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: white;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  transition: opacity 0.2s;
}
.store-badge-text:hover { opacity: 0.82; color: white; }
.store-badge-text .badge-label { font-size: 10px; opacity: 0.75; display: block; }
.store-badge-text .badge-store { font-size: 15px; font-weight: 700; display: block; }
.store-badge-text i { font-size: 26px; }

.hero-disclaimer {
  margin-top: 16px;
  font-size: 11px;
  opacity: 0.5;
  max-width: 360px;
  line-height: 1.5;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(140deg, var(--green-deep), #2d6a4f);
  color: white;
  padding: 60px;
}

.page-hero-inner { max-width: var(--max-width); margin: 0 auto; }

.page-hero .hero-eyebrow { opacity: 0.7; }

.page-hero .hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-hero .hero-sub {
  font-size: 17px;
  opacity: 0.85;
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 0;
}

/* --------------------
   Feature Cards
--------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.feature-card {
  background: rgba(255,255,255,0.92);
  border-radius: 20px;
  padding: 22px 20px 24px;
  border: 1px solid rgba(177,214,189,0.8);
  box-shadow: 0 8px 24px rgba(10,40,22,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(10,40,22,0.1);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: white;
  font-size: 18px;
  margin-bottom: 14px;
}

.feature-icon i { margin: auto; }

.feature-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-copy {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------
   How It Works Steps
--------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.step-card {
  background: rgba(255,255,255,0.92);
  border-radius: 20px;
  padding: 24px 20px 26px;
  border: 1px solid rgba(177,214,189,0.8);
  box-shadow: 0 8px 24px rgba(10,40,22,0.05);
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.step-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-copy {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------
   League Handicap Comparison
--------------------- */

.rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.rule-card {
  background: rgba(255,255,255,0.92);
  border-radius: 22px;
  padding: 26px 22px;
  border: 1px solid rgba(177,214,189,0.8);
  box-shadow: 0 10px 28px rgba(10,40,22,0.06);
}

.rule-card.featured {
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(61,139,94,0.07), rgba(255,255,255,0.96));
}

.rule-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(61,139,94,0.12);
  color: var(--green-deep);
  margin-bottom: 12px;
}

.rule-title {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 6px;
}

.rule-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.rule-bullets { list-style: none; padding: 0; }

.rule-bullets li {
  font-size: 13px;
  color: var(--text-main);
  padding: 5px 0 5px 20px;
  position: relative;
  line-height: 1.55;
}

.rule-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
}

/* Callout banner */
.callout-banner {
  background: linear-gradient(135deg, var(--green-deep), #2d6a4f);
  border-radius: 22px;
  padding: 28px 32px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.callout-title {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  margin-bottom: 6px;
}

.callout-sub { font-size: 14px; opacity: 0.82; max-width: 480px; line-height: 1.6; }

.btn-callout {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

.btn-callout:hover { background: rgba(255,255,255,0.25); }

/* --------------------
   Pricing
--------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
  max-width: 720px;
}

.pricing-card {
  background: rgba(255,255,255,0.94);
  border-radius: 22px;
  padding: 28px 24px;
  border: 1px solid rgba(177,214,189,0.8);
  box-shadow: 0 12px 30px rgba(10,40,22,0.07);
}

.pricing-card.featured {
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(61,139,94,0.06), rgba(255,255,255,0.96));
  box-shadow: 0 14px 36px rgba(10,40,22,0.13);
}

.pricing-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.pricing-price {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 15px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.pricing-list { list-style: none; padding: 0; }

.pricing-list li {
  font-size: 13px;
  color: var(--text-main);
  padding: 6px 0 6px 22px;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid rgba(177,214,189,0.35);
}

.pricing-list li:last-child { border-bottom: none; }

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
}

/* --------------------
   Guide Steps (How It Works page)
--------------------- */

.guide-section {
  background: rgba(255,255,255,0.92);
  border-radius: 22px;
  padding: 26px 24px;
  border: 1px solid rgba(177,214,189,0.8);
  box-shadow: 0 8px 24px rgba(10,40,22,0.05);
  margin-bottom: 20px;
}

.guide-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.guide-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: white;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.guide-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.guide-steps { list-style: none; padding: 0; }

.guide-steps li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-main);
}

.guide-steps li .step-letter {
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  width: 18px;
}

/* Note card */
.note-card {
  background: rgba(61,139,94,0.07);
  border: 1px solid rgba(61,139,94,0.25);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 8px;
}

.note-card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--green-deep);
  margin-bottom: 6px;
}

.note-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------
   FAQ
--------------------- */

.faq-list { display: grid; gap: 16px; margin-top: 28px; }

.faq-item {
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(177,214,189,0.8);
  box-shadow: 0 8px 22px rgba(10,40,22,0.05);
}

.faq-q {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.faq-a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* --------------------
   Reviews
--------------------- */

.reviews-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 20px 72px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(61,139,94,0.09), rgba(245,244,239,0.85));
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(10,40,22,0.09);
}

.reviews-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.reviews-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.review-card {
  background: rgba(255,255,255,0.96);
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(177,214,189,0.9);
  box-shadow: 0 10px 26px rgba(9,40,22,0.07);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-main);
  text-align: left;
  position: relative;
  overflow: hidden;
  white-space: pre-line;
}

.review-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 100%; width: 4px;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
}

.review-card:nth-child(odd) {
  background: linear-gradient(135deg, rgba(232,223,196,0.2), rgba(255,255,255,0.96));
}

.review-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 2px;
}

.review-secondary {
  display: block;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
}

.hidden-review { display: none; }

.review-buttons {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.review-btn {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 26px rgba(10,40,22,0.3);
}

.review-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(10,40,22,0.42);
}

/* --------------------
   Support Form
--------------------- */

.form-card {
  background: rgba(255,255,255,0.94);
  border-radius: 22px;
  padding: 28px;
  border: 1px solid rgba(177,214,189,0.9);
  box-shadow: 0 18px 40px rgba(10,40,22,0.08);
  max-width: 600px;
}

.form-row { margin-bottom: 16px; }

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-main);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  font: inherit;
  border-radius: 12px;
  border: 1px solid rgba(140,185,155,0.9);
  padding: 10px 14px;
  font-size: 14px;
  background: rgba(255,255,255,0.9);
  color: var(--text-main);
  transition: border-color 0.15s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--green);
}

.form-row textarea { min-height: 120px; resize: vertical; }

.btn-submit {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(10,40,22,0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(10,40,22,0.38); }

/* --------------------
   Content (Privacy / Long-form)
--------------------- */

.content-block { max-width: 860px; }

.content-block h2 {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  color: var(--ink);
  margin: 36px 0 12px;
}

.content-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 8px;
}

.content-block p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 16px;
}

.content-block ul { padding-left: 20px; margin-bottom: 16px; }

.content-block ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 6px;
}

.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }

.inline-link { text-decoration: underline; text-underline-offset: 3px; }

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

footer {
  border-top: 1px solid rgba(177,214,189,0.8);
  background: rgba(245,247,244,0.95);
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  align-items: center;
}

.footer-inner a { text-decoration: underline; text-underline-offset: 3px; }

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 8px;
  text-align: center;
  width: 100%;
}

/* --------------------
   Utilities
--------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --------------------
   Hero App Icon Display
--------------------- */

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-app-display { text-align: center; }

.hero-app-icon {
  width: 140px;
  height: 140px;
  border-radius: 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.1);
  display: block;
  margin: 0 auto 14px;
}

.hero-app-label {
  font-size: 15px;
  font-weight: 600;
  color: white;
  opacity: 0.9;
  margin-bottom: 6px;
}

.hero-app-rating { font-size: 13px; color: #a8e6c1; opacity: 0.85; }

.hero-app-rating i { font-size: 11px; color: #ffd700; margin: 0 1px; }

.guide-number i, .step-number i { font-size: 16px; }

/* --------------------
   Responsive
--------------------- */

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  header { position: static; }
  .nav { flex-wrap: nowrap; }

  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 68px; right: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    padding: 12px 16px;
    z-index: 20;
    min-width: 180px;
  }

  .nav-links.show { display: flex; }
  .hamburger { display: flex; }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 56px 24px;
  }

  .hero-left { max-width: 100%; margin-bottom: 28px; }
  .hero-stats { justify-content: center; }
  .store-buttons { align-items: center; }

  .hero-right {
    width: 100%;
    order: -1;
  }
  .hero-app-icon {
    width: 100px;
    height: 100px;
  }

  .page-hero { padding: 44px 24px; }

  .features-grid,
  .steps-grid { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }

  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-section { border-radius: 0; box-shadow: none; }

  .rule-grid { grid-template-columns: 1fr; }

  .callout-banner { flex-direction: column; text-align: center; }
  .callout-banner .btn-callout { align-self: center; }

  .section { padding-inline: 16px; }
}

@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; }
}
