/* ==========================================================================
   Next Play Marketplace: styles
   BRAND TOKENS: change colors, font and radius here to rebrand the site.
   ========================================================================== */

/* Brand typeface: M PLUS 1 (Google Fonts, loaded in each page <head>). Bold 700 headers, Medium 500 subheaders and body. */

:root {
  --color-primary: #174039;    /* dark green: headings, text, buttons, dark sections */
  --color-secondary: #009245;  /* bright green: accents, large text and decorative use only */
  --color-peach: #f1d2af;
  --color-turf: #b7d2b9;
  --color-ice: #bedde5;
  --color-beige: #f0eee3;
  --color-white: #ffffff;
  --color-bg: var(--color-beige);
  --color-border: color-mix(in srgb, var(--color-primary) 18%, transparent);
  --color-text: var(--color-primary);
  --color-text-muted: color-mix(in srgb, var(--color-primary) 82%, var(--color-beige));
  --color-error: #b42318;

  --font-sans: "M PLUS 1", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fw-body: 500;    /* body copy (Medium; Light read too faint) */
  --fw-medium: 500;  /* subheaders */
  --fw-bold: 700;    /* headers */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px color-mix(in srgb, var(--color-primary) 10%, transparent);
  --shadow-sm: 0 2px 8px color-mix(in srgb, var(--color-primary) 7%, transparent);
  --container: 1140px;
  --header-h: 114px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: var(--fw-body);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--color-primary); line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: var(--fw-bold); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: var(--fw-bold); }
h3 { font-size: 1.2rem; font-weight: var(--fw-medium); }
strong { font-weight: var(--fw-bold); }
p { margin: 0 0 1em; }
a { color: var(--color-primary); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--color-primary); color: var(--color-white); padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: var(--fw-medium); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-primary); background: var(--color-turf);
  padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow--light { background: var(--color-peach); }
.lead { font-size: 1.2rem; color: var(--color-primary); font-weight: var(--fw-body); }
.accent-text { color: var(--color-secondary); } /* large display text only (3:1 contrast on beige) */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--color-secondary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: inherit; font-weight: var(--fw-bold); font-size: 1rem; text-decoration: none;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--color-secondary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary); color: var(--color-beige); }
.btn-secondary { background: transparent; color: var(--color-primary); border-color: var(--color-secondary); }
.btn-secondary:hover { background: var(--color-secondary); color: var(--color-white); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: wait; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.cta-row--center { justify-content: center; }
.text-link { font-weight: var(--fw-bold); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--color-beige) 96%, transparent);
  border-bottom: 1px solid var(--color-border); backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; margin: 0; }
.logo-img { height: 60px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) { color: var(--color-primary); text-decoration: none; font-weight: var(--fw-medium); font-size: 0.97rem; }
.site-nav a:not(.btn):hover { color: var(--color-secondary); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  :root { --header-h: 99px; }
  .logo-img { height: 52px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle-bar { display: block; height: 2px; width: 100%; background: var(--color-primary); border-radius: 2px; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--color-beige); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1.25rem; }
  .site-nav li a:not(.btn) { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--color-border); }
  .site-nav li .btn { margin-top: 1rem; width: 100%; }
}
/* Without JS the toggle can't work, so always show links */
.no-js .site-nav { display: block; position: static; box-shadow: none; border: 0; }
.no-js .nav-toggle { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tint, .site-footer { --color-text-muted: var(--color-primary); } /* keeps muted text AA on Turf */
.section--tint { background: var(--color-turf); }
.section--tint .eyebrow { background: var(--color-peach); }
.section--dark { background: var(--color-primary); color: var(--color-beige); }
.section--dark h2 { color: var(--color-beige); }
.section--dark strong { color: var(--color-beige); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--color-text); font-size: 1.12rem; }
.section-head .section-tagline { font-weight: var(--fw-medium); font-size: 1.2rem; margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); background: var(--color-bg); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.hero-photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

.hero-visual {
  position: relative; min-height: 400px; border-radius: 24px; padding: 2rem;
  background:
    radial-gradient(circle at 85% 15%, var(--color-secondary) 0 90px, transparent 91px),
    radial-gradient(circle at 8% 92%, color-mix(in srgb, var(--color-ice) 35%, transparent) 0 70px, transparent 71px),
    var(--color-primary);
  overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 1rem;
}
.hero-visual::after { /* subtle field lines */
  content: ""; position: absolute; inset: auto -20% -45% -20%; height: 70%;
  border: 2px solid color-mix(in srgb, var(--color-beige) 12%, transparent); border-radius: 50%;
}
.gear-card {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 0.9rem;
  background: var(--color-beige); border-radius: var(--radius); padding: 0.9rem 1rem; box-shadow: 0 12px 28px color-mix(in srgb, black 22%, transparent);
  max-width: 340px;
}
.gear-card--1 { align-self: flex-start; }
.gear-card--2 { align-self: flex-end; }
.gear-card--3 { align-self: center; }
.gear-photo {
  flex: none; width: 64px; height: 64px; border-radius: 12px; object-fit: cover;
  background: var(--color-ice);
}
.gear-card > div { flex: 1; }
.gear-title { margin: 0; font-weight: var(--fw-medium); color: var(--color-primary); font-size: 0.98rem; line-height: 1.3; }
.gear-meta { margin: 0; font-size: 0.85rem; color: var(--color-text-muted); }
.gear-tag {
  font-weight: var(--fw-bold); color: var(--color-primary); font-size: 0.9rem;
  background: var(--color-peach); padding: 0.15rem 0.6rem; border-radius: 999px;
}
.gear-tag--free { background: var(--color-turf); }
.hero-visual-note {
  position: relative; z-index: 1; margin-top: 0.5rem; color: var(--color-beige); font-size: 0.9rem; font-weight: var(--fw-medium);
  display: flex; align-items: center; gap: 0.5rem;
}

/* ---------- Benefit cards ---------- */
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--color-beige); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 2rem 1.75rem; box-shadow: var(--shadow-sm);
}
.card p { color: var(--color-text-muted); margin: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--color-peach); color: var(--color-primary); margin-bottom: 1.25rem;
}
.card:nth-child(2) .card-icon { background: var(--color-turf); }
.card:nth-child(3) .card-icon { background: var(--color-ice); }
.card-icon svg { width: 26px; height: 26px; }

/* ---------- Marketplace preview ---------- */
.preview-shots { margin: 0 auto; max-width: 980px; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.phones:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 6px; border-radius: var(--radius); }
.phone-screen {
  aspect-ratio: 1 / 2; background: var(--color-beige); border: 8px solid var(--color-primary);
  border-radius: 28px; box-shadow: var(--shadow); overflow: hidden;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 20px; }
.phone-caption { text-align: center; font-size: 1rem; font-weight: var(--fw-medium); color: var(--color-primary); margin: 0.85rem 0 0; }

.preview-cta { text-align: center; margin-top: 2.75rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: none; }
.step { position: relative; padding: 0 0.25rem; }
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-beige); font-weight: var(--fw-bold); font-size: 1.25rem; margin-bottom: 1.25rem;
}
.step:not(:last-child)::after { /* connector line on desktop */
  content: ""; position: absolute; top: 26px; left: 70px; right: -1.5rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-secondary) 0 8px, transparent 8px 14px);
}
.step p { color: var(--color-text-muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq-item { background: var(--color-beige); border: 1px solid var(--color-border); border-radius: var(--radius); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.4rem; font-weight: var(--fw-medium); font-size: 1.1rem; color: var(--color-primary); border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-turf); font-weight: var(--fw-bold); font-size: 1.2rem; line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; }
.faq-item p { margin: 0; padding: 0 1.4rem 1.25rem; }

/* ---------- Mission ---------- */
.mission { max-width: 800px; }
.mission h2 { font-size: clamp(2rem, 4vw, 2.85rem); }
.mission-body { font-size: 1.12rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: start; }
.form-card {
  background: var(--color-beige); border: 1px solid var(--color-border); border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow);
}
.field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: var(--fw-medium); font-size: 0.95rem; color: var(--color-primary); margin-bottom: 0.4rem; }
.req { color: var(--color-error); }
.optional { font-weight: var(--fw-body); color: var(--color-text-muted); font-size: 0.85rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--color-text); background: var(--color-white);
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 45%, var(--color-beige)); border-radius: var(--radius-sm); padding: 0.75rem 0.85rem;
}
select { appearance: none; background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23174039' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0.8rem center / 16px no-repeat; padding-right: 2.5rem; }
textarea { resize: vertical; min-height: 0; } /* rows="3" sets the default height */
input:focus, select:focus, textarea:focus { border-color: var(--color-primary); }
input[aria-invalid="true"] { border-color: var(--color-error); }
.field-error { color: var(--color-error); font-size: 0.88rem; margin: 0.3rem 0 0; min-height: 0; }
.field-error:empty { display: none; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: 0.88rem; color: var(--color-text-muted); }
.form-status { color: var(--color-error); font-weight: var(--fw-medium); font-size: 0.95rem; }
.form-status:empty { display: none; }
.req-note { font-size: 0.82rem; color: var(--color-text-muted); margin: 0.75rem 0 0; text-align: center; }
.form-success { text-align: center; padding: 2rem 0.5rem; }
.form-success:focus { outline: none; }
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-turf); color: var(--color-primary); font-size: 2rem; font-weight: var(--fw-bold);
}
.form-success p { color: var(--color-text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-turf); border-top: 1px solid var(--color-border); padding: 3rem 0 1.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.logo--footer { margin-bottom: 0.75rem; }
.logo--footer .logo-img { height: 56px; }
.tagline { font-style: italic; color: var(--color-primary); font-weight: var(--fw-medium); margin-bottom: 0.25rem; }
.footer-line { color: var(--color-text-muted); font-size: 0.95rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.footer-nav a { color: var(--color-primary); font-weight: var(--fw-medium); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--color-border); margin-top: 2rem; padding-top: 1.25rem; }
.footer-bottom p { margin: 0; font-size: 0.88rem; color: var(--color-text-muted); }

/* ---------- Simple content pages (privacy, thank-you) ---------- */
.page { padding: clamp(3rem, 7vw, 5rem) 0; }
.page .container { max-width: 760px; }
.page h2 { font-size: 1.35rem; margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { min-height: 340px; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .step { padding-left: 4.5rem; }
  .step-num { position: absolute; left: 0; top: 0; }
  .step:not(:last-child)::after { top: 60px; left: 25px; right: auto; bottom: -1.75rem; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--color-secondary) 0 8px, transparent 8px 14px); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .cta-row .btn { width: 100%; }
  .hero-visual { padding: 1.25rem; }
  .gear-card { max-width: 100%; align-self: stretch !important; }
  /* Screenshots become a swipeable row so each one stays large enough to read */
  .phones {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem;
    margin: 0 -1.25rem; padding: 0.5rem 1.25rem 1rem; justify-content: flex-start;
  }
  .phone { flex: 0 0 72vw; max-width: 300px; scroll-snap-align: center; }
  .phone-screen { border-width: 6px; border-radius: 22px; }
  .phone-screen img { border-radius: 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .preview-cta .btn { width: 100%; }
}
