/* Premium page: quieter than the landing — an aurora, a tilting phone, a bento of real screens. */

html, body { overflow-x: clip; }
body.premium { background: var(--bg); }

.rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(.16,.84,.44,1), transform 0.9s cubic-bezier(.16,.84,.44,1);
  transition-delay: var(--d, 0s);
}
.rise.in-view { opacity: 1; transform: none; }

/* ---------- hero ---------- */

.phero { position: relative; text-align: center; padding-block: 30px 10px; isolation: isolate; }
.aurora {
  position: absolute; left: 50%; top: -120px; width: 1300px; height: 820px; translate: -50% 0; z-index: -1;
  background:
    radial-gradient(38% 46% at 32% 40%, rgba(251,191,36,0.20), transparent 70%),
    radial-gradient(34% 42% at 70% 34%, rgba(77,163,255,0.16), transparent 70%),
    radial-gradient(30% 36% at 52% 70%, rgba(236,72,153,0.07), transparent 70%);
  filter: blur(30px);
  animation: aurora 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 20px) scale(1.06); }
  100% { transform: translate(-30px, -10px) scale(0.98); }
}
.shimmerchip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(251,191,36,0.4); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
  background: rgba(251,191,36,0.08);
}
.shimmerchip span {
  background: linear-gradient(100deg, #FBBF24 30%, #fff3c4 50%, #FBBF24 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 4.5s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
.phero h1 { font-size: clamp(34px, 5.6vw, 60px); letter-spacing: -0.025em; line-height: 1.06; margin: 0 auto 16px; max-width: 14ch; }
.phero h1 .word { display: inline-block; opacity: 0; transform: translateY(0.35em); animation: wordin 0.9s cubic-bezier(.16,.84,.44,1) forwards; animation-delay: calc(var(--i) * 0.09s + 0.1s); }
@keyframes wordin { to { opacity: 1; transform: none; } }
.phero .lede { color: var(--text-muted); font-size: 17px; max-width: 560px; margin: 0 auto; }
.principle {
  max-width: 700px; margin: 28px auto 0;
  background: rgba(22,35,58,0.55); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 20px; text-align: left; font-size: 14.5px; color: var(--text-muted);
  backdrop-filter: blur(8px);
}
.principle strong { color: var(--text); }

.tiltstage { perspective: 1400px; display: flex; justify-content: center; padding: 48px 0 20px; }
.tilt {
  --rx: 0deg; --ry: 0deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s cubic-bezier(.16,.84,.44,1);
  transform-style: preserve-3d;
}
.tilt .device {
  --w: 280px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.14), inset 0 0 0 3px #05070a,
    0 0 0 1px rgba(251,191,36,0.18),
    0 50px 90px -30px rgba(0,0,0,0.75),
    0 0 80px -20px rgba(251,191,36,0.25);
}
.slides > img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slides > img.on { opacity: 1; }
.slidecaption {
  text-align: center; margin-top: 18px; min-height: 20px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold);
  transition: opacity 0.4s ease;
}

/* ---------- flagship: forwarded email travels into the logbook ---------- */

.flag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 90px 50px; }
.flag h2 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 18px; }
.flag p { color: var(--text-muted); font-size: 16px; margin: 0; max-width: 46ch; }
.eyebrow.gold { color: var(--gold); }
.flagsteps { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.flagsteps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-muted); }
.flagsteps .n {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--gold);
  background: rgba(251,191,36,0.14); border-radius: 8px; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pipeline { position: relative; display: flex; flex-direction: column; gap: 34px; padding-left: 34px; }
.pipeline::before {
  content: ""; position: absolute; left: 12px; top: 26px; bottom: 26px; width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(251,191,36,0.45) 0 6px, transparent 6px 12px);
}
.pipeline .pulse {
  position: absolute; left: 7px; top: 22px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 6px rgba(251,191,36,0.15), 0 0 18px rgba(251,191,36,0.8);
  animation: travel 4.8s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes travel {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  45% { transform: translateY(calc(var(--span) / 2)); }
  55% { transform: translateY(calc(var(--span) / 2)); }
  92% { opacity: 1; }
  100% { transform: translateY(var(--span)); opacity: 0; }
}
.pcard {
  position: relative;
  background: linear-gradient(160deg, rgba(34,51,79,0.85), rgba(22,35,58,0.85));
  border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px;
  display: flex; gap: 14px; align-items: center;
  box-shadow: 0 14px 34px -18px rgba(0,0,0,0.6);
}
.pcard::before {
  content: ""; position: absolute; left: -29px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--bg); border: 2px solid rgba(251,191,36,0.6);
}
.pcard .ico { width: 38px; height: 38px; border-radius: 11px; background: rgba(251,191,36,0.12); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.pcard strong { display: block; font-size: 15px; color: var(--text); }
.pcard small { display: block; font-size: 12.5px; color: var(--text-faint); font-family: 'IBM Plex Mono', monospace; margin-top: 2px; }
.pcard .bar { height: 5px; border-radius: 999px; background: var(--card-alt); overflow: hidden; margin-top: 8px; width: 180px; max-width: 100%; }
.pcard .bar span { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: scan 1.8s ease-in-out infinite; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.pcard .ok { color: var(--success); }

/* ---------- bento ---------- */

.bhead { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.bhead h2 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px; }
.bhead p { color: var(--text-muted); font-size: 16px; margin: 0; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bcard {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 26px; border: 1px solid var(--border);
  background: linear-gradient(180deg, #152238, #0f1a2c);
  padding: 24px 24px 0;
  display: flex; flex-direction: column;
  min-height: 440px;
  transition: border-color 0.4s ease, transform 0.5s cubic-bezier(.16,.84,.44,1);
}
.bcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(251,191,36,0.13), transparent 60%);
}
.bcard:hover { border-color: rgba(251,191,36,0.35); transform: translateY(-3px); }
.bcard:hover::before { opacity: 1; }
.bcard .tag { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.bcard h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 8px; }
.bcard p { color: var(--text-muted); font-size: 14.5px; margin: 0; line-height: 1.5; }
.bcard .peek { margin-top: auto; padding-top: 22px; display: flex; justify-content: center; gap: 14px; height: 300px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.bcard .peek .device { --w: 230px; transition: transform 0.7s cubic-bezier(.16,.84,.44,1); }
.bcard:hover .peek .device { transform: translateY(-14px); }
.bcard.wide { grid-column: span 2; flex-direction: row; gap: 24px; padding-bottom: 0; }
.bcard.wide .copy { flex: 1 1 0; padding-bottom: 24px; align-self: center; }
.bcard.wide .peek { margin-top: 0; padding-top: 24px; height: 440px; flex: 0 0 auto; }
.bcard.wide .peek .device + .device { margin-top: 60px; }

/* ---------- compare ---------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.plan { border-radius: 22px; padding: 26px; border: 1px solid var(--border); background: var(--card); }
.plan h2 { font-size: 20px; margin-bottom: 4px; }
.plan .price { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--text-faint); margin: 0 0 18px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.plan li .mark { flex-shrink: 0; width: 18px; text-align: center; color: var(--success); }
.plan .sub { color: var(--text-muted); display: block; font-size: 13px; margin-top: 2px; }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.plan.gold {
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, #1f2a3a, var(--card) 55%) padding-box,
    conic-gradient(from var(--angle), rgba(251,191,36,0.15), rgba(251,191,36,0.85), rgba(251,191,36,0.15) 30%, rgba(251,191,36,0.15) 70%, rgba(251,191,36,0.85), rgba(251,191,36,0.15)) border-box;
  animation: spinborder 9s linear infinite;
}
@keyframes spinborder { to { --angle: 360deg; } }
.plan.gold h2 { color: var(--gold); }
.plan.gold li .mark { color: var(--gold); }
.ctaband { margin-top: 32px; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 30px; }
.ctaband p { color: var(--text-muted); font-size: 14.5px; margin: 12px 0 0; }
.ctaband .glow { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .aurora, .shimmerchip span, .pipeline .pulse, .pcard .bar span, .plan.gold { animation: none; }
  .phero h1 .word { animation: none; opacity: 1; transform: none; }
  .rise { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 960px) {
  .flag { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 60px 30px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bcard.wide { grid-column: auto; flex-direction: column; }
  .bcard.wide .peek { height: 300px; padding-top: 22px; }
  .bcard.wide .peek .device + .device { display: none; }
  .compare { grid-template-columns: 1fr; }
  .tilt .device { --w: 230px; }
}
