/* Golf Mafia — golfmafiaapp.com
   Two inks on card stock: green for everything, red for money and the one number that matters,
   amber for anything provisional. Printed panels: square corners (3px), 1.5px rules, no shadows,
   no gradients on data. The same tokens as the app (GolfMafia/DesignSystem/Tokens/Ink.swift). */

@font-face { font-family: "Libre Bodoni"; src: url(/fonts/LibreBodoni-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Libre Bodoni"; src: url(/fonts/LibreBodoni-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Oswald; src: url(/fonts/Oswald-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Oswald; src: url(/fonts/Oswald-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Oswald; src: url(/fonts/Oswald-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Yellowtail; src: url(/fonts/Yellowtail-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #2F6642;
  --ink-muted: #5F8A6B;
  --ink-light: #8FAE95;
  --rule: #A9C9AD;
  --tint: #C9DBBF;
  --cream: #F6E8CF;
  --cream-mid: #EDD9B8;
  --cream-deep: #DCC29A;
  --red: #C4554D;
  --amber: #B7791F;
  --amber-tint: #F2D9A6;
  --team1: #4A78C8;
  --team2: #D9743A;
  --serif: "Libre Bodoni", Georgia, "Times New Roman", serif;
  --label: Oswald, "Helvetica Neue", Arial, sans-serif;
  --script: Yellowtail, "Brush Script MT", cursive;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 3px;
  --rule-w: 1.5px;
  --max: 1120px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  position: relative;
}
/* The stock's grain: a faint fibre over the cream, never over the data. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .40 0 0 0 0 .26 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 22px; }
li { margin: 0 0 .45em; }
strong { font-weight: 600; }
em { font-style: italic; }
hr { border: 0; border-top: var(--rule-w) solid var(--rule); margin: 32px 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

/* Type */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .4em; }
h1 { font-size: clamp(38px, 6vw, 62px); }
h2 { font-size: clamp(30px, 4.2vw, 42px); }
h3 { font-size: 22px; line-height: 1.25; }
.label, .kicker, .tag, .eyebrow, .btn, .nav a, .breadcrumbs, .step .num, .trust li, .fine, .footer-head {
  font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; line-height: 1.3;
}
.kicker { color: var(--ink-muted); margin: 0 0 14px; }
.eyebrow { color: var(--ink-muted); margin: 0 0 12px; }
.script { font-family: var(--script); font-weight: 400; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; color: var(--red); letter-spacing: 0; text-transform: none; }
.lede { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; color: var(--ink); max-width: 620px; }
.muted { color: var(--ink-muted); }
.red { color: var(--red); }
.num-big { font-family: var(--label); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: .01em; }

/* The press misregistration: the second plate a hair off, a fringe on the letters, never a shadow. */
.misreg { text-shadow: 0.022em 0.018em 0 var(--red); }

/* Panels and rules */
.panel {
  background: rgba(246, 232, 207, .55);
  border: var(--rule-w) solid var(--ink); border-radius: var(--radius);
  padding: 22px 24px;
}
.double { position: relative; }
.double::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--rule); border-radius: 2px; pointer-events: none; }
.plate { border: 3px solid var(--ink); border-radius: var(--radius); position: relative; }
.plate::after { content: ""; position: absolute; inset: 3px; border: .75px solid var(--ink); border-radius: 1px; pointer-events: none; }
.hairline { border-top: 1px solid var(--rule); }

/* Buttons: the app's GMButton. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: var(--rule-w) solid var(--ink); border-radius: var(--radius);
  color: var(--ink); background: transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn.fill { background: var(--ink); color: var(--cream); }
.btn.fill:hover { background: #24523A; color: var(--cream); }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { width: 168px; height: 56px; }
.store-badge:hover { opacity: .88; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 232, 207, .92); backdrop-filter: saturate(140%) blur(6px); border-bottom: var(--rule-w) solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; letter-spacing: .14em; }
.nav a:hover { color: var(--red); }
.nav .btn { min-height: 38px; padding: 0 14px; }
.nav-toggle { display: none; background: none; border: var(--rule-w) solid var(--ink); border-radius: var(--radius); width: 42px; height: 38px; color: var(--ink); font: 600 13px var(--label); letter-spacing: .1em; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: var(--rule-w) solid var(--ink); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-top: 1px solid var(--rule); }
  .nav a:first-child { border-top: 0; }
  .nav .btn { margin-top: 10px; border-top: var(--rule-w) solid var(--ink); }
}

/* Hero */
.hero { padding: 56px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0 16px; }
.hero-note { font-size: 15px; color: var(--ink-muted); margin: 0; }
.hero-shot { justify-self: center; width: min(100%, 360px); }
.hero-shot img { width: 100%; }
@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-shot { width: min(100%, 300px); }
}

/* Trust strip */
.trust { padding: 10px 0 0; }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 28px; border-top: var(--rule-w) solid var(--ink); border-bottom: var(--rule-w) solid var(--ink); }
.trust li { letter-spacing: .12em; color: var(--ink); }
.trust li::before { content: "■"; color: var(--red); margin-right: 8px; font-size: 9px; vertical-align: 2px; }

/* Sections */
section { padding: 64px 0; }
section.tight { padding-top: 40px; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { font-size: 18px; color: var(--ink); }

/* Download / pricing */
.price-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.price-card h3 { font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; color: var(--ink-muted); margin-bottom: 14px; }
.price-card .amount { font-family: var(--label); font-weight: 700; font-size: 54px; line-height: 1; color: var(--red); margin: 6px 0 4px; }
.price-card .amount small { font-size: 18px; font-weight: 600; letter-spacing: .08em; color: var(--ink-muted); margin-left: 6px; }
.price-card .per { font-size: 15px; color: var(--ink-muted); margin-bottom: 14px; }
.price-card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.price-card li { padding: 9px 0; border-top: 1px solid var(--rule); }
.price-card li:first-child { border-top: 0; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* Screenshots */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.gallery figure { flex: 0 0 min(78vw, 300px); scroll-snap-align: center; margin: 0; }
.gallery img { width: 100%; border: var(--rule-w) solid var(--ink); border-radius: var(--radius); }
.gallery figcaption, .shot figcaption { font-size: 14px; color: var(--ink-muted); margin-top: 10px; line-height: 1.4; }
@media (min-width: 900px) {
  .gallery { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 0; margin: 0; }
  .gallery figure { flex: none; }
}
.gallery.ipad figure { flex-basis: min(86vw, 420px); }
@media (min-width: 900px) { .gallery.ipad { grid-template-columns: repeat(2, 1fr); } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { border-top: var(--rule-w) solid var(--ink); padding-top: 18px; }
.step .num { display: inline-block; color: var(--red); margin-bottom: 10px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 16px; margin: 0; }
.step img { width: 100%; margin: 18px 0 0; border: var(--rule-w) solid var(--ink); border-radius: var(--radius); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { border: var(--rule-w) solid var(--ink); border-radius: var(--radius); padding: 20px 20px 18px; background: rgba(246, 232, 207, .5); }
.feature .eyebrow { margin-bottom: 8px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* The two bets */
.bets { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bet { border: var(--rule-w) solid var(--ink); border-radius: var(--radius); padding: 20px 22px; }
.bet .stake { font-family: var(--label); font-weight: 700; font-size: 40px; color: var(--red); line-height: 1; margin: 4px 0 10px; }
.bet .stake small { font-size: 13px; letter-spacing: .14em; color: var(--ink-muted); font-weight: 600; margin-left: 6px; }
@media (max-width: 680px) { .bets { grid-template-columns: 1fr; } }

/* Guides */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border: var(--rule-w) solid var(--ink); border-radius: var(--radius); padding: 18px 20px 16px; background: rgba(246, 232, 207, .5); }
.guide-card:hover { background: var(--tint); color: var(--ink); }
.guide-card .tag { color: var(--ink-muted); font-size: 11.5px; margin-bottom: 10px; }
.guide-card h3 { font-size: 19px; margin-bottom: 8px; }
.guide-card p { font-size: 15px; color: var(--ink); margin: 0 0 14px; flex: 1; }
.guide-card .more { font-family: var(--label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 12.5px; color: var(--red); }
@media (max-width: 900px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guide-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 16px 36px 16px 0; font-weight: 600; font-size: 17.5px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font: 600 22px var(--label); color: var(--ink-muted); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 18px; }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin: 0; }
.learn { font-family: var(--label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; text-decoration: none; color: var(--red); white-space: nowrap; }
.learn:hover { text-decoration: underline; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--cream); padding: 60px 0; }
.cta-band h2 { color: var(--cream); }
.cta-band p { color: var(--cream); }
.cta-band .lede { color: var(--cream); opacity: .92; }
.cta-band .fine { color: var(--tint); margin-top: 16px; letter-spacing: .12em; }
.cta-band a { color: var(--cream); }
.cta-band .btn { border-color: var(--cream); color: var(--cream); }
.cta-band .btn:hover { background: var(--cream); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 24px; }

/* Footer */
.site-footer { padding: 44px 0 36px; border-top: var(--rule-w) solid var(--ink); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-head { color: var(--ink-muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Guide articles */
.article-head { padding: 40px var(--gutter) 8px; max-width: calc(760px + 2 * var(--gutter)); }
.article, .related { max-width: calc(760px + 2 * var(--gutter)); }
.breadcrumbs { color: var(--ink-muted); letter-spacing: .12em; font-size: 12px; margin-bottom: 18px; }
.breadcrumbs a { text-decoration: none; color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--red); }
.article { padding: 8px var(--gutter) 40px; }
.article h2 { font-size: clamp(26px, 3.4vw, 32px); margin: 44px 0 14px; padding-top: 18px; border-top: var(--rule-w) solid var(--ink); }
.article h3 { font-size: 21px; margin: 28px 0 10px; }
.article p, .article li { font-size: 17.5px; line-height: 1.6; }
.article .lede { font-size: 20px; }
.article ol li, .article ul li { margin-bottom: .6em; }
.tip { border: var(--rule-w) dashed var(--amber); background: rgba(242, 217, 166, .45); border-radius: var(--radius); padding: 16px 18px; margin: 24px 0; }
.tip .eyebrow { color: var(--amber); margin-bottom: 6px; }
.tip p { margin: 0; font-size: 16.5px; }
.app-callout { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; border: var(--rule-w) solid var(--ink); border-radius: var(--radius); padding: 20px; margin: 32px 0; background: rgba(246, 232, 207, .55); }
.app-callout img.icon { width: 56px; height: 56px; border-radius: 12px; }
.app-callout h3 { margin: 0 0 6px; font-size: 20px; }
.app-callout p { margin: 0 0 12px; font-size: 16px; }
.shot { margin: 30px 0; }
.shot img { border: var(--rule-w) solid var(--ink); border-radius: var(--radius); width: 100%; max-width: 320px; }
.shot.wide img { max-width: 100%; }
.related { padding: 0 var(--gutter) 56px; }
.related h2 { font-size: 26px; margin-bottom: 18px; }
.related .guide-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .related .guide-grid { grid-template-columns: 1fr; } }
.rules-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 16px; }
.rules-table th, .rules-table td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--rule); vertical-align: top; }
.rules-table th { font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--ink-muted); border-top: var(--rule-w) solid var(--ink); }
.rules-table tr:last-child td { border-bottom: var(--rule-w) solid var(--ink); }
.rules-table .money { font-family: var(--label); font-weight: 700; color: var(--red); white-space: nowrap; }
code { font: 14.5px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: rgba(47, 102, 66, .08); padding: 1px 5px; border-radius: 2px; }
@media (max-width: 640px) {
  .rules-table thead, .rules-table th { display: none; }
  .rules-table, .rules-table tbody, .rules-table tr, .rules-table td { display: block; width: 100%; }
  .rules-table tr { border-top: var(--rule-w) solid var(--ink); padding: 12px 0; }
  .rules-table tr:last-child { border-bottom: var(--rule-w) solid var(--ink); }
  .rules-table td { border: 0; padding: 3px 0; }
  .rules-table td:first-child { font-weight: 600; font-size: 17px; }
  .rules-table td[data-label]::before { content: attr(data-label); display: block; font: 600 11px var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1px; }
  .rules-table .money { display: inline-block; }
}

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
