/* Big Air Surf — marketing one-pager
   Pencil-on-paper palette: warm cream paper, graphite ink, a teal accent
   for actionable elements, and a sunset orange for the primary CTA. */

@font-face {
  font-family: "Patrick Hand";
  src: url("../assets/fonts/PatrickHand-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f1e4;
  --paper-alt: #efe6cf;
  --ink: #2b2a26;
  --ink-soft: #5b574c;
  --line: #d8cdae;
  --accent: #1f6f73;
  --accent-dark: #154f52;
  --sun: #e07a3f;
  --sun-dark: #c15f2b;
  --shadow: 0 10px 24px rgba(43, 42, 38, 0.12);
  --radius: 18px;
  --hand: "Patrick Hand", "Segoe Print", "Bradley Hand", cursive;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Used by the GTM noscript fallback instead of an inline style attribute,
   so the Content-Security-Policy's style-src doesn't need 'unsafe-inline'. */
.gtm-noscript-frame { display: none; visibility: hidden; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--hand);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); text-align: center; }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--accent-dark); }

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

/* --- Header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(246, 241, 228, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 1.4rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--accent-dark); }

.nav-cta {
	background: var(--sun);
	color: #fff !important;
	padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--sun-dark); }

.coming-soon {
	cursor: default;
	opacity: 0.72;
}

.nav-cta.coming-soon:hover { background: var(--sun); }

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--sun);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: var(--sun-dark); transform: translateY(-2px); }

.btn-small { padding: 0.6rem 1.2rem; font-size: 0.95rem; }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }

.apple-mark { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* --- Hero --- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center bottom;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}

.hero-clouds { position: absolute; inset: 0; pointer-events: none; }

.cloud {
  position: absolute;
  opacity: 0.85;
  width: 220px;
}

.cloud-a { top: 8%; left: -5%; animation: drift 70s linear infinite; }
.cloud-b { top: 18%; left: 40%; width: 160px; animation: drift 95s linear infinite reverse; }
.cloud-c { top: 6%; left: 70%; width: 190px; animation: drift 82s linear infinite; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(60px); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: center;
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.hero-sub { font-size: 1.15rem; max-width: 520px; margin-inline: auto; }

.cta-row { margin: 1.6rem 0 0.8rem; display: flex; justify-content: center; }

.hero-note { font-size: 0.9rem; color: var(--ink-soft); }

.hero-rider {
  position: absolute;
  right: 6%;
  bottom: 6%;
  width: clamp(140px, 18vw, 260px);
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.15));
  z-index: 2;
}

/* --- Sections --- */

.section {
  padding: 5rem 1.5rem;
  max-width: 1080px;
  margin-inline: auto;
  scroll-margin-top: 76px; /* clears the sticky header on anchor-jump */
}

.section-alt { background: var(--paper-alt); max-width: none; }
.section-alt > * { max-width: 1080px; margin-inline: auto; }

.section-lede {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

.section-footnote {
  text-align: center;
  max-width: 640px;
  margin: 2rem auto 0;
  font-size: 0.98rem;
}

/* --- Step cards (how it works) --- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: url("../assets/images/panel_paper.png") center / 100% 100% no-repeat;
  padding: 2.2rem 1.4rem 1.6rem;
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-card img { height: 90px; width: auto; margin-bottom: 0.75rem; }
.step-card h3 { margin-bottom: 0.4rem; }
.step-card p { font-size: 0.92rem; margin-bottom: 0; }

/* --- Riders --- */

.rider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 760px;
  margin: 0 auto;
}

.rider-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.rider-card img { height: 120px; width: auto; margin: 0 auto 1rem; }

/* --- Fair play --- */

.fair-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.fair-item { text-align: center; }

.fair-icon { height: 64px; width: auto; margin: 0 auto 1rem; }
.fair-icon-paper { height: 60px; width: 60px; border-radius: 14px; box-shadow: var(--shadow); }

/* --- Final CTA --- */

.final-cta {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem;
}

.final-cta h2 { color: #fff; }

.final-cta-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow);
}

.final-cta .cta-row,
.final-cta .btn { margin-top: 0; }

.final-cta .app-store-badge { margin-top: 1rem; }

/* --- Footer --- */

.site-footer {
  background: var(--ink);
  color: #cfc9ba;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.brand-footer { color: #f6f1e4; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a,
.footer-link-btn {
  color: #cfc9ba;
  text-decoration: none;
  font-size: 0.92rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--body);
}

.footer-links a:hover,
.footer-link-btn:hover { color: #fff; }

.footer-fine {
  max-width: 1080px;
  margin: 1.5rem auto 0;
  font-size: 0.8rem;
  color: #9a9484;
}

/* --- Cookie banner --- */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: 720px;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.cookie-banner-copy { flex: 1 1 320px; }

.cookie-banner-copy p { margin: 0 0 0.6rem; font-size: 0.9rem; }

.cookie-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.cookie-category {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.cookie-category input[disabled] { cursor: not-allowed; }

.cookie-category em { font-style: normal; color: #9a9484; }

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}

/* --- Legal stub pages --- */

.legal-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.placeholder-flag {
  background: #fff4e0;
  border: 1px solid #e0c58a;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  color: #6b5116;
  font-weight: 600;
}

/* --- Responsive --- */

@media (max-width: 860px) {
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .fair-grid { grid-template-columns: 1fr; }
  .hero-rider { display: none; }
}

@media (max-width: 640px) {
  .site-nav { gap: 0.9rem; }
  .site-nav a:not(.nav-cta) { display: none; }
  .rider-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.6rem; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-end; }
}
