/* ==========================================================================
   RootRecord — Ava navy / cyan brand system
   Matches core/src/avaTheme.mjs: navy void, white ink, cyan holograms.
   Layout tokens (--moss*) kept as aliases so existing class names still work.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg-0: #000d1a;          /* deepest navy */
  --bg-1: #001428;          /* primary navy */
  --bg-2: #0a1a2e;          /* raised navy */
  --surface: #0c1c30;       /* card base */
  --surface-2: #122438;     /* raised / hover */
  --surface-3: #0c1c30;     /* card variant */

  /* Text */
  --ink: #ffffff;
  --ink-soft: #c8d8e8;
  --ink-muted: #7a92a8;
  --ink-dark: #000d1a;      /* for placement on bright accents */

  /* Accents — --moss* aliases map to Ava cyan so existing rules keep working */
  --moss: #00e5ff;
  --moss-deep: #001428;
  --moss-bright: #5ef0ff;
  --moss-glow: #5ef0ff;
  --cyan: #00e5ff;
  --cyan-soft: #5ef0ff;
  --sun: #ffd54a;
  --terracotta: #E89A5A;

  /* Structural */
  --line: rgba(0, 229, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(0, 229, 255, 0.28);

  /* Shadows / glows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 14px 40px -16px rgba(0,0,0,0.6), 0 4px 10px -4px rgba(0,0,0,0.4);
  --shadow-lg: 0 30px 70px -24px rgba(0,0,0,0.7), 0 8px 22px -10px rgba(0,0,0,0.5);
  --glow-green: 0 0 0 1px rgba(0, 229, 255, 0.35), 0 8px 30px -6px rgba(0, 229, 255, 0.35);
  --glow-cyan: 0 0 0 1px rgba(0, 229, 255, 0.3), 0 8px 30px -6px rgba(0, 229, 255, 0.3);

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;

  --font-display: "Fraunces", "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  background: var(--bg-0);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--bg-1);
  background-image:
    radial-gradient(1100px 700px at 90% 8%, rgba(0, 229, 255, 0.14), transparent 60%),
    radial-gradient(900px 600px at -10% 15%, rgba(0, 20, 40, 0.95), transparent 60%),
    linear-gradient(180deg, #000d1a 0%, #001428 50%, #000d1a 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  letter-spacing: -0.003em;
  overflow-x: hidden;
}

/* Subtle noise for premium tech feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.25;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.15 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Optional scanline / circuit watermark on hero area */
.bg-circuit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none' stroke='%2300e5ff' stroke-width='0.6'><path d='M0 40h20v-20h20v40h40'/><path d='M40 0v20h-20v40'/><circle cx='40' cy='40' r='2' fill='%2300e5ff' stroke='none'/><circle cx='20' cy='20' r='1.5' fill='%235ef0ff' stroke='none'/></svg>");
  background-size: 80px 80px;
  mix-blend-mode: lighten;
}

::selection { background: var(--moss); color: var(--ink-dark); }

a { color: inherit; }

/* ============================================== LAYOUT */

.site {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.container-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}

/* ============================================== HEADER / NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(0, 13, 26, 0.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.eco-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  padding: 0.4rem 1rem;
  background: #000d1a;
  border-bottom: 1px solid rgba(0, 229, 255, 0.16);
  font-family: var(--font-sans);
}
.eco-bar a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
}
.eco-bar a:hover { color: var(--ink); background: rgba(0, 229, 255, 0.08); }
.eco-bar a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.12);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 20, "SOFT" 40;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  background: var(--moss-deep);
  box-shadow: 0 0 0 1px rgba(94, 240, 255, 0.35), 0 8px 22px -8px rgba(0, 229, 255, 0.55);
  transition: transform .35s var(--ease-out), box-shadow .3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 0 0 1px rgba(94, 240, 255, 0.7), 0 12px 30px -8px rgba(0, 229, 255, 0.8);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 450;
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-pill);
  transition: color .2s ease, background .2s ease;
}

.site-nav a:hover { color: var(--ink); background: rgba(0, 229, 255, 0.06); }

.site-nav a[aria-current="page"] {
  color: var(--moss);
  background: rgba(0, 229, 255, 0.10);
  font-weight: 500;
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1.1rem !important;
  background: var(--moss) !important;
  color: var(--ink-dark) !important;
  border-radius: var(--r-pill);
  font-weight: 600 !important;
  box-shadow: 0 0 0 1px rgba(94, 240, 255, 0.3), 0 6px 18px -6px rgba(0, 229, 255, 0.5);
}

.nav-cta:hover {
  background: var(--moss-bright) !important;
  color: var(--ink-dark) !important;
  box-shadow: 0 0 0 1px rgba(94, 240, 255, 0.55), 0 10px 26px -6px rgba(0, 229, 255, 0.75);
}

/* Dedicated signup page — visible sibling to Account in the header */
.nav-signup {
  margin-left: 0.5rem;
  font-weight: 500 !important;
  color: var(--moss) !important;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08) !important;
}

.nav-signup:hover {
  color: var(--moss-bright) !important;
  background: rgba(0, 229, 255, 0.14) !important;
  border-color: rgba(0, 229, 255, 0.5);
}

.site-nav a.nav-signup[aria-current="page"] {
  color: var(--ink-dark) !important;
  background: rgba(0, 229, 255, 0.22) !important;
  border-color: rgba(0, 229, 255, 0.55);
}

html.nav-signed-in .nav-auth-guest {
  display: none !important;
}

html:not(.nav-signed-in) .nav-auth-user {
  display: none !important;
}

html.nav-lifetime .nav-account-panel a[href="/billing.html"] {
  display: none !important;
}

.nav-auth-guest,
.nav-auth-user {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav-account-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-nav button.nav-cta {
  margin: 0;
  margin-left: 0.5rem;
  font: inherit;
  cursor: pointer;
  border: none;
  appearance: none;
}

.site-nav .nav-account-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 10.5rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-nav .nav-account-panel a {
  font-size: 0.92rem;
  font-weight: 450;
}

.site-nav .nav-account-panel a[aria-current="page"] {
  color: var(--moss);
  background: rgba(0, 229, 255, 0.10);
  font-weight: 500;
}

.site-nav .nav-account-panel .nav-account-signout {
  display: block;
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.45rem 0.65rem;
  border: none;
  border-radius: var(--r-md);
  background: transparent;
  color: #f87171;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.site-nav .nav-account-panel .nav-account-signout:hover,
.site-nav .nav-account-panel .nav-account-signout:focus-visible {
  background: rgba(248, 113, 113, 0.14);
  outline: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 0.45rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 880px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 1rem; right: 1rem; top: calc(100% + 0.25rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
    gap: 0.15rem;
  }
  .site-nav.is-open .nav-auth-guest,
  .site-nav.is-open .nav-auth-user {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .site-nav.is-open .nav-account-wrap {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .site-nav.is-open .nav-account-wrap .nav-cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
  .site-nav.is-open .nav-account-panel {
    position: static;
    width: 100%;
    margin-top: 0.25rem;
    box-shadow: none;
    border-color: var(--line-strong);
  }
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
}

/* ============================================== MAIN */

.site-main { flex: 1; position: relative; }

section { position: relative; }

/* ============================================== HERO (home) */

.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--moss);
  background: rgba(0, 229, 255, 0.08);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(0, 229, 255, 0.22);
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--moss-bright);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.25), 0 0 12px rgba(0, 229, 255, 0.55);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.25), 0 0 12px rgba(0, 229, 255, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(0, 229, 255, 0.08), 0 0 18px rgba(0, 229, 255, 0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 1.35rem;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

.hero-title em {
  font-style: italic;
  color: var(--moss);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.35);
}

.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 48ch;
  margin: 0 0 1.25rem;
}

/* Homepage: moss strip under hero lead (platform tagline). */
.hero-platform-line {
  margin: 0 0 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss-bright);
  line-height: 1.55;
  max-width: 42rem;
}

.hero-title-brand {
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta-item::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--moss);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

/* Hero brand artwork visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  transform: perspective(1400px) rotateY(-3deg);
  transition: transform .8s var(--ease-out);
}

.hero-visual:hover { transform: perspective(1400px) rotateY(0deg); }

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 30% 80%, transparent 60%, rgba(6, 20, 34, 0.45) 100%);
  pointer-events: none;
}

/* Floating glow badges overlayed on hero image */
.hero-badge {
  position: absolute;
  background: rgba(9, 28, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: var(--ink);
  z-index: 2;
}

.hero-badge.tl { top: 20px; left: -18px; transform: rotate(-2deg); }
.hero-badge.br { bottom: 22px; right: -16px; transform: rotate(2deg); }

.hero-badge-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--moss) 0%, #00a8c4 100%);
  color: var(--ink-dark);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}

.hero-badge.cyan .hero-badge-icon {
  background: linear-gradient(145deg, var(--cyan) 0%, #00a8c4 100%);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.55);
}

.hero-badge strong { color: var(--ink); display: block; font-weight: 600; }
.hero-badge span { color: var(--ink-muted); font-size: 0.72rem; }

/* ============================================== BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.45rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform .25s var(--ease-out), background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}

.btn-primary {
  background: var(--moss);
  color: var(--ink-dark);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(94, 240, 255, 0.35), 0 10px 26px -8px rgba(0, 229, 255, 0.55);
}

.btn-primary:hover {
  background: var(--moss-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(94, 240, 255, 0.6), 0 16px 36px -10px rgba(0, 229, 255, 0.75);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: var(--moss);
  color: var(--moss);
  transform: translateY(-1px);
}

.btn-moss {
  background: var(--moss-deep);
  color: var(--moss-glow);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.btn-moss:hover {
  background: var(--moss);
  color: var(--ink-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -8px rgba(0, 229, 255, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--moss);
  padding: 0.5rem 0.75rem;
}

.btn-ghost:hover { color: var(--ink); }

.btn-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform .3s var(--ease-out);
}

.btn-arrow:hover::after { transform: translateX(4px); }

.btn-block { width: 100%; }

/* ============================================== SECTION PATTERNS */

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
  position: relative;
}

.section-header {
  max-width: 680px;
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.section-header.is-centered {
  margin-left: auto; margin-right: auto;
  text-align: center;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--moss);
  margin-bottom: 0.9rem;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.section-title em {
  font-style: italic;
  color: var(--moss);
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
}

.section-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
  max-width: 60ch;
}

.is-centered .section-lead { margin-left: auto; margin-right: auto; }

/* ============================================== PRINCIPLES STRIP */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: clamp(3rem, 5vw, 4rem) 0;
}

.principle { padding: 0.5rem 0; }

.principle-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--moss);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.principle h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 450;
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.principle p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ============================================== FEATURE GRID */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .4s var(--ease-out), border-color .3s ease, box-shadow .4s ease, background .3s ease;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(0, 229, 255, 0) 0%, rgba(0, 229, 255, 0) 60%, rgba(0, 229, 255, 0.4) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.feature::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 229, 255, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.4);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}

.feature:hover::before { opacity: 1; }
.feature:hover::after { opacity: 1; }

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.18), rgba(0, 229, 255, 0.10));
  color: var(--moss-bright);
  border: 1px solid rgba(0, 229, 255, 0.28);
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================== PRODUCT CARDS */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .3s ease, box-shadow .4s ease, background .3s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  background: radial-gradient(closest-side, rgba(0, 229, 255, 0.28), transparent 70%);
  transform: translate(40%, -40%);
  transition: transform .6s var(--ease-out), opacity .4s ease;
  opacity: 0.5;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.45);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}

.product-card:hover::before { transform: translate(20%, -20%); opacity: 1; }

.product-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--moss);
  font-weight: 500;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}

.product-card-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--moss);
  font-weight: 500;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.product-card-cta::after {
  content: "→";
  transition: transform .3s var(--ease-out);
}

.product-card:hover .product-card-cta::after { transform: translateX(4px); }

/* ============================================== PRICING */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
  transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}

.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 229, 255, 0.25);
}

.price-card.is-featured {
  background:
    radial-gradient(600px 400px at 80% -10%, rgba(0, 229, 255, 0.18), transparent 60%),
    linear-gradient(160deg, #0E3A2A 0%, #0F2232 100%);
  color: var(--ink);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.22), var(--shadow-lg);
  transform: translateY(-6px);
}

.price-card.is-featured:hover { transform: translateY(-9px); }

.price-card.is-featured .price-amount { color: var(--moss-glow); }

.price-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--moss);
  color: var(--ink-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: 0.32rem 0.75rem;
  border-radius: var(--r-pill);
  position: absolute;
  top: -12px;
  left: 2rem;
  box-shadow: 0 0 0 1px rgba(94, 240, 255, 0.4), 0 6px 16px -4px rgba(0, 229, 255, 0.6);
}

.price-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.price-desc {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
  min-height: 2.5em;
}

.price-amount-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: 3.1rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.price-per {
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-weight: 450;
}

.price-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.price-feature-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.price-feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3rem;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.55);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23061422' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3.5 8.5 6.5 11.5 12.5 5'/></svg>");
  background-size: contain;
}

.price-note {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 1rem 0 0;
  line-height: 1.55;
}

/* ============================================== PAGE HEADER (internal) */

.page-header {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(0, 229, 255, 0.10), transparent 70%),
    radial-gradient(400px 300px at 10% 100%, rgba(0, 229, 255, 0.06), transparent 70%);
  pointer-events: none;
}

.page-header-inner { max-width: 820px; position: relative; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.breadcrumb a {
  color: var(--moss);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover { color: var(--moss-bright); }

.page-title {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}

.page-title em {
  font-style: italic;
  color: var(--moss);
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
}

.page-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 56ch;
  margin: 0;
}

/* ============================================== LONG-FORM PROSE */

.prose { max-width: 68ch; }

.prose-center { max-width: 68ch; margin: 0 auto; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 2.5rem 0 0.9rem;
  line-height: 1.15;
}

.prose h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.22rem;
  color: var(--ink);
  margin: 1.75rem 0 0.5rem;
}

.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

.prose p, .prose li {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.prose strong { color: var(--ink); font-weight: 600; }

.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.45rem; }

.prose a:not(.btn) {
  color: var(--moss);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color .2s ease, background-size .3s var(--ease-out);
  padding-bottom: 1px;
}

.prose a:not(.btn):hover { color: var(--moss-bright); }

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(0, 229, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--moss-glow);
}

.prose .lead {
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 450;
}

.prose .seller-address {
  font-style: normal;
  margin: 0.75rem 0 1.35rem;
  line-height: 1.65;
  color: var(--ink);
}

/* ============================================== CALLOUT CARDS */

.callout {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin: 2rem 0;
}

.callout-hero {
  background:
    radial-gradient(600px 400px at 90% 0%, rgba(0, 229, 255, 0.22), transparent 60%),
    linear-gradient(145deg, var(--moss-deep) 0%, var(--surface) 70%);
  color: var(--ink);
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.callout-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 300px; height: 300px;
  background: radial-gradient(closest-side, rgba(0, 229, 255, 0.25), transparent 70%);
  pointer-events: none;
}

.callout-hero h2, .callout-hero h3 { color: var(--ink); }
.callout-hero p { color: var(--ink-soft); }
.callout-hero code {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.18);
  color: var(--moss-glow);
}
.callout-hero a:not(.btn) { color: var(--moss); }
.callout-hero a:not(.btn):hover { color: var(--moss-bright); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  align-items: center;
}

/* ============================================== CTA BAND (home bottom) */

.cta-band {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(700px 380px at 30% 10%, rgba(0, 229, 255, 0.22), transparent 60%),
    radial-gradient(500px 400px at 100% 110%, rgba(0, 229, 255, 0.12), transparent 70%),
    linear-gradient(160deg, var(--moss-deep) 0%, var(--bg-1) 100%);
  color: var(--ink);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-band-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

.cta-band-title em {
  font-style: italic;
  color: var(--moss);
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.45);
}

.cta-band-lead {
  position: relative;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 54ch;
  margin: 0 auto 2rem;
}

.cta-band .cta-row {
  position: relative;
  justify-content: center;
}

/* Home — prerelease / newsletter (below hero) */
.home-prerelease {
  margin-top: clamp(1rem, 3vw, 2rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.home-prerelease-band {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: clamp(2rem, 4vw, 2.75rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
}

.home-prerelease-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 0.65rem;
  text-align: center;
}

.home-prerelease-foot {
  position: relative;
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.55;
}

.home-prerelease-foot a {
  color: var(--moss);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-visiting-hawaii {
  margin-top: 2rem;
  margin-bottom: 0.25rem;
}

.home-visiting-hawaii-card {
  padding: 0;
  border-radius: var(--r-lg);
  border: 1px solid rgba(224, 122, 58, 0.35);
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(224, 122, 58, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(26, 107, 79, 0.22), transparent 45%),
    linear-gradient(145deg, rgba(10, 42, 67, 0.95), rgba(6, 24, 36, 0.98));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.home-visiting-hawaii-card-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: center;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.35rem, 3vw, 2.25rem);
}

.home-visiting-hawaii-mark {
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.home-visiting-hawaii-tag {
  color: #f4a261;
}

.home-visiting-hawaii-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0.3rem 0 0.5rem;
  color: var(--ink);
  line-height: 1.1;
}

.home-visiting-hawaii-lead {
  margin: 0 0 1.1rem;
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

@media (max-width: 560px) {
  .home-visiting-hawaii-card-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-visiting-hawaii-mark {
    margin: 0 auto;
  }

  .home-visiting-hawaii-card-inner .cta-row {
    justify-content: center;
  }
}

.visiting-hawaii-page .page-title em {
  color: #f4a261;
}

.visiting-hawaii-hero-band {
  padding: 2rem 0 2.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(26, 95, 122, 0.35), transparent),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(224, 122, 58, 0.12), transparent);
  border-bottom: 1px solid var(--line);
}

.visiting-hawaii-islands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.visiting-hawaii-island {
  padding: 1.15rem 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.visiting-hawaii-island h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 450;
  margin: 0 0 0.25rem;
  color: var(--ink);
}

.visiting-hawaii-island .island-nick {
  font-size: 0.8rem;
  color: var(--moss);
  margin: 0 0 0.5rem;
}

.visiting-hawaii-island p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.visiting-hawaii-waitlist-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  border: 1px solid rgba(224, 122, 58, 0.28);
  background:
    radial-gradient(circle at top right, rgba(224, 122, 58, 0.1), transparent 40%),
    var(--surface);
  scroll-margin-top: 5rem;
}

.visiting-hawaii-waitlist-form {
  margin: 0;
}

@media (max-width: 820px) {
  .visiting-hawaii-waitlist-card {
    grid-template-columns: 1fr;
  }
}

.home-featured-public-app {
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.home-featured-public-app-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 2.25rem;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.12), var(--surface));
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.home-featured-public-app-card .product-card-tag {
  color: var(--moss-glow);
}

.home-featured-public-app-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  line-height: 1.1;
}

.home-featured-public-app-lead {
  margin: 0;
  max-width: 52rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.home-featured-public-app-links {
  margin: 0;
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.home-featured-public-app-links a {
  color: var(--moss);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-featured-kilauea-card {
  background: linear-gradient(145deg, rgba(244, 162, 97, 0.14), var(--surface));
  border-color: rgba(244, 162, 97, 0.45);
}

.home-featured-kilauea-card .product-card-tag {
  color: #f4a261;
}

.home-coming-soon-pair {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.home-coming-soon-pair-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-coming-soon-card {
  height: 100%;
}

@media (max-width: 820px) {
  .home-coming-soon-pair-grid {
    grid-template-columns: 1fr;
  }
}

.home-ios-waitlist {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.home-ios-waitlist-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  border-color: rgba(0, 229, 255, 0.22);
  background:
    radial-gradient(circle at top right, rgba(0, 229, 255, 0.12), transparent 34%),
    var(--surface);
}

.home-ios-waitlist-form {
  margin: 0;
}

.home-ios-waitlist-form button[disabled] {
  opacity: 0.72;
  cursor: wait;
}

@media (max-width: 760px) {
  .home-ios-waitlist-card {
    grid-template-columns: 1fr;
  }
}

.home-prerelease-foot a:hover {
  color: var(--moss-bright);
}

/* ============================================== FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.35rem 1.6rem;
  background: var(--surface);
  transition: border-color .25s ease, background .25s ease;
}

.faq-item:hover {
  border-color: rgba(0, 229, 255, 0.3);
  background: var(--surface-2);
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 450;
  margin: 0 0 0.55rem;
  color: var(--ink);
}

.faq-item p {
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 0.5rem;
}
.faq-item p:last-child { margin-bottom: 0; }

.faq-item a {
  color: var(--moss);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-item a:hover { color: var(--moss-bright); }

.faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 0 0 2rem;
}
.faq-jump a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
}
.faq-jump a:hover { color: var(--moss); border-color: var(--line-strong); }

.contact-card-href {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--moss);
  letter-spacing: 0.02em;
}

.faq-section-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--moss);
  font-weight: 500;
  margin: 2.5rem 0 1rem;
}

.faq-section-title:first-child { margin-top: 0; }

/* ============================================== ACCOUNT PAGE */

.account-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 5vw, 4rem);
}

.status {
  min-height: 1.4rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.status-err { color: #FF8A72; }
.status-warn { color: var(--sun); }
.status-ok { color: var(--moss-bright); }

.card-plain {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.card-plain h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.9rem;
  color: var(--ink);
}

.card-plain h2:first-child { margin-top: 0; }

.rewards-balance-card .rewards-balance-card-title {
  margin-top: 0;
}

.card-plain .lead {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0 0 1.5rem;
  line-height: 1.65;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.stack-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stack-form input {
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg-1);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.stack-form input::placeholder { color: var(--ink-muted); }

.stack-form textarea,
.stack-form select {
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg-1);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* Native <select> often ignores themed backgrounds until appearance is reset (esp. Windows / Chrome). */
.stack-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  background-color: var(--bg-1);
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75l3.5-3.5' stroke='%236F8A7E' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px 14px;
}

.stack-form select:hover {
  border-color: rgba(0, 229, 255, 0.32);
}

.stack-form select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75l3.5-3.5' stroke='%2300e5ff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.stack-form select::-ms-expand {
  display: none;
}

.stack-form select option,
.stack-form select optgroup {
  background-color: var(--surface);
  color: var(--ink);
}

.stack-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.stack-form textarea::placeholder { color: var(--ink-muted); }

.stack-form input:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18);
}

.stack-form textarea:focus,
.stack-form select:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18);
}

.stack-form button { align-self: flex-start; }

.member-perk-card {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: var(--r-lg);
  background:
    radial-gradient(420px 260px at 90% 0%, rgba(0, 229, 255, 0.1), transparent 60%),
    rgba(0, 229, 255, 0.07);
}

.member-perk-card h3 {
  margin: 0.1rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 450;
}

.member-perk-card p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.member-perk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.billing-pricing-table-wrap {
  margin-top: 1.25rem;
  min-height: 2rem;
}

.billing-pricing-table-wrap stripe-pricing-table {
  display: block;
  width: 100%;
}

.member-perk-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(5, 15, 26, 0.72);
  backdrop-filter: blur(10px);
}

.member-perk-popup[hidden] {
  display: none;
}

.member-perk-popup-card {
  position: relative;
  width: min(100%, 30rem);
  padding: 1.4rem;
  border: 1px solid rgba(0, 229, 255, 0.34);
  border-radius: var(--r-xl);
  background:
    radial-gradient(480px 300px at 90% -10%, rgba(0, 229, 255, 0.18), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-lg), var(--glow-green);
}

.member-perk-popup-card h2 {
  margin: 0.2rem 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 450;
  line-height: 1.1;
}

.member-perk-popup-card p {
  color: var(--ink-soft);
}

.member-perk-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(0, 229, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.account-grid { margin: 0 0 1.5rem; }

.account-row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}

.account-row:last-child { border-bottom: none; }

.account-k {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-v { word-break: break-word; color: var(--ink); }

.my-apps-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.my-apps-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1rem 1.15rem;
  background: rgba(0, 229, 255, 0.04);
}

.my-apps-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.my-apps-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.my-apps-platform {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--moss);
}

.my-apps-status {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
}

.my-apps-status-ok strong { color: var(--moss); }
.my-apps-status-no strong { color: var(--ink-soft); }
.my-apps-status-muted strong { color: var(--ink-muted); }

.my-apps-note {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.my-apps-last-connected {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.my-apps-last-connected-label {
  color: var(--ink-soft);
}

.my-apps-card-actions {
  margin: 0.85rem 0 0;
}

.note {
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 1rem 0 0;
}

/* ============================================== FOOTER */

.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  background: var(--bg-0);
  color: var(--ink-soft);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem 2.5rem;
  }
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.footer-brand .brand {
  color: var(--ink);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 32ch;
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--moss);
  margin: 0 0 1rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.93rem;
  transition: color .2s ease;
}

.footer-col a:hover { color: var(--moss); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.footer-bottom a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--moss); }

.footer-lava-watchers {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.footer-lava-watchers img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-lava-watchers span {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.kilauea-lava-watchers-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
  margin-top: 1.25rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(145deg, rgba(255, 120, 48, 0.1), var(--surface));
  border: 1px solid rgba(255, 140, 64, 0.35);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.kilauea-lava-watchers-card-logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: contain;
}

.kilauea-lava-watchers-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.kilauea-lava-watchers-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
}

.kilauea-lava-watchers-card-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 48rem;
}

@media (max-width: 560px) {
  .kilauea-lava-watchers-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* ============================================== ROADMAP */

.roadmap-updated {
  margin: 0 0 1.25rem;
}

.roadmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1.75rem;
}

.roadmap-status {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.roadmap-status-shipped {
  color: var(--moss-glow);
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.1);
}

.roadmap-status-progress {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.08);
}

.roadmap-status-planned {
  color: var(--sun);
  border-color: rgba(252, 211, 77, 0.35);
  background: rgba(252, 211, 77, 0.08);
}

.roadmap-status-explore {
  color: var(--ink-soft);
  border-color: var(--line);
  background: var(--surface);
}

.roadmap-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 2.5rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.roadmap-toc a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.roadmap-toc a:hover {
  color: var(--moss);
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
}

.roadmap-lanes {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.roadmap-lane {
  scroll-margin-top: 5.5rem;
}

.roadmap-lane-head {
  margin-bottom: 1.25rem;
}

.roadmap-lane-head .section-title {
  margin-top: 0.35rem;
}

.roadmap-lane-lead {
  margin: 0.65rem 0 0;
  max-width: 52rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.roadmap-lane-lead a {
  color: var(--moss);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.roadmap-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem 1.1rem;
  align-items: start;
  padding: 1.15rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .25s ease, background .25s ease;
}

.roadmap-item:hover {
  border-color: rgba(0, 229, 255, 0.28);
  background: var(--surface-2);
}

.roadmap-item strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.roadmap-item p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.roadmap-item p a {
  color: var(--moss);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.roadmap-item code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--ink);
}

@media (max-width: 520px) {
  .roadmap-item {
    grid-template-columns: 1fr;
  }
}

/* ============================================== MOTION (entrance) */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp .7s var(--ease-out) both; }
.fade-up.delay-1 { animation-delay: .08s; }
.fade-up.delay-2 { animation-delay: .16s; }
.fade-up.delay-3 { animation-delay: .24s; }
.fade-up.delay-4 { animation-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* Root Economy public widget (marketing + /charts/root-economy/) */
.re-widget {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.25rem 1.35rem;
}
.re-widget--compact { padding: 1rem 1.1rem; }
.re-widget-status { margin: 0; font-size: 0.9rem; color: var(--ink-muted); }
.re-widget-total-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}
.re-widget-total-val {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.re-widget-total-meta { margin: 0.35rem 0 0; font-size: 0.82rem; color: var(--ink-muted); }
.re-widget-chart-wrap {
  margin: 1rem 0 0.75rem;
  height: 140px;
  border-radius: 10px;
  background: #121212;
  border: 1px solid #2a2a2a;
  padding: 0.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.re-widget-chart-wrap canvas {
  flex: 1;
  min-height: 0;
  width: 100% !important;
}
.re-widget-chart-note {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-muted, #9aa0a6);
  line-height: 1.35;
}
.re-widget:not(.re-widget--compact) .re-widget-chart-wrap { height: 220px; }
.re-widget-table-wrap { overflow-x: auto; margin-top: 0.5rem; }
.re-widget-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.85rem 0 0.4rem;
  color: var(--ink-muted);
  font-size: 0.8rem;
}
.re-widget-sort button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}
.re-widget-sort button.is-active {
  border-color: var(--moss);
  color: var(--moss);
}
.re-widget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.re-widget-table th,
.re-widget-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.re-widget-table th { color: var(--ink-muted); font-weight: 600; font-size: 0.75rem; }
.re-widget-foot { margin: 0.75rem 0 0; font-size: 0.82rem; color: var(--ink-muted); }
.re-widget-foot a { color: var(--moss); }
.home-economy-card { margin-top: 1.25rem; }

/* ============================================== ACCOUNT DASHBOARD (/account) */

.acct-page { max-width: 1120px; }

/* Sign-in and loading cards stay readable at a single-column width. */
.acct-page .acct-auth { max-width: 520px; margin-inline: auto; }

/* Panels are toggled with the `hidden` attribute, which grid/flex display would otherwise win. */
.acct-page [hidden] { display: none !important; }

.acct-loading-line { margin: 0; color: var(--ink-muted); }

.acct-auth-lead { margin: 0 0 1.25rem; color: var(--ink-soft); }

.acct-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0.25rem 0 0;
}

.acct-auth-links a {
  color: var(--moss);
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.acct-auth-alt {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.acct-auth-alt h3 { margin: 0 0 0.4rem; font-size: 1.02rem; color: var(--ink); }
.acct-auth-alt p { margin: 0 0 0.9rem; color: var(--ink-muted); font-size: 0.92rem; line-height: 1.6; }

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

.acct-dash { display: block; }

.acct-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.acct-hero-id { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }

.acct-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--r-pill);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid var(--line-strong);
  color: var(--moss-bright);
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}

.acct-hero-who { min-width: 0; }

.acct-hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: break-word;
}

.acct-hero-email {
  margin: 0.15rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  overflow-wrap: break-word;
}

.acct-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.7rem 0 0; }

.acct-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.acct-badge-ok { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; }
.acct-badge-warn { background: rgba(255, 213, 74, 0.12); border-color: rgba(255, 213, 74, 0.42); color: var(--sun); }
.acct-badge-info { background: rgba(0, 229, 255, 0.1); border-color: var(--line-strong); color: var(--moss-bright); }
.acct-badge-muted { background: rgba(255, 255, 255, 0.05); border-color: var(--line-soft); color: var(--ink-soft); }

.acct-hero-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  min-width: 0;
}

.acct-hero-meta-item { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }

.acct-hero-meta-k {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.acct-hero-meta-v {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.acct-mono { font-family: var(--font-mono); font-size: 0.82rem; }

.acct-copy {
  flex: 0 0 auto;
  padding: 0.15rem 0.5rem;
  font: inherit;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--moss);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.acct-copy:hover { background: rgba(0, 229, 255, 0.16); }

.acct-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* ---- panel grid ---- */

.acct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.acct-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.acct-card-span { grid-column: 1 / -1; }

.acct-card-danger { border-color: rgba(255, 138, 114, 0.35); background: rgba(255, 138, 114, 0.05); }

.acct-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.acct-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.acct-sub-title {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.acct-card-tag {
  flex: 0 0 auto;
  padding: 0.18rem 0.55rem;
  border-radius: var(--r-pill);
  font-size: 0.74rem;
  font-weight: 500;
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.05);
}

.acct-tag-ok { border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; background: rgba(52, 211, 153, 0.1); }
.acct-tag-warn { border-color: rgba(255, 213, 74, 0.42); color: var(--sun); background: rgba(255, 213, 74, 0.1); }
.acct-tag-muted { border-color: var(--line-soft); color: var(--ink-soft); }

.acct-card .note { margin: 0 0 0.35rem; color: var(--ink-muted); font-size: 0.9rem; line-height: 1.6; }

.acct-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.acct-card .account-grid { margin: 0; }
.acct-card .account-row { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); padding: 0.6rem 0; }

.acct-empty { margin: 0; color: var(--ink-muted); font-size: 0.9rem; }

.acct-retry {
  margin-left: 0.35rem;
  padding: 0.1rem 0.5rem;
  font: inherit;
  font-size: 0.82rem;
  color: var(--moss);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.acct-form { margin-bottom: 0; max-width: 22rem; }

/* ---- lists (apps, sessions) ---- */

.acct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }

.acct-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(0, 229, 255, 0.035);
}

.acct-list-main { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; min-width: 0; }

.acct-list-name { color: var(--ink); font-size: 0.95rem; font-weight: 500; overflow-wrap: anywhere; }

.acct-list-meta {
  grid-column: 1;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.acct-list-meta a { color: var(--moss); }

.acct-mini-btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
}

.acct-mini-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--line-strong); }
.acct-mini-btn:disabled { opacity: 0.6; cursor: default; }

/* ---- toggles ---- */

.acct-toggle-row { padding-bottom: 0.9rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--line); }

.acct-toggle { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; }

.acct-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }

.acct-toggle-track {
  position: relative;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line-soft);
  transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.acct-toggle-track::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.18rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: var(--r-pill);
  background: var(--ink-soft);
  transform: translateY(-50%);
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out);
}

.acct-toggle input:checked + .acct-toggle-track {
  background: rgba(0, 229, 255, 0.28);
  border-color: var(--line-strong);
}

.acct-toggle input:checked + .acct-toggle-track::after {
  transform: translateY(-50%) translateX(1.02rem);
  background: var(--moss-bright);
}

.acct-toggle input:focus-visible + .acct-toggle-track { box-shadow: var(--glow-cyan); }
.acct-toggle input:disabled + .acct-toggle-track { opacity: 0.55; }

.acct-toggle-label { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }

/* ---- connections ---- */

.acct-conn { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.acct-conn:last-of-type { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }

.acct-conn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
}

.acct-conn-what { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.acct-conn-name { color: var(--ink); font-size: 1rem; font-weight: 500; }
.acct-conn-act { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.acct-conn-note { margin: 0.6rem 0 0 !important; }
.acct-conn-note a { color: var(--moss); }

/* ---- security ---- */

.acct-security-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0, 229, 255, 0.04);
}

.acct-security-controls input { max-width: 9rem; }

.acct-security-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .acct-hero { grid-template-columns: 1fr; padding: 1.35rem; }
  .acct-grid { grid-template-columns: 1fr; }
  .acct-card { padding: 1.25rem; }
  .acct-card .account-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .acct-actions .btn { flex: 1 1 auto; text-align: center; }
}
/* redeploy 20260820215609 */
