/* Gone Surfing — landing page styles */
:root {
  --crimson: #b91d47;
  --crimson-dark: #8f1636;
  --crimson-light: #e04a72;
  --bg: #12080d;
  --bg-card: #1e1016;
  --bg-elevated: #2a161f;
  --text: #f7eef2;
  --text-dim: #c3aab4;
  --border: #3d2230;
  --radius: 16px;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--crimson-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 8, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: var(--maxw); margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.nav-brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--crimson); color: #fff !important; padding: 8px 18px;
  border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--crimson-light); }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 999px; font-size: 17px; font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--crimson); color: #fff; box-shadow: 0 8px 28px rgba(185, 29, 71, .45); }
.btn-primary:hover { background: var(--crimson-light); }
.btn-secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(185, 29, 71, .35), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 16px; font-size: 14px; color: var(--text-dim);
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--crimson-light); }
.hero .sub { font-size: 19px; color: var(--text-dim); margin-bottom: 28px; max-width: 540px; }
@media (max-width: 860px) { .hero .sub { margin-inline: auto; } }
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
@media (max-width: 860px) { .hero-ctas { justify-content: center; } }
.hero-proof { display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-dim); font-size: 14px; }
@media (max-width: 860px) { .hero-proof { justify-content: center; } }
.hero-proof strong { color: var(--text); }
.hero-phone { max-width: 320px; margin: 0 auto; filter: drop-shadow(0 24px 60px rgba(185, 29, 71, .3)); border-radius: 24px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, #180b11 50%, var(--bg) 100%); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .kicker {
  text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700;
  color: var(--crimson-light); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 17px; }

/* ---------- Screenshots ---------- */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 62vw);
  gap: 20px; overflow-x: auto; padding: 10px 4px 24px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots figure { scroll-snap-align: center; }
.shots img { border-radius: 20px; border: 1px solid var(--border); }
.shots figcaption { text-align: center; font-size: 14px; color: var(--text-dim); margin-top: 10px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.step .num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--crimson);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #fff; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.feature-row:last-child { margin-bottom: 0; }
@media (max-width: 820px) { .feature-row { grid-template-columns: 1fr; } .feature-row.reverse .feature-media { order: -1; } }
.feature-row.reverse .feature-media { order: -1; }
@media (max-width: 820px) { .feature-row .feature-media { order: -1; } }
.feature-media img { max-width: 300px; margin: 0 auto; border-radius: 22px; border: 1px solid var(--border); }
.feature-copy h3 { font-size: 26px; margin-bottom: 12px; letter-spacing: -0.01em; }
.feature-copy p { color: var(--text-dim); margin-bottom: 14px; }
.feature-copy ul { list-style: none; }
.feature-copy li { padding-left: 26px; position: relative; margin-bottom: 8px; color: var(--text-dim); }
.feature-copy li::before { content: "✓"; color: var(--crimson-light); position: absolute; left: 0; font-weight: 700; }

/* ---------- Guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s ease, transform .15s ease;
}
.guide-card:hover { border-color: var(--crimson); transform: translateY(-3px); text-decoration: none; }
.guide-card .tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--crimson-light); }
.guide-card h3 { font-size: 17px; color: var(--text); line-height: 1.35; }
.guide-card p { font-size: 14px; color: var(--text-dim); flex: 1; }
.guide-card .read { font-size: 14px; font-weight: 600; color: var(--crimson-light); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 17px;
  list-style: none; position: relative; padding-right: 52px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--crimson-light); font-weight: 400;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list .faq-body { padding: 0 24px 20px; color: var(--text-dim); font-size: 15px; }
.faq-body a { font-weight: 600; }

/* ---------- CTA ---------- */
.cta-final {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(185, 29, 71, .18));
  border-top: 1px solid var(--border);
}
.cta-final .icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 12px 40px rgba(185, 29, 71, .4); }
.cta-final h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-final p { color: var(--text-dim); font-size: 18px; margin-bottom: 30px; }

/* ---------- App Store badge ---------- */
.appstore-badge {
  display: inline-block; line-height: 0; border-radius: 8px;
}
.appstore-badge img { display: block; width: 120px; height: 40px; }
.appstore-badge:hover { text-decoration: none; transform: translateY(-2px); }

/* ---------- Footer ---------- */
footer.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; color: var(--text-dim); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; margin-bottom: 12px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-grid h4 { color: var(--text); font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-dim); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Guide article pages ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; }
.breadcrumbs { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }
.article h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 18px; }
.article .lede { font-size: 19px; color: var(--text-dim); margin-bottom: 32px; }
.article h2 { font-size: 26px; margin: 40px 0 14px; letter-spacing: -0.01em; }
.article h3 { font-size: 20px; margin: 28px 0 10px; }
.article p { margin-bottom: 16px; color: var(--text-dim); }
.article strong { color: var(--text); }
.article ul, .article ol { margin: 0 0 16px 24px; color: var(--text-dim); }
.article li { margin-bottom: 8px; }
.article figure { margin: 28px auto; max-width: 300px; }
.article figure img { border-radius: 20px; border: 1px solid var(--border); }
.article figcaption { font-size: 13px; color: var(--text-dim); text-align: center; margin-top: 8px; }
.article .callout {
  background: var(--bg-card); border: 1px solid var(--crimson-dark); border-left: 4px solid var(--crimson);
  border-radius: 12px; padding: 20px 22px; margin: 28px 0;
}
.article .callout p:last-child { margin-bottom: 0; }
.article-cta {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center; padding: 36px 28px; margin-top: 48px;
}
.article-cta img.icon { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px; }
.article-cta h2 { margin: 0 0 10px; font-size: 24px; }
.article-cta p { margin-bottom: 22px; }
.related { margin-top: 48px; }
.related h2 { font-size: 22px; margin-bottom: 18px; }
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.related li::before { content: "→"; position: absolute; left: 0; color: var(--crimson-light); }

.compare-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.compare-table th { text-align: left; padding: 12px; border-bottom: 2px solid var(--border); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
.compare-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { white-space: nowrap; }
.compare-table a { color: var(--crimson-light); text-decoration: none; }
.compare-table a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .compare-table { font-size: 14px; }
  .compare-table th, .compare-table td { padding: 10px 8px; }
  .compare-table td:first-child { white-space: normal; }
}
