/* EXPN marketing page. Own design system, black and orange, matches the app. */

:root {
  --bg: #0D0D0D;
  --surface: #1C1C1E;
  --surface-2: #2C2C2E;
  --accent: #FF8C00;
  --accent-dim: #CC7000;
  --accent-soft: rgba(255, 140, 0, 0.12);
  --text: #FFFFFF;
  --muted: #8E8E93;
  --line: rgba(255, 255, 255, 0.08);
  --dot: #3B2416;
  --radius: 20px;
  --header-h: 60px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (pointer: fine) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
/* custom scrollbar with section map (built by expn.js) */
.sb {
  position: fixed; top: calc(var(--header-h) + 10px); right: 0; bottom: 10px; width: 28px; z-index: 60;
  opacity: 0; transition: opacity .3s ease;
}
.sb.is-on, .sb.is-drag, .sb:hover { opacity: 1; }
.sb-track {
  position: absolute; top: 6px; bottom: 6px; right: 9px; width: 6px; border-radius: 5px;
  background: rgba(255,255,255,0.07); transition: width .15s ease;
}
.sb:hover .sb-track, .sb.is-drag .sb-track { width: 10px; }
.sb-thumb {
  position: absolute; left: 0; right: 0; top: 0; border-radius: 5px; background: var(--accent);
  cursor: grab; will-change: transform; transition: background .15s;
}
.sb.is-drag .sb-thumb { cursor: grabbing; background: #FFA030; }
.sb-mark {
  position: absolute; right: 0; width: 28px; height: 16px; transform: translateY(-8px); cursor: pointer;
}
.sb-mark::before {
  content: ""; position: absolute; right: 9px; top: 7px; width: 6px; height: 2px; border-radius: 1px;
  background: rgba(255,255,255,0.45); transition: width .15s ease, background .15s;
}
.sb:hover .sb-mark::before, .sb.is-drag .sb-mark::before { width: 10px; }
.sb-mark.is-current::before { background: #0D0D0D; }
.sb-mark::after {
  content: attr(data-label); position: absolute; right: 26px; top: 50%; transform: translate(6px, -50%);
  white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: rgba(13,13,13,0.88); border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 999px; pointer-events: none;
  opacity: 0; transition: opacity .15s ease, transform .15s ease, color .15s, border-color .15s;
}
.sb:hover .sb-mark::after, .sb.is-drag .sb-mark::after { opacity: 1; transform: translate(0, -50%); }
.sb-mark.is-current::after { color: var(--text); }
.sb-mark:hover::after { color: var(--accent); border-color: rgba(255,140,0,0.5); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.site-header, main, .site-footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 72px);
}

/* Type */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 5.6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.02em; }
.accent { color: var(--accent); }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow.center { text-align: center; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 54ch; margin-top: 16px; }
.section-head { max-width: 62ch; margin-bottom: clamp(20px, 3vw, 32px); }
.link { color: var(--accent); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .15s; }
.link:hover { border-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem;
  background: var(--text); color: var(--bg);
  transition: filter .15s, background .15s, border-color .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn-accent { background: var(--accent); color: #0D0D0D; }
.btn-sm { padding: 8px 14px; font-size: 0.84rem; }

.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px; border-radius: 14px;
  background: var(--text); color: #0D0D0D;
  border: 1px solid transparent;
  transition: filter .15s;
  min-width: 176px;
}
.store:hover { filter: brightness(1.08); }
.store svg { width: 26px; height: 26px; flex-shrink: 0; }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.store small { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.02em; opacity: .75; margin-bottom: 2px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store-row.center { justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-weight: 800; letter-spacing: 0.12em; font-size: 0.95rem; }
.wordmark span { color: var(--accent); }

/* Hero */
.hero { position: relative; padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.logo-tile {
  width: 96px; height: 96px; border-radius: 24px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; color: var(--muted); font-size: 0.9rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-phone { display: flex; justify-content: center; }

/* Phone frame */
.phone {
  position: relative;
  width: 320px; aspect-ratio: 320 / 676;
  border-radius: 44px; padding: 10px;
  background: #1C1C1E;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 40px 90px rgba(0,0,0,0.6);
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 34px; overflow: hidden; background: #000;
}
.phone-screen::before {
  content: "9:41"; position: absolute; top: 0; left: 0; right: 0; height: 36px; z-index: 2;
  display: flex; align-items: center; padding: 2px 0 0 24px;
  font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; color: #fff; background: #000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 12'%3E%3Cg fill='%23fff'%3E%3Crect x='0' y='7.5' width='3' height='4.5' rx='.8'/%3E%3Crect x='4.2' y='5.5' width='3' height='6.5' rx='.8'/%3E%3Crect x='8.4' y='3' width='3' height='9' rx='.8'/%3E%3Crect x='12.6' y='.5' width='3' height='11.5' rx='.8'/%3E%3C/g%3E%3Cpath d='M20 4.6a8.6 8.6 0 0 1 11.4 0' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='M22.6 7.3a4.9 4.9 0 0 1 6.2 0' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='25.7' cy='10.2' r='1.4' fill='%23fff'/%3E%3Crect x='36.5' y='1' width='15' height='10' rx='3' fill='none' stroke='%23fff' stroke-opacity='.45'/%3E%3Crect x='38' y='2.5' width='12' height='7' rx='1.8' fill='%23fff'/%3E%3Crect x='52.3' y='4' width='1.5' height='4' rx='.6' fill='%23fff' fill-opacity='.45'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px top 12px; background-size: 54px 12px;
}
.phone-screen::after {
  content: ""; position: absolute; left: 50%; bottom: 8px; width: 104px; height: 4px; border-radius: 2px;
  background: #fff; opacity: .9; transform: translateX(-50%); z-index: 2;
}
.phone-screen .shot {
  position: absolute; top: 36px; bottom: 22px; left: 0; right: 0; width: 100%; height: auto; object-fit: cover; object-position: center top;
}
.shot-placeholder {
  position: absolute; top: 36px; bottom: 22px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(160deg, #1C1C1E 0%, #0D0D0D 60%);
}
.shot-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255,140,0,0.16), transparent 55%);
}
.shot-placeholder img { width: 46%; opacity: .9; position: relative; }
.shot-placeholder span { position: relative; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.phone-hero { animation: phone-in 1.1s var(--ease) both .2s; }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotate(-6deg) scale(.96); } to { opacity: 1; transform: none; } }

/* Why */
.why { padding: clamp(28px, 4vw, 48px) 0; }
.why-wrap {
  max-width: 820px;
}
.why blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px clamp(18px, 3vw, 32px);
}
.why blockquote p { font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.4; }
.why blockquote p + p { margin-top: 18px; color: var(--muted); }
.why blockquote footer { margin-top: 20px; font-size: 0.86rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }

/* Scrollytelling */
.features { padding: clamp(24px, 3vw, 40px) 0; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.story-steps { display: flex; flex-direction: column; }
.feature-step {
  min-height: 40vh; display: flex; flex-direction: column; justify-content: center;
  padding: 12px 0;
  opacity: .35; transition: opacity .5s var(--ease);
}
.feature-step.is-active { opacity: 1; }
.feature-step p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; margin-top: 14px; }
.pill {
  display: inline-block; align-self: flex-start;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line);
  transition: color .3s, border-color .3s, background .3s;
}
.feature-step.is-active .pill { color: var(--accent); border-color: rgba(255,140,0,0.4); background: var(--accent-soft); }
.phone-inline { display: none; }
.story-phone { position: sticky; top: calc(var(--header-h) + 24px); display: flex; justify-content: center; }
.phone-sticky { width: 330px; }
.story-shot { opacity: 0; transition: opacity .55s var(--ease); }
.story-shot.is-active { opacity: 1; }

/* Comparison */
.compare { padding: clamp(32px, 4vw, 56px) 0; }
.compare-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(28,28,30,0.5); }
.compare-row {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: center;
  padding: 13px clamp(14px, 2.5vw, 28px);
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}
.compare-row:first-child { border-top: 0; }
.compare-head { background: var(--surface); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.compare-head .col-expn img { height: 16px; width: auto; }
.compare-row .yes, .compare-row .no { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.compare-row .yes { color: var(--text); }
.compare-row .yes::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D0D0D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.compare-row .no { color: var(--muted); font-weight: 500; }
.compare-row .no::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--line); background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%238E8E93' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Bento */
.bento { padding: clamp(32px, 4vw, 56px) 0; }
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 2vw, 24px); min-height: 150px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  position: relative; overflow: hidden;
  transition: border-color .25s;
}
.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 0%, rgba(255,140,0,0.12), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.tile:hover { border-color: rgba(255,140,0,0.35); }
.tile:hover::after { opacity: 1; }
.tile p { color: var(--muted); font-size: 0.95rem; }
.tile-wide { grid-column: span 2; }
.tile-last { grid-column: span 3; }
.tile-stat { justify-content: center; }
.stat { font-size: clamp(2.6rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }

/* Privacy */
.privacy { padding: clamp(32px, 4vw, 56px) 0; }
.privacy-wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 72px); align-items: center;
  background: rgba(28,28,30,0.6);
  border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 3.5vw, 44px);
}
.privacy-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; margin: 18px 0 22px; }
.privacy-list { display: flex; flex-direction: column; gap: 12px; }
.privacy-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; padding: 12px 16px; border-radius: 14px; background: rgba(13,13,13,0.5); border: 1px solid var(--line); }
.check { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D0D0D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Pricing */
.pricing { padding: clamp(32px, 4vw, 56px) 0; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1000px; }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column;
}
.price-premium { border-color: rgba(255,140,0,0.5); background: linear-gradient(170deg, rgba(255,140,0,0.12), var(--surface) 45%); }
.badge { position: absolute; top: 18px; right: 18px; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: #0D0D0D; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.price-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.price { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; margin-top: 10px; line-height: 1; }
.price-note { color: var(--muted); margin: 10px 0 22px; font-size: 0.95rem; }
.price-card ul { display: flex; flex-direction: column; gap: 10px; }
.price-card li { position: relative; padding-left: 26px; font-size: 0.97rem; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.price-premium li::before { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D0D0D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.fine { margin-top: 20px; font-size: 0.78rem; color: var(--muted); }

/* Languages marquee */
.languages { padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee { margin-top: 20px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { --gap: clamp(40px, 5vw, 80px); --shift: -50%; }
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee-group { display: flex; flex: 0 0 auto; align-items: center; gap: var(--gap); padding-right: var(--gap); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group span { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--muted); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(var(--shift)); } }

/* CTA */
.cta { position: relative; padding: clamp(48px, 6vw, 80px) 0; text-align: center; }
.cta-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-logo { border-radius: 22px; margin-bottom: 20px; box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0,0,0,0.5); }
.cta p { color: var(--muted); margin-top: 12px; max-width: 46ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.86rem; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 20px; }
.footer-row a:hover { color: var(--text); }

/* Reveal animations: content is visible by default, JS adds .js to html and then reveals */
html.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease) var(--delay, 0s), transform .8s var(--ease) var(--delay, 0s);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
html.js .feature-step[data-reveal] { transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { order: 2; margin-top: 8px; }
  .phone { width: 260px; }
  .story { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .feature-step { min-height: 0; opacity: 1; padding: 28px 0; border-top: 1px solid var(--line); }
  .feature-step:first-child { border-top: 0; }
  .feature-step .pill { color: var(--accent); border-color: rgba(255,140,0,0.4); background: var(--accent-soft); }
  .phone-inline { display: block; width: 240px; margin: 26px auto 0; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-wrap { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; }
  .tile-wide, .tile-last { grid-column: auto; }
  .tile { min-height: 0; }
  .compare-row { grid-template-columns: 1.4fr 1fr 1fr; font-size: 0.86rem; padding: 14px 12px; gap: 8px; }
  .compare-row .yes, .compare-row .no { gap: 6px; }
  .store { min-width: 0; flex: 1 1 160px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .phone-hero { animation: none; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .feature-step, .story-shot, .pill, .tile, .btn, .store { transition: none; }
}
