/* Shared styles for goscamper.com — consumer (/) and creator (/creators) pages.
   Visual language follows /merchants: system type, generous rhythm, brand
   colour used sparingly. */

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

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

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  --bg: #ffffff;
  --bg-off: #f5f5f7;
  --bg-dark: #121212;
  --bg-teal: #EBF5F6;

  --ink: #1d1d1f;
  --ink-muted: #6e6e73;
  --ink-on-dark: #f5f5f7;
  --ink-muted-dark: #a1a1a6;
  --line: rgba(0, 0, 0, 0.08);

  --teal: #077A8A;
  --teal-bright: #5ac8e0;
  --coral: #E86B47;
  --coral-dark: #d65a36;

  --radius: 20px;
  --max: 1080px;
  --max-narrow: 720px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Nav ─────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand { flex-shrink: 0; }
.nav-brand img { height: 81px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 17px; }
.nav-links a { color: var(--ink); opacity: 0.75; transition: opacity .2s, color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { font-weight: 650; color: var(--teal); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1) !important; }
.nav-sub { font-size: 15px; padding-left: 26px; border-left: 1px solid var(--line); }
.show-sm { display: none; }
.nav-pill {
  font-size: 15px; font-weight: 600; color: #fff !important; opacity: 1 !important;
  background: var(--teal); padding: 9px 18px; border-radius: 999px;
}
@media (max-width: 860px) {
  .nav-links { gap: 20px; font-size: 16px; }
  .nav-sub { display: none; }
}
@media (max-width: 640px) {
  .nav-links { gap: 16px; font-size: 15px; }
  .nav-links .hide-sm { display: none; }
  .nav-links .show-sm { display: inline; }
  .nav-pill { font-size: 14px; padding: 8px 14px; }
  .nav-inner { height: 72px; }
  .nav-brand img { height: 57px; }
}

/* ── Layout ──────────────────────────────────────────────────────── */

.section { padding: 112px 20px; position: relative; overflow: hidden; }
.section--off { background: var(--bg-off); }
.section--teal { background: var(--bg-teal); }
.section--dark { background: var(--bg-dark); color: var(--ink-on-dark); }
.container { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: var(--max-narrow); margin: 0 auto; }
.center { text-align: center; }
@media (max-width: 640px) { .section { padding: 80px 16px; } }

.eyebrow {
  font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--teal-bright); }

.display {
  font-size: clamp(42px, 7vw, 76px); line-height: 1.04; font-weight: 700; letter-spacing: -0.03em;
}
.headline {
  font-size: clamp(32px, 5vw, 54px); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em;
}
.headline em, .display em { font-style: normal; color: var(--teal); display: block; }
.headline, .display { text-wrap: balance; }
.section--dark .headline em { color: var(--teal-bright); }

.lede {
  font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; color: var(--ink-muted); margin-top: 20px;
}
.section--dark .lede { color: var(--ink-muted-dark); }

.prose { font-size: 19px; line-height: 1.55; color: var(--ink); }
.prose p + p { margin-top: 18px; }
.prose .muted { color: var(--ink-muted); }
.section--dark .prose { color: var(--ink-on-dark); }

/* ── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--coral); color: #fff; font-weight: 600; font-size: 17px;
  padding: 14px 26px; border-radius: 999px; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--teal); padding-left: 4px; padding-right: 4px; }
.btn--ghost:hover { background: transparent; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 32px; }
.center .btn-row { justify-content: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--teal);
  background: var(--bg-teal); padding: 7px 14px; border-radius: 999px; margin-bottom: 24px;
}
.badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ── Hero ────────────────────────────────────────────────────────── */

.hero { padding: 72px 20px 96px; overflow: hidden; }
.hero-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero-copy .lede { max-width: 540px; }
.hero-art { display: flex; justify-content: center; position: relative; }
.hero-art::before {
  content: ''; position: absolute; inset: 8% -10% 0; z-index: -1;
  background: radial-gradient(closest-side, rgba(7,122,138,.16), transparent),
              radial-gradient(closest-side at 70% 80%, rgba(232,107,71,.14), transparent);
}
@media (max-width: 860px) {
  .hero { padding: 48px 16px 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-copy .btn-row { justify-content: center; }
}

/* ── Phone frame ─────────────────────────────────────────────────── */

.phone {
  width: 100%; max-width: 320px; aspect-ratio: 780 / 1690;
  background: #0b0b0c; border-radius: 48px / 48px; padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 2px #1d1d1f,
              0 40px 70px -24px rgba(0,0,0,.35), 0 14px 30px -14px rgba(0,0,0,.25);
  position: relative; flex-shrink: 0;
}
.phone img, .phone video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 39px; }
.phone--sm { max-width: 250px; border-radius: 38px; padding: 8px; }
.phone--sm img { border-radius: 31px; }

/* ── Feature trio ────────────────────────────────────────────────── */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card {
  background: var(--bg); border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--line);
}
.section--off .card { border-color: transparent; }
.section--dark .card { background: #1d1d1f; border-color: transparent; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--bg-teal); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 20px;
}
.section--dark .card-icon { background: rgba(90,200,224,.12); color: var(--teal-bright); }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { font-size: 16px; line-height: 1.55; color: var(--ink-muted); }
.section--dark .card p { color: var(--ink-muted-dark); }
.trio.quad { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .trio.quad { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .trio.quad { grid-template-columns: 1fr; } }

/* ── Walkthrough (row of phones with captions) ───────────────────── */

.walk {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 64px;
}
.walk figure { display: flex; flex-direction: column; align-items: center; text-align: center; }
.walk figcaption { margin-top: 24px; max-width: 250px; }
.walk .step { font-size: 13px; font-weight: 700; color: var(--teal); letter-spacing: .06em; text-transform: uppercase; }
.walk h3 { font-size: 19px; font-weight: 700; margin: 6px 0 6px; letter-spacing: -0.02em; }
.walk p { font-size: 15px; color: var(--ink-muted); line-height: 1.5; }
@media (max-width: 1000px) { .walk { grid-template-columns: repeat(2, 1fr); row-gap: 56px; } }
@media (max-width: 560px) {
  .walk {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px;
    margin-left: -16px; margin-right: -16px; padding: 0 16px 8px;
    scrollbar-width: none;
  }
  .walk::-webkit-scrollbar { display: none; }
  .walk figure { scroll-snap-align: center; flex: 0 0 78%; }
}

/* ── Split (text + phone) ────────────────────────────────────────── */

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.split--flip .split-art { order: -1; }
.split-art { display: flex; justify-content: center; }
.split .prose { margin-top: 24px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split--flip .split-art { order: 0; }
}

/* ── Checklist ───────────────────────────────────────────────────── */

.checks { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; font-size: 18px; line-height: 1.45; }
.checks li::before {
  content: ''; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--dark .checks li::before { background-color: var(--teal-bright); }

/* ── Comparison ──────────────────────────────────────────────────── */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.compare .card h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--ink-muted); margin-bottom: 18px;
}
.compare .card--us { background: var(--teal); color: #fff; }
.compare .card--us h4 { color: rgba(255,255,255,.75); }
.compare ul { list-style: none; display: grid; gap: 12px; }
.compare li { font-size: 17px; line-height: 1.45; padding-left: 26px; position: relative; }
.compare li::before { content: '–'; position: absolute; left: 4px; color: var(--ink-muted); }
.compare .card--us li::before { content: '✓'; color: #fff; font-weight: 700; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ── Money flow diagram (creators) ───────────────────────────────── */

.flow {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px;
  margin-top: 56px;
}
.flow-node {
  background: #1d1d1f; border-radius: var(--radius); padding: 24px 20px; text-align: center;
}
.flow-node strong { display: block; font-size: 18px; margin-bottom: 6px; }
.flow-node span { font-size: 14px; color: var(--ink-muted-dark); line-height: 1.45; display: block; }
.flow-node--you { background: var(--teal); }
.flow-node--you span { color: rgba(255,255,255,.85); }
.flow-arrow { color: var(--teal-bright); font-size: 24px; text-align: center; }
.flow-note {
  margin-top: 20px; text-align: center; font-size: 15px; color: var(--ink-muted-dark);
}
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
}

/* ── CTA block ───────────────────────────────────────────────────── */

.cta-block {
  background: linear-gradient(135deg, #077A8A 0%, #0a5f6c 100%); color: #fff;
  border-radius: 28px; padding: 72px 32px; text-align: center; max-width: var(--max); margin: 0 auto;
}
.cta-block .headline em { color: #ffd9cc; }
.cta-block .lede { color: rgba(255,255,255,.85); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-block .btn-row { justify-content: center; }
.cta-block .btn { background: #fff; color: var(--teal); }
.cta-block .btn:hover { background: #f1f1f1; }
.cta-block .btn--ghost { background: transparent; color: #fff; }
.cta-block .fine { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.7); }
@media (max-width: 640px) { .cta-block { padding: 56px 20px; border-radius: 22px; } }

/* ── Footer ──────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); padding: 32px 20px 48px; font-size: 13px; color: var(--ink-muted); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 28px;
  justify-content: space-between; align-items: center;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a:hover { color: var(--ink); }

/* ── Reveal on scroll ────────────────────────────────────────────── */

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Micro-interactions ──────────────────────────────────────────── */

.nav { transition: box-shadow .3s ease, background .3s ease; }
.nav.scrolled { box-shadow: 0 6px 24px -12px rgba(0,0,0,.18); }
.nav-brand img { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.nav-links a:not(.nav-pill) { position: relative; }
.nav-links a:not(.nav-pill)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-pill, .btn { transition: background .2s, color .2s, transform .2s cubic-bezier(.3,1.4,.5,1), box-shadow .2s; }
.btn:active, .nav-pill:active { transform: scale(.97); }

.card { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease; }
.card-icon { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }

/* Checklist: items cascade in, ticks pop. */
.reveal .checks li { opacity: 0; transform: translateX(-8px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(250ms + var(--i, 0) * 90ms); }
.reveal .checks li::before { transform: scale(.3); transition: transform .45s cubic-bezier(.3,1.8,.5,1); transition-delay: calc(350ms + var(--i, 0) * 90ms); }
.reveal.in .checks li { opacity: 1; transform: none; }
.reveal.in .checks li::before { transform: scale(1); }

/* Phones settle in, and the hero phone floats. */
.reveal .phone, .reveal.phone { transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal:not(.in) .phone, .reveal.phone:not(.in) { transform: scale(.96); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.hero-art .phone { animation: float 6s ease-in-out infinite; }

/* Money flow: nodes arrive in order, arrows nudge toward you. */
.flow.reveal .flow-node, .flow.reveal .flow-arrow { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.flow.reveal .flow-node:nth-child(1) { transition-delay: .15s; }
.flow.reveal .flow-arrow:nth-child(2) { transition-delay: .35s; }
.flow.reveal .flow-node:nth-child(3) { transition-delay: .5s; }
.flow.reveal .flow-arrow:nth-child(4) { transition-delay: .7s; }
.flow.reveal .flow-node:nth-child(5) { transition-delay: .85s; }
.flow.reveal.in .flow-node, .flow.reveal.in .flow-arrow { opacity: 1; transform: none; }
@keyframes nudge-x { 0%, 100% { translate: 0 0; } 50% { translate: 5px 0; } }
@keyframes nudge-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }
.flow.in .flow-arrow { animation: nudge-x 1.8s ease-in-out 1.4s infinite; }
@media (max-width: 760px) {
  .flow.in .flow-arrow { animation-name: nudge-y; }
  .flow.reveal.in .flow-arrow { transform: rotate(90deg); }
}

/* Badge dot: a soft ripple instead of a blink. */
.badge::before { animation: ripple 2.2s ease-out infinite; }
@keyframes ripple {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 45%, transparent); }
  70%, 100% { box-shadow: 0 0 0 8px transparent; }
}

/* FAQ answers ease open. */
.faq details[open] p { animation: faq-open .35s ease; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq summary { transition: color .2s; }

@media (hover: hover) and (pointer: fine) {
  .nav-brand:hover img { transform: rotate(-4deg) scale(1.05); }
  .nav-links a:not(.nav-pill):hover::after { transform: scaleX(1); }
  .nav-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(7,122,138,.6); }
  .btn:hover { box-shadow: 0 10px 22px -12px rgba(0,0,0,.35); }
  .btn--ghost:hover { box-shadow: none; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.28); }
  .section--dark .card:hover { box-shadow: 0 18px 40px -22px rgba(0,0,0,.8); }
  .card:hover .card-icon { transform: rotate(-6deg) scale(1.08); }
  .faq summary:hover { color: var(--teal); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal .checks li, .reveal .checks li::before, .reveal .phone,
  .flow.reveal .flow-node { opacity: 1; transform: none; }
  .flow.reveal .flow-arrow { opacity: 1; }
  .reveal:not(.in) .phone { transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Hero photo (restaurants) ────────────────────────────────────── */

.hero-photo { margin: 56px auto 0; max-width: var(--max); }
.hero-photo img {
  width: 100%; height: auto; border-radius: 28px;
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.35);
}
@media (max-width: 640px) { .hero-photo { margin-top: 40px; } .hero-photo img { border-radius: 18px; } }

/* ── FAQ ─────────────────────────────────────────────────────────── */

.faq { margin-top: 48px; display: grid; gap: 12px; }
.faq details {
  background: var(--bg); border-radius: 16px; padding: 0 24px;
  border: 1px solid var(--line);
}
.section--off .faq details { border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative;
  font-size: 18px; font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--teal); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-muted); font-size: 16px; line-height: 1.6; }
@media (max-width: 640px) {
  .faq details { padding: 0 18px; }
  .faq summary { font-size: 16px; }
}

/* ── Responsive hardening ────────────────────────────────────────── */

body { overflow-x: clip; }
h1, h2, h3, p, li, summary { overflow-wrap: break-word; }
.btn { max-width: 100%; text-align: center; justify-content: center; }

@media (min-width: 1600px) {
  :root { --max: 1200px; }
  .phone { max-width: 340px; }
}

@media (max-width: 380px) {
  .nav-inner { padding: 0 14px; gap: 10px; }
  .nav-brand img { height: 54px; }
  .nav-links { gap: 10px; font-size: 14px; }
  .nav-pill { padding: 7px 10px; font-size: 13px; }
  .display { font-size: 36px; }
  .headline { font-size: 29px; }
  .lede { font-size: 18px; }
  .section { padding: 64px 14px; }
  .hero { padding: 40px 14px 56px; }
  .card { padding: 26px 22px; }
  .btn { font-size: 16px; padding: 13px 22px; }
  .cta-block { padding: 48px 18px; }
  .walk figure { flex-basis: 84%; }
}

@media (max-width: 340px) {
  .nav-inner { padding: 0 10px; gap: 8px; }
  .nav-links { gap: 8px; font-size: 13px; }
  .nav-pill { padding: 6px 9px; font-size: 12px; }
}
