/* ══════════════════════════════════════════════════════════
   Synapse — fintech landing page
   Implemented from Figma: "My instagram posts" node 355-25870
   ══════════════════════════════════════════════════════════ */

:root {
  --bg: #171717;
  --card: #1c1c1c;
  --card-deep: #171717;
  --line: rgba(163, 163, 163, 0.14);
  --line-strong: #262626;
  --white: #ffffff;
  --gray: #a4a4a4;
  --gray-dim: #7a7a7a;
  --blue: #335cff;
  --green: #1fc16b;
  --font-head: "TWK Lausanne", "Instrument Sans", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --container: 1238px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }
i[class^="ri-"] { line-height: 1; }

.container {
  width: min(var(--container), 100% - 40px);
  margin: 0 auto;
  position: relative;
}

/* subtle mosaic texture overlay used on dark cards */
.noise-card { position: relative; }
.noise-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-card-url);
  background-size: 192px 192px;
  background-repeat: repeat;
  opacity: 0.05;
  pointer-events: none;
}

/* ─────────────── Buttons ─────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 12px;
  padding: 8px 16px;
  transition: 0.18s ease;
}
.btn-lg { height: 40px; padding: 10px 18px; }
.btn-white { background: var(--white); color: #000; }
.btn-white:hover { background: #e4e4e4; }
.btn-dark {
  background: #262626;
  color: var(--gray);
  border: 1px solid #373535;
}
.btn-dark:hover { color: var(--white); border-color: #4a4a4a; }
.btn-ghost {
  color: var(--gray);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.btn-ghost:hover { color: var(--white); border-color: #3a3a3a; }

.arrow-ne { width: 14px; height: 14px; }
.arrow-ne path { stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.link-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 500;
  font-size: 16px;
}
.link-white:hover { opacity: 0.8; }

.badge-pill {
  display: inline-block;
  background: #262626;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  padding: 4px 12px;
  border-radius: 9px;
}

/* ─────────────── Announcement banner ─────────────── */
.banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: #1c1c1c;
}
.banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
}
.banner-gift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
}
.banner-text { color: var(--gray); }
.banner-dot { color: #5c5c5c; margin: 0 -8px; }
.banner-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}
.banner-link .arrow-ne { width: 16px; height: 16px; }
.banner-link:hover { opacity: 0.8; }
.banner-close {
  position: absolute;
  right: 20px;
  color: var(--gray-dim);
  font-size: 16px;
}
.banner-close:hover { color: var(--white); }

/* ─────────────── Navbar ───────────────
   sticky: the announcement banner scrolls away, the nav stays pinned,
   and the banner is back when you return to the top */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid rgba(163, 163, 163, 0.12);
}
.nav.menu-open .nav-mobile { display: block; }
.nav-inner {
  width: min(1280px, 100% - 64px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 24px;
  color: var(--white);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a3a3a3;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 10px;
  transition: color 0.15s, background-color 0.15s;
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav-links i { font-size: 16px; }
.badge-new {
  background: #ebf1ff;
  color: var(--blue);
  font-size: 9px;
  font-weight: 600;
  line-height: 11px;
  letter-spacing: 0.02em;
  padding: 2.5px 5px;
  border-radius: 5px;
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-actions .btn {
  height: 36px;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13.5px;
}

.nav-links a.active { color: var(--white); }

/* ── Solutions dropdown — compact, anchored, our own content ── */
.nav-drop {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 68px;
}
.drop-panel {
  position: absolute;
  top: calc(100% - 12px);
  left: 0;
  min-width: 244px;
  display: none;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  z-index: 60;
}
.nav-drop:hover .drop-panel,
.nav-drop:focus-within .drop-panel { display: block; }
/* scoped under .drop-panel so these beat the `.nav-links a` pill rule
   and the rows fill the panel's full width */
.drop-panel .drop-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  transition: 0.15s;
}
.drop-panel .drop-item:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.drop-panel .drop-item i { font-size: 17px; color: var(--gray-dim); transition: 0.15s; }
.drop-panel .drop-item:hover i { color: var(--white); }

/* burger + mobile menu (design is desktop-only; mobile follows the same system) */
.nav-burger {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--white);
  font-size: 18px;
  align-items: center;
  justify-content: center;
}
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px;
  z-index: 50;
}
.nav-mobile-links { display: flex; flex-direction: column; }
.nav-mobile-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a3a3a3;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.nav-mobile-links a:active,
.nav-mobile-links a:hover { color: var(--white); }
.nav-mobile-links i { margin-left: auto; font-size: 18px; }
.nav-mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.nav-mobile-actions .btn {
  justify-content: center;
  height: 40px;
  border-radius: 10px;
}

/* ─────────────── Hero ─────────────── */
.hero { overflow: hidden; }
.hero-container {
  width: min(var(--container), 100% - 40px);
  margin: 0 auto;
  position: relative;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding-top: 44px;
}
/* design glow (394:3744) — soft white radial, sits behind the content.
   The export's alpha peaks at ~12%, so it is stacked 3× to reach the
   intensity the design shows over the dark background. */
.glow {
  position: absolute;
  width: 897px;
  height: 798px;
  background-image: url("assets/glow.png"), url("assets/glow.png"), url("assets/glow.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hero-band {
  display: block;
  width: 100%;
  height: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 57px 20px 0;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: 50px;
  line-height: 55px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-content p {
  max-width: 457px;
  margin: 24px auto 0;
  color: var(--gray);
  font-size: 16px;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.hero-tabs {
  position: relative;
  margin-top: 73px;
  display: flex;
  height: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-tabs .tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #a3a3a3;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.hero-tabs .tab:hover { color: #d4d4d4; }
/* inactive tab shows a plain icon, no white chip */
.hero-tabs .tab:not(.tab-active) .tab-chip {
  width: auto;
  height: auto;
  background: transparent;
  color: inherit;
  font-size: 17px;
}
.hero-tabs .tab + .tab { border-left: 1px solid var(--line); }
.hero-tabs .tab-active { color: var(--white); }
.tab-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--white);
  color: #171717;
  border-radius: 5px;
  font-size: 13px;
}
.hero-tabs .tab i { font-size: 17px; }
.hero-pic {
  position: relative;
  padding-bottom: 50px;
  overflow: hidden;
}
/* design mosaic (361:35519) — canvas so it can glow under the cursor */
.pic-mosaic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-pic img {
  display: block;
  position: relative;
  width: calc(100% - 100px);
  margin: 50px auto 0;
  border-radius: 16px;
  border: 1px solid #262626;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

/* ─────────────── Brands ─────────────── */
.brands {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brands-inner {
  width: min(var(--container), 100% - 40px);
  margin: 0 auto;
  height: 96px;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.brands-track {
  display: flex;
  width: max-content;
  animation: brands-scroll 32s linear infinite;
}
.brands-track:hover { animation-play-state: paused; }
.brands-set {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-left: 44px;
}
@keyframes brands-scroll {
  to { transform: translateX(-50%); }
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-dim);
  font-size: 18px;
  font-weight: 500;
}
.brand img { width: 22px; height: 22px; }
.brand-divider {
  width: 1px;
  height: 38px;
  background: var(--line);
}

/* ─────────────── Steps ─────────────── */
.steps {
  position: relative;
  overflow: hidden;
  padding: 188px 0 68px;
  border-bottom: 1px solid var(--line);
}
/* left/right rail lines run the full section height (design: Border frame) */
.steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container), 100% - 40px);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  pointer-events: none;
}
/* glow top-right (design: image 147 core at 1298,74) */
.glow-steps {
  top: -325px;
  right: -306px;
  opacity: 0.7;
}
/* design: title block inset 60, description sits 24px right of the
   heading (x=681), top-aligned with the heading — not flush right */
.steps-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 90px;
  padding: 0 60px;
}
.steps-head > div:first-child { width: 496px; flex-shrink: 0; }
.steps-head h2,
.pricing-head h2,
.section-title h2 {
  font-family: var(--font-head);
  font-size: 40px;
  line-height: 48px;
  font-weight: 400;
  margin-top: 12px;
}
.steps-head-right {
  max-width: 288px;
  padding-top: 40px;
}
.steps-head-right p {
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 24px;
}
.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
/* full-bleed hairlines across the page at the card top/bottom (design: Line 844/845) */
.steps-grid::before,
.steps-grid::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  border-top: 1px solid var(--line);
  z-index: -1;
}
.steps-grid::before { top: 0; }
.steps-grid::after { top: 190px; }
.steps-col { display: flex; flex-direction: column; }

.step-desc {
  height: 190px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px 40px 32px;
  display: flex;
  flex-direction: column;
}
.steps-col + .steps-col .step-desc,
.steps-col + .steps-col .widget { border-left: none; }
.step-ic {
  font-size: 28px;
  color: #a3a3a3;
  margin-bottom: auto;
}
.step-ic.blue { color: var(--blue); }
.step-desc h3 {
  position: relative;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  margin-bottom: 8px;
}
.step-desc p {
  position: relative;
  color: var(--gray);
  font-size: 16px;
}

.widget {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-top: none;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
}
.widget-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
}
.widget-title i { font-size: 20px; color: #a3a3a3; }
.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  background: var(--card-deep);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.btn-sm:hover { color: var(--white); }
.btn-sm i { font-size: 16px; }
.btn-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
}
.btn-text.white { color: var(--white); display: inline-flex; align-items: center; gap: 4px; }
.btn-text:hover { color: var(--white); }

/* credit card */
.credit-card {
  background: var(--card-deep);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 16px;
  height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: linear-gradient(115deg, transparent 55%, rgba(255,255,255,0.02) 55.2%, rgba(255,255,255,0.02) 70%, transparent 70.2%);
}
.cc-top { display: flex; align-items: center; gap: 10px; }
.cc-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a6bff, #2743d8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cc-logo img { width: 18px; height: 18px; }
.cc-wifi { color: #7a7a7a; font-size: 18px; transform: rotate(90deg); }
.cc-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #262626;
  color: var(--gray);
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  padding: 3px 10px 3px 6px;
}
.cc-active i { color: var(--green); font-size: 14px; }
.cc-mc { margin-left: auto; display: inline-flex; }
.cc-mc span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eb001b;
}
.cc-mc span + span { background: #f79e1b; margin-left: -7px; mix-blend-mode: screen; }
.cc-bottom { display: flex; align-items: flex-end; justify-content: space-between; }
.cc-label { color: var(--gray); font-size: 14px; line-height: 20px; }
.cc-amount {
  font-size: 32px;
  line-height: 40px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cc-arrows { display: flex; gap: 4px; }
.cc-arrows button {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #7a7a7a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.cc-arrows button:hover { color: var(--white); }

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--card-deep);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px;
}
.segmented button {
  height: 22px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  border-radius: 4px;
}
.segmented button.on { background: #2c2c2c; color: var(--white); }

.limit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.limit-donut { width: 40px; height: 40px; }
.limit-text { flex: 1; }
.limit-amount { font-size: 18px; font-weight: 500; line-height: 24px; }
.limit-amount span { font-size: 12px; color: var(--gray-dim); }
.round-chev {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.round-chev:hover { color: var(--white); }

/* saved actions */
.actions-list { display: flex; flex-direction: column; gap: 6px; }
.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-deep);
  border-radius: 12px;
  padding: 10px 12px;
}
.action-ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
  flex-shrink: 0;
}
.action-ic img { width: 100%; height: 100%; object-fit: cover; }
.action-ic.green { background: rgba(31, 193, 107, 0.1); color: var(--green); }
.action-ic.pink { background: rgba(251, 75, 163, 0.16); color: #fb4ba3; }
.action-ic.red { background: rgba(251, 55, 72, 0.16); color: #fb3748; }
.action-txt { flex: 1; min-width: 0; }
.action-txt b { display: block; font-size: 14px; font-weight: 500; line-height: 20px; }
.action-txt small { color: var(--gray); font-size: 12px; line-height: 16px; }
.action-badge {
  background: rgba(163, 163, 163, 0.1);
  color: var(--gray-dim);
  font-size: 11px;
  font-weight: 500;
  border-radius: 999px;
  padding: 5px 9px;
}
.action-chev { color: #5c5c5c; font-size: 16px; }
.save-action {
  margin-top: auto;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--card-deep);
}
.save-action:hover { color: var(--white); }

/* gauge — design Gauge Bar is 124px tall; cap the arc so the widget
   column matches the design's 380px height */
.gauge { position: relative; padding: 18px 40px 0; }
.gauge svg { width: 100%; max-width: 232px; margin: 0 auto; display: block; }
.gauge-center {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
}
.gauge-center span {
  display: block;
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.gauge-center b {
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
}
.gauge-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}
.gstat {
  text-align: center;
  padding: 6px 0;
}
.gstat + .gstat { border-left: 1px solid var(--line-strong); }
.gstat-ic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 8px;
}
.gstat-ic.blue { background: rgba(51, 92, 255, 0.14); color: #5c7cff; }
.gstat-ic.cyan { background: rgba(56, 163, 248, 0.14); color: #38a3f8; }
.gstat-ic.gray { background: rgba(163, 163, 163, 0.1); color: var(--gray); }
.gstat small { display: block; color: var(--gray); font-size: 12px; }
.gstat b { font-size: 14px; font-weight: 500; }
.gauge-note {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-deep);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--gray);
  font-size: 12px;
}
.gauge-note i { color: var(--gray-dim); }

/* ─────────────── Mosaic divider strips ─────────────── */
/* design strips (376:6845/6843) — the export carries the design opacity
   baked into its alpha (peak ~2%), so it is stacked 4× to read as the
   white static band the design shows. Never re-apply opacity on top. */
.mosaic-strip {
  position: relative;
  height: 32px;
  background: #171717;
}
.mosaic-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/strip-mosaic.png"), url("assets/strip-mosaic.png"),
    url("assets/strip-mosaic.png"), url("assets/strip-mosaic.png");
  background-repeat: repeat-x;
  background-position: top left;
  background-size: auto 100%;
}

/* ─────────────── Sections with bordered panel ───────────────
   design: container Border frames stroke left/right only; the
   section itself carries a full-bleed bottom hairline */
.bordered {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.features,
.testimonial,
.pricing {
  position: relative;
  overflow: hidden;
  /* full-bleed hairlines above and below (design: Line 845/846/847) */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-title {
  position: relative;
  text-align: center;
  padding-top: 100px;
}
.section-title h2 { margin-top: 24px; }

/* ─────────────── Features ─────────────── */
.features .bordered { padding-bottom: 100px; }
/* glow behind the cards, core centred mid-section (design: image 147 at 720,468) */
.glow-features {
  left: 50%;
  transform: translateX(-50%);
  top: 69px;
  opacity: 0.8;
}
.features-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 70px 7px 0;
}
.fcol { display: flex; flex-direction: column; gap: 8px; }
.fcard {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 40px;
  height: 248px;
  display: flex;
  flex-direction: column;
}
.fcard-tall {
  height: 504px;
  justify-content: space-between;
}
.ficon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--card-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.ficon.orange { color: #ff7a2f; }
.ficon.red { color: #ff4d6a; }
.ficon.blue { color: #4d6fff; }
.ficon.purple { color: #7a5cff; }
.ficon.pink { color: #fb3e9a; }
.fcard h3 {
  font-size: 18px;
  font-weight: 500;
  margin-top: auto;
  margin-bottom: 10px;
}
.fcard-tall h3 { margin-top: 0; }
.fcard p {
  color: var(--gray-dim);
  font-weight: 500;
  font-size: 16px;
  max-width: 320px;
}
/* design 420:11146 — thin 16×16 plus (#A1A1A1), injected by script.js
   at the grid-line intersections / card corners */
.sparkle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: url("assets/sparkle.svg") no-repeat center / 16px 16px;
  pointer-events: none;
}

/* ─────────────── Testimonials ─────────────── */
.t-panel {
  position: relative;
  /* consistent desktop rhythm with pricing/FAQ */
  padding: 80px 0;
  overflow: visible;
}
/* glow behind the card, core centred on the quote (design: image 147 at 720,279) */
.glow-quote {
  left: 50%;
  transform: translateX(-50%);
  top: -120px;
  opacity: 0.8;
}
.t-card {
  position: relative;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 480px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
}
.t-shape {
  position: absolute;
  width: 480px;
  opacity: 0.9;
  pointer-events: none;
}
.t-shape-tl { left: -56px; top: -260px; }
.t-shape-br { right: -70px; bottom: -240px; }
.t-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.28s ease;
}
.t-slide.t-fading { opacity: 0; }
.t-card blockquote {
  position: relative;
  font-size: 34.5px;
  line-height: 43.2px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: -0.01em;
}
.t-card blockquote em {
  font-style: normal;
  color: var(--white);
}
.t-author {
  position: relative;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.t-author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.t-author b { font-size: 13.6px; font-weight: 500; }
.t-div { width: 1px; height: 16px; background: #3a3a3a; }
.t-role { color: #737373; font-size: 13.8px; }
.t-brand { height: 11px; opacity: 0.35; }
.t-arrows {
  position: relative;
  margin-top: 52px;
  display: flex;
  gap: 8px;
}
.t-arrows button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #4a4a4a;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
}
.t-arrows svg { width: 20px; height: 20px; }
.t-arrows path { stroke: #e5e5e5; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.t-arrows button:hover { border-color: #8a8a8a; background: rgba(255, 255, 255, 0.12); }
.t-arrows button:hover path { stroke: #fff; }

/* ─────────────── Pricing (376:6849) ─────────────── */
.p-panel { padding: 80px 0; }
/* glow core sits mid-section behind the featured card (image 147 at 720,513) */
.glow-pricing {
  left: 50%;
  transform: translateX(-50%);
  top: 114px;
  opacity: 0.8;
}
/* left-aligned section headers all share the 60px inset (user rule) */
.pricing-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 48px;
  padding: 0 60px;
}
.pricing-head > div:first-child { width: 496px; flex-shrink: 0; }

.billing-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.billing-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch-track {
  width: 28px;
  height: 16px;
  padding: 2px;
  border-radius: 999px;
  background: #333333;
  flex-shrink: 0;
  transition: background 0.2s;
}
.switch-knob {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}
.billing-switch input:checked ~ .switch-track { background: #4c81ff; }
.billing-switch input:checked ~ .switch-track .switch-knob { transform: translateX(12px); }
.switch-text {
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
}

.pricing-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 7px;
  align-items: start;
}
/* design 420:11158 — outer card matches the page tone, defined by its
   border; an elevated sub-card holds plan + price + CTA */
.p-card {
  position: relative;
  background: var(--card-deep);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.p-top {
  position: relative;
  margin: 6px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
/* mosaic texture on the card's elevated block */
.p-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-card-url);
  background-size: 192px 192px;
  opacity: 0.05;
  pointer-events: none;
}
.p-top > * { position: relative; }
.p-plan {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.p-plan i { font-size: 16px; flex-shrink: 0; }
.p-badge {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(77, 130, 255, 0.16);
  border: 1px solid rgba(77, 130, 255, 0.35);
  color: #b9ceff;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.p-btn {
  position: relative;
  /* own stacking context so the orbit ::before (z -1) stays above the card bg */
  isolation: isolate;
  margin-top: 24px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: 0.18s;
}
.p-btn:hover { border-color: #3a3a3a; background: rgba(255, 255, 255, 0.08); }
.p-price {
  margin-top: 40px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.p-price b {
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.p-price span { color: var(--gray); font-size: 16px; }
.p-body { padding: 20px 20px 26px; }
.p-desc {
  color: var(--gray);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.p-detail {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.p-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.p-item i { color: var(--white); font-size: 16px; flex-shrink: 0; }

/* orbiting hover glow — a blue light blob circles the BUTTON on hover */
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes glow-orbit {
  to { --spin: 360deg; }
}
.p-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  z-index: -1;
  background: conic-gradient(
    from var(--spin),
    transparent 0turn 0.28turn,
    rgba(77, 130, 255, 0.55) 0.44turn,
    rgba(165, 195, 255, 0.9) 0.5turn,
    rgba(77, 130, 255, 0.55) 0.56turn,
    transparent 0.72turn 1turn
  );
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.p-btn:hover::before {
  opacity: 1;
  animation: glow-orbit 2.4s linear infinite;
}
/* the featured button already glows, so its orbiting arc is bigger and brighter */
.p-btn-featured::before {
  inset: -12px;
  border-radius: 18px;
  filter: blur(12px);
  background: conic-gradient(
    from var(--spin),
    transparent 0turn 0.26turn,
    rgba(120, 165, 255, 0.85) 0.44turn,
    rgba(235, 243, 255, 1) 0.5turn,
    rgba(120, 165, 255, 0.85) 0.56turn,
    transparent 0.74turn 1turn
  );
}

/* featured card — blue #4D82FF gradient-glow treatment (user reference):
   halo behind the card, bright-topped gradient rim, glassy inner wash,
   luminous gradient button */
.p-featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-deep), var(--card-deep)) padding-box,
    linear-gradient(180deg, rgba(190, 212, 255, 0.95), rgba(77, 130, 255, 0.55) 35%, rgba(77, 130, 255, 0.14) 85%) border-box;
}
.p-featured .p-top { background: rgba(255, 255, 255, 0.05); }
.p-featured::before {
  content: "";
  position: absolute;
  inset: -36px;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 50% 12%, rgba(150, 185, 255, 0.5), rgba(77, 130, 255, 0.22) 55%, transparent 78%),
    radial-gradient(70% 60% at 50% 72%, rgba(77, 130, 255, 0.26), transparent 78%);
  filter: blur(28px);
  pointer-events: none;
}
.p-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(150, 185, 255, 0.28), rgba(77, 130, 255, 0.1) 32%, transparent 58%);
  pointer-events: none;
}
.p-btn-featured {
  background: linear-gradient(90deg, #6f9cff 0%, #eaf1ff 50%, #6f9cff 100%);
  border: none;
  color: #10224d;
  box-shadow: 0 0 20px rgba(77, 130, 255, 0.45), 0 0 44px rgba(77, 130, 255, 0.25);
}
.p-btn-featured:hover {
  color: #10224d;
  /* the pill's own sheen sweeps around while the outer arc orbits */
  background: conic-gradient(
    from var(--spin),
    #6f9cff,
    #eaf1ff 25%,
    #6f9cff 50%,
    #eaf1ff 75%,
    #6f9cff
  );
  animation: glow-orbit 2.4s linear infinite;
}

/* ─────────────── FAQ (401:4035) ─────────────── */
.faq { border-top: 1px solid var(--line); }
.faq-panel { padding: 80px 0 152px; }
.faq .section-title { padding-top: 0; }
/* glow core behind the title (image 147 at 719,233) */
.glow-faq {
  left: 50%;
  transform: translateX(-50%);
  top: -166px;
  opacity: 0.8;
}
.faq-list {
  position: relative;
  width: min(540px, 100%);
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item { background: #262626; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 16px 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--gray);
  text-align: left;
  transition: color 0.2s;
}
.faq-q i {
  font-size: 22px;
  color: var(--gray-dim);
  flex-shrink: 0;
}
.faq-q:hover,
.faq-item.open .faq-q { color: var(--white); }
.faq-item.open .faq-q i { color: var(--gray); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  padding: 0 24px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a {
  max-height: 420px;
  padding-bottom: 20px;
}
.faq-a p {
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.faq-a p + p { margin-top: 20px; }
.faq-date {
  display: block;
  margin-top: 20px;
  color: var(--gray-dim);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

/* ─────────────── Pricing page (404:5559 as layout reference) ─────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
}
.ph-panel {
  position: relative;
  text-align: center;
  padding: 96px 0 64px;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: 50px;
  line-height: 55px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.page-hero .ph-sub {
  max-width: 470px;
  margin: 20px auto 0;
  color: var(--gray);
  font-size: 16px;
}
.ph-switch {
  justify-content: center;
  margin-top: 32px;
}
/* glow behind the page-hero title */
.glow-page-hero {
  left: 50%;
  transform: translateX(-50%);
  top: -220px;
  opacity: 0.8;
}
.p-panel-page { padding: 64px 0 80px; }

/* compare table */
.compare .section-title { padding-top: 80px; }
.cmp-panel { padding: 0 0 80px; }
.cmp-table-wrap {
  margin-top: 56px;
  padding: 0 60px;
  overflow-x: auto;
}
.cmp-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
col.cmp-feat { background: rgba(77, 130, 255, 0.05); }
.cmp-table th,
.cmp-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-weight: 500;
}
.cmp-table th:first-child,
.cmp-table td:first-child {
  text-align: left;
  color: var(--gray);
  width: 34%;
}
.cmp-table thead th {
  color: var(--white);
  font-size: 16px;
  line-height: 24px;
  padding: 16px;
}
.cmp-table thead small {
  display: block;
  color: var(--gray-dim);
  font-size: 12px;
  font-weight: 400;
}
.cmp-cat td {
  background: var(--card);
  color: var(--gray-dim);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 16px;
}
.cmp-val { color: var(--gray); }
.cmp-yes { color: #4c81ff; font-size: 16px; }
.cmp-no { color: #5c5c5c; }
.cmp-table .cmp-cta td { border-bottom: none; padding: 28px 12px 40px; }
.cmp-table .p-btn { margin-top: 0; }

/* FAQ contact line (pricing page) */
.faq-contact {
  position: relative;
  text-align: center;
  margin-top: 16px;
  color: var(--gray);
  font-size: 14px;
}
.faq-contact a { color: var(--white); }
.faq-contact a:hover { text-decoration: underline; }

/* ─────────────── Blog index (407:3883 as layout reference) ─────────────── */
.blog-panel { padding: 0 0 96px; }
.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 60px;
  border-bottom: 1px solid var(--line);
}
.blog-tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  transition: 0.15s;
}
.blog-tab:hover { color: var(--white); }
.blog-tab.on { background: #262626; color: var(--white); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 28px;
  padding: 48px 60px 0;
}
.blog-card { display: block; }
.blog-card .cover {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: 0.2s;
}
.blog-card:hover .cover { filter: brightness(1.1); }
.blog-card h3 {
  margin-top: 16px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
}
.blog-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.blog-card p {
  margin-top: 8px;
  color: var(--gray);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-dim);
  font-size: 13px;
}
.blog-meta img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.blog-meta b { color: var(--gray); font-weight: 500; }
.blog-card[hidden] { display: none; }

/* ─────────────── Blog post detail ─────────────── */
.post {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.post-panel {
  position: relative;
  padding: 80px 0 96px;
}
.post-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
}
.post-hero h1 {
  font-family: var(--font-head);
  font-size: 40px;
  line-height: 48px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 24px;
}
.post-cat:hover { color: var(--white); }
.post-meta { justify-content: center; margin-top: 20px; }
.post-cover {
  display: block;
  width: min(1000px, 100% - 40px);
  aspect-ratio: 2 / 1;
  object-fit: cover;
  margin: 48px auto 0;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
}
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 0;
  color: #bdbdbd;
  font-size: 16px;
  line-height: 28px;
}
.post-body p { margin-top: 16px; }
.post-body h2 {
  color: var(--white);
  font-size: 22px;
  line-height: 30px;
  font-weight: 500;
  margin-top: 40px;
}
.post-body strong { color: var(--white); font-weight: 500; }
.post-related .section-title { padding-top: 80px; }
.post-related .blog-grid { padding-top: 56px; }

/* ─────────────── Footer (403:4186) ─────────────── */
.footer {
  background: #161616;
  border-top: 1px solid var(--line);
}
.footer-rails,
.footer-bar-inner,
.footer-mosaic-rails {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
/* left-aligned text shares the 60px inset used by the steps header */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 72px 60px;
}
.footer-cta h2 {
  font-family: var(--font-head);
  font-size: 40px;
  line-height: 48px;
  font-weight: 400;
}
.footer-cta p {
  margin-top: 20px;
  color: var(--gray);
  font-size: 18px;
  line-height: 24px;
}
.footer-cta-btn { flex-shrink: 0; }
.footer-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px 60px;
}
.footer-copy {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gray);
  font-size: 14px;
}
.footer-copy a {
  display: inline-flex;
  color: var(--gray);
  font-size: 18px;
}
.footer-copy a:hover { color: var(--white); }
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a3a3a3;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 10px;
  transition: color 0.15s, background-color 0.15s;
}
.footer-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.footer-nav a.active { color: var(--white); }
.footer-nav i { font-size: 16px; }
/* the big mosaic field — cursor-reactive like the hero */
.footer-mosaic-rails { position: relative; }
.footer-mosaic {
  display: block;
  width: 100%;
  height: 240px;
}

/* ─────────────── Responsive: tablet ─────────────── */
@media (max-width: 1100px) {
  /* nav collapses to burger — Login/Sign up live in the menu only */
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-burger { display: inline-flex; }

  .hero-content h1 { font-size: 42px; line-height: 48px; }
  .hero-band { height: 40px; }
  .hero-pic { height: auto; padding-bottom: 24px; }
  .hero-pic img { width: calc(100% - 64px); margin-top: 24px; }

  .brands-inner { height: 76px; }
  .brands-set { gap: 28px; padding-left: 28px; }
  .brand-divider { height: 28px; }

  /* user spec: tablet head padding 0 top/bottom, 32 sides */
  .steps-head { flex-direction: column; padding: 0 32px; }
  .steps-head > div:first-child { width: auto; }
  .steps { padding-top: 100px; }
  /* cards fill the container width when stacked (user request) */
  .steps-grid { grid-template-columns: 1fr; }
  .steps-col + .steps-col .step-desc,
  .steps-col + .steps-col .widget { border-left: 1px solid var(--line); }

  .features-grid { grid-template-columns: 1fr; }
  .fcard, .fcard-tall { height: auto; min-height: 220px; gap: 28px; }

  .pricing-head { flex-direction: column; padding: 0 32px; }
  .pricing-head > div:first-child { width: auto; }
  .pricing-grid { grid-template-columns: 1fr; }
  .p-panel { padding: 64px 0; }
  .faq-panel { padding: 64px 0 96px; }

  .page-hero h1 { font-size: 42px; line-height: 48px; }
  .blog-tabs { padding: 14px 32px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); padding: 40px 32px 0; }
  .cmp-table-wrap { padding: 0 32px; }
  .compare .section-title { padding-top: 64px; }
  .cmp-panel { padding: 0 0 64px; }

  .footer-cta { padding: 56px 32px; }
  .footer-bar-inner { padding: 12px 32px; flex-wrap: wrap; }
  .footer-mosaic { height: 180px; }
  .sparkle { display: none; }
  .steps-grid::before,
  .steps-grid::after { display: none; }

  .t-card blockquote { font-size: 24px; line-height: 32px; }
}

/* ─────────────── Responsive: mobile ─────────────── */
@media (max-width: 640px) {
  .banner { padding: 0 40px 0 16px; }
  .banner-inner { min-width: 0; }
  .banner-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .banner-close { right: 12px; }

  .nav-inner { width: min(1280px, 100% - 32px); }
  .nav-mobile { padding: 8px 16px 20px; }

  .hero-content { padding-top: 44px; }
  .hero-content h1 { font-size: 34px; line-height: 40px; }
  .hero-content h1 br { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-tabs { margin-top: 48px; }
  .hero-pic img { width: calc(100% - 32px); margin-top: 24px; }

  .brand { font-size: 15px; }
  .brand img { width: 18px; height: 18px; }

  .steps { padding: 72px 0 48px; }
  /* user spec: mobile head padding 60 top/bottom, 20 sides */
  .steps-head { margin-bottom: 48px; padding: 60px 20px; }
  .steps-head h2, .section-title h2 { font-size: 30px; line-height: 38px; }
  .section-title { padding-top: 72px; }
  .step-desc { padding: 24px 20px 28px; }
  .gauge { padding: 12px 12px 0; }
  .cc-amount { font-size: 28px; line-height: 36px; }

  .fcard, .fcard-tall { padding: 32px 24px; }
  .fcard p { max-width: none; }

  .t-panel { padding: 48px 0 48px; }
  .t-card { padding: 48px 20px; min-height: 420px; }

  .pricing-head { padding: 60px 20px; margin-bottom: 0; }
  .p-panel { padding: 0 0 48px; }
  .faq-panel { padding: 60px 0 48px; }

  .page-hero h1 { font-size: 34px; line-height: 40px; }
  .blog-tabs { padding: 12px 20px; }
  .blog-grid { grid-template-columns: 1fr; padding: 32px 20px 0; gap: 40px; }
  .ph-panel { padding: 64px 0 48px; }
  .cmp-table-wrap { padding: 0 20px; margin-top: 40px; }

  .footer-cta { flex-direction: column; align-items: flex-start; gap: 28px; padding: 60px 20px; }
  .footer-cta h2 { font-size: 30px; line-height: 38px; }
  .footer-bar-inner { padding: 16px 20px; }
  .footer-mosaic { height: 140px; }
  .t-card blockquote br { display: none; }
  .t-shape { width: 280px; }
  .t-shape-tl { left: -40px; top: -140px; }
  .t-shape-br { right: -50px; bottom: -130px; }
  .t-author { flex-wrap: wrap; justify-content: center; }
}

/* ─────────────── Motion ───────────────
   scroll-reveals, button micro-lift, and page enter/leave fades.
   Everything sits behind prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  body { animation: page-in 0.3s ease both; }
  @keyframes page-in {
    from { opacity: 0; }
  }
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
  .btn:hover,
  .p-btn:hover { transform: translateY(-1.5px); }
  .btn:active,
  .p-btn:active { transform: translateY(0); }
}

/* ─────────────── Auth (login / sign up) ───────────────
   Our design system throughout: card like the site cards, rounded
   inputs, white CTA, segmented Log in / Sign up toggle, plus-sparkles
   on the card corners like the feature cards. */
.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-main {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}
/* the site's long rail lines, full page height like every landing section */
.auth-main::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container), 100% - 40px);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  pointer-events: none;
}
.auth-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.auth-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 36px 32px 32px;
}
/* the site's "+" sparkles on every card corner, like the feature cards */
.auth-sp { position: absolute; }
.sp-tl { left: -8px; top: -8px; }
.sp-tr { left: calc(100% - 8px); top: -8px; }
.sp-bl { left: -8px; top: calc(100% - 8px); }
.sp-br { left: calc(100% - 8px); top: calc(100% - 8px); }

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

/* segmented toggle — white active pill, same language as .btn-white */
.auth-seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #161616;
  border: 1px solid var(--line);
  padding: 4px;
  margin-bottom: 28px;
}
.auth-seg-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--white);
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.auth-tab {
  position: relative;
  height: 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
}
.auth-tab:hover { color: var(--white); }
.auth-tab.active { color: #111111; }

.auth-pane {
  animation: auth-pane-in 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes auth-pane-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-pane h1 {
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  text-align: center;
}
.auth-sub {
  margin-top: 8px;
  text-align: center;
  color: var(--gray);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.auth-google {
  margin-top: 24px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #262626;
  border: 1px solid #373535;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: 0.18s;
}
.auth-google:hover { border-color: #4a4a4a; background: #2c2c2c; }
.auth-google i { font-size: 17px; }
.auth-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--gray-dim);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.f-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.f-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
}
.f-box {
  display: flex;
  align-items: center;
  height: 44px;
  background: #161616;
  border: 1px solid var(--line-strong);
  transition: border-color 0.18s, background 0.18s;
}
.f-box:focus-within { border-color: #4a4a4a; background: #1a1a1a; }
.f-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
}
.f-box input::placeholder { color: var(--gray-dim); }
.f-eye {
  padding: 0 12px;
  color: var(--gray-dim);
  font-size: 16px;
  transition: color 0.15s;
}
.f-eye:hover { color: var(--white); }
.f-phone { display: flex; gap: 10px; }
.f-cc { flex-shrink: 0; padding-right: 8px; }
.f-cc select {
  appearance: none;
  height: 100%;
  padding: 0 4px 0 14px;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.f-cc select option { background: var(--card); }
.f-cc i { color: var(--gray-dim); pointer-events: none; }
.f-tel { flex: 1; }

/* primary CTA — the site's white button */
.auth-submit {
  margin-top: 4px;
  height: 44px;
  width: 100%;
  background: var(--white);
  color: #000;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.18s;
}
.auth-submit:hover { background: #e4e4e4; transform: translateY(-1.5px); }
.auth-submit:active { transform: translateY(0); }

/* live password requirement ticks — green when met */
.pw-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: -4px;
}
.pw-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-dim);
  transition: color 0.2s;
}
.pw-check i { font-size: 14px; transition: color 0.2s; }
.pw-check.ok { color: var(--gray); }
.pw-check.ok i { color: var(--green); }

.auth-alt {
  margin-top: 20px;
  text-align: center;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
}
.auth-alt a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.auth-foot {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  text-align: center;
  color: var(--gray-dim);
  font-size: 13px;
  line-height: 20px;
}
.auth-foot a {
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.auth-foot a:hover { color: var(--white); }

@media (max-width: 640px) {
  .auth-main { padding: 32px 20px; }
  .auth-card { padding: 28px 20px 24px; }
  .f-row { grid-template-columns: 1fr; }
  .auth-sp { display: none; }
}
