/* golfcappie.com. The app's dark theme and fonts; no framework. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/Barlow-Regular.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/Barlow-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("../fonts/Barlow-Bold.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/BarlowCondensed-Bold.ttf") format("truetype"); }

:root {
  --bg: #0b110e;
  --band: #101814;
  --band-line: #1f2a24;
  --s1: #141c18;
  --s2: #1c2621;
  --line: #29352f;
  --field-line: #3a4a41;
  --fg: #edf3ef;
  --body: #b9c8bf;
  --mut: #98ab9f;
  --acc: #4fc68c;
  --acc-hover: #7ad9a9;
  --acc-ink: #04190f;
  --amb: #f2b24c;
  --promo: #13241b;
  --promo-line: #25543a;
  --danger: #ff8a7a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

a { color: var(--acc); }
a:hover { color: var(--acc-hover); }

img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 24px 24px 72px; }

h1, h2 { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; }
h2 { font-size: clamp(32px, 4vw, 44px); }
h3 { font-size: 19px; margin: 0; }
p { margin: 0; }

.lead { font-size: 19px; color: var(--body); max-width: 520px; }
.body { color: var(--body); }
.small { font-size: 14px; color: var(--mut); }

/* Header and footer */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.brand:hover { color: var(--fg); }
.brand span { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 24px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-weight: 600; font-size: 15px; }
.site-nav a { color: var(--mut); text-decoration: none; }
.site-nav a:hover { color: var(--fg); }
.site-nav a.button { color: var(--acc-ink); }

.site-footer { border-top: 1px solid var(--band-line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--mut); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--mut); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px; border-radius: 12px;
  background: var(--acc); color: var(--acc-ink); border: 0;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--acc-hover); color: var(--acc-ink); }
.button.small-button { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 15px; }
.button.secondary { background: var(--s2); color: var(--fg); border: 1px solid var(--line); font-weight: 600; }
.button.secondary:hover { background: var(--line); color: var(--fg); }
.button[disabled] { opacity: 0.6; cursor: default; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Home */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.badge { align-self: flex-start; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--s1); color: var(--amb); font-size: 14px; font-weight: 600; }
.hero-phones { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; align-items: flex-end; }
.phone { flex-shrink: 0; border-radius: 36px; padding: 8px; background: var(--s2); border: 1px solid var(--line); }
.phone img { width: 100%; height: auto; border-radius: 28px; }
.phone.front { width: 250px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); position: relative; z-index: 2; }
.phone.back { width: 220px; margin-left: -40px; margin-bottom: 40px; border-radius: 32px; padding: 7px; opacity: 0.92; }
.phone.back img { border-radius: 25px; }

.band { background: var(--band); border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
.section { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.section-intro { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.section-intro p { font-size: 18px; color: var(--body); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { padding: 22px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.feature p { font-size: 15px; color: var(--body); }
.feature svg { width: 28px; height: 28px; stroke: var(--acc); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 24px; }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
/* height: auto, or the img's height attribute wins over its width and stretches it */
.shots img { width: 100%; max-width: 280px; height: auto; border-radius: 24px; border: 1px solid var(--line); }
.shots figcaption { text-align: center; font-size: 15px; color: var(--body); }
.shots strong { display: block; color: var(--fg); font-size: 16px; }

/* Screenshots with Google Maps imagery: a tighter bottom-left corner so it doesn't clip the Google
   attribution, which must stay visible */
.phone img.map-attribution, .shots img.map-attribution { border-bottom-left-radius: 8px; }

.promo { padding: 40px 32px; border-radius: 20px; background: var(--promo); border: 1px solid var(--promo-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 72px; }
.promo-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.promo-text h2 { font-size: 36px; }
.promo-text p { color: var(--body); }

/* Forms */
.page-intro { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.page-intro h1 { font-size: 44px; line-height: 1.05; }
.page-intro p { color: var(--body); }

form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, legend { font-weight: 600; font-size: 15px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
input[type="email"], select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--field-line); background: var(--s1); color: var(--fg);
  font: inherit; font-size: 17px;
}
select { padding: 0 12px; }
input[type="email"]:focus, select:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: var(--acc); }
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 8px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { min-height: 54px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--field-line); background: var(--s1); display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.choice input { accent-color: var(--acc); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border: 2px solid var(--acc); background: var(--promo); }
.choice:has(input:focus-visible) { outline: 2px solid var(--acc); outline-offset: 2px; }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { min-height: 65px; }
.form-message { color: var(--danger); font-size: 15px; }
.form-message:empty { display: none; }

/* Messages */
.message { text-align: center; align-items: center; display: flex; flex-direction: column; gap: 16px; padding-top: 72px; }
.message h1 { font-size: 44px; }
.message svg { width: 64px; height: 64px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Privacy */
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose h1 { font-size: 44px; }
.prose h2 { font-size: 28px; margin-top: 16px; }
.prose p, .prose li { color: var(--body); }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 480px) {
  .phone.front { width: 210px; }
  .phone.back { width: 180px; margin-left: -50px; }
  .promo { padding: 28px 20px; }
}

.after-form { margin-top: 24px; }

/* The hidden attribute wins over display rules above */
[hidden] { display: none !important; }
.message > div { display: flex; flex-direction: column; gap: 12px; }
