/* gtoshark.app — shared styles. Colours follow the app theme (AppTheme.swift):
   canvas #0E121C, action #3DDB8F, info #4DB8FA, premium #B880FA, streak #FF9433. */
:root {
  --canvas: #0E121C;
  --text: #F2F4F8;
  --text-2: #C9D0DC;
  --body: #B4BCCB;
  --muted: #A3ACBE;
  --action: #3DDB8F;
  --action-hover: #7DEBB5;
  --action-ink: #06231A;
  --info: #4DB8FA;
  --premium: #B880FA;
  --streak: #FF9433;
  --panel: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.08);
  --gutter: 80px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--text);
  font-family: ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--action); text-decoration: none; }
a:hover { color: var(--action-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }

.home {
  background: radial-gradient(900px 600px at 100% 0%, rgba(61, 219, 143, 0.10), rgba(14, 18, 28, 0) 70%), var(--canvas);
}

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.site-header.bordered { border-bottom: 1px solid var(--line); max-width: none; }
.site-header.bordered > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 22px; }
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 16px; font-weight: 700; }
.site-nav a { color: var(--text-2); }
.site-nav a:hover { color: var(--text); }
.site-nav .store-pill { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; background: var(--text); color: var(--canvas); font-weight: 800; }
.site-nav .store-pill:hover { color: var(--canvas); background: #FFFFFF; }
.back-link { font-size: 16px; font-weight: 700; color: var(--text-2); display: flex; align-items: center; min-height: 44px; }

/* Hero */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 64px; padding-top: 72px; padding-bottom: 96px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; flex: 1 1 620px; max-width: 620px; min-width: 0; }
.eyebrow { font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--action); }
.hero h1 { margin: 0; font-size: 64px; line-height: 1.04; font-weight: 900; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--body); }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.store-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 60px; padding: 0 26px; border-radius: 16px; background: var(--action); color: var(--action-ink); font-weight: 900; font-size: 19px; }
.store-button:hover { color: var(--action-ink); background: var(--action-hover); }
.store-button svg { width: 20px; height: 22px; flex: none; }
.facts { font-size: 15px; color: var(--muted); font-weight: 700; }

/* Range card */
.range-card { flex: 0 1 470px; width: 470px; max-width: 100%; min-width: 0; padding: 22px; border-radius: 24px; background: linear-gradient(160deg, #1B2233, #121724); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; gap: 14px; }
.pos-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); }
.pos-tabs button { height: 36px; border: 0; border-radius: 9px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 900; background: transparent; color: rgba(255, 255, 255, 0.72); }
.pos-tabs button[aria-pressed="true"] { background: var(--info); color: #000000; }
.range-stats { display: flex; justify-content: center; gap: 22px; padding: 9px 14px; border-radius: 10px; background: rgba(77, 184, 250, 0.16); border: 1px solid rgba(77, 184, 250, 0.3); font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.range-stats b { color: var(--text); font-weight: 900; font-variant-numeric: tabular-nums; }
.range-grid { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; }
.range-grid > div { aspect-ratio: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 800; white-space: nowrap; }
.range-grid .head { font-size: 10px; color: rgba(255, 255, 255, 0.47); }
.range-grid .cell { border-radius: 4px; font-size: 9px; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.47); }
.range-grid .cell.raise { background: rgba(61, 219, 143, 0.55); color: #FFFFFF; }
.legend { display: flex; justify-content: center; gap: 18px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.72); }
.legend span { display: flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.2); }
.swatch.raise { background: rgba(61, 219, 143, 0.55); }
.swatch.fold { background: rgba(255, 255, 255, 0.06); }

/* Sections */
.section { display: flex; flex-direction: column; gap: 32px; padding-top: 48px; padding-bottom: 96px; }
.section h2 { margin: 0; font-size: 40px; font-weight: 900; letter-spacing: -0.01em; }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-head p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--body); }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.panel { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.panel h3 { margin: 0; font-size: 21px; font-weight: 900; }
.panel p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.panel svg { width: 28px; height: 28px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 820px; }
.plan { gap: 10px; padding: 32px; }
.plan-name { font-size: 18px; font-weight: 800; color: var(--text-2); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price .amount { font-size: 44px; font-weight: 900; }
.plan-price .per { font-size: 17px; color: var(--muted); font-weight: 700; }
.plan-note { font-size: 16px; color: var(--muted); font-weight: 700; }
.plan.best { background: linear-gradient(160deg, rgba(61, 219, 143, 0.14), rgba(61, 219, 143, 0.04)); border-color: rgba(61, 219, 143, 0.45); }
.badge { font-size: 13px; font-weight: 900; color: var(--action-ink); background: var(--action); padding: 4px 10px; border-radius: 999px; }
.fine-print { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 900px; }

/* Legal pages */
.doc { width: 100%; max-width: 760px; margin: 0 auto; padding: 64px 0 80px; display: flex; flex-direction: column; gap: 28px; font-size: 17px; line-height: 1.65; color: var(--text-2); }
.doc h1 { margin: 0; font-size: 48px; line-height: 1.1; font-weight: 900; color: var(--text); }
.doc h2 { margin: 12px 0 0; font-size: 24px; line-height: 1.3; font-weight: 900; color: var(--text); }
.doc p { margin: 0; }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc .title-block { display: flex; flex-direction: column; gap: 10px; }
.doc .updated { font-size: 15px; color: var(--muted); font-weight: 700; }
.doc .intro { font-size: 19px; color: var(--body); }
.doc .small { font-size: 15px; color: var(--muted); }
.placeholder { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 20px; border: 2px dashed rgba(255, 196, 66, 0.6); background: rgba(255, 184, 66, 0.06); }
.placeholder .tag { font-size: 13px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #FFB842; }
.mail-card { display: flex; align-items: center; gap: 14px; padding: 28px; border-radius: 20px; background: rgba(61, 219, 143, 0.08); border: 1px solid rgba(61, 219, 143, 0.45); font-size: 28px; font-weight: 900; min-width: 0; }
.mail-card svg { width: 30px; height: 30px; flex: none; }
.mail-card span { min-width: 0; overflow-wrap: anywhere; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.info-grid .panel { gap: 6px; padding: 24px; }
.info-grid .label { font-size: 14px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.info-grid strong { font-weight: 800; color: var(--text); }

/* Footer */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.site-footer > .wrap { padding-top: 40px; padding-bottom: 48px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 40px; flex-wrap: wrap; }
.legal { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.legal .company { font-weight: 800; color: var(--text-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 700; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; }
.footer-nav a:not(.support-mail) { color: var(--text-2); }
.footer-nav a:not(.support-mail):hover { color: var(--text); }


/* Tablet */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .hero { flex-direction: column; align-items: stretch; gap: 40px; }
  .hero-copy { max-width: none; flex: none; }
  .range-card { align-self: center; flex: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone (layout reference: 390 px artboard) */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-header { padding-top: 18px; padding-bottom: 18px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .site-nav { gap: 0; font-size: 15px; font-weight: 800; }
  .site-nav .wide-only { display: none; }
  .site-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; }
  .hero { padding-top: 32px; padding-bottom: 48px; gap: 20px; }
  .hero-copy { gap: 20px; }
  .eyebrow { font-size: 13px; }
  .hero h1 { font-size: 38px; line-height: 1.08; }
  .lead { font-size: 17px; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 20px; }
  .store-button { height: 56px; font-size: 18px; gap: 10px; padding: 0 16px; }
  .store-button svg { width: 18px; height: 20px; }
  .facts { text-align: center; font-size: 14px; }
  .range-card { width: 100%; padding: 14px; }
  .section { gap: 14px; padding-top: 0; padding-bottom: 48px; }
  .section h2 { font-size: 28px; }
  .section-head p { font-size: 16px; }
  .features, .plans, .info-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .panel { padding: 20px; border-radius: 18px; gap: 8px; }
  .panel h3 { font-size: 18px; }
  .panel p { font-size: 15px; }
  .panel svg { display: none; }
  .feature-blue h3 { color: var(--info); }
  .feature-green h3 { color: var(--action); }
  .feature-purple h3 { color: var(--premium); }
  .feature-orange h3 { color: var(--streak); }
  .plan { gap: 4px; }
  .plan-price .amount { font-size: 26px; }
  .plan-price .per { font-size: 15px; }
  .plan-note { font-size: 15px; }
  .fine-print { font-size: 14px; }
  .doc { padding: 40px 0 56px; font-size: 16px; gap: 22px; }
  .doc h1 { font-size: 36px; }
  .doc h2 { font-size: 21px; }
  .doc .intro { font-size: 17px; }
  .mail-card { font-size: 20px; padding: 20px; }
  .site-footer > .wrap { flex-direction: column; padding-top: 28px; padding-bottom: 36px; gap: 18px; }
  .site-footer .footer-nav { order: -1; gap: 4px 20px; }
  .legal { font-size: 13px; gap: 4px; }
}


@media (prefers-reduced-motion: no-preference) {
  .range-grid .cell { transition: background-color 0.3s ease, color 0.3s ease; }
}
