/* Flash Revenue Studio — production styles (rebuilt from the design handoff) */

:root {
  --charcoal: #2B2B2B;
  --charcoal-deep: #222222;
  --charcoal-footer: #1E1E1E;
  --surface-card: #2E2E2E;
  --surface-raised: #333333;
  --yellow: #F5C400;
  --yellow-hover: #FFD83D;
  --bolt: linear-gradient(90deg, #E8833A, #F2C80F);
  --gray: #8E8E8E;
  --off-white: #FAFAF7;
  --muted-dark: #B4B4AF;
  --muted-light: #5E5E5A;
  --gutter: clamp(20px, 4vw, 40px);
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 6px; background: var(--yellow); color: var(--charcoal);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.page-legal :focus-visible { outline-color: var(--charcoal); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 0.34em; line-height: 1;
  color: #FFFFFF; white-space: nowrap; text-decoration: none;
}
.logo-mark { display: block; height: 3.65em; width: auto; }
.logo-word { display: inline-flex; flex-direction: column; font-style: italic; padding-top: 0.3em; }
.logo-word .lw-flash { font-size: 2.35em; font-weight: 800; line-height: 0.72; letter-spacing: 0.005em; }
.logo-word .lw-rev {
  display: flex; justify-content: space-between; font-size: 0.97em; font-weight: 700; line-height: 0.72;
  color: var(--yellow); margin-top: 0.3em; padding-right: 0.1em;
}
.logo-word .lw-studio {
  display: flex; justify-content: space-between; font-size: 0.6em; font-weight: 700; line-height: 0.72;
  color: var(--gray); margin-top: 0.36em; padding-right: 0.3em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(36, 36, 36, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.site-header .bar {
  max-width: 1200px; margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px;
}
.site-header .logo, .site-header .logo:hover { font-size: 9.5px; color: #FFFFFF; }
.nav-wide { display: flex; align-items: center; gap: 36px; }
.site-header .nav-wide a {
  color: var(--off-white); text-decoration: none; font-size: 15px; font-weight: 500;
  font-style: italic; letter-spacing: 0.02em;
}
.site-header .nav-wide a:hover { color: var(--yellow); }

.menu-btn {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px;
  color: var(--off-white); font-family: inherit; font-size: 14px; font-weight: 600; font-style: italic; cursor: pointer;
}
.menu-btn .bars { display: flex; flex-direction: column; gap: 4px; }
.menu-btn .bars span { display: block; width: 16px; height: 2px; background: var(--yellow); transform: skewX(-20deg); }
.menu-btn .bars span:last-child { width: 11px; }

.nav-menu {
  display: none; flex-direction: column; padding: 8px var(--gutter) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.site-header .nav-menu a {
  color: var(--off-white); text-decoration: none; font-size: 30px; font-weight: 900;
  font-style: italic; padding: 12px 0;
}
.site-header .nav-menu a:hover { color: var(--yellow); }

@media (max-width: 759.98px) {
  .nav-wide { gap: 20px; }
  .js .nav-wide { display: none; }
  .js .menu-btn { display: flex; }
  .js .nav-menu.is-open { display: flex; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative; background: var(--charcoal-footer); color: var(--muted-dark);
  font-size: 14px; padding: 48px var(--gutter) 44px;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--bolt);
  clip-path: polygon(0 0, 100% 0, 99% 100%, 1% 100%);
}
.site-footer .inner {
  max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 28px 40px;
}
.site-footer .brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-footer .logo { font-size: 8px; }
.site-footer .legal-lines { display: flex; flex-direction: column; gap: 4px; }
.site-footer .legal-lines small { font-size: 12px; color: var(--gray); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer nav a { color: var(--off-white); text-decoration: none; }
.site-footer nav a:hover { color: var(--yellow); }

/* ---------- Shared type & buttons ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; font-style: italic;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--yellow);
}
.kicker::before {
  content: ""; display: block; width: 28px; height: 3px; background: var(--bolt); transform: skewX(-30deg);
}
.kicker.plain::before { display: none; }

.btn {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px;
  color: var(--charcoal); text-decoration: none; font-size: 16px; font-weight: 800; font-style: italic;
  border-radius: 6px; transform: skewX(-12deg); transition: background 0.2s;
}
.btn > span { display: inline-block; transform: skewX(12deg); }
.btn-lg { min-height: 56px; padding: 0 34px; font-size: 18px; }
.btn-yellow { background: var(--yellow); }
.btn-yellow:hover { background: var(--yellow-hover); color: var(--charcoal); }
.btn-ember { background: #F26522; }
.btn-ember:hover { background: #FF7A3D; color: var(--charcoal); }
.btn-teal { background: #04C5B5; background: oklch(0.74 0.13 185); }
.btn-teal:hover { background: #5CD5C7; background: oklch(0.8 0.11 185); color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--yellow); }
.btn-dark:hover { background: #1A1A1A; color: var(--yellow); }

/* ---------- Home ---------- */
.page-home { background: var(--charcoal); color: var(--off-white); }
.page-home main { overflow-x: hidden; }
.page-home a { color: var(--yellow); }
.page-home a:hover { color: var(--yellow-hover); }
.page-home a.btn { color: var(--charcoal); }
.page-home a.btn-dark { color: var(--yellow); }

.wrap { max-width: 1200px; margin: 0 auto; }
.section { padding-left: var(--gutter); padding-right: var(--gutter); scroll-margin-top: 64px; }

.hero {
  position: relative; overflow: hidden; background: var(--charcoal);
  padding: clamp(80px, 13vw, 176px) var(--gutter) clamp(96px, 13vw, 168px);
}
.hero .streaks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero .streaks-rot { position: absolute; inset: -40%; transform: rotate(-24deg); }
.hero .streak {
  position: absolute; left: 0;
  background: linear-gradient(90deg, rgba(232, 131, 58, 0), #E8833A 45%, #F2C80F);
  animation: frsStreak var(--d) linear var(--delay) infinite;
}
@keyframes frsStreak { from { transform: translateX(-120%); } to { transform: translateX(520%); } }
@media (prefers-reduced-motion: reduce) {
  .hero .streak { animation: none; transform: translateX(var(--x)); }
}
.hero .content {
  position: relative; max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
}
.hero h1 {
  margin: 0; font-size: clamp(52px, 9.6vw, 128px); font-weight: 900; font-style: italic;
  line-height: 0.92; letter-spacing: -0.025em; max-width: 10ch; text-wrap: balance;
}
.hero h1 em { font-style: inherit; color: var(--yellow); }
.hero .sub {
  margin: 0; max-width: 560px; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: #D2D2CD; text-wrap: pretty;
}
.hero .cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 8px; }
.hero .note { font-size: 14px; color: var(--muted-dark); }

.divider { height: 6vw; }
.divider > div { height: 100%; }
.divider.up > div { clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.divider.down > div { clip-path: polygon(0 0, 100% 100%, 0 100%); }

.apps { background: var(--charcoal-deep); padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(80px, 10vw, 128px); }
.apps .wrap { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px); }
.section-head { display: flex; flex-direction: column; gap: 14px; }
.h2 {
  margin: 0; font-size: clamp(36px, 5.4vw, 64px); font-weight: 900; font-style: italic;
  line-height: 1; letter-spacing: -0.02em;
}
.app-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 24px; align-items: stretch;
}
.app-card {
  background: var(--surface-card); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 24px;
  overflow: hidden; display: flex; flex-direction: column;
}
.app-panel {
  position: relative; height: clamp(340px, 40vw, 440px); overflow: hidden;
  display: flex; justify-content: center; align-items: flex-end;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}
.app-panel .slash { position: absolute; top: -10%; bottom: -10%; transform: skewX(-22deg); }
.app-panel .phone {
  position: relative; display: block; width: 236px; height: auto; margin-bottom: -150px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}
.flirt .app-panel { background: #3A2419; }
.flirt .slash { background: #F26522; }
.pulse .app-panel { background: #0F1B33; }
.pulse .slash { background: #16B98A; }

.app-body { padding: 28px clamp(22px, 4vw, 36px) 36px; display: flex; flex-direction: column; gap: 20px; }
.app-id { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.app-icon {
  width: 60px; height: 60px; border-radius: 15px; flex: 0 0 auto; display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.app-id .name-col { display: flex; flex-direction: column; gap: 8px; }
.app-id h3 { margin: 0; font-size: 32px; font-weight: 900; font-style: italic; line-height: 1; letter-spacing: -0.01em; }
.pill {
  align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px;
}
.flirt .pill { background: rgba(242, 101, 34, 0.16); color: #FF9A66; }
.pulse .pill { background: rgba(22, 185, 138, 0.16); color: #4FE0AE; }
.tagline { margin: 0; font-size: 18px; line-height: 1.55; color: #DADAD5; max-width: 44ch; text-wrap: pretty; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.page-home a.venue-link {
  color: #4FE0AE; font-size: 15px; font-weight: 500; text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 1px; padding: 10px 0;
}
.page-home a.venue-link:hover { color: var(--off-white); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; min-width: 156px; height: 52px;
  padding: 0 16px 0 14px; border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.28); background: transparent;
  color: var(--off-white); text-decoration: none;
}
.badge svg { flex: 0 0 auto; opacity: 0.8; }
.badge .txt { display: flex; flex-direction: column; gap: 2px; }
.badge .pre { font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-dark); }
.badge .store { font-size: 17px; font-weight: 600; line-height: 1; }
.page-home a.badge { border-style: solid; background: #111111; color: var(--off-white); }
a.badge svg { opacity: 1; }

.about { background: var(--charcoal); padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(80px, 10vw, 128px); }
.about .wrap { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.about .section-head { gap: 20px; }
.about h2 {
  margin: 0; font-size: clamp(28px, 3.8vw, 48px); font-weight: 800; font-style: italic;
  line-height: 1.18; letter-spacing: -0.01em; max-width: 24ch; text-wrap: pretty;
}
.values {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.values li { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: 16px; background: var(--surface-raised); }
.values .ico {
  width: 56px; height: 56px; flex: 0 0 auto; border-radius: 16px;
  background: linear-gradient(135deg, #E8833A, #F2C80F);
  box-shadow: 0 8px 20px rgba(232, 131, 58, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: flex; align-items: center; justify-content: center;
}
.values .label { font-size: 20px; font-weight: 700; font-style: italic; line-height: 1.2; }

.contact {
  background: var(--yellow); color: var(--charcoal);
  padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(80px, 10vw, 120px);
}
.contact .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.contact .kicker { color: var(--charcoal); }
.contact h2 {
  margin: 0; font-size: clamp(34px, 5vw, 60px); font-weight: 900; font-style: italic;
  line-height: 1.02; letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance;
}
.contact p { margin: 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; }
.page-home .contact p a {
  color: var(--charcoal); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere;
}
.page-home .contact p a:hover { color: #000000; }
.contact .btn { margin-top: 8px; }

/* Scroll reveal (only enabled by JS, and never under reduced motion) */
.reveal [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1);
}
.reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.page-legal { background: var(--off-white); color: var(--charcoal); }
.page-legal .shell { min-height: 100vh; display: flex; flex-direction: column; }
.page-legal a { color: var(--charcoal); }
.page-legal a:hover { color: #000000; }
.page-legal .site-footer a { color: var(--off-white); }
.page-legal .site-footer a:hover { color: var(--yellow); }

.title-band { position: relative; overflow: hidden; border-bottom: 1px solid #E6E6E0; }
.title-band .deco1 {
  position: absolute; top: 0; bottom: 0; right: -4%; width: 22%;
  background: linear-gradient(115deg, #E8833A, #F2C80F); transform: skewX(-22deg); opacity: 0.9;
}
.title-band .deco2 {
  position: absolute; top: 0; bottom: 0; right: 21%; width: 1.5%; background: var(--yellow); transform: skewX(-22deg);
}
.title-band .inner {
  position: relative; max-width: 1120px; margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(40px, 6vw, 64px);
  display: flex; flex-direction: column; gap: 14px;
}
.title-band .eyebrow {
  font-size: 13px; font-weight: 700; font-style: italic; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-light);
}
.title-band h1 {
  margin: 0; font-size: clamp(40px, 6vw, 68px); font-weight: 900; font-style: italic; line-height: 1; letter-spacing: -0.02em;
}
.title-band .updated { margin: 0; font-size: 15px; color: var(--muted-light); }

.legal-layout {
  flex: 1 0 auto; width: 100%; max-width: 1120px; margin: 0 auto;
  padding: 0 var(--gutter) 96px; display: flex; gap: 64px; align-items: flex-start;
}
.toc-side {
  position: sticky; top: 88px; flex: 0 0 250px; padding-top: 44px;
  max-height: calc(100vh - 100px); overflow-y: auto;
}
.toc-side .toc-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-light); margin-bottom: 14px;
}
.toc-side ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.page-legal .toc-side a {
  display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; line-height: 1.35;
  text-decoration: none; color: var(--muted-light); font-weight: 400;
}
.toc-side a::before {
  content: ""; width: 10px; height: 14px; flex: 0 0 auto; background: var(--yellow);
  transform: skewX(-20deg); opacity: 0;
}
.page-legal .toc-side a:hover { color: var(--charcoal); }
.page-legal .toc-side a.is-active { color: var(--charcoal); font-weight: 600; }
.toc-side a.is-active::before { opacity: 1; }

.legal-article {
  flex: 1 1 auto; min-width: 0; max-width: 720px; font-size: 17px; line-height: 1.72; color: var(--charcoal);
}
.toc-mobile { display: none; margin-top: 28px; border: 1px solid #DEDED8; border-radius: 12px; background: #FFFFFF; }
.toc-mobile summary {
  min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
  font-size: 15px; font-weight: 600; cursor: pointer; list-style: none;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; font-size: 18px; }
.toc-mobile[open] summary::after { content: "\2212"; }
.toc-mobile ol { list-style: none; margin: 0; padding: 4px 18px 14px; border-top: 1px solid #EBEBE6; }
.page-legal .toc-mobile a { display: block; padding: 9px 0; font-size: 15px; color: var(--charcoal); text-decoration: none; }

@media (max-width: 899.98px) {
  .toc-side { display: none; }
  .toc-mobile { display: block; }
}

.callout {
  margin-top: 36px; padding: 18px 20px; border-radius: 12px; background: #F0EFEA;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  font-size: 15px; line-height: 1.5;
}
.page-legal .callout a { font-weight: 700; text-underline-offset: 3px; }

.legal-article section { scroll-margin-top: 88px; padding-top: 44px; }
.legal-article h2 {
  margin: 0 0 14px; font-size: 27px; font-weight: 800; font-style: italic; line-height: 1.2;
  display: flex; align-items: baseline; gap: 10px;
}
.page-legal .legal-article h2 a.permalink { font-size: 18px; font-weight: 500; color: #9A9A95; text-decoration: none; }
.page-legal .legal-article h2 a.permalink:hover { color: var(--charcoal); }
.legal-article p { margin: 0 0 16px; }
.legal-article p.lead-in { margin-bottom: 12px; }
.legal-article ul { margin: 0 0 16px; padding-left: 22px; }
.legal-article li { margin-bottom: 6px; }
.page-legal .legal-article p a { font-weight: 600; text-underline-offset: 3px; }

.audiences { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; }
.audiences div { padding: 16px 20px; border: 1px solid #E2E2DC; border-radius: 12px; background: #FFFFFF; }
.audiences strong { display: block; font-weight: 700; }

.deletion-box { margin: 0 0 20px; padding: 22px 24px; border-radius: 14px; background: var(--charcoal); color: var(--off-white); }
.deletion-box p.box-title { margin: 0 0 12px; font-weight: 700; font-size: 18px; }
.deletion-box ul { margin: 0 0 12px; }
.deletion-box p.box-note { margin: 0; color: #D2D2CD; font-size: 15px; }
.page-legal .deletion-box a { color: var(--yellow); font-weight: 600; }
.page-legal .deletion-box a:hover { color: var(--yellow-hover); }
.deletion-box :focus-visible { outline-color: var(--yellow); }

/* ---------- 404 ---------- */
.not-found {
  flex: 1 0 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px;
  max-width: 1200px; width: 100%; margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.not-found h1 { margin: 0; font-size: clamp(44px, 8vw, 96px); font-weight: 900; font-style: italic; line-height: 0.95; letter-spacing: -0.025em; }
.not-found h1 em { font-style: inherit; color: var(--yellow); }
.not-found p { margin: 0; font-size: 18px; line-height: 1.55; color: #D2D2CD; max-width: 48ch; }
