/*
 * TitleFlash landing page styles.
 * Loaded only on marketing/legal pages. Removed by entry.jsx when the
 * React builder mounts at /app.
 *
 * Depends on /tokens.css being loaded first.
 */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--tf-font-body);
  font-size: var(--tf-text-base);
  line-height: 1.55;
  color: var(--tf-ink);
  background: var(--tf-canvas);
  background-image:
    radial-gradient(rgba(75, 60, 30, 0.07) 1px, transparent 1px),
    radial-gradient(rgba(75, 60, 30, 0.04) 1px, transparent 1px);
  background-size: 36px 36px, 12px 12px;
  background-position: 0 0, 6px 6px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--tf-amber-soft);
  color: var(--tf-ink);
}

:focus-visible {
  outline: none;
  box-shadow: var(--tf-focus-ring);
  border-radius: var(--tf-radius-sm);
}

/* ============================================================
 * Layout primitives
 * ============================================================ */

.lp-container {
  width: 100%;
  max-width: var(--tf-content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .lp-container {
    padding: 0 2.5rem;
  }
}

.lp-section {
  padding: 5rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .lp-section {
    padding: 6.5rem 0;
  }
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--tf-font-body);
  font-size: var(--tf-text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tf-teal-dark);
}

.lp-eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.lp-section-title {
  font-family: var(--tf-font-display);
  font-weight: 500;
  font-size: var(--tf-display-md);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--tf-ink);
  text-wrap: balance;
}

.lp-section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--tf-teal-dark);
}

.lp-section-lede {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: var(--tf-text-lg);
  color: var(--tf-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ============================================================
 * Buttons
 * ============================================================ */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 2.875rem;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--tf-radius-md);
  background: transparent;
  font-family: var(--tf-font-body);
  font-size: var(--tf-text-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  text-decoration: none;
  transition:
    transform var(--tf-duration-fast) var(--tf-ease-out),
    background-color var(--tf-duration-base) var(--tf-ease-out),
    border-color var(--tf-duration-base) var(--tf-ease-out),
    box-shadow var(--tf-duration-base) var(--tf-ease-out),
    color var(--tf-duration-base) var(--tf-ease-out);
}

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

.lp-btn--primary {
  background: var(--tf-teal);
  color: #ffffff;
  box-shadow: var(--tf-shadow-press),
    0 4px 12px rgba(13, 107, 102, 0.28);
}

.lp-btn--primary:hover {
  background: var(--tf-teal-dark);
  box-shadow: var(--tf-shadow-press),
    0 8px 20px rgba(13, 107, 102, 0.36);
}

.lp-btn--secondary {
  background: var(--tf-paper);
  color: var(--tf-ink);
  border-color: var(--tf-line-strong);
  box-shadow: var(--tf-shadow-xs);
}

.lp-btn--secondary:hover {
  background: var(--tf-paper-strong);
  border-color: var(--tf-ink);
}

.lp-btn--ghost {
  color: var(--tf-ink-soft);
}

.lp-btn--ghost:hover {
  color: var(--tf-ink);
  background: rgba(0, 0, 0, 0.04);
}

.lp-btn--large {
  height: 3.25rem;
  padding: 0 1.75rem;
  font-size: var(--tf-text-base);
  border-radius: var(--tf-radius-md);
}

.lp-btn .lp-btn-arrow {
  display: inline-block;
  transition: transform var(--tf-duration-base) var(--tf-ease-out);
}

.lp-btn:hover .lp-btn-arrow {
  transform: translateX(3px);
}

/* ============================================================
 * Header
 * ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--tf-header-height);
  padding: 0 1.5rem;
  background: rgba(251, 247, 237, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(216, 205, 180, 0.5);
}

@media (min-width: 768px) {
  .site-header {
    padding: 0 2.5rem;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--tf-font-body);
  font-size: var(--tf-text-md);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--tf-ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--tf-radius-sm);
  background: var(--tf-ink);
  color: var(--tf-amber-soft);
}

.brand-mark svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.site-nav {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 2rem;
  color: var(--tf-ink-soft);
  font-size: var(--tf-text-sm);
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--tf-duration-base) var(--tf-ease-out);
}

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

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 2px;
  background: var(--tf-teal);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tf-duration-base) var(--tf-ease-out);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

@media (min-width: 880px) {
  .site-nav {
    display: flex;
  }
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-sign-in {
  display: none;
  font-size: var(--tf-text-sm);
  font-weight: 500;
  color: var(--tf-ink-soft);
  padding: 0.5rem 0.85rem;
  border-radius: var(--tf-radius-sm);
  transition: color var(--tf-duration-base) var(--tf-ease-out),
    background var(--tf-duration-base) var(--tf-ease-out);
}

.header-sign-in:hover {
  color: var(--tf-ink);
  background: rgba(0, 0, 0, 0.04);
}

@media (min-width: 600px) {
  .header-sign-in {
    display: inline-flex;
  }
}

.header-button {
  height: 2.375rem;
  padding: 0 1.1rem;
  background: var(--tf-ink);
  color: #fff;
  border-radius: var(--tf-radius-sm);
  font-family: var(--tf-font-body);
  font-size: var(--tf-text-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--tf-ink);
  transition: background var(--tf-duration-base) var(--tf-ease-out);
}

.header-button:hover {
  background: #000;
}

.header-button .lp-btn-arrow {
  display: inline-block;
  transition: transform var(--tf-duration-base) var(--tf-ease-out);
}

.header-button:hover .lp-btn-arrow {
  transform: translateX(2px);
}

/* ============================================================
 * Hero
 * ============================================================ */

.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 5.5rem 0 7rem;
  }
}

.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 3rem;
    align-items: start;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--tf-radius-pill);
  background: var(--tf-paper);
  border: 1px solid var(--tf-line-strong);
  font-size: var(--tf-text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tf-ink-soft);
  box-shadow: var(--tf-shadow-xs);
}

.hero-eyebrow .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: var(--tf-radius-pill);
  background: var(--tf-teal);
  box-shadow: 0 0 0 3px rgba(13, 107, 102, 0.18);
}

.hero h1 {
  margin-top: 1.5rem;
  font-family: var(--tf-font-display);
  font-weight: 500;
  font-size: var(--tf-display-lg);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--tf-ink);
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--tf-teal-dark);
  position: relative;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.05em;
  height: 0.18em;
  background: var(--tf-amber-soft);
  z-index: -1;
  border-radius: 2px;
}

.hero-lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: var(--tf-text-lg);
  line-height: 1.6;
  color: var(--tf-muted);
  text-wrap: pretty;
}

.hero-lede-stat {
  position: relative;
  font-weight: 700;
  color: var(--tf-ink);
  white-space: nowrap;
  padding: 0 0.15em;
}

.hero-lede-stat::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.45em;
  background: var(--tf-amber-soft);
  border-radius: 2px;
  z-index: -1;
}

.hero-lede-stat sup {
  font-weight: 600;
  color: var(--tf-amber-dark);
  font-size: 0.6em;
  margin-left: 0.1em;
  top: -0.55em;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-trust {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  font-size: var(--tf-text-sm);
  color: var(--tf-muted);
}

.hero-disclaimer {
  margin-top: 1rem;
  font-size: var(--tf-text-xs);
  color: var(--tf-muted-soft);
  letter-spacing: 0.01em;
}

.hero-disclaimer span {
  color: var(--tf-amber-dark);
  font-weight: 600;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust span::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: var(--tf-radius-pill);
  background: var(--tf-teal-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%230d6b66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2.5 6.2l2.4 2.4 4.6-4.6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.8rem;
}

/* ----------------- Hero visual (browser mockup) ---------------- */

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  font-size: clamp(0.85rem, 0.4rem + 1.1vw, 1.32rem);
  /* All inner sizes scale relative to this font-size via em */
}

@media (min-width: 960px) {
  .hero-visual {
    margin: 0;
    max-width: none;
  }
}

.browser-demo {
  position: relative;
  width: 100%;
  padding-top: 6.5em;
}

.demo-callout {
  position: absolute;
  top: 3em;
  right: 1em;
  z-index: 3;
  padding: 0.7em 1em;
  border-radius: 0.65em;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line-strong);
  box-shadow: var(--tf-shadow-sm);
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tf-ink-soft);
  text-align: center;
  letter-spacing: -0.005em;
  max-width: 14em;
}

.demo-arrow {
  position: absolute;
  top: 5em;
  right: 4em;
  z-index: 3;
  width: 6em;
  height: 4em;
  fill: none;
  stroke: var(--tf-amber);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.demo-rays {
  position: absolute;
  top: 6em;
  right: 9em;
  z-index: 3;
  width: 3.5em;
  height: 1.6em;
  pointer-events: none;
}

.demo-rays span {
  position: absolute;
  top: 0.4em;
  left: 50%;
  width: 0.18em;
  height: 1em;
  border-radius: 999px;
  background: var(--tf-amber);
  opacity: 0.7;
  transform-origin: center 1.6em;
  animation: rayPulse 2.4s ease-in-out infinite;
}

.demo-rays span:nth-child(1) {
  transform: translateX(-1.4em) rotate(-30deg);
  animation-delay: 0.05s;
}

.demo-rays span:nth-child(2) {
  top: 0;
  transform: translateX(-50%);
  animation-delay: 0.25s;
}

.demo-rays span:nth-child(3) {
  transform: translateX(1.2em) rotate(30deg);
  animation-delay: 0.45s;
}

@keyframes rayPulse {
  0%, 60%, 100% { opacity: 0.35; transform-origin: center 1.6em; }
  20%, 40% { opacity: 1; }
}

.browser-frame {
  position: relative;
  width: 100%;
  border: 1px solid var(--tf-line-strong);
  border-radius: 0.9em;
  background: var(--tf-paper);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    var(--tf-shadow-md);
  overflow: hidden;
}

.browser-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0.35em;
  height: 3em;
  padding: 0.4em 0.8em 0;
  border-bottom: 1px solid var(--tf-line);
  background: linear-gradient(180deg, #f5efe1, #ecdfc5);
}

.window-controls {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 0.45em;
  margin-right: 0.4em;
  margin-bottom: 0.3em;
}

.window-controls span {
  width: 0.75em;
  height: 0.75em;
  border-radius: 999px;
}

.window-controls span:nth-child(1) { background: #ff6156; }
.window-controls span:nth-child(2) { background: #ffbd2e; }
.window-controls span:nth-child(3) { background: #29c763; }

.demo-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45em;
  flex: 0 0 auto;
  max-width: 9.5em;
  height: 2.3em;
  padding: 0 0.7em;
  border: 1px solid var(--tf-line);
  border-bottom: 0;
  border-radius: 0.5em 0.5em 0 0;
  background: rgba(255, 254, 250, 0.72);
  color: var(--tf-muted);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.demo-tab > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-tab-active {
  flex: 0 0 13em;
  max-width: 13em;
  background: var(--tf-paper);
  color: var(--tf-ink);
  border-color: var(--tf-amber);
  box-shadow: 0 -2px 0 var(--tf-amber) inset;
  z-index: 1;
}

.tab-icon {
  position: relative;
  width: 0.8em;
  height: 0.7em;
  border-radius: 0.15em 0.15em 0.1em 0.1em;
  background: var(--tf-ink);
  flex: 0 0 auto;
}

.tab-icon::before,
.tab-icon::after {
  content: "";
  position: absolute;
  top: -0.32em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50% 50% 0.1em 0.1em;
  background: var(--tf-ink);
}

.tab-icon::before {
  left: 0.05em;
  transform: rotate(-28deg);
}

.tab-icon::after {
  right: 0.05em;
  transform: rotate(28deg);
}

.tab-close {
  color: var(--tf-quiet);
  font-size: 1em;
  line-height: 1;
}

.tab-plus {
  align-self: center;
  margin-left: 0.45em;
  color: var(--tf-quiet);
  font-size: 1.1em;
}

.live-tab-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 180ms ease, transform 180ms ease;
}

.live-tab-title.is-swapping {
  opacity: 0.3;
  transform: translateY(-2px);
}

.browser-address {
  display: grid;
  grid-template-columns: 1.4em 1.4em 1.6em 1fr 1.4em;
  align-items: center;
  gap: 0.4em;
  height: 2.6em;
  padding: 0 0.85em;
  border-bottom: 1px solid var(--tf-line);
  background: var(--tf-paper);
  color: var(--tf-muted);
  font-size: 0.78em;
}

.nav-arrow {
  font-size: 1.2em;
  line-height: 1;
  color: var(--tf-muted-soft);
}

.reload-icon {
  position: relative;
  justify-self: center;
  width: 0.85em;
  height: 0.85em;
  border: 1.5px solid var(--tf-muted-soft);
  border-right-color: transparent;
  border-radius: 999px;
}

.reload-icon::after {
  content: "";
  position: absolute;
  top: -0.25em;
  right: -0.15em;
  border-top: 0.3em solid transparent;
  border-bottom: 0.3em solid transparent;
  border-left: 0.4em solid var(--tf-muted-soft);
}

.address-pill {
  display: flex;
  align-items: center;
  gap: 0.45em;
  height: 1.7em;
  padding: 0 0.85em;
  border-radius: 999px;
  background: var(--tf-canvas-strong);
  color: var(--tf-ink-soft);
  font-size: 0.92em;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lock-icon {
  position: relative;
  flex: 0 0 auto;
  width: 0.55em;
  height: 0.45em;
  border-radius: 0.1em;
  background: var(--tf-muted);
}

.lock-icon::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: -0.42em;
  width: 0.4em;
  height: 0.5em;
  border: 0.1em solid var(--tf-muted);
  border-bottom: 0;
  border-radius: 0.4em 0.4em 0 0;
}

.menu-dots,
.menu-dots::before,
.menu-dots::after {
  width: 0.16em;
  height: 0.16em;
  border-radius: 999px;
  background: var(--tf-muted-soft);
}

.menu-dots {
  position: relative;
  justify-self: center;
}

.menu-dots::before,
.menu-dots::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-dots::before { top: -0.4em; }
.menu-dots::after { top: 0.4em; }

.browser-page {
  display: grid;
  grid-template-columns: 11em 1fr 13em;
  gap: 0.85em;
  padding: 2.4em 1.7em 1.7em;
  background: var(--tf-paper);
}

.page-card {
  border: 1px solid var(--tf-line);
  border-radius: 0.6em;
  background: var(--tf-canvas-strong);
  background: rgba(245, 239, 225, 0.55);
}

.image-card {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
}

.image-glyph {
  position: relative;
  width: 60%;
  height: 60%;
  border-radius: 0.35em;
  background: #e7e3d6;
  overflow: hidden;
}

.image-glyph::before {
  content: "";
  position: absolute;
  inset: 0.45em 0.6em;
  background:
    radial-gradient(circle at 75% 22%, rgba(214, 168, 76, 0.55) 0.35em, transparent 0.4em),
    linear-gradient(135deg, transparent 44%, rgba(95, 110, 130, 0.35) 45% 58%, transparent 59%),
    linear-gradient(315deg, transparent 51%, rgba(95, 110, 130, 0.32) 52% 66%, transparent 67%);
}

.page-copy {
  display: grid;
  align-content: start;
  gap: 0.7em;
  padding-top: 0.6em;
}

.page-copy span,
.summary-card span,
.summary-card strong {
  display: block;
  height: 0.65em;
  border-radius: 999px;
  background: var(--tf-line);
}

.page-copy span:nth-child(1) { width: 84%; }
.page-copy span:nth-child(2) { width: 70%; }
.page-copy span:nth-child(3) { width: 58%; }
.page-copy span:nth-child(4) {
  width: 92%;
  height: 1em;
  margin-top: 0.5em;
  background: var(--tf-line-soft);
}
.page-copy span:nth-child(5) {
  width: 58%;
  height: 1.4em;
  margin-top: 0.4em;
  background: var(--tf-teal-soft);
}

.summary-card {
  padding: 1.3em 1.1em;
}

.summary-card span {
  margin-bottom: 0.7em;
}

.summary-card span:nth-child(1) { width: 63%; }
.summary-card span:nth-child(2) { width: 78%; }
.summary-card span:nth-child(3) { width: 42%; }

.summary-card strong {
  width: 100%;
  height: 1.5em;
  margin-top: 1.4em;
  background: var(--tf-ink-soft);
}

/* ============================================================
 * Logos / proof strip
 * ============================================================ */

.proof-strip {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid rgba(216, 205, 180, 0.5);
}

.proof-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .proof-strip-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.proof-strip-label {
  font-size: var(--tf-text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tf-muted);
}

.proof-strip-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  font-family: var(--tf-font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--tf-text-md);
  color: var(--tf-ink-soft);
}

.proof-strip-platforms span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.proof-strip-platforms span:not(:last-child)::after {
  content: "·";
  margin-left: 1.5rem;
  color: var(--tf-quiet);
}

/* ============================================================
 * Examples / use cases
 * ============================================================ */

.examples {
  background: linear-gradient(180deg, transparent, rgba(245, 239, 225, 0.6));
}

.examples-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3.5rem;
}

.examples-head .lp-eyebrow {
  justify-content: center;
}

.examples-head .lp-section-lede {
  margin-left: auto;
  margin-right: auto;
}

.example-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .example-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .example-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.example-card {
  position: relative;
  padding: 1.75rem 1.6rem 1.85rem;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-lg);
  box-shadow: var(--tf-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    transform var(--tf-duration-base) var(--tf-ease-out),
    box-shadow var(--tf-duration-base) var(--tf-ease-out);
}

.example-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tf-shadow-md);
}

.example-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  font-size: var(--tf-text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tf-teal-dark);
  background: var(--tf-teal-soft);
  border-radius: var(--tf-radius-pill);
  align-self: flex-start;
}

.example-card h3 {
  font-family: var(--tf-font-display);
  font-weight: 500;
  font-size: var(--tf-text-2xl);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--tf-ink);
  text-wrap: balance;
}

.mini-tab-strip {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 0.35rem;
  padding: 0.4rem;
  background: var(--tf-canvas-strong);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-md);
  overflow: hidden;
}

.mini-tab-strip span {
  min-width: 0;
  padding: 0.55rem 0.6rem;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-sm);
  color: var(--tf-muted);
  font-size: var(--tf-text-xs);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.mini-tab-strip .active {
  background: var(--tf-amber-tint);
  border-color: var(--tf-amber);
  color: var(--tf-amber-dark);
  box-shadow: inset 0 -2px 0 rgba(200, 122, 8, 0.4);
}

.example-card ul {
  display: grid;
  gap: 0.65rem;
  color: var(--tf-muted);
  font-size: var(--tf-text-sm);
  line-height: 1.5;
}

.example-card ul li {
  position: relative;
  padding-left: 1.25rem;
}

.example-card ul li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 1.5px solid var(--tf-teal);
  border-bottom: 1.5px solid var(--tf-teal);
  transform: rotate(-45deg);
}

/* ============================================================
 * Workflow / how it works
 * ============================================================ */

.workflow-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3.5rem;
}

.workflow-head .lp-eyebrow {
  justify-content: center;
}

.workflow-head .lp-section-lede {
  margin-left: auto;
  margin-right: auto;
}

.workflow-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  position: relative;
}

@media (min-width: 960px) {
  .workflow-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.workflow-card {
  position: relative;
  padding: 1.75rem;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-lg);
  box-shadow: var(--tf-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-height: 16rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--tf-font-display);
  font-style: italic;
  font-size: var(--tf-text-md);
  color: var(--tf-amber-dark);
}

.step-number::before {
  content: "";
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  background: var(--tf-amber-tint);
  border-radius: var(--tf-radius-pill);
  font-family: var(--tf-font-body);
  font-style: normal;
  font-weight: 700;
  font-size: var(--tf-text-xs);
  color: var(--tf-amber-dark);
  border: 1px solid var(--tf-amber-soft);
}

.step-number[data-step="01"]::before { content: "01"; }
.step-number[data-step="02"]::before { content: "02"; }
.step-number[data-step="03"]::before { content: "03"; }

.workflow-card h3 {
  font-family: var(--tf-font-display);
  font-weight: 500;
  font-size: var(--tf-text-2xl);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--tf-ink);
}

.workflow-card p {
  font-size: var(--tf-text-sm);
  line-height: 1.55;
  color: var(--tf-muted);
}

.builder-lines {
  margin-top: auto;
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem;
  background: var(--tf-canvas-strong);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-md);
}

.builder-lines span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-sm);
  font-size: var(--tf-text-xs);
  font-weight: 600;
  color: var(--tf-ink-soft);
}

.builder-lines span::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: var(--tf-radius-pill);
  background: var(--tf-teal);
}

.preview-tabs {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0.3rem;
  padding: 0.4rem;
  background: var(--tf-canvas-strong);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-md);
}

.preview-tabs span {
  padding: 0.55rem 0.5rem;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-sm);
  color: var(--tf-muted);
  font-size: var(--tf-text-xs);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.preview-tabs .active {
  background: var(--tf-amber-tint);
  border-color: var(--tf-amber);
  color: var(--tf-amber-dark);
  box-shadow: inset 0 -2px 0 rgba(200, 122, 8, 0.4);
}

.code-snippet {
  margin-top: auto;
  padding: 0.95rem 1rem;
  background: var(--tf-ink);
  color: #f4e4c2;
  border-radius: var(--tf-radius-md);
  font-family: var(--tf-font-mono);
  font-size: var(--tf-text-xs);
  line-height: 1.55;
  overflow-x: auto;
}

.code-snippet code {
  white-space: pre;
}

.code-snippet .tk-key { color: #f6b66e; }
.code-snippet .tk-str { color: #b6dccf; }
.code-snippet .tk-cmt { color: #7a8590; font-style: italic; }

/* ============================================================
 * Trust section
 * ============================================================ */

.trust {
  background: var(--tf-canvas-strong);
  background-image: linear-gradient(180deg, rgba(245, 239, 225, 0.4), rgba(245, 239, 225, 0.9));
  border-top: 1px solid var(--tf-line);
}

.trust-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 880px) {
  .trust-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 4rem;
  }
}

.trust-copy h2 {
  margin-top: 1.5rem;
}

.trust-points {
  margin-top: 2rem;
  display: grid;
  gap: 1.2rem;
}

.trust-point {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.trust-point-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  margin-top: 0.1rem;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line-strong);
  border-radius: var(--tf-radius-pill);
  color: var(--tf-teal);
}

.trust-point-mark svg {
  width: 0.95rem;
  height: 0.95rem;
}

.trust-point-text strong {
  display: block;
  font-size: var(--tf-text-base);
  font-weight: 600;
  color: var(--tf-ink);
}

.trust-point-text p {
  margin-top: 0.25rem;
  font-size: var(--tf-text-sm);
  line-height: 1.55;
  color: var(--tf-muted);
}

.trust-visual {
  position: relative;
  padding: 1.5rem;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line-strong);
  border-radius: var(--tf-radius-lg);
  box-shadow: var(--tf-shadow-md);
}

.trust-visual-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--tf-line);
}

.trust-visual-head strong {
  font-family: var(--tf-font-body);
  font-weight: 600;
  font-size: var(--tf-text-sm);
  color: var(--tf-ink);
}

.trust-visual-head em {
  font-style: normal;
  font-size: var(--tf-text-2xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  background: var(--tf-teal-soft);
  color: var(--tf-teal-dark);
  border-radius: var(--tf-radius-pill);
}

.trust-code {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--tf-ink);
  color: #ece2c9;
  border-radius: var(--tf-radius-md);
  font-family: var(--tf-font-mono);
  font-size: var(--tf-text-xs);
  line-height: 1.65;
  overflow-x: auto;
}

.trust-code .tk-cmt { color: #7a8590; font-style: italic; }
.trust-code .tk-tag { color: #f6b66e; }
.trust-code .tk-key { color: #b6dccf; }
.trust-code .tk-str { color: #ffd591; }

.trust-visual-foot {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.trust-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  background: var(--tf-canvas-strong);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-pill);
  font-size: var(--tf-text-xs);
  font-weight: 600;
  color: var(--tf-ink-soft);
}

.trust-platform-pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--tf-radius-pill);
  background: var(--tf-teal);
  opacity: 0.55;
}

/* ============================================================
 * Pricing
 * ============================================================ */

.pricing-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.pricing-head .lp-eyebrow {
  justify-content: center;
}

.pricing-head .lp-section-lede {
  margin-left: auto;
  margin-right: auto;
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-grid--two {
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .pricing-grid--two {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .pricing-grid--two {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-lg);
  box-shadow: var(--tf-shadow-card);
  transition: transform var(--tf-duration-base) var(--tf-ease-out),
    box-shadow var(--tf-duration-base) var(--tf-ease-out);
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--tf-shadow-md);
}

.pricing-card--featured {
  background: var(--tf-ink);
  color: #f5e5cd;
  border-color: var(--tf-ink);
  box-shadow: var(--tf-shadow-lg);
}

.pricing-card--featured:hover {
  transform: translateY(-4px);
}

.pricing-card .pricing-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  padding: 0.25rem 0.6rem;
  background: var(--tf-amber);
  color: #fff;
  border-radius: var(--tf-radius-pill);
  font-family: var(--tf-font-body);
  font-size: var(--tf-text-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-family: var(--tf-font-display);
  font-weight: 500;
  font-size: var(--tf-text-xl);
  letter-spacing: -0.01em;
  color: inherit;
}

.pricing-card--featured h3 {
  color: #fff;
}

.pricing-card > p {
  margin-top: 0.4rem;
  font-size: var(--tf-text-sm);
  color: var(--tf-muted);
  line-height: 1.5;
}

.pricing-card--featured > p {
  color: rgba(245, 229, 205, 0.7);
}

.pricing-price {
  margin-top: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.pricing-price strong {
  font-family: var(--tf-font-display);
  font-weight: 500;
  font-size: 2.5rem;
  letter-spacing: -0.025em;
  color: var(--tf-ink);
  line-height: 1;
}

.pricing-card--featured .pricing-price strong {
  color: #fff;
}

.pricing-price span {
  font-size: var(--tf-text-sm);
  font-weight: 500;
  color: var(--tf-muted);
}

.pricing-card--featured .pricing-price span {
  color: rgba(245, 229, 205, 0.7);
}

.pricing-card ul {
  margin: 1.4rem 0;
  display: grid;
  gap: 0.65rem;
  font-size: var(--tf-text-sm);
  color: var(--tf-ink-soft);
  flex-grow: 1;
}

.pricing-card--featured ul {
  color: rgba(245, 229, 205, 0.85);
}

.pricing-card ul li {
  position: relative;
  padding-left: 1.4rem;
}

.pricing-card ul li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 1.5px solid var(--tf-teal);
  border-bottom: 1.5px solid var(--tf-teal);
  transform: rotate(-45deg);
}

.pricing-card--featured ul li::before {
  border-color: var(--tf-amber);
}

.pricing-card .lp-btn {
  width: 100%;
}

.pricing-card--featured .lp-btn--primary {
  background: var(--tf-amber);
  color: #fff;
  box-shadow: 0 6px 18px rgba(200, 122, 8, 0.35);
}

.pricing-card--featured .lp-btn--primary:hover {
  background: var(--tf-amber-dark);
}

/* ============================================================
 * FAQ
 * ============================================================ */

.faq {
  border-top: 1px solid rgba(216, 205, 180, 0.5);
}

.faq-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .faq-grid {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.faq-head h2 {
  margin-top: 1.5rem;
}

.faq-head .lp-section-lede {
  margin-top: 1rem;
}

.faq-list {
  display: grid;
  gap: 0.6rem;
}

.faq-item {
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-md);
  overflow: hidden;
  box-shadow: var(--tf-shadow-xs);
}

.faq-item[open] {
  box-shadow: var(--tf-shadow-sm);
  border-color: var(--tf-line-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-family: var(--tf-font-body);
  font-weight: 600;
  font-size: var(--tf-text-md);
  color: var(--tf-ink);
  list-style: none;
}

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

.faq-item .faq-chevron {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: var(--tf-radius-pill);
  background: var(--tf-canvas-strong);
  color: var(--tf-muted);
  transition: transform var(--tf-duration-base) var(--tf-ease-out);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--tf-teal-soft);
  color: var(--tf-teal-dark);
}

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  font-size: var(--tf-text-sm);
  line-height: 1.65;
  color: var(--tf-muted);
}

/* ============================================================
 * CTA banner
 * ============================================================ */

.cta-banner {
  padding: 4rem 0 5rem;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem;
  background: var(--tf-ink);
  border-radius: var(--tf-radius-xl);
  color: #f5e5cd;
  text-align: center;
  box-shadow: var(--tf-shadow-lg);
}

@media (min-width: 768px) {
  .cta-card {
    padding: 4rem 3rem;
  }
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(200, 122, 8, 0.55), transparent 60%);
  pointer-events: none;
}

.cta-card::after {
  content: "";
  position: absolute;
  bottom: -6rem;
  left: -4rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(13, 107, 102, 0.35), transparent 60%);
  pointer-events: none;
}

.cta-card-inner {
  position: relative;
  max-width: 38rem;
  margin: 0 auto;
}

.cta-card .lp-eyebrow {
  justify-content: center;
  color: var(--tf-amber-soft);
}

.cta-card h2 {
  margin-top: 1rem;
  font-family: var(--tf-font-display);
  font-weight: 500;
  font-size: var(--tf-display-md);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}

.cta-card h2 em {
  font-style: italic;
  color: var(--tf-amber-soft);
}

.cta-card p {
  margin-top: 1.25rem;
  font-size: var(--tf-text-md);
  color: rgba(245, 229, 205, 0.78);
  line-height: 1.55;
}

.cta-card-actions {
  margin-top: 2rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cta-card .lp-btn--primary {
  background: var(--tf-amber);
  color: #fff;
  box-shadow: 0 6px 20px rgba(200, 122, 8, 0.4);
}

.cta-card .lp-btn--primary:hover {
  background: var(--tf-amber-dark);
}

.cta-card .lp-btn--ghost {
  color: rgba(245, 229, 205, 0.85);
}

.cta-card .lp-btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
 * Footer
 * ============================================================ */

.site-footer {
  padding: 3rem 0 2.5rem;
  background: var(--tf-canvas-strong);
  border-top: 1px solid var(--tf-line);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.site-footer .brand {
  font-size: var(--tf-text-md);
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--tf-muted);
  font-size: var(--tf-text-sm);
  font-weight: 500;
}

.site-footer-nav a {
  transition: color var(--tf-duration-base) var(--tf-ease-out);
}

.site-footer-nav a:hover {
  color: var(--tf-ink);
}

.site-footer-copy {
  color: var(--tf-muted-soft);
  font-size: var(--tf-text-xs);
}

/* ============================================================
 * Guides
 * ============================================================ */

.guide-shell {
  width: 100%;
  max-width: var(--tf-content-max);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

@media (min-width: 768px) {
  .guide-shell {
    padding: 4rem 2.5rem 6rem;
  }
}

.guide-index-hero,
.guide-article-hero {
  max-width: 48rem;
}

.guide-index-hero h1,
.guide-article-hero h1 {
  margin-top: 1rem;
  font-family: var(--tf-font-display);
  font-weight: 500;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--tf-ink);
  text-wrap: balance;
}

@media (min-width: 768px) {
  .guide-index-hero h1,
  .guide-article-hero h1 {
    font-size: 3.25rem;
  }
}

.guide-index-hero p,
.guide-article-hero p {
  margin-top: 1.25rem;
  color: var(--tf-muted);
  font-size: var(--tf-text-lg);
  line-height: 1.65;
}

.guide-list {
  display: grid;
  gap: 1.25rem;
  max-width: 48rem;
  margin-top: 2.5rem;
}

.guide-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: 8px;
  box-shadow: var(--tf-shadow-sm);
  transition:
    border-color var(--tf-duration-base) var(--tf-ease-out),
    box-shadow var(--tf-duration-base) var(--tf-ease-out),
    transform var(--tf-duration-base) var(--tf-ease-out);
}

.guide-card:hover {
  border-color: var(--tf-line-strong);
  box-shadow: var(--tf-shadow-md);
  transform: translateY(-2px);
}

.guide-card-label {
  color: var(--tf-teal-dark);
  font-size: var(--tf-text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-card h2 {
  font-family: var(--tf-font-display);
  font-size: var(--tf-text-2xl);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--tf-ink);
}

.guide-card p {
  color: var(--tf-muted);
  line-height: 1.65;
}

.guide-card-link {
  color: var(--tf-teal-dark);
  font-size: var(--tf-text-sm);
  font-weight: 700;
}

.guide-back {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1.25rem;
  color: var(--tf-muted);
  font-size: var(--tf-text-sm);
  font-weight: 600;
}

.guide-back:hover {
  color: var(--tf-teal-dark);
}

.guide-figure {
  margin-top: 2.5rem;
  overflow: hidden;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: 8px;
  box-shadow: var(--tf-shadow-sm);
}

.guide-figure img {
  width: 100%;
  height: auto;
}

.guide-figure figcaption {
  padding: 0.9rem 1rem 1rem;
  color: var(--tf-muted);
  font-size: var(--tf-text-sm);
  line-height: 1.55;
  border-top: 1px solid var(--tf-line);
}

.guide-layout {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: start;
}

@media (min-width: 980px) {
  .guide-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 4rem;
  }
}

.guide-toc {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  background: rgba(255, 254, 250, 0.78);
  border: 1px solid var(--tf-line);
  border-radius: 8px;
}

@media (min-width: 980px) {
  .guide-toc {
    position: sticky;
    top: calc(var(--tf-header-height) + 1.5rem);
  }
}

.guide-toc strong {
  margin-bottom: 0.25rem;
  color: var(--tf-ink);
  font-size: var(--tf-text-sm);
}

.guide-toc a {
  padding: 0.35rem 0;
  color: var(--tf-muted);
  font-size: var(--tf-text-sm);
  line-height: 1.35;
}

.guide-toc a:hover {
  color: var(--tf-teal-dark);
}

.guide-content {
  max-width: 44rem;
  min-width: 0;
  width: 100%;
}

.guide-content section + section {
  margin-top: 2.75rem;
}

.guide-content h2 {
  font-family: var(--tf-font-display);
  font-size: var(--tf-text-3xl);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--tf-ink);
}

.guide-content p {
  margin-top: 1rem;
  color: var(--tf-muted);
  font-size: var(--tf-text-md);
  line-height: 1.75;
}

.guide-steps,
.guide-warning-list,
.guide-checklist {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.guide-steps {
  counter-reset: guide-step;
}

.guide-steps li,
.guide-warning-list li,
.guide-checklist li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  color: var(--tf-muted);
  line-height: 1.65;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: 8px;
}

.guide-steps li {
  counter-increment: guide-step;
}

.guide-steps li::before,
.guide-warning-list li::before,
.guide-checklist li::before {
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: var(--tf-text-xs);
  font-weight: 700;
}

.guide-steps li::before {
  content: counter(guide-step);
  color: #fff;
  background: var(--tf-teal);
}

.guide-warning-list li::before {
  content: "!";
  color: var(--tf-amber-dark);
  background: var(--tf-amber-soft);
}

.guide-checklist li::before {
  content: "";
  background: var(--tf-teal-soft);
  border: 5px solid var(--tf-teal);
}

.guide-steps strong,
.guide-warning-list strong {
  color: var(--tf-ink);
}

.guide-table-wrap {
  margin-top: 1.25rem;
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--tf-line);
  border-radius: 8px;
  background: var(--tf-paper);
}

.guide-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
}

.guide-table th,
.guide-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--tf-line);
}

.guide-table th {
  color: var(--tf-ink);
  font-size: var(--tf-text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--tf-canvas-strong);
}

.guide-table td {
  color: var(--tf-muted);
  font-size: var(--tf-text-sm);
  line-height: 1.55;
}

.guide-table tr:last-child td {
  border-bottom: 0;
}

.guide-cta {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--tf-teal-tint);
  border: 1px solid rgba(13, 107, 102, 0.18);
  border-radius: 8px;
}

.guide-cta h2 {
  font-family: var(--tf-font-display);
  font-size: var(--tf-text-2xl);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--tf-ink);
}

.guide-cta p {
  margin: 0;
}

.guide-cta .lp-btn {
  justify-self: start;
}

/* ============================================================
 * Legal shell (privacy, terms, billing, support)
 * ============================================================ */

.legal-shell {
  max-width: var(--tf-content-max);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

@media (min-width: 768px) {
  .legal-shell {
    padding: 4rem 2.5rem 6rem;
  }
}

.legal-hero {
  max-width: 42rem;
  margin-bottom: 3rem;
}

.legal-hero h1 {
  font-family: var(--tf-font-display);
  font-weight: 500;
  font-size: var(--tf-display-md);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--tf-ink);
  margin-top: 1rem;
}

.legal-hero p {
  margin-top: 1.25rem;
  font-size: var(--tf-text-lg);
  color: var(--tf-muted);
  line-height: 1.6;
}

.legal-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 880px) {
  .legal-layout {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 4rem;
  }
}

.legal-nav {
  position: sticky;
  top: calc(var(--tf-header-height) + 2rem);
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-md);
  box-shadow: var(--tf-shadow-xs);
}

.legal-nav a {
  padding: 0.6rem 0.85rem;
  border-radius: var(--tf-radius-sm);
  font-size: var(--tf-text-sm);
  font-weight: 500;
  color: var(--tf-muted);
  transition: background var(--tf-duration-base) var(--tf-ease-out),
    color var(--tf-duration-base) var(--tf-ease-out);
}

.legal-nav a:hover {
  background: var(--tf-canvas-strong);
  color: var(--tf-ink);
}

.legal-nav a.is-active {
  background: var(--tf-ink);
  color: #fff;
}

.legal-document {
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--tf-shadow-sm);
  max-width: var(--tf-content-prose);
}

@media (min-width: 768px) {
  .legal-document {
    padding: 3rem 2.75rem;
  }
}

.legal-label {
  font-size: var(--tf-text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tf-teal-dark);
}

.legal-document h2 {
  margin-top: 0.5rem;
  font-family: var(--tf-font-display);
  font-weight: 500;
  font-size: var(--tf-text-3xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--tf-ink);
}

.legal-updated {
  margin-top: 0.5rem;
  font-size: var(--tf-text-sm);
  color: var(--tf-muted-soft);
}

.legal-callout {
  display: grid;
  gap: 0.4rem;
  margin: 1.75rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--tf-teal-soft);
  border: 1px solid rgba(13, 107, 102, 0.15);
  border-radius: var(--tf-radius-md);
}

.legal-callout strong {
  font-size: var(--tf-text-sm);
  font-weight: 600;
  color: var(--tf-teal-dark);
}

.legal-callout span {
  font-size: var(--tf-text-sm);
  color: var(--tf-ink-soft);
  line-height: 1.55;
}

.legal-document section {
  margin-top: 1.75rem;
}

.legal-document section h3 {
  font-family: var(--tf-font-body);
  font-weight: 600;
  font-size: var(--tf-text-md);
  color: var(--tf-ink);
}

.legal-document section p {
  margin-top: 0.55rem;
  font-size: var(--tf-text-sm);
  line-height: 1.65;
  color: var(--tf-muted);
}

.support-panel {
  display: grid;
  gap: 0.4rem;
  margin: 1.5rem 0 0.5rem;
  padding: 1.2rem 1.25rem;
  background: var(--tf-amber-tint);
  border: 1px solid var(--tf-amber-soft);
  border-radius: var(--tf-radius-md);
}

.support-panel strong {
  font-size: var(--tf-text-md);
  font-weight: 600;
  color: var(--tf-amber-dark);
}

.support-panel span {
  font-size: var(--tf-text-sm);
  color: var(--tf-ink-soft);
  line-height: 1.55;
}

/* ============================================================
 * Small-screen tuning
 * ============================================================ */

@media (max-width: 600px) {
  .hero-visual {
    font-size: 0.65rem;
  }

  .demo-callout {
    right: 0.5em;
    font-size: 0.78em;
  }

  .demo-arrow {
    right: 5em;
  }

  .browser-page {
    grid-template-columns: 6em 1fr 8em;
    padding: 2em 1em 1em;
  }
}
