/* Ambergrin marketing & auth — aligned with Client Panel theme */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #0f3d4c;
  --ink-soft: #1a2b33;
  --text: #1a2b33;
  --text-muted: #5c6f7a;
  --accent: #1a8a9e;
  --accent-hover: #157484;
  --accent-soft: #e8f6f9;
  --border: #dce6ee;
  --shadow: 0 8px 24px rgba(15, 61, 76, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 61, 76, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) - 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Brand mark — matches Client Panel */
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.site-nav.is-scrolled {
  box-shadow: 0 4px 20px rgba(15, 61, 76, 0.06);
  border-bottom-color: transparent;
}

.site-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 0;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  object-position: left center;
}

.brand-logo--footer {
  height: 32px;
  max-width: 160px;
}

.preview-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  object-fit: cover;
}

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

.nav-link-group {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-group-label {
  display: none;
}

.nav-link {
  position: relative;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(26, 138, 158, 0.08);
}

.nav-link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
}

.site-nav-links a.nav-link {
  color: var(--text-muted);
}

.site-nav-links a.nav-link:hover {
  color: var(--ink);
}

.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem !important;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(26, 138, 158, 0.25);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s !important;
  white-space: nowrap;
}

.btn-nav-primary:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(26, 138, 158, 0.35);
  transform: translateY(-1px);
}

.btn-nav-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem !important;
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--border) !important;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn-nav-secondary:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.nav-menu-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.site-nav.is-open .nav-menu-btn {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.site-nav.is-open .nav-menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .nav-menu-bar:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .nav-menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--accent-soft);
}

body.modal-open {
  overflow: hidden;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.site-modal.hidden {
  display: none;
}

.site-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 61, 76, 0.45);
}

.site-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  margin: auto;
}

.site-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 0;
}

.site-modal-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.site-modal-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.site-modal-close:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.site-modal-form {
  padding: 1.25rem 1.5rem 1.5rem;
}

/* Hero */
.hero {
  padding: 3rem 1.5rem 4rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-cta-wrap {
  margin-bottom: 2rem;
}

.hero-cta-wrap .hero-cta {
  margin-bottom: 0.85rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0;
}

.trial-assurance {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  max-width: 26rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
  font-weight: 500;
}

.trial-assurance-icon {
  display: inline-flex;
  margin-top: 0.15rem;
  color: var(--accent);
  flex-shrink: 0;
}

.trial-assurance--center {
  justify-content: center;
  display: flex;
  max-width: none;
  text-align: center;
}

.trial-assurance--center .trial-assurance-icon {
  margin-top: 0.12rem;
}

.trial-assurance--inverse {
  color: rgba(255, 255, 255, 0.78);
}

.trial-assurance--inverse .trial-assurance-icon {
  color: rgba(255, 255, 255, 0.92);
}

.trial-assurance--compact {
  font-size: 0.8rem;
}

.auth-form-actions .trial-assurance {
  margin-top: 0.75rem;
}

.pricing-card .trial-assurance {
  margin-top: 0.85rem;
}

.cta-actions .trial-assurance {
  margin-top: 0.85rem;
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-points li {
  padding-left: 1.25rem;
  position: relative;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-points code {
  font-size: 0.82em;
  background: var(--accent-soft);
  color: var(--ink);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.pricing-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid rgba(26, 138, 158, 0.25);
  border-radius: 999px;
}

.pricing-badge strong {
  color: var(--accent);
  font-weight: 700;
}

/* App preview mock */
.app-preview {
  display: grid;
  grid-template-columns: 168px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 320px;
}

.preview-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1rem 0.65rem;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
  padding: 0 0.35rem;
}


.preview-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.72rem;
}

.preview-nav li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.preview-nav li.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.preview-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.preview-main {
  padding: 1rem;
  background: var(--bg);
}

.preview-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.preview-chip {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
}

.preview-grid {
  display: grid;
  gap: 0.6rem;
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.preview-card.muted {
  opacity: 0.95;
}

.preview-card.accent {
  border-color: rgba(26, 138, 158, 0.35);
  background: var(--accent-soft);
}

.preview-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.preview-card strong {
  display: block;
  font-size: 0.82rem;
  color: var(--ink);
}

.preview-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.preview-teeth {
  display: flex;
  gap: 4px;
  margin-top: 0.35rem;
}

.preview-teeth span {
  width: 14px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 3px 3px 6px 6px;
  background: #fff;
}

.preview-teeth span.filled {
  background: var(--accent);
  border-color: var(--accent);
}

/* Trust band */
.trust-band {
  background: var(--ink);
  color: #fff;
  padding: 1.5rem 1.5rem;
}

.trust-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.trust-item span {
  font-size: 0.82rem;
  opacity: 0.75;
}

/* Sections */
.section {
  padding: 4.5rem 1.5rem;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-header.centered {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Desk cards */
.desk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.desk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.desk-card:hover {
  border-color: rgba(26, 138, 158, 0.4);
  box-shadow: var(--shadow);
}

.desk-card-wide {
  grid-column: 1 / -1;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.desk-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.desk-card-wide .desk-icon {
  margin-bottom: 0;
}

.desk-icon svg {
  width: 22px;
  height: 22px;
}

.desk-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.desk-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Workflow */
.workflow-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.workflow-steps {
  margin: 2rem 0 2rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.workflow-steps li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  min-width: 2.5rem;
}

.workflow-steps strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.workflow-steps p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.workflow-aside blockquote {
  margin: 0 0 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
}

.workflow-facts {
  margin: 0;
}

.workflow-facts div {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.workflow-facts dt {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.workflow-facts dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.workflow-facts code {
  font-size: 0.85em;
  background: var(--accent-soft);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

/* Feature matrix */
.feature-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-cell {
  background: var(--surface);
  padding: 1.5rem;
}

.feature-cell h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--ink);
}

.feature-cell p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Pricing */
.pricing-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.pricing-card-top h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.pricing-trial {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.pricing-amount {
  margin: 1.25rem 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.pricing-currency {
  font-size: 1.5rem;
  vertical-align: super;
  margin-right: 0.1rem;
}

.pricing-period {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-note {
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-includes {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-includes li {
  padding: 0.45rem 0 0.45rem 1.35rem;
  position: relative;
  border-top: 1px solid var(--border);
}

.pricing-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-includes code {
  font-size: 0.85em;
  background: var(--accent-soft);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.pricing-cta {
  width: 100%;
}

.pricing-fine {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.auth-pricing {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--accent-soft);
  border: 1px solid rgba(26, 138, 158, 0.2);
  border-radius: var(--radius-sm);
}

.auth-pricing strong {
  color: var(--ink);
}

/* FAQ */
.faq-section {
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: rgba(26, 138, 158, 0.45);
  box-shadow: var(--shadow);
}

.faq-item summary {
  padding: 1.15rem 1.35rem;
  padding-right: 2.75rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

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

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.35rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: translateY(-35%) rotate(-135deg);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.35rem 1.25rem;
  border-top: 1px solid var(--border);
}

.faq-answer p,
.faq-answer ul {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-answer ul {
  padding-left: 1.25rem;
}

.faq-answer li + li {
  margin-top: 0.35rem;
}

.faq-answer a {
  color: var(--accent);
  font-weight: 500;
}

.faq-answer code {
  font-size: 0.88em;
  background: var(--accent-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
}

.cta-band > .cta-inner > p {
  margin: 0 0 1.5rem;
  opacity: 0.85;
}

.cta-actions {
  margin-bottom: 1rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta-band .btn-primary:hover {
  background: var(--accent-soft);
}

.cta-note {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
}

.cta-note code {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: linear-gradient(180deg, var(--ink) 0%, #0a2f3a 100%);
  color: rgba(255, 255, 255, 0.88);
}

.footer-top {
  padding: 3.5rem 1.5rem 2.5rem;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.footer-col-brand {
  padding-right: 1rem;
}

.footer-brand-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: 1rem;
}

.footer-brand-link .brand-logo {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-tagline {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28rem;
}

.footer-support {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #fff;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.footer-support:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.footer-support-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}

.footer-support-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-support-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.footer-support-email {
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-heading {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}

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

.footer-list a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-list a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1.5rem;
}

.footer-bottom-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-domain {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-domain code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Legal & content pages */
.home-page,
.site-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.home-page main {
  flex: 1;
}

.legal-breadcrumb {
  margin-bottom: 1.5rem;
}

.legal-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-breadcrumb-list--center {
  justify-content: center;
}

.legal-breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-breadcrumb-list li + li::before {
  content: "/";
  color: var(--border);
  font-weight: 400;
  margin-right: 0.15rem;
}

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

.legal-breadcrumb-list a:hover {
  text-decoration: underline;
}

.legal-breadcrumb-list li[aria-current="page"] {
  color: var(--text-muted);
  font-weight: 500;
}

.legal-main {
  flex: 1;
  padding: 3rem 1.5rem 4rem;
}

.legal-article {
  max-width: 720px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.legal-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-meta {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-body section {
  margin-bottom: 2rem;
}

.legal-body h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.legal-body h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.legal-body p,
.legal-body li {
  color: var(--text);
  line-height: 1.7;
}

.legal-body p {
  margin: 0 0 1rem;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal-body li {
  margin-bottom: 0.4rem;
}

.legal-body a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.legal-body a:hover {
  text-decoration: underline;
}

.legal-body code {
  background: var(--accent-soft);
  color: var(--ink);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88em;
}

/* Contact page */
.contact-layout {
  max-width: 960px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-header .eyebrow {
  text-align: center;
}

.contact-header h1 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--ink);
}

.contact-header .legal-lead {
  max-width: 540px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-card-primary {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.contact-card-primary:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.contact-card-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-card-primary .contact-card-icon {
  background: var(--accent);
  color: #fff;
}

.contact-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.contact-card a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

.contact-aside h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-checklist li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-checklist code {
  background: var(--accent-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.contact-checklist a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-checklist a:hover {
  text-decoration: underline;
}

.legal-footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.legal-footer p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.legal-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.legal-footer a:hover {
  text-decoration: underline;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.legal-back-link:hover {
  text-decoration: underline;
}

.legal-footer--center {
  text-align: center;
}

/* Auth / signup pages */
.auth-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem 3rem;
}

.auth-layout {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}

.signup-page .auth-layout {
  max-width: 1120px;
  grid-template-columns: 1fr 520px;
}

.auth-aside {
  padding-top: 1rem;
}

.auth-aside h1 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.auth-aside p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-checklist li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.auth-card-header {
  margin-bottom: 1.5rem;
}

.auth-card-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: var(--ink);
}

.auth-card-header p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-card-header code {
  font-size: 0.8em;
  background: var(--accent-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.auth-form .form-row {
  margin-bottom: 1rem;
}

.auth-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.auth-form .required {
  color: #c2410c;
}

.turnstile-row {
  margin-top: 0.25rem;
}

.auth-form input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 138, 158, 0.18);
}

.input-with-toggle {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.input-with-toggle:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 138, 158, 0.18);
}

.input-with-toggle input {
  border: none;
  border-radius: 0;
  box-shadow: none !important;
  flex: 1 1 auto;
  min-width: 0;
}

.input-with-toggle input:focus {
  outline: none;
  box-shadow: none !important;
}

.password-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  padding: 0;
  border: none;
  border-left: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.password-toggle:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.input-with-suffix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.input-with-suffix:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 138, 158, 0.18);
}

.input-with-suffix input {
  border: none;
  border-radius: 0;
  box-shadow: none !important;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.input-with-suffix input:focus {
  box-shadow: none !important;
}

.input-suffix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg);
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.subdomain-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.subdomain-status.checking::after {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: subdomain-spin 0.65s linear infinite;
}

.subdomain-status.available::after {
  content: "✓";
  color: #059669;
}

.subdomain-status.taken::after,
.subdomain-status.invalid::after {
  content: "✕";
  color: #dc2626;
}

.input-with-suffix.subdomain-available {
  border-color: #34d399;
}

.input-with-suffix.subdomain-available:focus-within {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
}

.input-with-suffix.subdomain-taken,
.input-with-suffix.subdomain-invalid {
  border-color: #f87171;
}

.input-with-suffix.subdomain-taken:focus-within,
.input-with-suffix.subdomain-invalid:focus-within {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.subdomain-feedback {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.subdomain-feedback.available {
  color: #059669;
}

.subdomain-feedback.taken,
.subdomain-feedback.invalid {
  color: #dc2626;
}

@keyframes subdomain-spin {
  to {
    transform: rotate(360deg);
  }
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.form-message.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-message.info {
  background: var(--accent-soft);
  color: var(--ink);
  border: 1px solid rgba(26, 138, 158, 0.25);
}

.hidden {
  display: none !important;
}

.auth-form-actions {
  margin-top: 1.25rem;
}

.auth-form-actions .btn {
  width: 100%;
}

.auth-form-actions .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.auth-footer-link {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.88rem;
}

.auth-footer-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

.otp-input {
  font-size: 1.5rem;
  letter-spacing: 0.35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.auth-form-actions-split {
  display: flex;
  gap: 0.75rem;
}

.auth-form-actions-split .btn {
  flex: 1;
}

/* Success */
.success-page .auth-main {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(26, 138, 158, 0.12), transparent 55%),
    var(--bg);
}

.success-layout {
  max-width: 1040px;
  grid-template-columns: 1fr 480px;
  align-items: center;
}

.success-aside h1 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.success-card {
  position: relative;
  text-align: left;
  padding: 2.25rem 2rem 1.75rem;
  border-color: rgba(26, 138, 158, 0.22);
  box-shadow: var(--shadow-lg);
}

.success-badge {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
}

.success-badge-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(26, 138, 158, 0.28);
  animation: success-ring-pulse 2.4s ease-out infinite;
}

.success-badge-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, #22b8cf, var(--accent));
  color: #fff;
  font-size: 1.85rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(26, 138, 158, 0.35);
}

@keyframes success-ring-pulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

.success-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.success-header h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.success-header p {
  font-size: 0.92rem;
}

.success-workspace-panel {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #f8fdfe 0%, var(--accent-soft) 100%);
  border: 1px solid rgba(26, 138, 158, 0.2);
}

.success-workspace-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.success-url-box {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
}

.success-url-link {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0.72rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.success-url-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 138, 158, 0.14);
}

.success-copy-btn {
  flex-shrink: 0;
  padding: 0 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.success-copy-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.success-copy-btn.is-copied {
  border-color: #34d399;
  background: #ecfdf5;
  color: #047857;
}

.success-url-hint {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.success-actions {
  margin-top: 0.25rem;
}

.success-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.success-cta-arrow {
  transition: transform 0.15s ease;
}

.success-cta:hover .success-cta-arrow {
  transform: translateX(3px);
}

.success-home-link {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
  }

  .trust-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .workflow-split,
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .signup-page .auth-layout {
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .signup-page .auth-card {
    order: -1;
  }

  .success-layout {
    grid-template-columns: 1fr;
  }

  .success-page .success-card {
    order: -1;
  }

  .auth-main {
    padding: 1.5rem 1rem 2.5rem;
    place-items: stretch;
  }

  .auth-card {
    padding: 1.5rem;
    min-width: 0;
  }

  .auth-card-header p {
    overflow-wrap: anywhere;
  }

  .feature-matrix {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-link {
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
  }

  .btn-nav-primary,
  .btn-nav-secondary {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.82rem !important;
  }

  .nav-actions {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
  }
}

@media (max-width: 720px) {
  .nav-menu-btn {
    display: flex;
  }

  .site-nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open .site-nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-group-label {
    display: block;
    padding: 0.35rem 0.5rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .nav-link {
    padding: 0.7rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .nav-link.is-active {
    background: var(--accent-soft);
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin: 1rem 0 0;
    padding: 0;
    border-left: none;
  }

  .site-nav-links .btn-nav-secondary,
  .site-nav-links .btn-nav-primary {
    width: 100%;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    border-radius: var(--radius-sm) !important;
    text-align: center;
  }

  .site-nav-links .btn-nav-primary {
    order: -1;
  }

  .desk-grid {
    grid-template-columns: 1fr;
  }

  .desk-card-wide {
    flex-direction: column;
  }

  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-aside {
    text-align: center;
  }

  .auth-form input {
    font-size: 16px;
  }

  .auth-form-actions .btn {
    width: 100%;
  }

  .input-suffix {
    padding: 0 0.6rem;
    font-size: 0.78rem;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .subdomain-status {
    width: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .auth-main {
    padding: 1rem 0.75rem 2rem;
  }

  .auth-card {
    padding: 1.25rem;
    border-radius: var(--radius-sm);
  }

  .auth-card-header h2 {
    font-size: 1.15rem;
  }

  .signup-page .input-with-suffix {
    flex-wrap: wrap;
  }

  .signup-page .input-with-suffix input {
    flex: 1 1 calc(100% - 2rem);
    min-height: 2.75rem;
  }

  .signup-page .input-with-suffix .subdomain-status {
    flex: 0 0 2rem;
    border-left: 1px solid var(--border);
  }

  .signup-page .input-with-suffix .input-suffix {
    flex: 1 1 100%;
    max-width: none;
    justify-content: center;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    overflow: visible;
    text-overflow: unset;
  }

  .auth-form-actions-split {
    flex-direction: column;
  }

  .success-url-box {
    flex-direction: column;
  }

  .success-copy-btn {
    padding: 0.65rem 0.85rem;
  }
}
