/* =========================================================================
   LTrans — marketing site
   Tokens + components are copied into this folder from ../../design-system
   (Cloudflare only deploys sites/www — keep local copies in sync).
   ========================================================================= */

@import url("./tokens.css");
@import url("./components.css");

:root {
  /* Marketing aliases → brand kit semantics */
  --canvas:  var(--neutral-50);
  --ink:     var(--neutral-900);
  --body:    var(--neutral-600);
  --muted:   var(--neutral-500);
  --faint:   var(--neutral-400);

  /* Layout */
  --maxw: 1120px;
  --nav-h: 64px;

  --font: var(--font-sans);
  --radius: var(--radius-lg);
  --shadow: var(--shadow-md);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; font-weight: var(--font-medium); }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); margin: 0; }
p { margin: 0; }
ul { margin: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--canvas { background: var(--canvas); }
.section--tight { padding: 56px 0; }
.eyebrow {
  font-size: var(--text-xs); font-weight: var(--font-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--primary); margin: 0 0 14px;
}
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: var(--font-bold); }
.section-head p { margin-top: 16px; font-size: var(--text-lg); color: var(--muted); }

/* ---------- Buttons (marketing aliases → brand kit .lt-btn behavior) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: inherit; font-size: var(--text-base); font-weight: var(--font-semibold); line-height: 1;
  padding: 12px 18px; border-radius: var(--radius-md); border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease), transform 40ms var(--ease), box-shadow var(--duration-fast) var(--ease);
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-foreground); }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, var(--foreground) 7%, transparent); color: var(--ink); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-sunken); color: var(--ink); }
.btn-lg { padding: 14px 24px; font-size: var(--text-md); }
.btn-block { width: 100%; }
.btn-white { background: var(--surface); color: var(--teal-700); }
.btn-white:hover { background: var(--teal-50); color: var(--teal-800); }
.btn-onteal-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-onteal-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-sticky); height: var(--nav-h);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav__links a { color: var(--body); font-size: var(--text-md); font-weight: var(--font-medium); }
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__spacer { flex: 1; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none; background: transparent; border: 0; padding: 8px; margin: -8px -8px -8px 0;
  cursor: pointer; color: var(--ink);
}

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: var(--font-bold); }
.brand:hover { text-decoration: none; }
.brand__lockup { height: 28px; width: auto; flex: none; display: block; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__word { font-size: 19px; letter-spacing: -0.03em; }
.brand--on-dark { color: #fff; }
.brand--on-dark .brand__word { color: #fff; }

/* Mobile drawer */
.drawer { display: none; }
.drawer__panel { display: none; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .drawer[data-open="true"] { display: block; }
  .drawer__scrim {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: var(--z-overlay);
    background: color-mix(in srgb, var(--neutral-900) 40%, transparent);
  }
  .drawer__panel {
    display: block; position: fixed; z-index: calc(var(--z-overlay) + 1); top: var(--nav-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 24px 24px;
    box-shadow: var(--shadow);
  }
  .drawer__panel a { display: block; padding: 12px 0; color: var(--ink); font-weight: var(--font-medium); border-bottom: 1px solid var(--border); }
  .drawer__panel a:hover { text-decoration: none; }
  .drawer__panel .btn { margin-top: 14px; }
  .drawer__panel .btn + .btn { margin-top: 10px; }
}

/* ---------- Motion ---------- */
@keyframes lt-fade-up {
  from { transform: translateY(12px); }
  to { transform: translateY(0); }
}
@keyframes lt-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% 8%, color-mix(in srgb, var(--mint) 28%, transparent), transparent 62%),
    radial-gradient(1100px 480px at 12% 0%, var(--teal-50), transparent 58%),
    linear-gradient(180deg, var(--surface) 0%, var(--canvas) 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: var(--font-extrabold);
  letter-spacing: -0.035em;
  color: var(--ink);
  animation: lt-fade-up 520ms var(--ease) both;
}
.hero__sub {
  margin-top: 18px;
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 520px;
  animation: lt-fade-up 520ms var(--ease) 40ms both;
}
.hero__cta {
  margin-top: 28px;
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: lt-fade-up 520ms var(--ease) 80ms both;
}
.hero__trust {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  list-style: none; padding: 0;
  animation: lt-fade-up 520ms var(--ease) 120ms both;
}
.hero__trust li { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--muted); }
.hero__trust svg { color: var(--teal-500); flex: none; }
.hero__visual .frame {
  animation: lt-float 7s var(--ease) 600ms infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero__sub, .hero__cta, .hero__trust { animation: none; }
  .hero__visual .frame { animation: none; }
}

/* ---------- Browser-frame product mock ---------- */
.frame {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.frame__bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: var(--canvas); border-bottom: 1px solid var(--border);
}
.frame__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--neutral-300); }
.frame__url {
  margin-left: 10px; font-size: var(--text-xs); color: var(--faint); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 10px; flex: 1;
}
.frame__body { padding: 16px; background: var(--canvas); }

/* Review-queue mock rows */
.mock-row {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.mock-row:last-child { margin-bottom: 0; }
.mock-row__top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mock-key { font-size: var(--text-xs); color: var(--faint); font-family: var(--font-mono); }
/* Status chips in product mocks → brand-kit badges */
.mock-row .lt-badge, .mock-mini .lt-badge { font-size: 11px; letter-spacing: .01em; }
.mock-src { font-size: var(--text-sm); color: var(--muted); }
.mock-draft { font-size: var(--text-md); color: var(--ink); font-weight: var(--font-medium); margin-top: 2px; }
.mock-actions { display: flex; gap: 8px; margin-top: 12px; }
.mock-btn {
  font-size: var(--text-xs); font-weight: var(--font-semibold); padding: 6px 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--body);
}
.mock-btn--primary { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

/* ---------- Client logo strip ---------- */
.proof { text-align: center; }
.proof__label { font-size: var(--text-xs); font-weight: var(--font-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--faint); }
.proof__row {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 36px;
}
.proof__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--neutral-400);
  font-size: var(--text-md);
  font-weight: 650;
  letter-spacing: -0.02em;
  opacity: 0.92;
}
.proof__logo img {
  width: 26px;
  height: 26px;
  flex: none;
  display: block;
  filter: grayscale(1);
  opacity: 0.85;
}
.proof__logo span { line-height: 1; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.step__num {
  width: 34px; height: 34px; border-radius: var(--radius-md); background: var(--teal-100); color: var(--teal-700);
  font-weight: var(--font-bold); font-size: var(--text-md); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: var(--font-bold); }
.step p { margin-top: 10px; font-size: var(--text-md); color: var(--muted); }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  padding: 26px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature h3 { font-size: 17px; font-weight: var(--font-bold); }
.feature p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* ---------- Deep-dive rows ---------- */
.deepdive { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.deepdive + .deepdive { margin-top: 72px; }
.deepdive--rev .deepdive__text { order: 2; }
.deepdive h3 { font-size: clamp(22px, 3vw, 30px); font-weight: var(--font-bold); margin-top: 10px; }
.deepdive p { margin-top: 14px; font-size: 16.5px; color: var(--muted); }

.mock-mini {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 14px; box-shadow: var(--shadow-sm);
}
.mock-mini + .mock-mini { margin-top: 10px; }
.mock-line { height: 9px; border-radius: 5px; background: var(--surface-sunken); }
.mock-line.w-60 { width: 60%; } .mock-line.w-40 { width: 40%; } .mock-line.w-80 { width: 80%; }
.wallet-balance { font-size: 30px; font-weight: var(--font-extrabold); color: var(--ink); letter-spacing: -0.02em; }
.wallet-sub { font-size: var(--text-sm); color: var(--muted); margin-top: 2px; }

/* ---------- Trust & security ---------- */
.trust { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.trust__list { list-style: none; padding: 0; display: grid; gap: 14px; }
.trust__list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.trust__check {
  width: 24px; height: 24px; flex: none; border-radius: 7px;
  background: var(--teal-100); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.trust__list strong { display: block; color: var(--ink); font-size: var(--text-md); font-weight: 650; }
.trust__list span { font-size: var(--text-sm); color: var(--muted); }
.trust__foot { margin-top: 22px; font-size: var(--text-md); color: var(--muted); }

/* ---------- Pricing ---------- */
.price-explain { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; margin: 0 auto 36px; }
.price-explain .card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.price-explain h4 { font-size: var(--text-md); font-weight: var(--font-bold); }
.price-explain p { margin-top: 6px; font-size: var(--text-sm); color: var(--muted); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto; }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow);
}
.plan--featured { border-color: var(--teal-400); box-shadow: var(--shadow-lg); }
.plan__tag {
  position: absolute; top: -12px; left: 30px;
  background: var(--primary); color: var(--primary-foreground);
  font-size: var(--text-xs); font-weight: var(--font-semibold);
  padding: 4px 12px; border-radius: var(--radius-full);
}
.plan h3 { font-size: 20px; font-weight: var(--font-bold); }
.plan__price { margin: 14px 0 4px; font-size: 30px; font-weight: var(--font-extrabold); color: var(--ink); letter-spacing: -0.02em; }
.plan__price small { font-size: var(--text-md); font-weight: var(--font-medium); color: var(--muted); }
.plan__who { font-size: 14.5px; color: var(--muted); min-height: 24px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--body); }
.plan li svg { color: var(--teal-500); flex: none; margin-top: 3px; }
.plan__fine { margin-top: 14px; font-size: 12.5px; color: var(--faint); }
.price-note { text-align: center; max-width: 620px; margin: 28px auto 0; font-size: var(--text-md); color: var(--muted); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 760px; margin: 48px auto 0; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  font-family: inherit; font-size: 16.5px; font-weight: var(--font-semibold); color: var(--ink);
  padding: 20px 40px 20px 0; position: relative;
}
.faq__q:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: var(--radius-sm); }
.faq__q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--primary); }
.faq__item[data-open="true"] .faq__q::after { content: "\2013"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--duration) var(--ease); }
.faq__a p { padding: 0 40px 20px 0; font-size: 15.5px; color: var(--muted); }

/* ---------- Reviewers band ---------- */
.reviewers-band {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 44px; text-align: center; box-shadow: var(--shadow-sm);
}
.reviewers-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: var(--font-bold); }
.reviewers-band p { margin: 14px auto 24px; max-width: 560px; font-size: 17px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final {
  background:
    radial-gradient(700px 280px at 80% 0%, color-mix(in srgb, var(--mint) 22%, transparent), transparent 55%),
    linear-gradient(135deg, var(--teal-700), var(--teal-600));
  color: #fff; text-align: center;
}
.final h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); font-weight: var(--font-extrabold); letter-spacing: -0.03em; }
.final p { margin: 16px auto 28px; max-width: 540px; font-size: var(--text-lg); color: rgba(255,255,255,.88); }
.final__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; }
.contact__intro h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: var(--font-bold); }
.contact__intro p { margin-top: 16px; font-size: 16.5px; color: var(--muted); }
.contact__intro a { font-weight: var(--font-semibold); }
.contact__panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow);
}
.contact__panel h3 { font-size: 20px; font-weight: var(--font-bold); letter-spacing: -0.02em; }
.contact__panel > p { margin: 12px 0 22px; font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.contact__panel-fine { margin-top: 16px; font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.contact__panel-fine a { color: var(--muted); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--neutral-950); color: var(--neutral-400); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand .brand { color: #fff; }
.footer__tag { margin-top: 14px; font-size: var(--text-sm); color: var(--neutral-500); max-width: 260px; }
.footer h4 { color: #fff; font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; margin-bottom: 16px; font-weight: var(--font-semibold); }
.footer ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer a { color: var(--neutral-400); font-size: 14.5px; font-weight: var(--font-normal); }
.footer a:hover { color: #fff; text-decoration: none; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: var(--neutral-500); }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal__wrap { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: var(--font-extrabold); }
.legal__meta { margin: 12px 0 8px; font-size: var(--text-sm); color: var(--muted); }
.legal__note {
  background: var(--teal-50); border: 1px solid var(--teal-200); border-radius: var(--radius-md);
  padding: 16px 18px; font-size: 14.5px; color: var(--teal-800); margin: 24px 0 8px;
}
.legal h2 { font-size: 22px; font-weight: var(--font-bold); margin: 40px 0 12px; }
.legal h3 { font-size: 17px; font-weight: 650; margin: 24px 0 8px; }
.legal p { margin: 12px 0; font-size: var(--text-md); color: var(--body); }
.legal ul { margin: 12px 0; padding-left: 22px; }
.legal li { margin: 7px 0; font-size: var(--text-md); color: var(--body); }
.legal strong { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .deepdive, .trust, .contact { grid-template-columns: 1fr; gap: 40px; }
  .deepdive--rev .deepdive__text { order: 0; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .steps, .features, .plans, .price-explain, .field--grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .plan__tag { left: 50%; transform: translateX(-50%); }
}
@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; }
}

:target { scroll-margin-top: calc(var(--nav-h) + 16px); }
