/* SideQuestr marketing site — design system */

:root {
  --bg:         #0A211D;
  --surface:    #13312C;
  --surface-2:  #1D473F;
  --text:       #FFFFFF;
  --text-muted: #A9C2BD;
  --text-dim:   #60857D;

  --accent:     #2E7D5A;
  --accent-2:   #22B160;
  --warm:       #D9A74A;
  --sky:        #6DC4F0;
  --ocean:      #4DA8DA;

  --cat-nature:    #2E9951;
  --cat-coastal:   #3894C7;
  --cat-food:      #E0822E;
  --cat-culture:   #1A8F82;
  --cat-adventure: #D16B2E;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --fs-body: 16px; --fs-small: 14px; --fs-lead: 19px;
  --fs-h3: 22px; --fs-h2: 28px; --fs-h1: 40px; --fs-hero: 56px;
  --lh-tight: 1.15; --lh-body: 1.55;

  --maxw: 1100px;
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 20px;
  --ease: cubic-bezier(.2,.7,.2,1); --dur: 180ms;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: var(--s-3);
  background: var(--surface);
  color: var(--text);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip:focus { left: var(--s-4); text-decoration: none; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

main { flex: 1; }

/* Header */
.site-header {
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--surface-2);
  background: var(--bg);
}
.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text);
  font-weight: 700;
  font-size: var(--fs-h3);
  letter-spacing: -0.3px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  justify-content: center;
  width: 100%;
}
.site-nav a {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: var(--s-2) var(--s-5);
  border-radius: 999px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
  border-color: var(--accent);
  background: var(--surface-2);
}
.site-nav a.active {
  color: var(--text);
  border-color: var(--accent);
}
.site-nav .nav-support {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}
.site-nav .nav-support:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--text);
}

/* Footer */
.site-footer {
  margin-top: var(--s-9);
  padding: var(--s-7) 0 var(--s-6);
  border-top: 1px solid var(--surface-2);
  color: var(--text-dim);
  font-size: var(--fs-small);
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  align-items: flex-start;
}
.site-footer nav {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.site-footer nav a { color: var(--text-muted); }
.site-footer nav a:hover { color: var(--text); }
.site-footer .copy { color: var(--text-dim); }
.site-footer .footer-email {
  color: var(--text-muted);
  font-weight: 500;
  word-break: break-all;
}
.site-footer .footer-email:hover { color: var(--accent-2); }

/* Typography */
h1, h2, h3 { line-height: var(--lh-tight); color: var(--text); font-weight: 700; }
h1 { font-size: var(--fs-h1); margin-bottom: var(--s-4); }
h2 { font-size: var(--fs-h2); margin-bottom: var(--s-4); margin-top: var(--s-7); }
h3 { font-size: var(--fs-h3); margin-bottom: var(--s-3); margin-top: var(--s-5); font-weight: 600; }
p { margin-bottom: var(--s-4); color: var(--text-muted); }
p.lead { font-size: var(--fs-lead); color: var(--text); }
ul, ol { margin-bottom: var(--s-4); padding-left: var(--s-5); color: var(--text-muted); }
li { margin-bottom: var(--s-2); }
strong { color: var(--text); font-weight: 600; }
code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Hero */
.hero {
  padding-top: var(--s-9);
  padding-bottom: var(--s-8);
  text-align: center;
}
.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--s-5);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.hero h1 {
  font-size: clamp(44px, 9vw, var(--fs-hero));
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--accent-2), var(--ocean));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: var(--s-4);
}
.hero .tagline {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto var(--s-4);
}
.hero .beta-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--accent-2) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 45%, transparent);
  color: var(--accent-2);
  padding: 6px var(--s-4);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 auto var(--s-6);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: var(--s-3) var(--s-6);
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--text);
}
.btn-primary:hover {
  background: var(--accent-2);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--surface-2);
}
.btn-ghost:hover {
  background: var(--surface);
  text-decoration: none;
}
.btn-block { width: 100%; max-width: 360px; }

/* Feature grid */
.features {
  padding: var(--s-7) 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--s-4);
  background: var(--surface-2);
}
.feature-card h3 {
  font-size: var(--fs-h3);
  margin: 0 0 var(--s-2);
  color: var(--text);
}
.feature-card p {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin: 0;
}
.feature-card .icon.nature    { background: color-mix(in srgb, var(--cat-nature) 20%, var(--surface)); color: var(--cat-nature); }
.feature-card .icon.coastal   { background: color-mix(in srgb, var(--cat-coastal) 20%, var(--surface)); color: var(--cat-coastal); }
.feature-card .icon.food      { background: color-mix(in srgb, var(--cat-food) 20%, var(--surface)); color: var(--cat-food); }
.feature-card .icon.culture   { background: color-mix(in srgb, var(--cat-culture) 20%, var(--surface)); color: var(--cat-culture); }
.feature-card .icon.adventure { background: color-mix(in srgb, var(--cat-adventure) 20%, var(--surface)); color: var(--cat-adventure); }
.feature-card .icon.warm      { background: color-mix(in srgb, var(--warm) 20%, var(--surface)); color: var(--warm); }

/* Screenshots */
.screenshots {
  padding-block: var(--s-8);
}
.screenshot-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  margin-top: var(--s-6);
  justify-items: center;
}
.screenshot-strip figure {
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.screenshot-strip img {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-2);
  background: var(--surface);
  aspect-ratio: 1179 / 2556;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.screenshot-strip figcaption {
  margin-top: var(--s-4);
  color: var(--text-muted);
  font-size: var(--fs-small);
  text-align: center;
  line-height: var(--lh-body);
  max-width: 300px;
}
.screenshot-strip figcaption strong { color: var(--text); display: block; margin-bottom: 2px; }

/* Beta callout */
.callout {
  margin: var(--s-8) 0;
  padding: var(--s-7) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-lg);
  text-align: center;
}
.callout h2 { margin-top: 0; }
.callout p { max-width: 520px; margin: 0 auto var(--s-5); }

/* Intro paragraph under hero */
.intro {
  padding-top: var(--s-6);
  padding-bottom: var(--s-4);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.intro p { font-size: var(--fs-lead); color: var(--text-muted); }

/* Section heading block */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--s-5);
}
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--text-muted); }

.section { padding-block: var(--s-8); }
.section.alt { background: color-mix(in srgb, var(--surface) 40%, var(--bg)); }

/* Download card (home) */
.download-card {
  margin: var(--s-8) auto;
  max-width: 620px;
  padding: var(--s-7) var(--s-5);
  background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--accent) 14%, var(--surface)));
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-lg);
  text-align: center;
}
.download-card h2 { margin-top: 0; }
.download-card p { max-width: 480px; margin: 0 auto var(--s-5); }
.download-card .support-line {
  margin-top: var(--s-5);
  font-size: var(--fs-small);
  color: var(--text-dim);
}
.download-card .support-line a { color: var(--text-muted); }
.download-card .support-line a:hover { color: var(--accent-2); }

/* Why use (reason grid) */
.reason-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.reason-item {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-md);
}
.reason-item h3 {
  font-size: var(--fs-lead);
  margin: 0 0 var(--s-2);
  color: var(--text);
}
.reason-item p { font-size: var(--fs-small); margin: 0; color: var(--text-muted); }

/* Support card — used on Help page */
.support-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-md);
  padding: var(--s-5) var(--s-5);
  margin-bottom: var(--s-6);
}
.support-card .label {
  font-size: var(--fs-small);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.support-card .email {
  font-size: var(--fs-h3);
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
}
.support-card .email:hover { color: var(--accent-2); text-decoration: none; }
.support-card p { margin: 0; font-size: var(--fs-small); }

/* Prose pages (legal/help/about) */
.prose {
  padding-top: var(--s-7);
  padding-bottom: var(--s-8);
  max-width: 760px;
  margin: 0 auto;
}
.prose .meta {
  color: var(--text-dim);
  font-size: var(--fs-small);
  margin-bottom: var(--s-5);
}
.prose h2 { font-size: var(--fs-h2); }
.prose h3 { font-size: var(--fs-h3); color: var(--text); }
.prose p, .prose li { color: var(--text-muted); }
.prose a { color: var(--sky); }
.prose .summary-box {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-md);
  padding: var(--s-5) var(--s-5) var(--s-4);
  margin-bottom: var(--s-6);
}
.prose .summary-box h2 { margin-top: 0; font-size: var(--fs-h3); }
.prose .summary-box ul { margin-bottom: 0; }

/* Data table (privacy) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-5) 0;
  font-size: var(--fs-small);
}
.data-table th, .data-table td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--surface-2);
  vertical-align: top;
}
.data-table th {
  color: var(--text);
  font-weight: 600;
  background: var(--surface);
}
.data-table td { color: var(--text-muted); }
.data-table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-md);
  margin-bottom: var(--s-3);
  padding: var(--s-4) var(--s-5);
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  padding: var(--s-2) 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { content: "–"; }
.faq details > p, .faq details > ul { margin-top: var(--s-3); margin-bottom: 0; }

/* Contact big email */
.big-email {
  display: block;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-lg);
  padding: var(--s-7) var(--s-4);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--text);
  margin: var(--s-6) 0;
  word-break: break-all;
}
.big-email:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* 404 */
.error-page {
  text-align: center;
  padding: var(--s-9) var(--s-5);
}
.error-page h1 {
  font-size: clamp(40px, 8vw, 72px);
  background: linear-gradient(135deg, var(--accent-2), var(--ocean));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Responsive */
@media (min-width: 640px) {
  :root { --fs-h1: 48px; }
  .container { padding: 0 var(--s-5); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshot-strip { grid-template-columns: repeat(3, 1fr); }
  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-5);
  }
  .site-nav {
    width: auto;
    justify-content: flex-end;
    gap: var(--s-3);
  }
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  .hero-actions {
    display: flex;
    gap: var(--s-4);
    justify-content: center;
  }
}

@media (min-width: 960px) {
  :root { --fs-h1: 56px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 85%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
