/* getjog.app — shared stylesheet. Tokens mirror lib/shared/theme/jog_colors.dart. */

/* ---- Fonts (self-hosted; no third-party fetch) ---- */
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/SpaceGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/SpaceGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fira Mono"; src: url("assets/fonts/FiraMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

/* ---- Tokens ---- */
:root {
  --bg: #08090D;
  --bg-soft: #0E0F15;
  --fg: #F3F3F5;
  --secondary: #B4B6BD;
  --muted: #7E7E86;
  --faint: #4B4B52;
  --hairline: #242428;
  --accent: #8E9BF0;
  --accent-grad: linear-gradient(135deg, #A6B1FA 0%, #7B7DE6 48%, #5B57D2 100%);
  --up: #86C0A6;
  --down: #C98A8A;
  --logo-plate: #E6E6EA;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Fira Mono", ui-monospace, monospace;

  --maxw: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- Type ---- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--secondary); }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 12vw, 128px); }
.section--tight { padding-block: clamp(40px, 7vw, 72px); }
.hairline { border: none; border-top: 1px solid var(--hairline); }

/* ---- Scroll reveal (JS adds .is-in; reduced-motion users see content immediately) ---- */
.reveal { opacity: 0; transform: translateY(24px) scale(0.985); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: transform 0.15s var(--ease), filter 0.2s var(--ease), background-position 0.6s var(--ease); }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent-grad); background-size: 160% 160%; background-position: 0% 50%; color: #0a0a12; }
.btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); background-position: 100% 50%; }
.btn--ghost { border-color: var(--hairline); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 50; transition: background 0.3s var(--ease), border-color 0.3s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg-soft) 88%, transparent); backdrop-filter: blur(12px); border-bottom-color: var(--hairline); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.02em; color: var(--fg); }
.nav__brand:hover { text-decoration: none; }
.nav__mark { width: 28px; height: 28px; border-radius: 8px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--secondary); font-size: 0.95rem; }
.nav__links a:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 640px) { .nav__links { display: none; } }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--hairline); padding-block: 48px 40px; margin-top: 48px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer__wordmark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.footer__mark { width: 24px; height: 24px; border-radius: 7px; }
.footer__by { color: var(--muted); font-size: 0.9rem; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--secondary); font-size: 0.95rem; }
.footer__legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 0.85rem; }
.footer__disclaimer { color: var(--secondary); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 8vw, 80px); }
.hero::before { content: ""; position: absolute; top: -10%; right: -5%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; background: radial-gradient(circle, rgba(142,155,240,0.16), transparent 62%); pointer-events: none; z-index: 0; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero__copy .lead { margin-top: 20px; max-width: 30ch; }
.hero .eyebrow { margin-bottom: 18px; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero__visual { order: -1; } }

/* ---- Coming-soon badges ---- */
.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.badge { display: inline-flex; flex-direction: column; justify-content: center; padding: 10px 18px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--bg-soft); color: var(--secondary); cursor: default; min-width: 150px; opacity: 0.85; }
.badge__sup { font-size: 0.62rem; letter-spacing: 0.05em; color: var(--muted); text-transform: uppercase; }
.badge__store { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--fg); }
.badges__note { margin-top: 14px; color: var(--muted); font-size: 0.85rem; }
.badge--later { opacity: 0.55; }

/* ---- Phone + whale card ---- */
.phone { background: var(--bg-soft); border: 1px solid var(--hairline); border-radius: 30px; padding: 16px; max-width: 340px; margin-inline: auto; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8); }
.card { background: linear-gradient(180deg, #0d0f17, #0a0b11); border: 1px solid var(--hairline); border-radius: 20px; padding: 18px; }
.card__top { display: flex; align-items: center; gap: 12px; }
.ident { width: 38px; height: 38px; border-radius: 11px; flex: none; background: conic-gradient(from 140deg, #8E9BF0, #5B57D2, #86C0A6, #8E9BF0); }
.card__who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card__name { font-weight: 600; font-size: 0.98rem; }
.card__sub { font-size: 0.78rem; color: var(--muted); }
.tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; padding: 4px 9px; border-radius: 7px; }
.tag--buy { color: var(--up); background: color-mix(in srgb, var(--up) 16%, transparent); }
.tag--sell { color: var(--down); background: color-mix(in srgb, var(--down) 16%, transparent); }
.card__market { margin-top: 16px; font-size: 1.02rem; font-weight: 500; color: var(--fg); }
.spark { width: 100%; height: 90px; margin-top: 14px; }
.card__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.card__stats > div { display: flex; flex-direction: column; gap: 2px; }
.card__label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.card__val { font-size: 1.05rem; font-weight: 500; }
.up { color: var(--up); }
.down { color: var(--down); }
.conviction { margin-top: 16px; }
.conviction__head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.conviction__track { height: 6px; border-radius: 3px; background: var(--hairline); overflow: hidden; }
.conviction__fill { display: block; height: 100%; width: 68%; border-radius: 3px; background: var(--accent-grad); }

/* ---- Icons ---- */
.ico { width: 26px; height: 26px; color: var(--accent); }
.ico--inline { width: 18px; height: 18px; display: inline; vertical-align: -3px; margin-right: 6px; }

/* ---- Positioning strip ---- */
.strip { text-align: center; font-family: var(--font-display); font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-weight: 500; }
.strip__muted { color: var(--muted); }

/* ---- Features ---- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 48px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: 32px; }
.feature h3 { margin-top: 16px; }
.feature p { margin-top: 8px; color: var(--secondary); }
.features__soon { margin-top: 28px; color: var(--secondary); font-size: 0.98rem; }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* ---- Steps ---- */
.steps { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--bg-soft); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px; }
.step__n { color: var(--accent); font-size: 0.9rem; }
.step h3 { margin-top: 12px; }
.step p { margin-top: 8px; color: var(--secondary); }
.steps__note { margin-top: 24px; color: var(--muted); font-style: italic; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* ---- Honest ---- */
.honest { max-width: 720px; }
.honest .lead { margin-top: 18px; }
.honest__note { margin-top: 24px; color: var(--muted); font-size: 0.9rem; padding-top: 16px; border-top: 1px solid var(--hairline); display: inline-block; }

/* ---- FAQ ---- */
.faq { max-width: 760px; }
.faq__list { margin-top: 40px; border-top: 1px solid var(--hairline); }
.qa { border-bottom: 1px solid var(--hairline); }
.qa__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: none; color: var(--fg); font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; text-align: left; padding: 20px 0; cursor: pointer; }
.qa__icon { position: relative; width: 14px; height: 14px; flex: none; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; background: var(--accent); transition: transform 0.25s var(--ease); }
.qa__icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.qa__icon::after { left: 6px; top: 0; width: 2px; height: 14px; }
.qa__q[aria-expanded="true"] .qa__icon::after { transform: scaleY(0); }
.qa__a { overflow: hidden; max-height: 0; transition: max-height 0.3s var(--ease); }
.qa__a p { padding-bottom: 20px; color: var(--secondary); }
@media (prefers-reduced-motion: reduce) { .qa__a, .qa__icon::before, .qa__icon::after { transition: none; } }

/* ---- Legal / doc pages ---- */
.doc { max-width: 760px; padding-block: clamp(48px, 8vw, 96px); }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc__meta { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.doc__note { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--secondary); font-size: 0.92rem; }
.doc h2 { font-size: 1.4rem; margin-top: 44px; }
.doc h3 { margin-top: 24px; }
.doc p, .doc li { color: var(--secondary); margin-top: 12px; }
.doc ul { margin-top: 12px; padding-left: 22px; }
.doc li { margin-top: 8px; }
.doc a { text-decoration: underline; }

/* ============================================================
   Motion & polish. Entrance/idle animation is gated behind
   prefers-reduced-motion: no-preference, so reduced-motion and
   no-JS visitors get the full static layout. Hover feedback uses
   short transitions and is neutralised under reduced motion.
   ============================================================ */

/* Hover micro-interactions */
.feature { transition: background 0.3s var(--ease); }
.feature:hover { background: var(--bg-soft); }
.feature .ico { transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.feature:hover .ico { transform: translateY(-2px) scale(1.08); }
.step { transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.step:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--hairline)); box-shadow: 0 18px 44px -26px rgba(0,0,0,0.9); }
.nav__links a, .footer__links a { background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px; transition: color 0.2s var(--ease), background-size 0.28s var(--ease); }
.nav__links a:hover, .footer__links a:hover { background-size: 100% 1.5px; text-decoration: none; color: var(--fg); }

/* Scroll-reveal stagger across grids */
.features .feature:nth-child(2) { transition-delay: 0.08s; }
.features .feature:nth-child(3) { transition-delay: 0.16s; }
.features .feature:nth-child(4) { transition-delay: 0.24s; }
.steps .step:nth-child(2) { transition-delay: 0.10s; }
.steps .step:nth-child(3) { transition-delay: 0.20s; }

/* Entrance choreography + idle motion (motion-OK visitors only) */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > h1,
  .hero__copy > .lead,
  .hero__copy > .badges,
  .hero__copy > .badges__note { opacity: 0; animation: rise 0.85s var(--ease) forwards; }
  .hero__copy > h1 { animation-delay: 0.05s; }
  .hero__copy > .lead { animation-delay: 0.18s; }
  .hero__copy > .badges { animation-delay: 0.32s; }
  .hero__copy > .badges__note { animation-delay: 0.42s; }

  .hero__visual { opacity: 0; animation: rise 0.9s var(--ease) 0.2s forwards; }
  .phone { animation: float 7s ease-in-out 1.2s infinite; will-change: transform; }
  .hero::before { animation: glow 9s ease-in-out infinite; }

  /* Whale card draws itself in after the phone lands */
  .spark path:nth-of-type(2) { stroke-dasharray: 360; stroke-dashoffset: 360; animation: draw 1.5s var(--ease) 0.7s forwards; }
  .spark path:nth-of-type(1) { opacity: 0; animation: fade 1s var(--ease) 1.5s forwards; }
  .spark circle { transform-box: fill-box; transform-origin: center; opacity: 0; animation: fade 0.5s var(--ease) 2s forwards, pulse 2.4s ease-in-out 2.6s infinite; }
  .card .tag { opacity: 0; animation: pop 0.5s var(--ease) 1s forwards; }
  .conviction__fill { width: 0; animation: fillbar 1.1s var(--ease) 1.15s forwards; }
}

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes glow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.08); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.45); opacity: 0.55; } }
@keyframes pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes fillbar { from { width: 0; } to { width: 68%; } }

/* Reduced motion: no movement-based hover either */
@media (prefers-reduced-motion: reduce) {
  .step:hover { transform: none; }
  .feature:hover .ico { transform: none; }
}
