/* ═══════════════════════════════════════════════════════════════
   PANIN LIBRARY — Marketing site design system
   Palette carried over from the app's own AppColors (ink/emerald/gold),
   extended with a warm "desk-lamp" amber and a parchment accent for
   admit-card / registration-slip style surfaces.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink-950: #080b14;
  --ink-900: #0b1120;
  --ink-800: #121a2e;
  --ink-700: #1c2740;
  --ink-600: #2a3552;
  --ink-500: #3d4a6b;

  --paper: #ede6d6;
  --paper-dim: #d9cfb8;

  --lamp: #e8a93a;
  --lamp-hi: #f4c05f;
  --lamp-dim: #b8842a;

  --signal: #2fd498;
  --signal-dim: #1fa57a;

  --alert: #fb6f7c;

  --text-hi: #f4f1e8;
  --text-mid: #b9c0d4;
  --text-low: #7c86a3;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--lamp); color: var(--ink-950); }

:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-hi);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lamp);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 8px var(--lamp);
}

.lede {
  font-size: 1.15rem;
  color: var(--text-mid);
  max-width: 56ch;
}

/* ───────────────────────── Buttons ───────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--lamp);
  color: var(--ink-950);
  box-shadow: 0 8px 24px -8px rgba(232, 169, 58, 0.6);
}
.btn-primary:hover { background: var(--lamp-hi); }

.btn-ghost {
  background: transparent;
  border-color: var(--ink-600);
  color: var(--text-hi);
}
.btn-ghost:hover { border-color: var(--lamp); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ───────────────────────── Nav ───────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-700);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-hi);
  font-weight: 600;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--lamp), var(--lamp-dim));
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
}
.nav-links a { color: var(--text-mid); transition: color 0.15s; }
.nav-links a:hover { color: var(--text-hi); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: none; color: var(--text-hi); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; background: var(--ink-900); flex-direction: column; align-items: flex-start; padding: 20px 24px 28px; border-bottom: 1px solid var(--ink-700); gap: 18px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.2s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }
}

/* ───────────────────────── Hero + seat grid ───────────────────────── */

.hero {
  padding: 88px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.82rem; color: var(--text-low); font-family: var(--font-mono); }

/* ───────────────────────── Sections ───────────────────────── */

section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }

.strip {
  background: var(--ink-800);
  border-top: 1px solid var(--ink-700);
  border-bottom: 1px solid var(--ink-700);
}

/* Problem / old-way section */
.old-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink-700);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 760px) { .old-new { grid-template-columns: 1fr; } }
.old-new > div { background: var(--ink-900); padding: 40px; }
.old-new h3 { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.old-new .col-old h3 { color: var(--text-low); }
.old-new .col-new h3 { color: var(--lamp); }
.old-new ul { list-style: none; margin: 0; padding: 0; }
.old-new li { padding: 10px 0; border-bottom: 1px solid var(--ink-800); font-size: 0.95rem; }
.old-new li:last-child { border-bottom: none; }
.old-new .col-old li { color: var(--text-low); }
.old-new .col-old li::before { content: "✕  "; color: var(--alert); }
.old-new .col-new li { color: var(--text-hi); }
.old-new .col-new li::before { content: "✓  "; color: var(--signal); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--ink-500); }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(232, 169, 58, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--lamp);
  margin-bottom: 16px;
}
.feature-card h3 { color: var(--text-hi); margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-mid); margin: 0; }

/* How it works — a genuine 3-step sequence */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 8px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-950);
  background: var(--paper);
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { color: var(--text-hi); font-size: 1.05rem; }
.step p { font-size: 0.92rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
}
.price-card.featured {
  border-color: var(--lamp);
  background: linear-gradient(180deg, rgba(232,169,58,0.08), var(--ink-800) 40%);
}
.price-badge {
  position: absolute; top: -12px; right: 28px;
  background: var(--lamp); color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; font-weight: 700;
}
.price-card h3 { font-size: 1rem; color: var(--text-mid); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;}
.price-amount { font-family: var(--font-display); font-size: 2.6rem; color: var(--text-hi); margin: 10px 0 4px; }
.price-amount span { font-family: var(--font-body); font-size: 0.95rem; color: var(--text-low); font-weight: 400; }
.price-card ul { list-style: none; margin: 22px 0 28px; padding: 0; }
.price-card li { padding: 8px 0; font-size: 0.9rem; color: var(--text-mid); display: flex; gap: 10px; }
.price-card li::before { content: "✓"; color: var(--signal); font-weight: 700; }
.pricing-note { text-align: center; margin-top: 28px; font-size: 0.85rem; color: var(--text-low); }

/* FAQ using native details/summary — free keyboard + screen reader support */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--ink-700);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-hi);
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--lamp);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; font-size: 0.92rem; color: var(--text-mid); }

/* Final CTA */
.cta-band {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: var(--ink-950);
}
.cta-band h2 { color: var(--ink-950); }
.cta-band .lede { color: #5a5343; margin: 0 auto 26px; }
.cta-band .btn-primary { background: var(--ink-950); color: var(--paper); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--ink-800); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--ink-700);
  padding: 56px 0 32px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 14px;
}
.footer-grid a, .footer-grid p { display: block; color: var(--text-mid); margin-bottom: 10px; }
.footer-grid a:hover { color: var(--lamp); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-800);
  color: var(--text-low);
  font-size: 0.82rem;
}

/* ───────────────────────── Legal / long-form pages ───────────────────────── */

.legal-header {
  padding: 60px 0 20px;
  border-bottom: 1px solid var(--ink-700);
}
.legal-back { font-family: var(--font-mono); font-size: 0.82rem; color: var(--lamp); }
.legal-body {
  max-width: 740px;
  padding: 48px 24px 100px;
  margin: 0 auto;
}
.legal-body h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--text-mid); font-size: 0.98rem; }
.legal-body ul { padding-left: 1.2em; }
.notice-box {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-left: 3px solid var(--lamp);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 32px;
}
.updated-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-low); margin-bottom: 40px; }

/* ───────────────────────── Store Badges ───────────────────────── */
.store-badge-container {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-700);
}

.store-badge-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 12px;
}

.store-badge-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--text-hi);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.store-badge:hover {
  border-color: var(--lamp);
  transform: translateY(-2px);
}

.store-icon {
  width: 22px;
  height: 22px;
  color: var(--lamp);
}

.store-text {
  display: flex;
  flex-direction: column;
}

.store-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-low);
  letter-spacing: 0.06em;
  line-height: 1;
}

.store-title {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-hi);
  line-height: 1.2;
  margin-top: 2px;
}

/* ───────────────────────── Realistic phone frame + screenshot carousel ───────────────────────── */
.phone-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 10px;
  position: relative;
}

/* the physical device: metal edge, glass highlight, real proportions (~9:19.5) */
.phone-frame {
  width: 280px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(155deg, #2a3350 0%, #12172a 12%, #0a0d1a 50%, #12172a 88%, #2a3350 100%);
  border-radius: 46px;
  padding: 5px;
  position: relative;
  box-shadow:
    0 40px 70px -25px rgba(0,0,0,0.75),
    0 2px 0 rgba(255,255,255,0.08) inset,
    0 -2px 10px rgba(0,0,0,0.5) inset;
}

/* thin inner rim between the metal edge and the screen, like an actual bezel lip */
.phone-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 41px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}

.phone-cam {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a4258, #05070d 70%);
  z-index: 5;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.04);
}

.phone-screen {
  position: absolute;
  inset: 5px;
  border-radius: 41px;
  overflow: hidden;
  background: #000;
}

/* side buttons protruding from the frame, like a real device */
.phone-btn {
  position: absolute;
  background: linear-gradient(90deg, #333c58, #10131f);
  border-radius: 3px;
  z-index: 6;
}
.phone-wrapper .phone-btn.power {
  right: calc(50% - 143px);
  top: 30%;
  width: 3px;
  height: 64px;
}
.phone-wrapper .phone-btn.vol-up,
.phone-wrapper .phone-btn.vol-down {
  left: calc(50% - 143px);
  width: 3px;
  height: 44px;
}
.phone-wrapper .phone-btn.vol-up { top: 24%; }
.phone-wrapper .phone-btn.vol-down { top: calc(24% + 56px); }

/* the four real screenshots, auto-crossfading endlessly, no JS required */
.app-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
}
.slide-1 { animation: showSlide1 16s infinite; }
.slide-2 { animation: showSlide2 16s infinite; }
.slide-3 { animation: showSlide3 16s infinite; }
.slide-4 { animation: showSlide4 16s infinite; }

@keyframes showSlide1 {
  0%, 2%   { opacity: 0; }
  4%, 21%  { opacity: 1; }
  25%, 100%{ opacity: 0; }
}
@keyframes showSlide2 {
  0%, 25%   { opacity: 0; }
  29%, 46%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes showSlide3 {
  0%, 50%   { opacity: 0; }
  54%, 71%  { opacity: 1; }
  75%, 100% { opacity: 0; }
}
@keyframes showSlide4 {
  0%, 75%  { opacity: 0; }
  79%, 96% { opacity: 1; }
  100%     { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .app-slide { animation: none !important; opacity: 0; }
  .slide-1 { opacity: 1; }
}

/* carousel dots below the phone, synced to the same timing */
.phone-dots { display: flex; gap: 7px; }
.phone-dots .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-600);
}
.dot-1 { animation: dotGlow1 16s infinite; }
.dot-2 { animation: dotGlow2 16s infinite; }
.dot-3 { animation: dotGlow3 16s infinite; }
.dot-4 { animation: dotGlow4 16s infinite; }
@keyframes dotGlow1 { 0%,2%{background:var(--ink-600);width:6px;} 4%,21%{background:var(--lamp);width:18px;} 25%,100%{background:var(--ink-600);width:6px;} }
@keyframes dotGlow2 { 0%,25%{background:var(--ink-600);width:6px;} 29%,46%{background:var(--lamp);width:18px;} 50%,100%{background:var(--ink-600);width:6px;} }
@keyframes dotGlow3 { 0%,50%{background:var(--ink-600);width:6px;} 54%,71%{background:var(--lamp);width:18px;} 75%,100%{background:var(--ink-600);width:6px;} }
@keyframes dotGlow4 { 0%,75%{background:var(--ink-600);width:6px;} 79%,96%{background:var(--lamp);width:18px;} 100%{background:var(--ink-600);width:6px;} }
@media (prefers-reduced-motion: reduce) {
  .dot-1, .dot-2, .dot-3, .dot-4 { animation: none !important; }
  .dot-1 { background: var(--lamp); width: 18px; }
}

@media (max-width: 900px) {
  .phone-frame { width: 240px; }
}