/* uytrades — light theme for marketing, dark dashboard inherits its own */

:root {
  /* Aduana Ledger — warm customs-document paper, deep green-ink, maritime teal,
     and the sol/seal gold reserved for Pro. Mirrors the Overview SPA palette. */
  --bg: #fffefb;            /* warm white — main page surface */
  --bg-soft: #f4f3ec;       /* warm document paper */
  --bg-elev: #fffefb;       /* elevated card / declaration surface */
  --bg-section: #f0efe6;    /* inset section */
  --ink: #16302a;           /* deep customs green-ink (text/headlines) */
  --ink-2: #2c4a40;         /* mid green-ink */
  --ink-dim: #5f6f64;       /* muted green-grey */
  --line: #dddbcd;          /* paper hairline rule */
  --line-strong: #c7c4b2;
  --accent: #0e6f63;        /* maritime teal — links / active / focus */
  --accent-2: #0a564d;
  --accent-soft: #e2efe9;
  --good: #1f8a4c;
  --bad: #b3402f;
  --warning: #b0701c;       /* amber */
  --pro: #b8870e;           /* the sol / official-seal gold — RESERVED for Pro */
  --pro-2: #97700b;
  --pro-soft: #f7f0db;      /* soft gold */
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 2px rgba(22, 48, 42, 0.05), 0 1px 3px rgba(22, 48, 42, 0.06);
  --shadow-2: 0 4px 6px -1px rgba(22, 48, 42, 0.08), 0 2px 4px -2px rgba(22, 48, 42, 0.06);
  --shadow-3: 0 10px 25px -5px rgba(22, 48, 42, 0.12), 0 8px 10px -6px rgba(22, 48, 42, 0.06);
  --t-fast: 120ms ease;
  --t-med: 200ms ease;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Sticky footer: short pages (auth, errors) keep the footer at the viewport
     bottom instead of leaving a dead band of page background below it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
/* Data — prices, hero figures, any *-value/num/usd — set in tabular mono so the
   marketing surface reads like the live customs ledger. Labels/prose stay Archivo. */
.mono, .stat-value, .price, .price .per,
[class*="value"], [class*="usd"], [class*="-num"], [class*="num-"] {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { text-decoration: underline; }

/* Same grid as the app screens (screens.css .container) so marketing and app
   surfaces line up when navigating between them. */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header — left (brand + nav) / right (utilities) ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px; /* same bar height as the app shell (.uy-header) */
  gap: 16px;
}
.header-left { display: inline-flex; align-items: center; gap: 28px; min-width: 0; }
.header-right { display: inline-flex; align-items: center; gap: 18px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Archivo Expanded", var(--display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.2px;
  white-space: nowrap;
}
/* Official-seal mark: deep customs-ink stamp with a gold hexagon. */
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--pro);
  font-size: 15px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(184, 135, 14, 0.35);
}
.brand:hover { text-decoration: none; }
.brand:hover .brand-name { color: var(--accent); }
.nav-primary { display: inline-flex; align-items: center; gap: 22px; }
.nav-primary a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav-primary a:hover { color: var(--accent); text-decoration: none; }
.nav-primary .drawer-only { display: none; }  /* only surfaces inside the mobile drawer */
.nav-signin { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav-signin:hover { color: var(--accent); text-decoration: none; }
.inline-form { display: inline; margin: 0; padding: 0; }
.explore-cta { white-space: nowrap; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-dim) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  transition: all var(--t-fast);
}
.lang-switch:hover { background: var(--accent-soft); color: var(--accent) !important; border-color: var(--accent-soft); }

/* Hamburger (mobile section-nav drawer toggle). */
.nav-toggle { display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; font-size: 18px; line-height: 1;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); cursor: pointer; font-family: inherit; }
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Account avatar + dropdown — mirrors the in-app menu (app/static/uytrade.js). */
.account-menu { position: relative; display: inline-flex; }
.uy-avatar { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px 3px 3px;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; font-family: inherit; color: var(--ink-dim); transition: all var(--t-fast); }
.uy-avatar:hover, .account-menu.open .uy-avatar { border-color: var(--accent); color: var(--accent); }
.uy-avatar-badge { display: inline-grid; place-items: center; width: 27px; height: 27px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-2);
  font-weight: 700; font-size: 13px; line-height: 1; }
.uy-avatar-caret { font-size: 9px; transition: transform var(--t-fast); }
.account-menu.open .uy-avatar-caret { transform: rotate(180deg); }
.uy-account-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 220px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-3); padding: 6px; }
.uy-account-menu[hidden] { display: none; }
.uy-account-email { display: block; padding: 7px 10px 9px; font-size: 11px; color: var(--ink-dim);
  border-bottom: 1px solid var(--line); margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uy-account-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; box-sizing: border-box;
  padding: 8px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; line-height: 1.3; }
.uy-account-item:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.uy-account-sep { height: 1px; background: var(--line); margin: 4px 2px; }
.uy-account-logout { display: block; margin: 0; padding: 0; }
.uy-account-signout { color: var(--bad); }
.uy-account-signout:hover { background: rgba(179, 64, 47, 0.08); color: var(--bad); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all var(--t-fast);
  font-family: inherit;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(14, 111, 99, 0.22);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--ink-dim); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-google {
  background: #fff;
  color: #3c4043;            /* Google button text grey */
  border-color: var(--line-strong);
  gap: 10px;
  font-weight: 500;
}
.btn-google:hover { background: var(--bg); border-color: var(--ink-dim); }
.btn-google .g-icon { flex: 0 0 auto; }

/* ---------- flashes ---------- */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 14px;
  border: 1px solid var(--line);
}
.flash-success { background: #ecfdf5; color: var(--good); border-color: #a7f3d0; }
.flash-error   { background: #fef2f2; color: var(--bad); border-color: #fecaca; }
.flash-info    { background: var(--accent-soft); color: var(--accent-2); border-color: #bcdcd4; }

/* ---------- hero ---------- */
.hero {
  padding: 80px 0 70px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-dim);
  margin: 0 0 16px;
  padding: 4px 10px;
  background: var(--bg-soft);
  border-radius: 100px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--ink);
}
.hero .accent {
  background: linear-gradient(120deg, var(--accent), var(--pro));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 32px;
  line-height: 1.55;
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero .meta {
  color: var(--ink-dim);
  font-size: 13px;
  margin-top: 16px;
}
.hero-cta-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--t-med);
}
.hero-cta-link:hover { color: var(--accent); }

/* dashboard screenshot */
.hero-media { margin: 0; }
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  background: var(--bg-soft);
}
.hero-media figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
  text-align: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-1);
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-dim);
  font-weight: 500;
}

/* ---------- sections (shared) ---------- */
.section-heading {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin: 0 0 12px;
  text-align: center;
}
.section-tagline {
  font-size: 17px;
  color: var(--ink-2);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ---------- features ---------- */
.features { padding: 80px 0; background: var(--bg); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--t-med);
}
.feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 600;
}
.feature p {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}

/* ---------- audience / social proof ---------- */
.audience { padding: 80px 0; background: var(--bg-section); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.audience-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--t-med);
}
.audience-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-2);
}
.audience-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 600;
}
.audience-card p {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}

/* ---------- pricing ---------- */
.pricing-preview { padding: 80px 0; background: var(--bg); }
.pricing-page { padding: 60px 0 80px; }
.pricing-page h1 { font-size: 40px; margin: 0 0 12px; letter-spacing: -0.8px; }
.pricing-page .lede { color: var(--ink-2); font-size: 18px; margin: 0 0 48px; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.plan {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-1);
  transition: all var(--t-med);
  display: flex;
  flex-direction: column;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.plan h2, .plan h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
}
.plan .price {
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
  letter-spacing: -1px;
}
.plan .price .per {
  font-size: 14px;
  color: var(--ink-dim);
  font-weight: 500;
  margin-left: 4px;
}
.plan .meta {
  color: var(--ink-dim);
  font-size: 13px;
  margin: 0 0 20px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  font-size: 14px;
  color: var(--ink-2);
  flex: 1;
}
.plan ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  line-height: 1.5;
}
.plan ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
  top: 7px;
}
.plan-pro {
  border-color: var(--pro);
  background: linear-gradient(180deg, var(--pro-soft) 0%, var(--bg) 30%);
  box-shadow: var(--shadow-3);
}
.plan-pro h2, .plan-pro h3 { color: var(--pro); }
.plan-pro .btn-primary { background: var(--pro); border-color: var(--pro); box-shadow: 0 1px 2px rgba(184, 135, 14, 0.25); }
.plan-pro .btn-primary:hover { background: var(--pro-2); border-color: var(--pro-2); }
.plan-pro .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pro);
  color: white;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(184, 135, 14, 0.32);
}

/* ---------- monthly / annual toggle ---------- */
.plan-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 18px;
}
.plan-opt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bg);
  transition: border-color var(--t-med), box-shadow var(--t-med);
}
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt:has(input:checked) {
  border-color: var(--pro);
  box-shadow: 0 0 0 1px var(--pro) inset;
}
.plan-opt-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.plan-opt-price { font-size: 20px; font-weight: 700; color: var(--ink); }
.plan-opt-price small { font-size: 12px; font-weight: 500; color: var(--ink-dim); }
.plan-save {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--good);
  background: rgba(31, 138, 76, 0.10);
  padding: 1px 6px;
  border-radius: 100px;
}
.plan-opt-note { font-size: 11px; color: var(--ink-dim); }

/* ---------- auth card ---------- */
.auth-card {
  max-width: 440px;
  margin: 60px auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-3);
}
.auth-card h1 { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.5px; }
.auth-card .meta { color: var(--ink-dim); font-size: 14px; margin: 0 0 28px; }
.auth-card label,
.account-card form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 18px 0 8px;
}
.auth-card input,
.account-card form input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  transition: all var(--t-fast);
}
.auth-card input:focus,
.account-card form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 111, 99, 0.16);
}
.auth-card small { color: var(--ink-dim); font-weight: 400; font-size: 12px; }
.auth-card form .btn { margin-top: 24px; }
.auth-card form + p { text-align: center; margin: 24px 0 0; }
/* Footer links of the card (Forgot password? / No account yet?) — centered
   below the actions with breathing room, not flush under the Google button. */
.auth-card form ~ p.meta { text-align: center; margin: 22px 0 0; font-size: 14px; }
.auth-card form ~ p.meta + p.meta { margin-top: 8px; }
/* "or" divider between the password form and the Google button */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--ink-dim);
  font-size: 13px;
  margin: 18px 0;
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.auth-divider span { padding: 0 12px; }
/* "You sign in with Google" note on the account page */
.google-signin-note { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; margin: 8px 0 0; }
.google-signin-note .g-icon { flex: 0 0 auto; }

/* ---------- account ---------- */
.account { padding: 60px 0 80px; }
.account h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: -0.7px; }
.account .meta { color: var(--ink-dim); font-size: 14px; margin: 0 0 36px; }
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.account-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-1);
}
.account-card h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-dim); margin: 0 0 14px; font-weight: 700; }
.account-card-wide { grid-column: 1 / -1; }
.apikeys-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.apikeys-form input {
  flex: 1 1 240px; padding: 9px 12px; font: inherit; font-size: 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
}
.apikeys-token-note { font-size: 13px; color: var(--pro); font-weight: 600; margin: 4px 0; }
.apikeys-token {
  display: block; padding: 10px 12px; margin: 6px 0 4px;
  background: var(--bg-soft); border: 1px solid var(--pro); border-radius: var(--radius);
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px;
  word-break: break-all; color: var(--ink);
}
.apikeys-list { list-style: none; padding: 0; margin: 8px 0; }
.apikeys-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px;
}
.apikeys-list li span { color: var(--ink-2); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; }
.apikeys-empty { color: var(--ink-dim); border-top: none !important; }
.apikeys-docs code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; }
.plan-tier {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.7px;
}
.plan-tier.free { color: var(--ink-2); }
.plan-tier.pro { color: var(--pro); }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 6px 0; }
.check-list { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; }
.check-list li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-dim); }
.check-list li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
  top: 6px;
}
.check-list li.off::before { content: "○"; color: var(--line-strong); }
.check-list li.on::before  { content: "●"; color: var(--good); }
.check-list li.on { color: var(--ink); }

/* ---------- upgrade / success ---------- */
.upgrade-page { padding: 60px 0 80px; }
.upgrade-page h1 { font-size: 36px; margin: 0 0 12px; letter-spacing: -0.8px; }
.upgrade-page .lede { color: var(--ink-2); font-size: 18px; margin: 0 0 40px; }
.upgrade-card { max-width: 540px; margin: 0 auto; padding: 40px; }

.success-page { padding: 60px 0 80px; }
.success-card {
  max-width: 580px;
  margin: 0 auto;
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  text-align: center;
}
.success-icon { font-size: 56px; margin-bottom: 12px; }
.success-card h1 { font-size: 32px; margin: 0 0 12px; letter-spacing: -0.7px; }
.success-card .lede { color: var(--ink-2); font-size: 17px; margin: 0 0 32px; }
.success-card h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-dim); margin: 32px 0 16px; text-align: left; }
.success-card .steps { text-align: left; padding-left: 24px; color: var(--ink-2); }
.success-card .steps li { margin: 8px 0; line-height: 1.55; }
.success-card .cta-row { justify-content: center; margin-top: 32px; }

/* ---------- legal pages ---------- */
.legal-page { padding: 60px 0 80px; }
.legal-container { max-width: 760px; }
.legal-updated { color: var(--ink-dim); font-size: 13px; margin: 0 0 8px; }
.legal-page h1 { font-size: 38px; margin: 0 0 32px; letter-spacing: -0.9px; }
.legal-page h2 { font-size: 19px; margin: 32px 0 12px; font-weight: 600; color: var(--ink); }
.legal-page p { color: var(--ink-2); font-size: 15px; line-height: 1.7; margin: 0 0 16px; }
.legal-page strong { color: var(--ink); }
.legal-back { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- daily usage limit wall (limit_reached.html) ---------- */
.limit-wall { text-align: center; padding: 40px 0; }
.limit-wall h1 { margin-bottom: 16px; }
.limit-meter { color: var(--ink-dim); font-size: 14px; margin: 0 0 24px; }
.limit-meter b { color: var(--ink); font-size: 18px; }

/* ---------- disclaimer band ---------- */
.disclaimer {
  padding: 56px 0;
  background: var(--bg-section);
  border-top: 1px solid var(--line);
}
.disclaimer .section-heading { margin-bottom: 16px; }
.disclaimer p { text-align: center; max-width: 720px; margin: 0 auto; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.disclaimer-links { margin-top: 16px !important; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 0;
}
.footer-disclaimer {
  color: var(--ink-dim);
  font-size: 12px;
  margin: 0 0 12px;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.footer-links {
  margin: 0;
  text-align: center;
  font-size: 13px;
}
.footer-links a { color: var(--ink-2); margin: 0 4px; }
.footer-links a:hover { color: var(--accent); }
.footer-links .dot { color: var(--line-strong); margin: 0 6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 64px auto 0; }
.faq h2 { font-size: 24px; margin: 0 0 20px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--ink-dim);
  font-size: 20px;
  font-weight: 400;
  transition: transform var(--t-fast);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* ---------- dashboard overlay banner (injected into /app) ---------- */
.uytrade-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin: 0 0 18px;
  box-shadow: var(--shadow-1);
  font-size: 14px;
}
.uytrade-banner .msg { color: var(--ink); }
.uytrade-banner.pro {
  border-left-color: var(--pro);
  background: var(--pro-soft);
}
.uytrade-banner.pro .msg b { color: var(--pro); }
.uytrade-banner .btn { white-space: nowrap; }
.uytrade-disclaimer {
  font-size: 12px;
  color: var(--ink-dim);
  padding: 10px 16px;
  margin: 0 0 18px;
  background: var(--pro-soft);
  border: 1px solid #e3d09a;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* ---------- newsletter ---------- */
.newsletter { padding: 72px 0; background: var(--bg-section); border-top: 1px solid var(--line); }
.newsletter-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.newsletter-form {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin: 8px 0 12px;
}
.newsletter-form input[type="email"] {
  flex: 1 1 320px; max-width: 380px;
  padding: 11px 14px; font: inherit; font-size: 15px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
}
.newsletter-form input[type="email"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.newsletter-fine { font-size: 13px; color: var(--ink-dim); margin: 0; }

/* ---------- error pages (404 / 500) ---------- */
.error-page { display: flex; align-items: center; min-height: 78vh; padding: 60px 0; }
.error-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.error-code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px; font-weight: 600; letter-spacing: 3px;
  color: var(--pro); margin: 0 0 12px;
}
.error-page h1 { font-size: 34px; letter-spacing: -0.8px; margin: 0 0 14px; color: var(--ink); }
.error-body { font-size: 17px; color: var(--ink-2); line-height: 1.55; margin: 0 0 28px; }
.error-page .cta-row { justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .auth-card, .upgrade-card, .success-card { padding: 28px 24px; }
}
/* Below the nav breakpoint: hamburger drawer. Keep the logo + the primary CTA
   visible; Precios (and the anon "Iniciar sesión") collapse into the drawer. */
@media (max-width: 760px) {
  .header-inner { gap: 10px; }
  .header-left { gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-primary { display: none; }
  .site-header.nav-open .nav-primary {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-elev); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2); padding: 8px 24px 14px; z-index: 40;
  }
  .site-header.nav-open .nav-primary a { padding: 11px 4px; font-size: 15px; }
  .site-header.nav-open .nav-primary .drawer-only { display: block; }
  .header-right .nav-signin { display: none; }  /* collapses into the drawer */
}
@media (max-width: 540px) {
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 30px; letter-spacing: -0.5px; }
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }  /* keep the seal mark; drop the wordmark */
}


/* SEO intent landing pages */
.seo-hero {
  padding: 86px 0 42px;
  background:
    radial-gradient(circle at 12% 14%, rgba(14, 111, 99, 0.12), transparent 34%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}
.seo-hero-inner { max-width: 900px; }
.seo-hero h1 {
  margin: 0 0 18px;
  max-width: 820px;
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}
.seo-hero .lede { max-width: 760px; }
.seo-example, .seo-sections, .seo-links { padding: 34px 0; }
.seo-example-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-2);
}
.seo-example-card p { margin: 12px 0 0; font-size: 1.06rem; color: var(--ink-2); }
.seo-feature-grid .feature h2 { margin-top: 0; font-size: 1.22rem; }
.link-card { display: block; color: inherit; }
.link-card:hover { transform: translateY(-2px); color: inherit; }
@media (max-width: 760px) {
  .seo-hero { padding-top: 58px; }
  .seo-example, .seo-sections, .seo-links { padding: 24px 0; }
}

.link-card { text-decoration: none; color: inherit; display: block; }
.link-card:hover { transform: translateY(-2px); border-color: var(--accent); color: inherit; }

/* Data insight articles + use-case landing pages */
.insight-table-section { padding: 36px 0 52px; }
.insight-table-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-2);
}
.insight-table-head,
.insight-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(170px, 0.35fr);
  gap: 16px;
  align-items: center;
}
.insight-table-head {
  padding: 12px 18px;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
}
.insight-table-head span:first-child { grid-column: 2; }
.insight-row {
  padding: 16px 18px;
  color: inherit;
  border-bottom: 1px solid var(--line);
}
.insight-row:last-child { border-bottom: 0; }
.insight-row:hover { background: var(--accent-soft); color: inherit; }
.insight-row .rank {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-family: var(--mono);
  font-weight: 700;
}
.row-main, .row-value { display: grid; gap: 2px; }
.row-main small, .row-value small { color: var(--ink-dim); }
.row-value { text-align: right; }
.row-value strong { font-family: var(--mono); }
.insight-notes { margin-top: 18px; color: var(--ink-dim); font-size: 0.95rem; }
.usecase-list { display: grid; gap: 14px; max-width: 900px; }
.usecase-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 16px 18px;
}
.usecase-check {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}
.usecase-item p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) {
  .insight-table-head { display: none; }
  .insight-row { grid-template-columns: 44px minmax(0, 1fr); }
  .row-value { grid-column: 2; text-align: left; }
}
