/* ==========================================================================
   Nexa Reply V2 — Architectural Studio Daylight Stylesheet
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg-ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mono, .mono-dim {
  font-family: var(--font-mono);
  font-size: 12px;
}

.mono-dim {
  color: var(--ink-3);
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cobalt);
  font-size: 1.12em;
}

/* Badges, Pills & Chips */
.badge, .pill, .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  background: var(--bg-paper);
  color: var(--ink-2);
}

.badge-cobalt, .pill-cobalt {
  background: var(--cobalt-soft);
  border-color: rgba(0, 85, 255, 0.22);
  color: var(--cobalt);
}

.badge-emerald, .pill-meta {
  background: var(--emerald-soft);
  border-color: rgba(5, 150, 105, 0.25);
  color: var(--emerald);
}

.badge-coral {
  background: var(--coral-soft);
  border-color: rgba(255, 79, 23, 0.25);
  color: var(--coral);
}

.badge-neutral {
  background: var(--bg-stone);
  border-color: var(--line);
  color: var(--ink-2);
}

.meta-icon-svg {
  width: 22px;
  height: 14px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-primary, .btn-cobalt {
  background: var(--cobalt);
  color: #ffffff;
  box-shadow: 0 6px 18px -6px rgba(0, 85, 255, 0.55);
}

.btn-primary:hover, .btn-cobalt:hover {
  background: var(--cobalt-hover);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: var(--bg-stone);
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}

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

.btn-emerald {
  background: var(--emerald);
  color: #ffffff;
}

.btn-emerald:hover {
  background: #047857;
}

.pill-emerald {
  background: var(--emerald-soft);
  border-color: rgba(5, 150, 105, 0.25);
  color: var(--emerald);
}

.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--bg-stone);
}

.alert-amber {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.btn-danger {
  background: var(--coral-soft);
  color: var(--coral);
  border-color: rgba(255, 79, 23, 0.25);
}

.btn-danger:hover {
  background: var(--coral);
  color: #fff;
}

/* Header & Navigation */
.arch-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.arch-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.meta-chip-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(5, 150, 105, 0.22);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  background: var(--bg-stone);
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.nav-search-btn:hover {
  border-color: var(--cobalt);
  color: var(--ink);
}

.kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-stone);
  border: 1px solid var(--line);
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 17px;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-paper);
  border-bottom: 1px solid var(--line);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 8px;
  z-index: 55;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  display: flex;
}

/* Architectural Hero & 3-Mode Live Studio */
.hero-section {
  padding: 58px 0 48px;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(to right, rgba(228, 225, 216, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(228, 225, 216, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-headline {
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 18px;
  max-width: 960px;
}

.hero-subcopy {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 0 26px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

/* Live Interactive Studio Shell */
.studio-card {
  background: var(--bg-paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.studio-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-stone);
  border-bottom: 1px solid var(--line);
}

.studio-tab-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.studio-tab-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
}

.studio-tab-btn.active {
  background: var(--bg-paper);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.studio-panel {
  padding: 24px;
}

/* Animated SVG Pipeline Simulator */
.pipeline-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.preset-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-chip {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-ivory);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.preset-chip:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr 48px 1.25fr;
  align-items: stretch;
  gap: 0;
}

.pipeline-stage {
  background: var(--bg-ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.pipeline-stage.stage-active {
  border-color: var(--cobalt);
  background: var(--bg-paper);
  box-shadow: 0 0 0 3px var(--cobalt-soft);
  transform: translateY(-2px);
}

.pipeline-stage.stage-done {
  border-color: rgba(5, 150, 105, 0.45);
}

.pipeline-wire {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipeline-wire svg {
  width: 48px;
  height: 28px;
  overflow: visible;
}

.wire-track {
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.wire-packet {
  fill: var(--cobalt);
  opacity: 0.25;
}

.pipeline-wire.wire-firing .wire-track {
  stroke: var(--cobalt);
}

.pipeline-wire.wire-firing .wire-packet {
  opacity: 1;
  animation: packetSlide 0.55s ease-in-out infinite;
}

@keyframes packetSlide {
  0% { transform: translateX(-14px); }
  100% { transform: translateX(14px); }
}

.dm-phone-mock {
  background: var(--bg-paper);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dm-meta-bar {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.dm-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.45;
}

.dm-bubble.incoming {
  background: var(--bg-stone);
  color: var(--ink);
  align-self: flex-start;
}

.dm-bubble.outgoing {
  background: #edf3ff;
  border: 1px solid rgba(0, 85, 255, 0.2);
  color: var(--ink);
}

.dm-cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.dm-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  background: var(--bg-paper);
  cursor: pointer;
}

.dm-cta-btn.primary {
  background: var(--cobalt);
  color: #fff;
  border-color: var(--cobalt);
}

.dm-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  padding: 14px 4px;
}

.dm-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
  animation: dotBounce 1s infinite ease-in-out;
}

.dm-typing span:nth-child(2) { animation-delay: 0.15s; }
.dm-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.public-reply-bar {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-stone);
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Studio Mini Forms (Hero Bio & Short URL tabs) */
.studio-inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 720px;
}

.studio-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.form-input {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-paper);
  color: var(--ink);
  font-size: 14px;
}

.form-input:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px var(--cobalt-soft);
}

.studio-status-pill {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  border: 1px solid var(--line);
  background: var(--bg-stone);
}

.studio-status-pill.ok {
  background: var(--emerald-soft);
  border-color: rgba(5, 150, 105, 0.3);
  color: #065f46;
}

.studio-status-pill.err, .studio-status-pill.warn {
  background: var(--coral-soft);
  border-color: rgba(255, 79, 23, 0.3);
  color: #9a3412;
}

.short-preview-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-ivory);
}

.short-preview-url {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--cobalt);
  margin: 4px 0;
}

.short-preview-dest {
  font-size: 12.5px;
  color: var(--ink-3);
  word-break: break-all;
}

/* Section Layout & Architectural Grids */
.arch-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.arch-section.surface-stone {
  background: var(--bg-stone);
}

.arch-section.surface-paper {
  background: var(--bg-paper);
}

.section-header {
  max-width: 740px;
  margin-bottom: 38px;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 10px 0 12px;
}

.section-header p {
  color: var(--ink-2);
  margin: 0;
  font-size: 1.05rem;
}

.bento-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bento-card {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.bento-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.bento-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
}

/* Bio & Short URL Templates Showcase */
.templates-tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.tpl-switch-btn {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-paper);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.16s ease;
}

.tpl-switch-btn.active {
  border-color: var(--cobalt);
  background: #f4f7ff;
  box-shadow: 0 0 0 2px var(--cobalt-soft);
}

.tpl-switch-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}

.tpl-switch-sub {
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.tpl-preview-shell {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  background: var(--bg-paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.tpl-phone-frame {
  border-radius: 22px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  background: var(--bg-ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.theme-mint-fresh .tpl-phone-frame { background: #effaf5; }
.theme-cobalt-studio .tpl-phone-frame { background: #eff4ff; }
.theme-luxury-gold .tpl-phone-frame { background: #fbf6eb; }

.tpl-phone-urlbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 16px;
}

.tpl-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 10px;
}

.tpl-display-name {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.tpl-bio-copy {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.tpl-accounts-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.tpl-account-chip {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-paper);
  border: 1px solid var(--line);
}

.tpl-blocks-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tpl-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-paper);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
}

.tpl-link-row:hover {
  border-color: var(--cobalt);
}

.tpl-link-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  flex-shrink: 0;
}

.tpl-details-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

.tpl-details-pane h3 {
  font-size: 26px;
  margin: 0;
  letter-spacing: -0.02em;
}

.tpl-short-pair {
  width: 100%;
  background: var(--bg-stone);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}

.tpl-short-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0;
}

.tpl-short-row code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--cobalt);
}

.tpl-short-meta {
  font-size: 12.5px;
  color: var(--ink-3);
}

.tpl-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.template-showcase-block {
  margin-bottom: 28px;
}

/* Pricing Grid */
.billing-switch-bar {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-stone);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.billing-switch-btn {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--ink-2);
}

.billing-switch-btn.active {
  background: var(--bg-paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.pricing-cycle-note {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 24px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-stone);
  border: 1px solid var(--line);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 16px;
}

.plan-card {
  background: var(--bg-paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-card.plan-featured {
  border: 2px solid var(--cobalt);
  box-shadow: var(--shadow-md);
}

.plan-card.plan-vip {
  border-color: var(--coral);
}

.plan-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.plan-card h3 {
  margin: 0;
  font-size: 20px;
}

.plan-tagline {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}

.plan-currency {
  font-size: 20px;
  font-weight: 700;
  vertical-align: top;
}

.plan-amount {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan-strike-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.plan-strike-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: line-through;
}

.plan-save-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--emerald-soft, rgba(16, 185, 129, 0.14));
  color: var(--emerald, #059669);
}

.plan-period {
  font-size: 12px;
  color: var(--ink-3);
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-2);
  flex: 1;
}

.plan-cta-btn {
  width: 100%;
}

/* Comparison Table */
.compare-table-wrap {
  overflow-x: auto;
  background: var(--bg-paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th, .compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table th {
  background: var(--bg-stone);
  font-weight: 800;
}

.compare-highlight {
  background: rgba(0, 85, 255, 0.04);
  font-weight: 700;
}

/* SEO Q&A Hub */
.faq-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-tab-btn {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-paper);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.faq-tab-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.faq-search-box {
  min-width: 260px;
  max-width: 340px;
  flex: 1;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.faq-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 15.5px;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-cat-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-stone);
  color: var(--ink-2);
  flex-shrink: 0;
}

.faq-q-text {
  flex: 1;
}

.faq-plus {
  font-size: 18px;
  color: var(--ink-3);
}

.faq-answer-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
}

.faq-empty {
  padding: 28px;
  text-align: center;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-2);
}

/* Auth & Legal Pages */
.auth-page-wrap {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px 32px 32px;
  box-shadow: var(--shadow-lg);
}

.auth-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-ivory);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.auth-back-btn:hover {
  background: var(--bg-stone);
  border-color: var(--ink);
  transform: translateX(-2px);
}

.auth-mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}

.auth-mini-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.google-btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2.2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: nexaSpin 0.65s linear infinite;
  flex-shrink: 0;
}

.btn-spinner-lg {
  width: 28px;
  height: 28px;
  border: 3px solid var(--cobalt);
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: nexaSpin 0.7s linear infinite;
}

@keyframes nexaSpin {
  to {
    transform: rotate(360deg);
  }
}

.btn.is-loading {
  opacity: 0.9;
  cursor: wait;
}

.auth-processing-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--cobalt-soft);
  border: 1px solid rgba(0, 85, 255, 0.25);
  color: var(--cobalt);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--coral-soft);
  border: 1px solid rgba(255, 79, 23, 0.35);
  color: #9a3412;
  font-size: 13px;
  margin-bottom: 14px;
}

.legal-shell {
  max-width: 820px;
  margin: 48px auto;
  background: var(--bg-paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.legal-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.legal-tabs-nav a {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  background: var(--bg-stone);
  color: var(--ink-2);
}

.legal-tabs-nav a.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.qr-svg-frame {
  display: inline-flex;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.qr-card-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg-ivory);
  flex-wrap: wrap;
}

/* Footer */
.arch-footer {
  background: var(--bg-paper);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-heading {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

.footer-links a:hover {
  color: var(--cobalt);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}

/* Modals, Cookie Banner, Gmail Prompt & Toasts */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 16, 0.45);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 120;
  padding: 20px;
}

.search-modal {
  width: 100%;
  max-width: 620px;
  background: var(--bg-paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
}

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.search-result-item:hover {
  background: var(--bg-stone);
}

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  width: min(390px, calc(100vw - 40px));
  background: var(--bg-paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gmail-prompt-card {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 85;
  width: 310px;
  background: var(--bg-paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.toast-item.success { background: var(--emerald); }
.toast-item.error { background: var(--coral); }
.toast-item.warning { background: #b45309; }

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

html.nx-reveal-init .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .pipeline-grid { grid-template-columns: 1fr; gap: 10px; }
  .pipeline-wire { transform: rotate(90deg); height: 24px; }
  .templates-tabs-grid { grid-template-columns: 1fr 1fr; }
  .tpl-preview-shell { grid-template-columns: 1fr; }
  .bento-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero-section { padding: 34px 0 36px; }
  .arch-section { padding: 42px 0; }
  .nav-search-btn .kbd { display: none; }
  .meta-chip-mini { display: none; }
  .btn, .form-input, .faq-tab-btn, .billing-switch-btn { min-height: 44px; }
  .gmail-prompt-card { left: 16px; right: 16px; width: auto; bottom: 16px; top: auto; }
  .templates-tabs-grid { grid-template-columns: 1fr; }
  .studio-inline-form, .studio-two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Pre-Checkout Identity & International Phone Modal + Dashboard Billing Identity Bar */
.dash-billing-account-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--bg-stone);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.dash-bill-id-info {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.dash-bill-id-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.dash-bill-id-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.precheckout-card {
  max-width: 470px;
  padding: 24px;
}

.precheckout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.precheckout-identity-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: var(--bg-stone);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.precheckout-id-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.precheckout-id-k {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.precheckout-id-v {
  font-size: 13.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.precheckout-phone-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.precheckout-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.precheckout-hint {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--ink-3);
}

.phone-intl-row {
  display: grid;
  grid-template-columns: minmax(135px, 165px) 1fr;
  gap: 8px;
}

.phone-country-select {
  font-size: 13px;
  padding-right: 8px;
}

.precheckout-error {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--coral);
}

.precheckout-safe-note {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0 0 16px;
  line-height: 1.45;
}

.precheckout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 540px) {
  .precheckout-identity-box { grid-template-columns: 1fr; }
  .phone-intl-row { grid-template-columns: 1fr; }
}
