/* Site chrome and section layouts shared by pages */

/* Header: floating glass capsule with a running light on its edge */
@property --edge-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.site-header { position: fixed; z-index: 50; top: var(--header-top); left: 0; right: 0; pointer-events: none; }
.header-bar {
  pointer-events: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: var(--header-h); padding: 0 11px 0 20px; border-radius: var(--r-pill);
  background: linear-gradient(150deg, rgb(28 20 48 / 0.55), rgb(12 9 22 / 0.42));
  transition: background var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.header-bar::after {
  background: conic-gradient(from var(--edge-angle), rgb(255 255 255 / 0.14) 0deg, rgb(255 255 255 / 0.14) 230deg, var(--uv) 280deg, var(--magenta) 310deg, var(--lime) 335deg, rgb(255 255 255 / 0.14) 360deg);
  animation: edge-run 9s linear infinite;
}
@keyframes edge-run { to { --edge-angle: 360deg; } }
.site-header.is-scrolled .header-bar { background: linear-gradient(150deg, rgb(28 20 48 / 0.82), rgb(12 9 22 / 0.78)); box-shadow: var(--glass-shine), var(--shadow-3); }
.header-inner { max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; height: 44px; border-radius: var(--r-pill); }
.brand-mark { width: 36px; height: 36px; flex: none; transition: transform var(--t-slow) var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
.brand-name { font: 600 21px/1 var(--font-display); letter-spacing: -0.04em; color: var(--ink); }
.brand-name b { font-weight: 600; background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { position: relative; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
.nav-link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  height: 40px; min-width: 104px; padding: 0 18px; border-radius: var(--r-pill);
  font: 600 14.5px/1 var(--font-body); color: var(--ink-2); transition: color var(--t-fast);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.nav-blob {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--r-pill); opacity: 0;
  background: linear-gradient(150deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.05));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 0 0 1px rgb(255 255 255 / 0.1);
  transition: transform var(--t-mid) var(--ease-spring), width var(--t-mid) var(--ease-spring), opacity var(--t-fast);
}
.nav.has-blob .nav-blob { opacity: 1; }
.nav:not(.has-blob) .nav-link[aria-current="page"] { background: linear-gradient(150deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.05)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.nav-blob.no-anim, .segmented-thumb.no-anim { transition: none; }

.header-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.burger { display: none; width: var(--h-control-s); height: var(--h-control-s); min-width: 0; padding: 0; }
.burger span { position: absolute; left: 50%; width: 16px; height: 1.8px; margin-left: -8px; border-radius: 2px; background: currentColor; transition: transform var(--t-mid) var(--ease-spring), opacity var(--t-fast); }
.burger span:nth-child(1) { transform: translateY(-4px); }
.burger span:nth-child(2) { transform: translateY(4px); }
.site-header.is-open .burger span:nth-child(1) { transform: rotate(45deg); }
.site-header.is-open .burger span:nth-child(2) { transform: rotate(-45deg); }
.mobile-sheet { display: none; }

@media (max-width: 1000px) {
  .header-bar { grid-template-columns: 1fr auto; }
  .header-bar .nav, .header-actions .hide-m { display: none; }
  .burger { display: inline-flex; }
  .mobile-sheet {
    pointer-events: auto; display: grid; gap: 6px; margin-top: 10px; padding: 12px; border-radius: var(--r-l);
    background: linear-gradient(150deg, rgb(32 23 56 / 0.94), rgb(14 10 26 / 0.94));
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shine), inset 0 0 0 1px rgb(255 255 255 / 0.10), var(--shadow-3);
    opacity: 0; transform: translateY(-10px) scale(0.98); visibility: hidden;
    transition: opacity var(--t-fast) var(--ease), transform var(--t-mid) var(--ease-spring), visibility 0s linear var(--t-mid);
  }
  .site-header.is-open .mobile-sheet { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .mobile-sheet .nav-link { justify-content: flex-start; height: 52px; font-size: 16px; padding: 0 18px; }
  .mobile-sheet .nav-link:hover, .mobile-sheet .nav-link[aria-current="page"] { background: rgb(255 255 255 / 0.06); }
  .mobile-sheet .nav-link[aria-current="page"]::after { left: auto; right: 20px; top: 50%; bottom: auto; margin-top: -2px; }
  .mobile-sheet .btn-row { padding: 10px 6px 4px; }
  .mobile-sheet .btn { flex: 1; }
}
@media (max-width: 520px) { .header-actions .btn-primary { display: none; } }

/* Footer: glass slab, link columns, oversized wordmark */
.site-footer { position: relative; padding: 24px 0 0; overflow: hidden; }
.footer-panel { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: clamp(32px, 4vw, 56px); border-radius: var(--r-xl); }
.footer-brand { display: grid; gap: 20px; align-content: start; justify-items: start; }
.footer-brand p { font-size: 15px; max-width: 34ch; }
.footer-col h4 { font: 600 var(--fs-micro)/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 34px; color: var(--ink-2); font-weight: 550; transition: color var(--t-fast), transform var(--t-mid) var(--ease); }
.footer-col a:hover { color: var(--ink); transform: translateX(3px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 26px 4px 0; font-size: var(--fs-small); color: var(--ink-3); }
.footer-bottom .mono { font-size: var(--fs-micro); letter-spacing: 0.08em; }
.footer-wordmark {
  display: block; margin: clamp(10px, 2vw, 24px) 0 calc(-0.26 * clamp(120px, 22vw, 340px));
  font: 600 clamp(120px, 22vw, 340px)/1 var(--font-display); letter-spacing: -0.07em; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgb(255 138 107 / 0.34), rgb(255 79 216 / 0.22) 35%, rgb(139 92 255 / 0.10) 60%, transparent 82%); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; pointer-events: none;
}
@media (max-width: 900px) { .footer-panel { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-panel { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero-copy .lead { max-width: 50ch; }
.hero-media { aspect-ratio: 1 / 1.02; }
.hero-media .media { height: 100%; }
.hero-media img { object-position: 50% 50%; }
.float-a { left: -9%; top: 14%; }
.float-b { right: -7%; top: 46%; }
.float-c { left: 6%; bottom: -4%; }
.float .chip { height: 44px; padding: 0 20px 0 14px; font-size: 13.5px; box-shadow: var(--glass-shine), var(--shadow-3); }
.float-a { animation: bob 7s var(--ease) infinite alternate; }
.float-b { animation: bob 8s var(--ease) infinite alternate-reverse; }
.float-c { animation: bob 9s var(--ease) infinite alternate; }
@keyframes bob { to { transform: translateY(-10px); } }
@media (max-width: 560px) { .float-b { display: none; } }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 11; }
  .float-a { left: 3%; } .float-b { right: 3%; }
}

.page-hero { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero .section-head { margin-bottom: 0; }

/* Flow diagram: sender -> edge -> your node */
.flow { display: grid; grid-template-columns: 1fr 120px 1fr 120px 1fr; align-items: stretch; }
.flow-node { padding: 28px; border-radius: var(--r-l); display: grid; gap: 12px; align-content: start; }
.flow-node .tag { font: 600 var(--fs-micro)/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.flow-node h3 { font-size: 20px; }
.flow-node p { font-size: 14.5px; }
.flow-node.is-yours { }
.flow-link { position: relative; display: grid; place-items: center; }
.flow-link::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px;
  background: linear-gradient(90deg, rgb(255 255 255 / 0.08) 0%, rgb(255 255 255 / 0.08) 35%, var(--lime) 50%, rgb(255 255 255 / 0.08) 65%, rgb(255 255 255 / 0.08) 100%);
  background-size: 300% 100%; animation: flow-run 2.8s linear infinite;
}
.flow-link .chip { position: relative; height: 28px; padding: 0 12px; font: 600 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; background: var(--bg-raise); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14); }
@keyframes flow-run { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; }
  .flow-link { height: 76px; }
  .flow-link::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; margin: 0 0 0 -1px; background: linear-gradient(180deg, rgb(255 255 255 / 0.08) 0%, rgb(255 255 255 / 0.08) 35%, var(--lime) 50%, rgb(255 255 255 / 0.08) 65%, rgb(255 255 255 / 0.08) 100%); background-size: 100% 300%; animation-name: flow-run-v; }
}
@keyframes flow-run-v { from { background-position: 0 100%; } to { background-position: 0 0%; } }

/* Split: media + copy */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-copy { display: grid; gap: 24px; justify-items: start; }
.split .media { aspect-ratio: 4 / 3.4; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* CTA band */
.cta { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(48px, 7vw, 104px) clamp(28px, 5vw, 80px); display: grid; gap: 26px; justify-items: center; text-align: center; }
.cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.cta-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgb(7 5 13 / 0.35), rgb(7 5 13 / 0.88) 75%); }
.cta h2 { max-width: 18ch; }
.cta .lead { max-width: 54ch; margin-inline: auto; }

/* Pricing */
.pricing-toolbar { display: flex; justify-content: center; margin-bottom: 48px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 24px; padding: 34px; border-radius: var(--r-xl); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.plan-name { font: 600 22px/1 var(--font-display); letter-spacing: -0.03em; }
.plan-desc { font-size: 15px; min-height: 3.2em; }
.plan-price { display: flex; align-items: baseline; gap: 10px; min-height: 64px; }
.plan-price .amount { font: 560 56px/1 var(--font-display); letter-spacing: -0.05em; }
.plan-price .amount small { font-size: 0.5em; letter-spacing: -0.02em; margin-right: 2px; vertical-align: 0.6em; }
.plan-price .per { font-size: 14px; color: var(--ink-3); line-height: 1.3; }
.plan .checks { align-content: start; font-size: 15px; }
.plan .btn-row .btn { flex: 1; }
.plan.is-featured { box-shadow: var(--glass-shine), var(--shadow-3), var(--glow-uv); }
.plan.is-featured .chip { background: var(--lime); color: var(--ink-on-signal); font-weight: 700; padding: 0 14px; height: 30px; font-size: 12px; }
[data-billing="monthly"] .price-annual, [data-billing="annual"] .price-monthly { display: none; }
.sales-note { margin-top: 28px; text-align: center; font-size: var(--fs-small); color: var(--ink-3); }
@media (max-width: 1060px) { .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Auth / single-card pages */
.auth { display: grid; place-items: center; padding-block: clamp(48px, 8vw, 110px); }
.auth-card { width: 100%; max-width: 480px; margin-inline: auto; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); display: grid; gap: 26px; justify-items: center; text-align: center; }
.auth-card .form { width: 100%; text-align: left; }
.auth-card .brand-mark { width: 48px; height: 48px; }
.auth-head { display: grid; gap: 12px; }
.auth-head h1 { font-size: clamp(30px, 3vw, 38px); letter-spacing: -0.035em; }
.auth-foot { font-size: var(--fs-small); color: var(--ink-3); text-align: center; }
.auth-foot a { color: var(--ink); font-weight: 650; }
.auth-foot a:hover { color: var(--lime); }
.form .btn { width: 100%; }
.form-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.form-panel { padding: clamp(26px, 3.4vw, 44px); border-radius: var(--r-xl); }
@media (max-width: 960px) { .form-split { grid-template-columns: 1fr; } }

/* Big statement */
.statement { font: 520 clamp(26px, 3.2vw, 46px)/1.2 var(--font-display); letter-spacing: -0.03em; color: var(--ink); max-width: 26ch; text-wrap: balance; }
.statement .muted { color: var(--ink-4); }

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found .code { font: 600 clamp(120px, 20vw, 240px)/1 var(--font-display); letter-spacing: -0.07em; }
