/* Public home page (home.js). Uses the colors from app.css. */

.hp-body { background: #000; }
.hp { --hp-max: 1120px; overflow-x: clip; }
.hp-inner { max-width: var(--hp-max); margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---------------------------------------------------------------- */

.hp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 14px 24px; font-weight: 650; font-size: 16px; white-space: nowrap;
  transition: filter 0.15s, background 0.15s;
}
.hp-btn.primary { background: var(--accent); color: #fff; }
.hp-btn.ghost { background: rgba(255, 255, 255, 0.08); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.hp-btn.small { padding: 9px 16px; font-size: 15px; }
.hp-btn:hover { filter: brightness(1.12); }
.hp-btn:focus-visible, .hp-navlinks button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Nav -------------------------------------------------------------------- */

.hp-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.hp-nav .hp-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.hp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.hp-brand svg { width: 30px; height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.hp-navlinks { display: flex; gap: 4px; }
.hp-navlinks button {
  background: none; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 8px;
  color: var(--muted); font-size: 15px;
}
.hp-navlinks button:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.hp-navcta { margin-left: auto; display: flex; gap: 10px; }

/* ---- Hero ------------------------------------------------------------------- */

.hp-hero { position: relative; padding: 88px 0 96px; }
.hp-hero::before {
  content: ""; position: absolute; inset: -10% 0 auto; height: 720px; pointer-events: none;
  background: radial-gradient(48% 52% at 72% 42%, rgba(125, 97, 255, 0.28), transparent 70%);
}
.hp-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hp-eyebrow {
  display: inline-block; margin-bottom: 22px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: #b9a8ff; font-size: 14px; font-weight: 600;
}
.hp-hero h1 { margin: 0; font-size: clamp(42px, 6.2vw, 74px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; }
.hp-hero h1 span { color: var(--muted); }
.hp-lede { margin: 24px 0 0; max-width: 34em; font-size: 19px; line-height: 1.55; color: var(--muted); }
.hp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hp-actions.center { justify-content: center; }
.hp-fine { margin: 18px 0 0; color: var(--faint); font-size: 14px; }
.hp-fine.center { text-align: center; }

.hp-phone { margin: 0; border-radius: 46px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.6); }
.hp-phone img { display: block; width: 100%; height: auto; }
.hp-phones { position: relative; height: 620px; }
.hp-phones .hp-phone { position: absolute; top: 0; width: 280px; left: 50%; }
.hp-phones .front { z-index: 2; transform: translateX(-50%); }
.hp-phones .side { opacity: 0.55; filter: saturate(0.9); }
.hp-phones .left { transform: translateX(-110%) translateY(44px) rotate(-6deg) scale(0.86); }
.hp-phones .right { transform: translateX(10%) translateY(44px) rotate(6deg) scale(0.86); }

/* ---- Sections --------------------------------------------------------------- */

.hp-section { padding: 96px 0; border-top: 1px solid var(--line); }
.hp-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.hp-section h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; }
.hp-head p, .hp-row-copy > p, .hp-beta > p { margin: 16px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }

.hp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hp-feature { padding: 28px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.hp-ficon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: #b9a8ff; }
.hp-ficon svg { width: 24px; height: 24px; }
.hp-feature h3 { margin: 20px 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.hp-feature p { margin: 0; color: var(--muted); line-height: 1.55; }

.hp-rows { display: grid; gap: 96px; }
.hp-row { display: grid; grid-template-columns: 320px 1fr; gap: 72px; align-items: center; max-width: 920px; margin: 0 auto; }
.hp-row.flip { grid-template-columns: 1fr 320px; }
.hp-row.flip .hp-phone { order: 2; }
.hp-checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.hp-checks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.hp-checks svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }

.hp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 920px; margin: 0 auto; }
.hp-plan { padding: 30px 28px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.hp-plan.featured { box-shadow: inset 0 0 0 1.5px var(--accent); background: linear-gradient(180deg, rgba(125, 97, 255, 0.12), var(--surface) 60%); }
.hp-plan h3 { margin: 0; font-size: 17px; color: var(--muted); font-weight: 600; }
.hp-price { margin: 10px 0 0; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; }
.hp-price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.hp-plan-note { margin: 2px 0 0; color: var(--faint); font-size: 14px; min-height: 20px; }
.hp-storage { margin: 24px 0 0; font-size: 22px; font-weight: 700; }
.hp-plan-file { margin: 4px 0 0; color: var(--muted); }
.hp-every-wrap { max-width: 920px; margin: 28px auto 0; padding: 26px 28px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.hp-every-title { margin: 0; font-weight: 650; }
.hp-every { grid-template-columns: repeat(2, 1fr); margin-top: 16px; color: var(--muted); }

.hp-beta {
  max-width: 820px; margin: 0 auto; padding: 56px 48px; border-radius: 30px; text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, rgba(125, 97, 255, 0.22), transparent 70%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.hp-steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.hp-steps li { counter-increment: step; padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); display: grid; gap: 6px; }
.hp-steps li::before {
  content: counter(step); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 8px;
}
.hp-steps span { color: var(--muted); font-size: 15px; line-height: 1.45; }

.hp-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--faint); font-size: 14px; }
.hp-footer-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hp-footer .hp-brand { font-size: 18px; color: var(--text); }
.hp-footer .hp-brand svg { width: 24px; height: 24px; }
.hp-footer nav { display: flex; gap: 20px; margin-left: auto; }
.hp-footer nav a { color: var(--muted); }
.hp-footer nav a:hover { color: var(--text); }
.hp-footer p { margin: 0; }

/* ---- Smaller screens -------------------------------------------------------- */

@media (max-width: 900px) {
  .hp-navlinks { display: none; }
  .hp-hero { padding: 56px 0 64px; }
  .hp-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hp-phones { height: 520px; }
  .hp-phones .hp-phone { width: 240px; }
  .hp-features { grid-template-columns: repeat(2, 1fr); }
  .hp-row, .hp-row.flip { grid-template-columns: 1fr; gap: 40px; max-width: 520px; }
  .hp-row .hp-phone { width: 260px; margin: 0 auto; }
  .hp-row.flip .hp-phone { order: 0; }
  .hp-plans { grid-template-columns: 1fr; max-width: 440px; }
  .hp-every-wrap { max-width: 440px; }
  .hp-every { grid-template-columns: 1fr; }
  .hp-steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hp-inner { padding: 0 16px; }
  .hp-nav .hp-inner { gap: 12px; }
  .hp-navcta { gap: 8px; }
  .hp-brand span { font-size: 20px; }
  .hp-section { padding: 72px 0; }
  .hp-features { grid-template-columns: 1fr; }
  .hp-actions .hp-btn { flex: 1 1 100%; }
  .hp-phones { height: 470px; }
  .hp-phones .side { display: none; }
  .hp-phones .hp-phone { width: 220px; }
  .hp-beta { padding: 40px 20px; border-radius: 24px; }
  .hp-footer nav { margin-left: 0; width: 100%; }
}
