/* ══════════════════════════════════════════
   Playmoir Landing — style.css
   Single dark theme (Midnight & Coral)
   Inter self-hosted — no external fonts
══════════════════════════════════════════ */

/* SELF-HOSTED FONTS */
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* DESIGN TOKENS */
:root {
  --bg:               #0F1220;
  --surface:          #181C2E;
  --surface-el:       #20243A;
  --text-1:           #F5EFE6;
  --text-2:           #B8B5C9;
  --text-3:           #7D7B94;
  --accent:           #FF7A5A;
  --accent-glow:      rgba(255,122,90,.22);
  --accent-dim:       #3A2019;
  --secondary:        #8B7ED8;
  --border:           #262940;
  --r:                12px;
  --r-lg:             22px;
  --max-w:            1140px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* LAYOUT */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── HEADER ─────────────────────────────── */
#site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(15,18,32,.88);
  border-color: var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.wordmark {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text-1);
}
.wordmark .dot { color: var(--accent); }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-3);
  transition: color .15s;
}
.site-nav a:hover { color: var(--text-1); }

/* ── BUTTONS ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }

.btn-coral {
  padding: 13px 26px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 28px var(--accent-glow);
}
.btn-coral:hover {
  opacity: .88;
  box-shadow: 0 10px 40px rgba(255,122,90,.32);
}
.btn-ghost {
  padding: 12px 22px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-3); color: var(--text-1); }

/* ── HERO ───────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}
/* ambient glows */
#hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -60px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,122,90,.09) 0%, transparent 68%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 5%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(139,126,216,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  padding-block: 88px;
  position: relative;
  z-index: 1;
}
@media (min-width: 780px) {
  .hero-grid { grid-template-columns: 1fr auto; gap: 72px; }
}

/* Hero text */
.hero-app-icon { margin-bottom: 20px; }
.hero-app-icon img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.hero-eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-h1 {
  font-size: clamp(2.625rem, 6.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.04em;
  text-wrap: balance;
  margin-bottom: 22px;
}
.hero-h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-2);
  line-height: 1.72;
  max-width: 430px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  color: var(--text-3);
}
.hero-note::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
}

/* ── PHONE MOCKUP ───────────────────────── */
.phone-wrap { display: flex; justify-content: center; }

.phone-tilt {
  transform: rotate(4deg);
}
@keyframes float {
  0%,100% { transform: rotate(4deg) translateY(0px); }
  50%      { transform: rotate(4deg) translateY(-10px); }
}
@media (prefers-reduced-motion: no-preference) {
  .phone-tilt { animation: float 4s ease-in-out infinite; }
}

.phone-shell {
  width: 218px;
  height: 448px;
  border-radius: 42px;
  background: var(--surface-el);
  border: 1.5px solid var(--border);
  box-shadow:
    0 40px 100px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.04),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-island {
  width: 68px; height: 18px;
  background: var(--surface-el);
  border-radius: 0 0 12px 12px;
  margin-inline: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.phone-screen {
  flex: 1;
  background: linear-gradient(175deg, #141828 0%, #0f1120 55%, #18132a 100%);
  padding: 14px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
/* Skeleton UI elements — clearly placeholder, correctly shaped */
.sk-label {
  font-size: .48rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.sk-divider { height: 1px; background: var(--border); }
.sk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 9px;
}
.sk-card-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.sk-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.sk-title {
  font-size: .58rem;
  font-weight: 600;
  color: var(--text-1);
}
.sk-meta {
  font-size: .5rem;
  color: var(--text-3);
}
.sk-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin-top: 4px;
}
.sk-bar.a { width: 75%; }
.sk-bar.b { width: 50%; }
.sk-chip {
  display: inline-block;
  padding: 2px 7px;
  background: var(--accent-dim);
  border-radius: 100px;
  font-size: .46rem;
  font-weight: 600;
  color: var(--accent);
}
.sk-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-block: 6px 2px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.sk-nav-pip {
  width: 16px; height: 3px;
  border-radius: 2px;
}
.sk-nav-pip.on  { background: var(--accent); }
.sk-nav-pip.off { background: var(--border); }

/* ── WHY SECTION ────────────────────────── */
#why {
  padding-block: 96px;
  background: var(--surface);
}
.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-eye {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 14px;
}
.section-lead {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.7;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

.pillar {
  background: var(--surface-el);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 26px 36px;
  transition: border-color .2s, transform .2s;
}
.pillar:hover {
  border-color: rgba(255,122,90,.28);
  transform: translateY(-3px);
}
.pillar-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pillar-icon svg {
  width: 22px; height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillar h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--text-1);
  margin-bottom: 10px;
}
.pillar p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.67;
}

/* ── SCREENSHOTS ────────────────────────── */
#screenshots { padding-block: 96px; }
.screenshots-head { text-align: center; margin-bottom: 52px; }

.screens-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 24px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screens-rail::-webkit-scrollbar { display: none; }

@media (min-width: 820px) {
  .screens-rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    padding: 8px 24px 8px;
    max-width: 780px;
    margin-inline: auto;
  }
}

.screen-frame {
  flex: 0 0 168px;
  height: 340px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 820px) {
  .screen-frame { flex: none; width: 100%; height: 356px; }
}
.screen-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,126,216,.05) 0%, rgba(255,122,90,.04) 100%);
}
.screen-glyph {
  position: relative;
  width: 36px; height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-glyph svg {
  width: 16px; height: 16px;
  stroke: var(--text-3);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.screen-label {
  position: relative;
  font-size: .65rem;
  color: var(--text-3);
  text-align: center;
  padding-inline: 20px;
  line-height: 1.5;
}

/* ── HOW IT WORKS ───────────────────────── */
#how {
  padding-block: 96px;
  background: var(--surface);
}
.how-head { text-align: center; margin-bottom: 60px; }

.steps {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  padding: 36px 30px;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  .step {
    border-top: none;
    border-right: 1px solid var(--border);
  }
  .step:last-child { border-right: none; }
}

.step-num {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--border);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.step h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-1);
  margin-bottom: 8px;
}
.step p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.67;
}

/* ── FINAL CTA ──────────────────────────── */
#cta-final {
  padding-block: 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,122,90,.11) 0%, transparent 62%);
  pointer-events: none;
}
.cta-box { position: relative; z-index: 1; }
#cta-final h2 {
  font-size: clamp(2rem, 4.5vw, 3.125rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: 14px;
}
#cta-final p {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 34px;
}

/* ── FOOTER ─────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding-block: 36px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
@media (min-width: 580px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-copy { font-size: .8rem; color: var(--text-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.footer-links a {
  font-size: .8rem;
  color: var(--text-2);
  transition: color .15s;
}
.footer-links a:hover { color: var(--text-1); }

/* ── SCROLL ANIMATIONS ──────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .48s ease, transform .48s ease;
}
.fade-up.in { opacity: 1; transform: none; }
.fade-up:nth-child(2) { transition-delay: .08s; }
.fade-up:nth-child(3) { transition-delay: .16s; }

/* ── LEGAL PAGE STYLES ──────────────────── */
.legal-top {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 80;
}
.legal-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .15s;
}
.legal-back:hover { color: var(--text-1); }
.legal-body {
  max-width: 780px;
  margin-inline: auto;
  padding: 40px 24px 80px;
}

/* Page title and meta — dark theme, above the Termly card */
.legal-body h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text-1);
  margin-bottom: 8px;
}
.legal-date {
  font-size: .8125rem;
  color: var(--text-3);
  margin-bottom: 24px;
  display: block;
}

/*
 * Termly content wrapper — white card so Termly's forced black text
 * (#000 / #595959 with !important) is readable. Do NOT change this
 * background without also auditing all Termly [data-custom-class] colors.
 */
.termly-wrap {
  background: #ffffff;
  border-radius: var(--r);
  padding: 40px 36px;
}
@media (max-width: 580px) {
  .termly-wrap { padding: 24px 18px; }
}

/* Termly link override: use accent color so it's visible on white */
.termly-wrap a { color: #0044cc; }
.termly-wrap a:hover { text-decoration: underline; }

/* ── FEEDBACK SECTION ───────────────────── */
#feedback { padding-block: 80px; }

.feedback-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 40px 40px 44px;
}
@media (max-width: 580px) {
  .feedback-card { flex-direction: column; gap: 20px; padding: 28px 24px 32px; }
}

.feedback-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid rgba(255,122,90,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.feedback-body { flex: 1; }

.feedback-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.feedback-h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.feedback-text {
  font-size: .9375rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 24px;
}

/* ── FLOATING IDEAS BUTTON ──────────────── */
.fab-ideas {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--surface-el);
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transition: background .15s, border-color .15s, transform .15s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.fab-ideas:hover {
  background: var(--accent-dim);
  border-color: rgba(255,122,90,.4);
  transform: translateY(-2px);
}
.fab-ideas-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: fab-pulse 2.5s ease-in-out infinite;
}
@keyframes fab-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
  .fab-ideas-dot { animation: none; }
}

/* ── UTILITY ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
