/* ===========================================================
   PandaDash AAC — site styles
   Apple-clean structure, black/white, blue highlights
   =========================================================== */

:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --mist-deep: #e8e8ed;
  --blue: #0071e3;
  --blue-deep: #0058b3;
  --line: rgba(0, 0, 0, 0.08);
  --line-soft: rgba(0, 0, 0, 0.05);

  /* community section accent — Discord's own brand color */
  --discord: #5865f2;
  --discord-deep: #4752c4;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.16);

  --maxw: 1100px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Brand wordmark ---------- */
.dash { color: var(--blue); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav-links a { margin-left: 30px; }
.nav-links a:first-child { margin-left: 0; }

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 100px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--blue); }

.nav-toggle { display: none; }

/* ---------- Buttons / badges ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  padding: 9px 16px 9px 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.play-badge:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.play-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.play-badge .badge-text { line-height: 1.1; white-space: nowrap; }
.play-badge .badge-text small { display: block; font-size: 9.5px; letter-spacing: 0.04em; opacity: 0.85; white-space: nowrap; }
.play-badge .badge-text strong { display: block; font-size: 17px; font-weight: 600; font-family: "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: -0.01em; white-space: nowrap; }

.ios-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  background: var(--paper);
}
.ios-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 90px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 20px;
}

.hero .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 0 32px;
}

/* The "stage": panda logo as the background, with the screen floating
   centered on top, nestled into the circular swirl. */
.hero-stage {
  position: relative;
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  background-color: var(--paper);
  background-image: url(../assets/logo-mark.png);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-float {
  width: 76%;
  margin-top: 46px;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.22)) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.12));
}

/* ---------- Section scaffolding ---------- */
section { padding: 96px 0; }
.section-tight { padding: 72px 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 14px;
}

.section-head p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.bg-mist { background: var(--mist); }

/* ---------- Video section ---------- */
.video-frame {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-frame .video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(160deg, #1d1d1f, #2c2c30);
  color: #fff;
  cursor: default;
}

.video-fallback .play-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-fallback .play-circle svg { width: 22px; height: 22px; fill: #fff; }
.video-fallback p { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin: 0; }

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line-soft);
}
.feature-row:first-of-type { border-top: none; }

.feature-row.reverse .feature-media { order: 2; }
.feature-row.reverse .feature-copy { order: 1; }

.feature-copy .eyebrow { margin-bottom: 14px; }

.feature-copy h3 {
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.015em;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 14px;
}

.feature-copy p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 0;
  max-width: 460px;
}

.feature-media img {
  width: 100%;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.14)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.08));
}

/* ---------- Pricing cards ---------- */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.plan-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.plan-card.pro {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  position: relative;
}

.plan-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.plan-card.pro .plan-name { color: rgba(255,255,255,0.6); }

.plan-price {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.plan-price small { font-size: 16px; font-weight: 500; color: var(--ink-soft); }
.plan-card.pro .plan-price small { color: rgba(255,255,255,0.6); }

.plan-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.plan-card.pro .plan-sub { color: rgba(255,255,255,0.7); }

.plan-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex-grow: 1;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
}

.plan-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.plan-card:not(.pro) .plan-list svg { color: var(--blue); }
.plan-card.pro .plan-list svg { color: var(--paper); opacity: 0.9; }

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  background: var(--mist);
  color: var(--ink);
}
.plan-card.pro .plan-cta { background: var(--paper); color: var(--ink); }

/* ---------- Community / Discord ---------- */
.community {
  background: linear-gradient(155deg, var(--discord) 0%, var(--discord-deep) 100%);
  border-radius: 28px;
  padding: 64px 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.community .eyebrow {
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 8px;
}
.community .eyebrow svg { width: 16px; height: 16px; margin-right: 8px; }

.community h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.15;
}

.community p.lede {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 460px;
  margin: 0 0 30px;
}

.community-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--discord-deep);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.community-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.community-cta svg { width: 18px; height: 18px; margin-right: 2px; }

.community-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.community-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 18px;
}
.community-list .ico {
  margin-right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.community-list .ico svg { width: 17px; height: 17px; }
.community-list strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.community-list span { display: block; font-size: 13.5px; color: rgba(255, 255, 255, 0.75); line-height: 1.4; }

/* ---------- Footer social icons ---------- */
.social-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.social-row a:hover { color: var(--blue); border-color: var(--blue); }
.social-row svg { width: 16px; height: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 100px 0;
}

.cta-band h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 16px;
}

.cta-band p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.cta-band .btn-row { justify-content: center; }
.cta-band .ios-badge { border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.7); background: transparent; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 36px;
  background: var(--mist);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.footer-brand img { height: 22px; width: auto; }

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.footer-links a { margin-left: 28px; }
.footer-links a:first-child { margin-left: 0; }
.footer-links a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 64px 0 100px;
}
.legal .wrap { max-width: 720px; }
.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.legal .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 48px; }
.legal h2 {
  font-size: 21px;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.legal p, .legal li {
  font-size: 16px;
  line-height: 1.7;
  color: #3a3a3c;
}
.legal ul { padding-left: 20px; }
.legal a.inline-link { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(0,113,227,0.3); }
.legal .note {
  background: var(--mist);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 44px;
}

/* ---------- Scroll reveal (subtle, single-pass) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stage { display: none; }
  .hero .lede { max-width: none; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .feature-media { order: 1; }
  .feature-row.reverse .feature-copy { order: 2; }
  .feature-copy p { max-width: none; }
  .plans { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .cta-band { padding: 72px 0; }
  .community { padding: 44px 28px; }
  .community-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  .hero { padding: 48px 0 40px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}
