/* routerocket.app: the landing page. Layout follows beachdash.app; the blue is the app's `tint`
   (docs/design-system.md) and the flame is the rocket's in the app icon. */
:root {
  --night: #071426;
  --night-2: #0c1f38;
  --night-3: #04101f;
  --sky: #5ab1ff;
  --flame-1: #ffb547;
  --flame-2: #ff7a2f;
  --green: #34c759;
  --white: #ffffff;
  --text-2: rgba(255, 255, 255, 0.6);
  --text-3: rgba(255, 255, 255, 0.42);
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --hairline: rgba(255, 255, 255, 0.07);

  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--sky);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Header: fixed, frosted, darkens once you scroll */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(7, 20, 38, 0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.top.scrolled {
  background: rgba(7, 20, 38, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.logo:hover {
  text-decoration: none;
}
.logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.logo em {
  font-style: normal;
  color: var(--flame-1);
}
.top-links {
  display: none;
  gap: 2.25rem;
}
.top-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}
.top-links a:hover {
  color: var(--white);
  text-decoration: none;
}
.top-cta {
  display: none;
  padding: 0.7rem 1.4rem;
  border-radius: 100px;
  background: var(--flame-1);
  color: var(--night);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(255, 181, 71, 0.25);
  transition: box-shadow 0.3s ease;
}
.top-cta:hover {
  text-decoration: none;
  box-shadow: 0 6px 30px rgba(255, 181, 71, 0.45);
}
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 101;
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}
.menu-toggle .menu-x,
.menu-toggle[aria-expanded="true"] .menu-bars {
  display: none;
}
.menu-toggle[aria-expanded="true"] .menu-x {
  display: block;
}
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: rgba(7, 20, 38, 0.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav a {
  padding: 0.75rem 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
}
.mobile-nav .btn-glow {
  margin-top: 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
}
@media (min-width: 900px) {
  .top-links,
  .top-cta {
    display: flex;
  }
  .menu-toggle,
  .mobile-nav {
    display: none;
  }
}

/* Hero: deep blueprint navy with the app icon's grid, a warm flame accent */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 6rem;
  overflow: hidden;
  background: var(--night);
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 75% 0%, rgba(44, 138, 240, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 55%, rgba(255, 140, 50, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(90, 177, 255, 0.14) 0%, transparent 50%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-inner > * {
  min-width: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 181, 71, 0.22);
  border-radius: 100px;
  background: rgba(255, 181, 71, 0.1);
  color: var(--flame-1);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fade-up 1s ease-out 0.1s both;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame-1);
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero h1 {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  animation: fade-up 1s ease-out 0.2s both;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--flame-1), var(--flame-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  max-width: 540px;
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  animation: fade-up 1s ease-out 0.3s both;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fade-up 1s ease-out 0.4s both;
}
.btn-glow,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2.25rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn-glow {
  background: linear-gradient(135deg, var(--flame-1), var(--flame-2));
  color: var(--night);
  box-shadow: 0 8px 30px rgba(255, 150, 60, 0.3);
}
.btn-glow:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 150, 60, 0.5);
}
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
.btn-ghost:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.hero-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  animation: fade-up 1s ease-out 0.5s both;
}

/* Phones: real app screenshots (demo data) in a thin bezel, fanned */
.device {
  border-radius: 34px;
  padding: 6px;
  background: #0b0f16;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}
.fan {
  position: relative;
  width: 360px;
  height: 540px;
  margin: 0 auto;
  animation: fade-up 1.2s ease-out 0.5s both;
}
.fan .device {
  position: absolute;
  width: 220px;
  transition: transform 0.4s ease;
}
.fan .device:nth-child(1) {
  top: 44px;
  left: 0;
  transform: rotate(-7deg);
}
.fan .device:nth-child(2) {
  top: 0;
  left: 70px;
  z-index: 2;
}
.fan .device:nth-child(3) {
  top: 52px;
  left: 140px;
  transform: rotate(7deg);
}
.fan:hover .device:nth-child(1) {
  transform: rotate(-9deg) translateX(-12px);
}
.fan:hover .device:nth-child(2) {
  transform: translateY(-8px);
}
.fan:hover .device:nth-child(3) {
  transform: rotate(9deg) translateX(12px);
}
.hero-visual {
  display: none;
}
@media (min-width: 1024px) {
  .hero-visual {
    display: block;
  }
}
/* Below 1024 px the fan sits between the pill and the headline, smaller */
.fan-mobile {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 0 0 2rem;
}
.fan-mobile .device {
  width: 27vw;
  max-width: 130px;
  border-radius: 20px;
  padding: 4px;
}
.fan-mobile .device img {
  border-radius: 16px;
}
.fan-mobile .device:nth-child(1) {
  transform: rotate(-6deg) translateY(-4px);
  margin-right: -18px;
}
.fan-mobile .device:nth-child(2) {
  position: relative;
  z-index: 2;
  transform: translateY(-12px);
}
.fan-mobile .device:nth-child(3) {
  transform: rotate(6deg) translateY(-4px);
  margin-left: -18px;
}
@media (min-width: 1024px) {
  .fan-mobile {
    display: none;
  }
}
@media (max-width: 639px) {
  .hero {
    padding: 6.5rem 1rem 4rem;
  }
  .hero-desc {
    font-size: 1.05rem;
  }
  .btn-glow,
  .btn-ghost {
    width: 100%;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pulse-dot {
  50% {
    opacity: 0.35;
  }
}
/* Sections */
.section {
  position: relative;
  padding: 7rem 1.5rem;
}
.section-head {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 4rem;
  text-align: center;
}
.label {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(90, 177, 255, 0.18);
  border-radius: 100px;
  background: rgba(90, 177, 255, 0.1);
  color: var(--sky);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--flame-1), var(--flame-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.subtitle {
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-2);
}

/* Cards (problems and features) */
.grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--card);
  text-align: center;
  transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line, var(--sky)), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}
.card:hover::before {
  opacity: 1;
}
.card h3 {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-3);
}
.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 1.25rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 14%, transparent);
}
.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--tone);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tone-sky {
  --tone: #5ab1ff;
}
.tone-flame {
  --tone: #ffb547;
}
.tone-coral {
  --tone: #ff6b6b;
}
.tone-green {
  --tone: #34c759;
}
.tone-violet {
  --tone: #a78bfa;
}
.tone-teal {
  --tone: #30b0c7;
}

.problems {
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.problems .card {
  --line: #ff6b6b;
}

.features {
  background: var(--night-2);
}
.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 640px;
  max-width: 100%;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(90, 177, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.extras {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 900px;
  margin: 3rem auto 0;
}
.extras li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  background: var(--card);
  font-size: 0.9rem;
  color: var(--text-2);
}
.extras li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
}

/* Showcase: the pins, with the statuses they stand for */
.showcase {
  background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
}
.showcase-inner {
  display: grid;
  gap: 3.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .showcase-inner {
    grid-template-columns: 1fr 1fr;
  }
}
.showcase-inner > * {
  min-width: 0;
}
.showcase .section-head {
  margin: 0;
  text-align: left;
}
.showcase-shots {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem;
}
.showcase-shots .device {
  width: min(42vw, 230px);
}
.showcase-shots .device:nth-child(2) {
  margin-top: 3rem;
}
.statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.statuses li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  background: var(--card);
  font-size: 0.9rem;
  color: var(--text-2);
}
.statuses li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
}

/* How it works */
.how {
  background: var(--night);
}
.steps {
  position: relative;
  display: grid;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .steps::before {
    content: "";
    position: absolute;
    top: 60px;
    left: calc(16.66% + 1rem);
    right: calc(16.66% + 1rem);
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(90, 177, 255, 0.3), rgba(255, 255, 255, 0.06));
  }
}
.step {
  position: relative;
  padding: 2rem 1.5rem;
  text-align: center;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c8af0, var(--sky));
  box-shadow: 0 8px 30px rgba(44, 138, 240, 0.4);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}
.step h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.step p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-3);
}

/* Built in the field: who it's for, and what's coming */
.field {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--night-3);
}
.field-inner {
  display: grid;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .field-inner {
    grid-template-columns: 1fr 1fr;
  }
}
.panel {
  padding: 2.25rem;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: var(--card);
}
.panel h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.panel p {
  margin-bottom: 1.5rem;
  line-height: 1.65;
  color: var(--text-2);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chips li {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
.chips.soon li {
  border: 1px dashed rgba(255, 181, 71, 0.35);
  background: transparent;
  color: var(--flame-1);
}

/* Plans: tiers without prices until launch */
.pricing {
  background: var(--night-2);
}
.plans {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
  }
}
.plans.two {
  max-width: 760px;
}
.plans.one {
  max-width: 420px;
}
@media (min-width: 900px) {
  .plans.one {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 900px) {
  .plans.two {
    grid-template-columns: repeat(2, 1fr);
  }
}
.plan {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: var(--card);
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}
.plan:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}
.plan.featured {
  border-color: rgba(255, 181, 71, 0.3);
  background: rgba(255, 255, 255, 0.05);
}
.plan.featured::before {
  background: linear-gradient(90deg, var(--flame-1), var(--flame-2));
}
.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--flame-1), var(--flame-2));
  color: var(--night);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}
.plan-for {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-3);
}
.plan-price {
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}
.plan-price span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-3);
}
.includes {
  display: grid;
  gap: 0.75rem;
  flex: 1;
  margin-bottom: 2rem;
  text-align: left;
}
.includes li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-2);
}
.includes li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334c759' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.btn-plan {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding: 0.9rem 1.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.btn-plan:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.featured .btn-plan {
  border: 0;
  background: linear-gradient(135deg, var(--flame-1), var(--flame-2));
  color: var(--night);
  box-shadow: 0 6px 20px rgba(255, 150, 60, 0.3);
}
.featured .btn-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 150, 60, 0.45);
}
.fine {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-3);
}

/* FAQ */
.faq {
  background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
}
.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}
.faq-list details {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--card);
  transition: border-color 0.3s ease;
}
.faq-list details:hover,
.faq-list details[open] {
  border-color: rgba(255, 255, 255, 0.12);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='0.4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s ease;
}
.faq-list details[open] summary::after {
  transform: rotate(180deg);
}
.faq-list details p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-2);
}

/* Early access */
.access {
  overflow: hidden;
  background: var(--night);
  text-align: center;
}
.access::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(44, 138, 240, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 80% 35%, rgba(255, 181, 71, 0.06) 0%, transparent 70%);
}
.access-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.app-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 2rem;
  border-radius: 20px;
  box-shadow: 0 16px 50px rgba(44, 138, 240, 0.35);
}
.access .title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}
.signup {
  display: grid;
  gap: 0.75rem;
  max-width: 520px;
  margin: 2.5rem auto 0;
  text-align: left;
}
@media (min-width: 560px) {
  .signup {
    grid-template-columns: 1fr auto;
  }
  .signup .roles {
    grid-column: 1 / -1;
  }
}
.signup input[type="email"] {
  min-height: 56px;
  padding: 0 1.4rem;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
}
.signup input[type="email"]::placeholder {
  color: var(--text-3);
}
.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(90, 177, 255, 0.18);
}
.signup button {
  min-height: 56px;
  padding: 0 2rem;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.signup button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  margin: 0.25rem 0 0;
  padding: 0;
}
.roles label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--text-2);
  cursor: pointer;
}
.roles label:has(input:checked) {
  border-color: rgba(90, 177, 255, 0.5);
  background: rgba(90, 177, 255, 0.12);
  color: var(--white);
}
.roles input {
  accent-color: var(--sky);
}
.signup-status {
  min-height: 1.5em;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-2);
}
.signup-status.ok {
  color: var(--green);
}
.signup-status.error {
  color: #ff8a80;
}

/* Footer */
.footer {
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--night-3);
}
.footer-inner {
  display: grid;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.footer-brand p {
  max-width: 320px;
  margin-top: 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-3);
}
.footer h4 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-links {
  display: grid;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.95rem;
  color: var(--text-2);
}
.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
}
.footer-bottom {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.32);
}

/* Scroll reveal; only when JS runs, so the page reads fine without it */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}
.d1 {
  transition-delay: 0.1s !important;
}
.d2 {
  transition-delay: 0.2s !important;
}
.d3 {
  transition-delay: 0.3s !important;
}
.d4 {
  transition-delay: 0.4s !important;
}

@media (max-width: 639px) {
  .section {
    padding: 5rem 1rem;
  }
  .section-head {
    margin-bottom: 3rem;
  }
  .plan {
    padding: 2rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ========== Inner pages (About, FAQ, Support, legal) ========== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 9.5rem 1.5rem 4.5rem;
  text-align: center;
  background: var(--night);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 70% 0%, rgba(44, 138, 240, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 60%, rgba(255, 140, 50, 0.06) 0%, transparent 60%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 20%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 20%, #000 10%, transparent 70%);
  pointer-events: none;
}
.page-hero > * {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  animation: fade-up 0.9s ease-out 0.1s both;
}
.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--flame-1), var(--flame-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero .subtitle {
  max-width: 620px;
  margin: 1.25rem auto 0;
  animation: fade-up 0.9s ease-out 0.2s both;
}
.page-hero .label {
  animation: fade-up 0.9s ease-out both;
}
.updated {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-3);
}

.page-body {
  padding: 1rem 1.5rem 6rem;
  background: var(--night);
}
.doc {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-2);
  line-height: 1.75;
}
.doc h2 {
  margin: 3rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}
.doc h2:first-child {
  margin-top: 0;
}
.doc h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
.doc p,
.doc ul,
.doc ol {
  margin: 0 0 1rem;
}
.doc ul,
.doc ol {
  padding-left: 1.4rem;
}
.doc ul {
  list-style: disc;
}
.doc li {
  margin-bottom: 0.4rem;
}
.doc li::marker {
  color: var(--sky);
}
.doc strong {
  color: rgba(255, 255, 255, 0.9);
}
.doc .placeholder {
  padding: 0 0.3em;
  border-radius: 4px;
  background: rgba(255, 181, 71, 0.15);
  color: var(--flame-1);
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: 16px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.doc th,
.doc td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}
.doc th {
  background: var(--card);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.doc tr:last-child td {
  border-bottom: 0;
}
.callout {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(90, 177, 255, 0.22);
  border-radius: 16px;
  background: rgba(90, 177, 255, 0.07);
}
.callout.warn {
  border-color: rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.07);
}
.callout p:last-child,
.callout ul:last-child,
.callout ol:last-child {
  margin-bottom: 0;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.toc a {
  padding: 0.45rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  background: var(--card);
  font-size: 0.88rem;
  color: var(--text-2);
}
.toc a:hover {
  border-color: rgba(90, 177, 255, 0.4);
  color: var(--white);
  text-decoration: none;
}
.faq-cat {
  max-width: 720px;
  margin: 3.5rem auto 1.25rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.faq-cat:first-of-type {
  margin-top: 0;
}
.card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}
.cta-band {
  max-width: 760px;
  margin: 4rem auto 0;
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 181, 71, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 80% 80% at 50% 120%, rgba(44, 138, 240, 0.25) 0%, transparent 70%),
    var(--card);
  text-align: center;
}
.cta-band h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 700;
}
.cta-band p {
  margin: 0 auto 2rem;
  max-width: 520px;
  color: var(--text-2);
  line-height: 1.7;
}
.center-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 7rem 1.5rem 4rem;
  text-align: center;
}
.center-page .app-icon {
  margin-bottom: 2rem;
}
.center-page .hero-buttons {
  justify-content: center;
  margin-top: 2.25rem;
}
