/* ulTrain landing page - single stylesheet.
   Sections: tokens, base, nav, hero, stats, shared section shells,
   feature grid, screens, modes, platforms, pricing, privacy,
   resources, CTA, footer, animation, responsive. */

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

:root {
  --orange:       #E67E22;
  --orange-lt:    #F39C12;
  --orange-text:  #B3590D;   /* AA on white / off-white */
  --navy:         #1A2433;
  --navy-deep:    #10151D;
  --navy-mid:     #2C3E50;
  --off-white:    #F5F5F7;
  --white:        #FFFFFF;
  --text-dark:    #1D1D1F;
  --text-gray:    #55555C;
  --line:         rgba(0,0,0,0.08);
  --line-dark:    rgba(255,255,255,0.10);
  --radius-lg:    28px;
  --radius-md:    18px;
  --max:          1080px;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--navy); color: var(--white);
  padding: 12px 20px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

/* ─── Nav ──────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 56px;
  padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right));
  padding-left: max(5%, env(safe-area-inset-left));
  padding-right: max(5%, env(safe-area-inset-right));
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}
.site-nav.dark {
  background: rgba(26,36,51,0.85);
  border-bottom-color: var(--line-dark);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-dark); text-decoration: none; flex-shrink: 0;
}
.nav-logo img { width: 26px; height: 26px; border-radius: 7px; }
.site-nav.dark .nav-logo { color: var(--white); }

.nav-links {
  display: flex; gap: 1.7rem; list-style: none; align-items: center;
}
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.84rem; font-weight: 500; color: var(--text-gray);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange-text); }
.site-nav.dark .nav-links a { color: rgba(255,255,255,0.75); }
.site-nav.dark .nav-links a:hover { color: var(--orange-lt); }

.nav-cta {
  flex-shrink: 0; white-space: nowrap;
  background: var(--orange); color: var(--white);
  font-size: 0.8rem; font-weight: 700; padding: 9px 18px; border-radius: 22px;
  text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: #cf6d15; }

.nav-actions { display: flex; align-items: center; gap: 6px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars {
  position: relative; width: 20px; height: 2px;
  background: var(--text-dark); border-radius: 2px;
  transition: background 0.2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 2px; background: inherit; border-radius: 2px;
  transition: transform 0.2s;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-nav.dark .nav-toggle-bars { background: var(--white); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); background: var(--text-dark); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); background: var(--text-dark); }
.site-nav.dark .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before,
.site-nav.dark .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { background: var(--white); }

/* ─── Hero ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(165deg, var(--navy) 0%, #1F3045 60%, #2D1A0E 100%);
  color: var(--white);
  text-align: center;
  padding: 132px 5% 84px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange-lt);
  border: 1px solid rgba(243,156,18,0.4);
  background: rgba(230,126,34,0.14);
  border-radius: 30px; padding: 6px 16px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.6rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.02;
  text-wrap: balance;
}
.hero h1 span { color: var(--orange); }
.hero-sub {
  margin: 22px auto 0; max-width: 560px;
  font-size: clamp(1.02rem, 2.4vw, 1.25rem);
  color: rgba(255,255,255,0.72); line-height: 1.6;
  text-wrap: balance;
}
.hero-actions {
  margin-top: 36px;
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center;
}

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: var(--white);
  padding: 11px 20px; border-radius: 14px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.store-badge svg { width: 24px; height: 24px; fill: var(--white); flex-shrink: 0; }
.store-badge-top { display: block; font-size: 0.58rem; color: rgba(255,255,255,0.7); }
.store-badge-main { display: block; font-size: 0.95rem; font-weight: 700; line-height: 1.2; }
.store-badge.soon {
  opacity: 0.55; cursor: default;
}
.store-soon-note {
  width: 100%; font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 2px;
}

.hero-devices {
  margin: 64px auto 0;
  display: flex; gap: 32px; justify-content: center; align-items: flex-start; flex-wrap: wrap;
}
.phone {
  width: min(240px, 60vw);
  background: linear-gradient(145deg, #1E2D3D 0%, #0D1825 100%);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 42px; padding: 18px 14px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}
.phone.android { border-radius: 32px; }
.phone-notch { width: 84px; height: 6px; background: rgba(0,0,0,0.6); border-radius: 3px; margin: 0 auto 14px; }
.phone-camera { width: 10px; height: 10px; background: rgba(0,0,0,0.65); border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; margin: 0 auto 12px; }
.phone-screen { border-radius: 26px; overflow: hidden; background: #142033; }
.phone-screen img { width: 100%; height: auto; }

/* ─── Stats strip ──────────────────────────────────── */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 44px 5%;
}
.stats-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  text-align: center;
}
.stat-num { font-size: 2.3rem; font-weight: 800; color: var(--orange-text); letter-spacing: -0.03em; line-height: 1; }
.stat-num.text { font-size: clamp(1.5rem, 4vw, 2rem); white-space: nowrap; padding-top: 0.2em; }
.stat-lbl { font-size: 0.82rem; color: var(--text-gray); margin-top: 7px; font-weight: 500; }

/* ─── Section shells ───────────────────────────────── */
.section { padding: 96px 5%; }
.section.tint { background: var(--off-white); }
.section.dark { background: linear-gradient(165deg, var(--navy) 0%, #1F3045 100%); color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto; text-align: center; }
.section-eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange-text); margin-bottom: 12px;
}
.section.dark .section-eyebrow { color: var(--orange-lt); }
.section-title {
  font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance;
}
.section.dark .section-title { color: var(--white); }
.section-sub {
  margin: 16px auto 0; max-width: 600px;
  font-size: clamp(0.98rem, 2vw, 1.12rem); color: var(--text-gray); line-height: 1.6;
  text-wrap: balance;
}
.section.dark .section-sub { color: rgba(255,255,255,0.7); }

/* ─── Feature grid ─────────────────────────────────── */
.feature-grid {
  max-width: var(--max); margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 16px 50px rgba(26,36,51,0.05);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center;
  background: rgba(230,126,34,0.13); border: 1px solid rgba(230,126,34,0.26);
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--orange-text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.feature-card p { margin-top: 8px; font-size: 0.92rem; color: var(--text-gray); line-height: 1.6; }

/* ─── Screens ──────────────────────────────────────── */
.screens-grid {
  max-width: var(--max); margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.screen-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 12px 20px;
  box-shadow: 0 20px 60px rgba(26,36,51,0.07);
  text-align: center;
}
.screen-device {
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(145deg, #1E2D3D 0%, #0D1825 100%);
  padding: 8px;
}
.screen-device img { border-radius: 18px; width: 100%; height: auto; }
.screen-card h3 { margin-top: 14px; font-size: 0.96rem; font-weight: 700; letter-spacing: -0.02em; }
.screen-card p { margin-top: 5px; font-size: 0.84rem; color: var(--text-gray); }

/* ─── Modes ────────────────────────────────────────── */
.modes-grid {
  max-width: var(--max); margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.mode-card {
  border-radius: var(--radius-lg); padding: 30px;
  background: linear-gradient(180deg, #FFF7F1 0%, #F8EADC 100%);
  border: 1px solid rgba(230,126,34,0.22);
}
.mode-card.dark {
  background: linear-gradient(145deg, var(--navy), #0F1722);
  border-color: rgba(255,255,255,0.1);
  color: var(--white);
}
.mode-card h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; }
.mode-card p { margin-top: 10px; font-size: 0.93rem; color: var(--text-gray); line-height: 1.6; }
.mode-card.dark p { color: rgba(255,255,255,0.72); }

/* ─── Platforms ────────────────────────────────────── */
.platform-grid {
  max-width: var(--max); margin: 52px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.platform-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 22px;
}
.platform-card h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.platform-card p { color: rgba(255,255,255,0.62); font-size: 0.86rem; line-height: 1.55; }

/* ─── Pricing ──────────────────────────────────────── */
.section.dark.pricing { background: linear-gradient(165deg, #1F3045 0%, #1A2433 100%); }

.offer-banner {
  max-width: var(--max); margin: 0 auto 44px;
  background: linear-gradient(135deg, var(--orange), #D35400);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg); padding: 24px 28px;
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  box-shadow: 0 24px 70px rgba(230,126,34,0.28);
}
.offer-banner h3 {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: var(--white);
  letter-spacing: -0.03em; line-height: 1.15; max-width: 620px;
}
.offer-banner p { color: rgba(255,255,255,0.85); margin-top: 8px; font-size: 0.92rem; }
.offer-banner a.offer-mail { color: var(--white); font-weight: 800; }
.btn-light {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.18); color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  font-size: 0.95rem; font-weight: 700; padding: 13px 26px;
  border-radius: 50px; text-decoration: none;
  transition: background 0.2s;
}
.btn-light:hover { background: rgba(255,255,255,0.28); }

.pricing-grid {
  max-width: 780px; margin: 52px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.price-card {
  border-radius: var(--radius-lg); padding: 30px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  text-align: center;
}
.price-card.featured {
  background: linear-gradient(135deg, var(--orange), #D35400);
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 16px 45px rgba(230,126,34,0.35);
}
.price-plan { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.price-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; color: var(--white); margin-top: 10px; line-height: 1; }
.price-per { font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.6); }
.price-trial { margin-top: 10px; font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.price-badge {
  display: inline-block; margin-top: 12px;
  background: rgba(255,255,255,0.2); color: var(--white);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 20px; padding: 3px 10px;
}
.pro-list {
  max-width: 640px; margin: 44px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px;
  list-style: none; text-align: left;
}
.pro-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.92rem; color: rgba(255,255,255,0.82); line-height: 1.5;
}
.pro-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; stroke: var(--orange-lt); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pricing-fineprint {
  max-width: 640px; margin: 30px auto 0; text-align: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.5); line-height: 1.6;
}
.pricing-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ─── Privacy ──────────────────────────────────────── */
.privacy-pillars {
  max-width: var(--max); margin: 52px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.privacy-pillar {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 24px;
}
.privacy-pillar h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.015em; }
.privacy-pillar p { margin-top: 7px; font-size: 0.88rem; color: var(--text-gray); line-height: 1.6; }
.privacy-link { margin-top: 34px; text-align: center; }
.privacy-link a { color: var(--orange-text); font-weight: 700; text-decoration: none; font-size: 0.95rem; }
.privacy-link a:hover { text-decoration: underline; }

/* ─── Resources ────────────────────────────────────── */
.resources-grid {
  max-width: 820px; margin: 52px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
a.resource-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: 0 16px 50px rgba(26,36,51,0.05);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
a.resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230,126,34,0.3);
  box-shadow: 0 28px 70px rgba(26,36,51,0.1);
}
.resource-card h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.resource-card p { margin-top: 8px; font-size: 0.9rem; color: var(--text-gray); line-height: 1.6; }
.resource-card .go { display: inline-block; margin-top: 14px; color: var(--orange-text); font-weight: 700; font-size: 0.9rem; }

/* ─── CTA ──────────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, #2D1A0E 100%);
  color: var(--white); text-align: center;
  padding: 100px 5%;
}
.cta-icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 26px; box-shadow: 0 16px 48px rgba(0,0,0,0.35); }
.cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.cta h2 span { color: var(--orange); }
.cta p { margin: 18px auto 0; max-width: 480px; font-size: 1.02rem; color: rgba(255,255,255,0.68); }
.cta .hero-actions { margin-top: 34px; }
.cta-fineprint { margin-top: 22px; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ─── Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.55);
  padding: 48px 5% 32px;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { font-size: 1.05rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.footer-brand span { color: var(--orange); }
.footer-desc { margin-top: 10px; max-width: 460px; font-size: 0.84rem; line-height: 1.65; }
.footer-bottom {
  max-width: var(--max); margin: 0 auto; padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 0.78rem;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ─── Reveal animation ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 960px) {
  .feature-grid, .screens-grid, .modes-grid, .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 56px; left: 0; right: 0;
    display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(0,0,0,0.12);
    padding: 8px 5% 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { min-height: 48px; font-size: 1rem; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-links li:last-child a { border-bottom: none; }
  .site-nav.dark .nav-links { background: var(--navy); border-bottom-color: var(--line-dark); }
  .site-nav.dark .nav-links a { border-bottom-color: var(--line-dark); }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .section { padding: 72px 5%; }
  .hero { padding: 116px 5% 64px; }
  .hero-devices { gap: 18px; }
  .phone { width: min(200px, 44vw); padding: 12px 10px; }
  .phone-screen, .phone-screen img { border-radius: 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .feature-grid, .screens-grid, .modes-grid, .platform-grid,
  .pricing-grid, .resources-grid, .pro-list { grid-template-columns: 1fr; }
  .screen-card { max-width: 260px; margin: 0 auto; width: 100%; }
  .screens-grid { gap: 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
