/* ============================================================
   JustETA — marketing site
   Daylight theme: navy + goldenrod ink on a sky gradient.
   Built to render identically at justeta.app/ and
   kodemanindustries.com/justeta/ — all paths are relative.
   ============================================================ */

/* Self-hosted Nunito (variable). No Google Fonts request — keeps the
   site as privacy-respecting as the app. */
@font-face {
  font-family: "Nunito";
  src: url("assets/nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --sky-top: #cfe0f1;
  --sky-mid: #dde7ee;
  --sky-bottom: #f4e9d9;

  --navy: #1f3b5e;
  --navy-deep: #16314f;
  --ink: #21384f;
  --text: #38485a;
  --muted: #5b6675;        /* ~5:1 on cream — AA body text */

  --gold: #d99a00;
  --sun: #f3b53f;
  --gold-ink: #8a6300;     /* gold-family text that still passes AA on light */

  --cream: #f7f1e7;
  --glass: rgba(255, 255, 255, 0.6);
  --hairline: rgba(31, 59, 94, 0.12);

  --display: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 22px;
  --shadow: 0 18px 50px -22px rgba(22, 49, 79, 0.45);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(243, 181, 63, 0.30), transparent 55%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-bottom) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-deep); }

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

h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(223, 233, 242, 0.6);
  border-bottom: 1px solid var(--hairline);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { border-radius: 8px; box-shadow: 0 2px 6px rgba(22, 49, 79, 0.25); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--navy-deep); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
/* Exclude `.btn` so its own white-on-navy color isn't overridden by this
   higher-specificity descendant rule (which would render the pill's label
   navy-on-navy — invisible). */
.nav-links a:not(.btn) { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.nav-links a:not(.btn):hover { color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; border: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--navy-deep); color: #fff; transform: translateY(-1px); }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(24px, 5vw, 64px); }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 700; color: var(--muted); margin: 0 0 14px;
}
.eyebrow-gold { color: var(--gold-ink); }

.hero-copy h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); font-weight: 800; color: var(--navy-deep); }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--text); margin: 22px 0 28px; max-width: 30ch; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badges-center { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy-deep); color: #f4f6f9;
  padding: 10px 18px; border-radius: 14px; cursor: default;
  box-shadow: 0 8px 22px -12px rgba(22, 49, 79, 0.6);
}
.store-badge svg { color: #fff; flex: 0 0 auto; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-text small { font-size: 0.62rem; opacity: 0.8; }
.store-text strong { font-family: var(--display); font-weight: 700; font-size: 1.02rem; }

.fineprint { margin-top: 20px; color: var(--muted); font-size: 0.95rem; }
.fineprint strong { color: var(--gold-ink); }

/* Phone mockup */
.hero-art { position: relative; display: flex; justify-content: center; }
.sun-glow {
  position: absolute; inset: auto -10% -12% auto; width: 360px; height: 360px; z-index: 0;
  background: radial-gradient(circle, rgba(243, 181, 63, 0.5), transparent 65%);
  filter: blur(8px);
}
.phone {
  position: relative; z-index: 1;
  width: 300px; padding: 12px; border-radius: 44px;
  background: linear-gradient(155deg, #2a2f3a, #11141b);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone-sm { width: 264px; border-radius: 40px; padding: 11px; }
.phone-screen { border-radius: 33px; overflow: hidden; background: var(--sky-top); }
.phone-screen img { width: 100%; height: auto; }

/* ---------- Section scaffolding ---------- */
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; text-align: center; color: var(--navy-deep); }
.section-sub { text-align: center; color: var(--muted); max-width: 56ch; margin: 14px auto 0; font-size: 1.08rem; }
.features { padding: clamp(40px, 7vw, 84px) 0; }

/* Feature grid */
.feature-grid {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: 0 12px 30px -20px rgba(22, 49, 79, 0.4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(160deg, rgba(243, 181, 63, 0.28), rgba(217, 154, 0, 0.16));
  color: var(--navy); margin-bottom: 16px;
}
.feature h3 { font-size: 1.22rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 8px; }
.feature p { margin: 0; color: var(--text); font-size: 0.98rem; }

/* ---------- Gallery (framed App Store slides) ---------- */
.gallery { padding: clamp(44px, 7vw, 80px) 0 clamp(36px, 6vw, 64px); }
.gallery-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  /* Lead/trail padding aligns the first slide with the container edge while
     letting slides bleed to the viewport edge on the way out. */
  padding: 34px max(24px, calc((100vw - var(--maxw)) / 2 + 24px));
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.slide { margin: 0; flex: 0 0 auto; width: clamp(232px, 30vw, 296px); scroll-snap-align: center; }
.slide img { width: 100%; height: auto; border-radius: 30px; box-shadow: 0 22px 48px -22px rgba(22, 49, 79, 0.5); }

/* ---------- Pro band ---------- */
.pro { padding: clamp(48px, 7vw, 88px) 0; }
.pro-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.pro-inner h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; color: var(--navy-deep); margin: 8px 0 16px; }
.pro-inner > p { color: var(--text); font-size: 1.08rem; max-width: 48ch; margin-inline: auto; }
.pro-checks { display: inline-block; text-align: left; margin-top: 24px; }

.check-list { list-style: none; margin: 22px 0 0; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/72% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/72% no-repeat;
  box-shadow: inset 0 0 0 2px var(--navy);
}
.check-list-gold li::before { background: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }

/* Pro band */
.pro {
  background:
    radial-gradient(90% 120% at 15% 10%, rgba(243, 181, 63, 0.22), transparent 60%),
    rgba(255, 252, 245, 0.5);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.price { margin-top: 26px; display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.price-amount { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--navy-deep); }
.price-note { color: var(--muted); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta {
  margin: 0; padding: clamp(48px, 7vw, 84px) 0;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
}
.cta-inner { text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.cta p { color: rgba(255, 255, 255, 0.78); margin: 14px 0 28px; font-size: 1.1rem; }
.cta .store-badge { background: rgba(255, 255, 255, 0.12); box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.72); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.footer-brand img { border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: rgba(255, 255, 255, 0.82); font-weight: 600; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.footer-legal { width: 100%; margin: 8px 0 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- Legal / policy pages ---------- */
.legal { padding: clamp(36px, 6vw, 64px) 0 72px; }
.legal-inner {
  max-width: 760px; margin: 0 auto;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius); padding: clamp(26px, 5vw, 52px);
  box-shadow: 0 12px 30px -20px rgba(22, 49, 79, 0.4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.legal .back { display: inline-block; margin-bottom: 18px; color: var(--navy); font-weight: 700; }
.legal h1 { font-family: var(--display); font-weight: 800; color: var(--navy-deep); font-size: clamp(2rem, 5vw, 2.6rem); }
.legal .effective { color: var(--muted); font-weight: 600; margin: 10px 0 26px; }
.legal h2 { font-family: var(--display); font-weight: 800; color: var(--navy-deep); font-size: 1.35rem; margin: 34px 0 10px; }
.legal h3 { font-weight: 700; color: var(--ink); font-size: 1.06rem; margin: 22px 0 6px; }
.legal p { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { color: var(--text); margin-bottom: 8px; }
.legal a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.animate-ready .reveal { opacity: 0; transform: translateY(18px); }
.animate-ready .reveal.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-bottom: 8px; }
  .lede { max-width: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-ready .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

/* ---------- Dark mode (mirrors the app's Daylight · Night theme) ----------
   Most of this is a clean token swap. The exceptions are the tokens that pull
   double duty: --navy-deep is both heading text (flip light) and dark surfaces
   like the CTA/footer (must stay dark), and --navy is both link text (flip
   light) and the button background. Those surfaces are re-specified below so
   flipping the tokens light doesn't turn them into light blocks. */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7edf4;        /* headings / strong text */
    --text: #b6c1cf;       /* body */
    --muted: #8893a3;      /* secondary — AA on the night background */
    --navy: #7fb2e6;       /* interactive accent: links, check bullets, nav hover */
    --navy-deep: #eef3f8;  /* headings that referenced --navy-deep → light */
    --gold-ink: #e8b84f;   /* gold text, brightened for dark */
    --glass: rgba(255, 255, 255, 0.055);
    --hairline: rgba(255, 255, 255, 0.10);
  }

  /* Night sky gradient + a low moonlit gold glow — parity with the app's night. */
  body {
    background:
      radial-gradient(120% 80% at 78% 8%, rgba(243, 181, 63, 0.12), transparent 55%),
      linear-gradient(180deg, #16273f 0%, #112033 45%, #0c1828 100%);
  }

  .site-header { background: rgba(15, 27, 44, 0.62); }

  /* --navy is a light accent now, so re-specify the pill as a readable mid-navy
     button with white text rather than inheriting the token. */
  .btn { background: #2c5286; color: #fff; }
  .btn:hover { background: #36639f; color: #fff; }

  /* Surfaces that used --navy-deep (now light) or a near-white tint — keep dark. */
  .store-badge { background: #11243c; }
  .cta { background: linear-gradient(160deg, #1c3858, #0e2034); }
  .site-footer { background: #0b1726; }
  .pro {
    background:
      radial-gradient(90% 120% at 15% 10%, rgba(243, 181, 63, 0.10), transparent 60%),
      rgba(255, 255, 255, 0.025);
  }

  /* Card borders were near-opaque white — soften for the dark surface. */
  .feature, .legal-inner { border-color: rgba(255, 255, 255, 0.08); }

  .brand-mark { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
}
