/* ===========================================================================
   SkyVerdict — single stylesheet
   Aesthetic: pilot's notebook meets outdoor magazine.
   Display serif (Fraunces) + clean sans (Geist) + mono data ticks (JetBrains).
   Mobile-first. Desktop overrides at @media (min-width: 768px).
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700;9..144,900&family=Geist:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Colour & spacing tokens --------------------------------------------- */

:root {
  /* Sky-gradient brand palette — same hues as the bot icon.
     --c-orange is the readable button/link colour (passes WCAG AA on white,
     and with white text on it). --c-orange-bright keeps the icon-matched
     vivid hue for decorative use only (gradient, glow). Never put text on
     --c-orange-bright. */
  --c-navy:           #0c2849;
  --c-navy-deep:      #051630;
  --c-orange:         #cc5500;
  --c-orange-bright:  #ff8a3d;
  --c-orange-soft:    #ffc89c;
  --c-pale:        #c9e6ff;
  --c-cloud:       #f4f9ff;

  /* Verdict accents — sparingly */
  --c-go:          #2ecc71;
  --c-caution:     #f39c12;
  --c-nogo:        #e74c3c;

  /* Neutrals — paper-toned for an aviation-chart feel */
  --c-ink:         #0e1a2b;
  --c-ink-soft:    #455870;
  --c-muted:       #7d8fa6;
  --c-line:        #e3dcc7;
  --c-bg:          #faf5ed;
  --c-bg-alt:      #f1e9d8;
  --c-paper-grid:  #ebe2cc;

  /* Typography */
  --font-display: "Fraunces", "Iowan Old Style", "Charter", "Cambria", "Georgia", serif;
  --font-body:    "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing scale */
  --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;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;

  /* Container */
  --container: 1080px;

  /* Type scale */
  --t-xs:   0.85rem;
  --t-sm:   0.95rem;
  --t-base: 1.05rem;
  --t-lg:   1.25rem;
  --t-xl:   1.6rem;
  --t-2xl:  2.1rem;
  --t-3xl:  2.8rem;

  /* Shadows */
  --shadow-md: 0 4px 24px rgba(12, 40, 73, 0.10);
  --shadow-lg: 0 8px 40px rgba(12, 40, 73, 0.15);
}

/* --- Reset --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle paper grid — feels like a navigation chart */
  background-image:
    linear-gradient(var(--c-paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-paper-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

a {
  color: var(--c-orange);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0 0 var(--s-4);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-feature-settings: "ss01" 1, "ss02" 1; /* Fraunces stylistic alts */
}

/* Fraunces is a variable serif — push toward bold-ish display weight + smaller optical size for tighter modulation. */
h1 { font-size: var(--t-2xl); font-weight: 700; font-variation-settings: "opsz" 96; }
h2 { font-size: var(--t-xl); font-weight: 700; font-variation-settings: "opsz" 72; }
h3 { font-size: var(--t-lg); font-weight: 600; font-variation-settings: "opsz" 36; }

/* Aviation-style marginalia: monospace ticks like "0617Z · 49.84°N · CLEAR" */
.data-tick {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.data-tick::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

p { margin: 0 0 var(--s-4); }
ul { margin: 0 0 var(--s-4); padding-left: 1.2em; }
li { margin-bottom: var(--s-2); }

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

/* --- Layout primitives --------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

section { padding: var(--s-7) 0; }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
  font-size: var(--t-base);
  color: var(--c-navy);
}
.brand img { width: 32px; height: 32px; border-radius: var(--r-sm); }
.brand:hover { text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.nav a:not(.btn) {
  color: var(--c-ink-soft);
  font-size: var(--t-sm);
  font-weight: 500;
}
.nav a:not(.btn):hover { color: var(--c-navy); }

/* Compact two-link nav. On phones we hide it to keep the header uncrowded;
   pricing/about remain reachable from the footer on every page. */
.nav-secondary { display: none; }
@media (min-width: 560px) {
  .nav-secondary {
    display: flex;
    gap: var(--s-3);
    font-size: var(--t-xs);
  }
}
@media (min-width: 768px) {
  .nav-secondary { gap: var(--s-5); font-size: var(--t-sm); }
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--t-sm);
  line-height: 1.2;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--c-orange);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: #a64400; box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: transparent;
  color: var(--c-navy);
  border-color: var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-navy); color: var(--c-navy-deep); }

.btn-lg {
  padding: var(--s-4) var(--s-6);
  font-size: var(--t-base);
  border-radius: var(--r-lg);
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  color: #fff;
  padding: var(--s-8) 0 var(--s-7);
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--c-navy-deep);
}
.hero::before {
  /* Sunset paragliding photo by Chris Charles, Unsplash */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1744702970202-59c894c95ce6?w=2000&q=80&fm=webp&auto=format&fit=crop');
  background-size: cover;
  background-position: center 60%;
  filter: saturate(1.05);
  z-index: -2;
}
.hero::after {
  /* Darkening + warm tint overlay so headline reads cleanly */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 22, 48, 0.65) 0%, rgba(5, 22, 48, 0.35) 40%, rgba(204, 85, 0, 0.45) 100%),
    radial-gradient(circle at 80% 20%, rgba(255, 138, 61, 0.18), transparent 60%);
  z-index: -1;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-5);
  padding-top: var(--s-7);
  padding-bottom: var(--s-7);
}
.hero img.icon {
  width: 64px;
  height: 64px;
  border-radius: 18%;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.hero h1 {
  color: #fff;
  font-size: var(--t-3xl);
  font-variation-settings: "opsz" 144;
  max-width: 18ch;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero p.sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--t-base);
  max-width: 56ch;
  margin: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}
.hero .data-tick { color: rgba(255, 255, 255, 0.75); }

@media (min-width: 768px) {
  .hero { padding: var(--s-9) 0 var(--s-9); }
  .hero img.icon { width: 80px; height: 80px; }
  .hero h1 { font-size: 4rem; }
  .hero p.sub { font-size: var(--t-lg); max-width: 48ch; }
}

/* --- Verdict-dot section markers ---------------------------------------- */

.section-marker {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: var(--s-2);
  vertical-align: middle;
}
.dot-go      { background: var(--c-go); }
.dot-caution { background: var(--c-caution); }
.dot-nogo    { background: var(--c-nogo); }

/* --- Card grids ---------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  padding: var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-bg);
}

.card h3 { margin-bottom: var(--s-3); }

/* --- Pricing tier cards -------------------------------------------------- */

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}
.tier .price {
  font-size: var(--t-2xl);
  font-weight: 700;
  color: var(--c-navy);
  margin: var(--s-3) 0 var(--s-2);
}
.tier .price small {
  display: block;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-muted);
  margin-top: var(--s-1);
}
.tier ul { list-style: none; padding: 0; margin: var(--s-4) 0; }
.tier ul li {
  padding-left: var(--s-5);
  position: relative;
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
}
.tier ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-go);
}
.tier .btn { width: 100%; }

.tier-featured {
  border: 2px solid var(--c-orange);
  background: linear-gradient(180deg, #fff 0%, #fff5f2 100%);
}
.tier-featured::after {
  content: "Best value";
  position: absolute;
  top: -12px;
  right: var(--s-5);
  background: var(--c-orange);
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-sm);
}

.tier-founder {
  border: 2px dashed var(--c-navy);
  background: var(--c-cloud);
}
.tier-founder::after {
  content: "Limited — first 100";
  position: absolute;
  top: -12px;
  left: var(--s-5);
  background: var(--c-navy);
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-sm);
}

/* --- "How it works" steps ----------------------------------------------- */

.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: var(--s-7);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-navy);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- CTA band ------------------------------------------------------------ */

.cta-band {
  text-align: center;
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.cta-band h2 { margin-bottom: var(--s-4); }

/* --- Prose pages (about / privacy / terms) ------------------------------ */

.prose {
  max-width: 72ch;
  margin: 0 auto;
}
.prose h2 { margin-top: var(--s-6); }
.prose ul { padding-left: 1.5em; }
.prose .disclaimer {
  border-left: 3px solid var(--c-caution);
  padding: var(--s-4) var(--s-5);
  background: #fffaf0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: var(--s-5) 0;
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--c-navy-deep);
  color: var(--c-pale);
  padding: var(--s-7) 0 var(--s-5);
  font-size: var(--t-sm);
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  align-items: center;
  text-align: center;
}
.site-footer p { margin: 0; color: var(--c-pale); opacity: 0.85; }
.site-footer a { color: #fff; }
.site-footer .footer-links {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer .copyright {
  font-size: var(--t-xs);
  opacity: 0.6;
}

/* --- Utility classes ----------------------------------------------------- */

.text-center { text-align: center; }
.muted { color: var(--c-muted); }
.lead { font-size: var(--t-lg); color: var(--c-ink-soft); max-width: 60ch; }
.center-block { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--c-orange);
  margin-bottom: var(--s-4);
}
.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--c-orange);
}

/* --- Verdict-dot pulse (used as section markers) ------------------------ */
@keyframes verdict-pulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50%      { box-shadow: 0 0 0 5px transparent; opacity: 0.85; }
}
.section-marker.dot-go,
.section-marker.dot-caution,
.section-marker.dot-nogo {
  animation: verdict-pulse 2.4s ease-in-out infinite;
}
.section-marker.dot-go      { color: var(--c-go); }
.section-marker.dot-caution { color: var(--c-caution); animation-delay: 0.4s; }
.section-marker.dot-nogo    { color: var(--c-nogo); animation-delay: 0.8s; }

/* --- Topographic contour line section divider --------------------------- */
.section-divider {
  display: block;
  width: 100%;
  height: 28px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'><path d='M0,14 Q150,4 300,14 T600,14 T900,14 T1200,14' stroke='%23cc5500' stroke-width='0.8' fill='none' opacity='0.4'/><path d='M0,20 Q200,10 400,20 T800,20 T1200,20' stroke='%23cc5500' stroke-width='0.6' fill='none' opacity='0.25'/><path d='M0,8 Q250,18 500,8 T1000,8 T1200,8' stroke='%230c2849' stroke-width='0.5' fill='none' opacity='0.2'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  margin: 0;
}

/* --- Telegram chat mockup (in 'How we do it' section) ------------------- */
.tg-mock {
  background: linear-gradient(180deg, #18222e 0%, #0e1721 100%);
  border-radius: 18px;
  padding: var(--s-5) var(--s-4) var(--s-4);
  max-width: 380px;
  margin: var(--s-6) auto 0;
  box-shadow:
    0 30px 60px -20px rgba(12, 40, 73, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  font-family: var(--font-body);
}
.tg-mock::before {
  /* Telegram-style notch / header */
  content: "@SkyVerdict_Bot";
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  color: #fff;
  font-size: var(--t-sm);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tg-mock .bubble {
  background: #243341;
  color: #e8eef5;
  padding: var(--s-3) var(--s-4);
  border-radius: 14px 14px 14px 4px;
  margin-bottom: var(--s-3);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 88%;
}
.tg-mock .bubble.me {
  background: var(--c-orange);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  margin-left: auto;
}
.tg-mock .verdict-line {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-1);
}
.tg-mock .verdict-line .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.tg-mock .verdict-line .dot.go      { background: var(--c-go); }
.tg-mock .verdict-line .dot.caution { background: var(--c-caution); }
.tg-mock .verdict-line .dot.nogo    { background: var(--c-nogo); }
.tg-mock .tg-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
  margin-top: var(--s-2);
}
