:root {
  color-scheme: light;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --accent: #1e90ff;
  --accent-deep: #0b6fd4;
  --accent-glow: rgba(30, 144, 255, 0.35);
  --bg: #eef5ff;
  --line: #d7e3f4;
  --font-display: "Sora", "DM Sans", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, #b9dbff 0%, transparent 55%),
    radial-gradient(900px 500px at -5% 30%, #d9ecff 0%, transparent 50%),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 40%, #f4f7fb 100%);
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(247, 251, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand-link:hover { color: var(--accent-deep); text-decoration: none; }
.brand-link img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 8px 20px var(--accent-glow);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  font-size: 0.95rem;
}
.nav a {
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 650;
  box-shadow: 0 8px 22px var(--accent-glow);
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover {
  background: var(--accent-deep);
  text-decoration: none;
  transform: translateY(-1px);
}

.hidden { display: none !important; }

.site-header { overflow: visible; }

.nav-login { font-weight: 600; }
.nav-admin {
  appearance: none;
  border: 0;
  margin: 0 0.35rem 0 0;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 650;
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(30, 144, 255, 0.28);
}
.nav-admin:hover { background: var(--accent-deep); }
.nav-admin:disabled {
  opacity: 0.72;
  cursor: wait;
  box-shadow: none;
}
.account-menu-action {
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.35rem;
  margin: 0;
  font: inherit;
  font-weight: 650;
  color: var(--accent-deep);
  border-radius: 8px;
  cursor: pointer;
}
.account-menu-action:hover { background: #eff6ff; }
.account-menu-action:disabled {
  opacity: 0.72;
  cursor: wait;
}
.session-cluster {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.account-chip {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #dadce0;
  flex-shrink: 0;
  user-select: none;
  background: #1a73e8;
}
.account-kebab {
  width: 28px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.account-kebab span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #5f6368;
  display: block;
}
.account-kebab:hover,
.account-kebab[aria-expanded="true"] {
  background: rgba(15, 23, 42, 0.08);
}
.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  min-width: 220px;
  width: max-content;
  max-width: min(280px, calc(100vw - 2rem));
  padding: 0.85rem 0.8rem 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.account-menu-email {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  word-break: break-all;
}
.account-menu-out {
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.35rem;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
}
.account-menu-out:hover { background: #f1f5f9; }

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem) 4rem;
  overflow: hidden;
}

.hero-copy { max-width: 34rem; animation: riseIn 0.8s ease both; }
.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.hero-brand img {
  width: clamp(56px, 7vw, 72px);
  height: clamp(56px, 7vw, 72px);
  border-radius: 18px;
  box-shadow: 0 16px 40px var(--accent-glow);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero-lead {
  margin: 0 0 1.85rem;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 34ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 14px;
  font-weight: 650;
  font: inherit;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #fff; }

.hero-visual {
  position: relative;
  min-height: min(42vh, 360px);
  display: grid;
  place-items: center;
  animation: riseIn 1s ease 0.12s both;
}
.hero-orb {
  position: absolute;
  width: min(68%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, #5eb0ff 0%, #1e90ff 45%, #0b6fd4 75%, transparent 78%);
  filter: blur(2px);
  animation: pulseOrb 7s ease-in-out infinite alternate;
}
.hero-ring {
  position: absolute;
  width: min(78%, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(30, 144, 255, 0.22);
  box-shadow: inset 0 0 60px rgba(30, 144, 255, 0.08);
}
.hero-ring-2 {
  width: min(92%, 460px);
  border-color: rgba(30, 144, 255, 0.12);
  animation: spinSlow 40s linear infinite;
}
.hero-mark {
  position: relative;
  z-index: 2;
  width: min(34%, 168px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 28%;
  box-shadow:
    0 30px 70px rgba(11, 111, 212, 0.35),
    0 0 0 10px rgba(255, 255, 255, 0.55);
  animation: floatY 5.5s ease-in-out infinite;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulseOrb {
  from { transform: scale(0.96); opacity: 0.85; }
  to { transform: scale(1.04); opacity: 1; }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.band {
  padding: 4.5rem clamp(1rem, 4vw, 2.5rem);
}
.band-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.section h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}
.section-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 46ch;
}

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.product-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(232, 244, 255, 0.9));
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
}
a.product-card:hover {
  text-decoration: none;
  border-color: rgba(30, 144, 255, 0.35);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}
label.product-card-check {
  grid-template-columns: auto 1fr;
  cursor: pointer;
  user-select: none;
}
label.product-card-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.product-check {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 7px;
  border: 2px solid rgba(30, 144, 255, 0.45);
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-check::after {
  content: '';
  width: 0.45rem;
  height: 0.75rem;
  border: solid transparent;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translateY(-1px);
}
label.product-card-check.is-checked {
  border-color: rgba(30, 144, 255, 0.55);
  box-shadow: 0 14px 36px rgba(30, 144, 255, 0.16);
}
label.product-card-check.is-checked .product-check {
  background: var(--accent);
  border-color: var(--accent-deep);
}
label.product-card-check.is-checked .product-check::after {
  border-color: #fff;
}
.product-continue-row {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}
.product-continue-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.plans-panel {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.plans-panel.hidden { display: none; }
.plans-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.plans-lead { margin-bottom: 1rem; }
.plans-grid {
  display: grid;
  gap: 0.9rem;
}
.plan-card {
  padding: 1.2rem 1.25rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 0.45rem;
}
.plan-card-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}
.plan-card-price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
  font-family: var(--font-display);
}
.plan-detail-price {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--accent-deep);
}
.plan-card-summary,
.plan-card-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}
.plan-card-cancel {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--accent-deep);
}
.plan-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.45rem;
}
.plan-modal.hidden,
.plan-modal[hidden] { display: none !important; }
.plan-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.plan-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.plan-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  padding: 1.15rem 1.2rem 1.2rem;
}
.plan-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.plan-modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.plan-modal-close {
  border: 0;
  background: rgba(100, 116, 139, 0.12);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.plan-detail-intro { margin: 0 0 0.75rem; color: var(--muted); }
.plan-detail-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  line-height: 1.4;
}
.plan-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
body.plan-modal-open { overflow: hidden; }
.product-num {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  background: rgba(30, 144, 255, 0.12);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.product-body { display: grid; gap: 0.2rem; min-width: 0; }
.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.product-desc {
  color: var(--muted);
  font-size: 0.92rem;
}
.product-action {
  font-weight: 650;
  color: var(--accent-deep);
  font-size: 0.9rem;
  white-space: nowrap;
}
.product-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(100, 116, 139, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}
.product-card-soon {
  opacity: 0.72;
  cursor: default;
}
.product-card-soon .product-num {
  background: rgba(100, 116, 139, 0.1);
  color: var(--muted);
}


.contact-stage {
  display: grid;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  border-radius: 24px;
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}
.contact-stage .section-kicker { color: #5eb0ff; }
.contact-stage h2 { color: #fff; margin: 0; }
.contact-stage p { margin: 0; color: #94a3b8; }
.contact-email {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: -0.02em;
}
.contact-email:hover { color: #5eb0ff !important; }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.35rem;
}
.legal-links a { color: #93c5fd; }

.site-footer {
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
.site-footer a {
  color: inherit;
}
.site-footer .nav-logout {
  font-size: inherit;
  font-weight: 500;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 860px) {
  .site-header {
    gap: 0.55rem;
    padding: 0.7rem 1rem;
  }
  .nav {
    flex-wrap: nowrap;
    gap: 0.55rem;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.25rem;
    padding-bottom: 2.25rem;
  }
  .hero-visual {
    order: -1;
    min-height: 0;
    max-width: 200px;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 1;
  }
  .hero-mark { width: min(46%, 112px); }
  .hero h1 { font-size: clamp(1.7rem, 7.5vw, 2.35rem); }
  .hero-copy { text-align: center; margin: 0 auto; }
  .hero-brand, .cta-row { justify-content: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .product-card { grid-template-columns: auto 1fr; }
  .product-action, .product-badge { grid-column: 2; justify-self: start; }
  .contact-email { word-break: break-word; }
}

@media (max-width: 640px) {
  .nav a:not(.nav-cta):not(.nav-login),
  .nav .session-cluster.hidden { display: none; }
  .nav-cta { display: none; }
  .nav-login {
    white-space: nowrap;
    font-size: 0.88rem;
  }
  .nav-admin {
    padding: 0.38rem 0.7rem;
    font-size: 0.82rem;
    margin-right: 0.2rem;
  }
  .hero-brand { display: none; }
  .hero-visual {
    display: grid;
    max-width: 168px;
    aspect-ratio: 1;
    margin: 0 auto 0.35rem;
  }
  .hero-mark { width: min(52%, 96px); }
  .hero { padding: 0.85rem 1rem 1.75rem; }
  .hero-lead { font-size: 1rem; max-width: none; }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row .btn { width: 100%; }
  .band { padding: 2.4rem 1rem; }
  .section-lead { margin-bottom: 1.25rem; }
}

@media (max-width: 380px) {
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero-visual, .hero-mark, .hero-orb, .hero-ring-2, .btn, .nav-cta {
    animation: none !important;
    transition: none;
  }
}
