/* TesBot369 public marketing site */
:root {
  --ink: #12202c;
  --ink-soft: #3a4d5c;
  --muted: #6a7d8d;
  --line: rgba(18, 32, 44, 0.1);
  --bg: #eef2f5;
  --surface: #ffffff;
  --teal: #0e8a77;
  --teal-deep: #0a6b5c;
  --amber: #c47a12;
  --coral: #d4543a;
  --radius: 20px;
  --shadow: 0 12px 32px rgba(18, 32, 44, 0.08);
  --font: "Outfit", "Noto Sans Tamil", system-ui, sans-serif;
  --display: "Syne", "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(14, 138, 119, 0.14), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(196, 122, 18, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-deep); }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.site-wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(238, 242, 245, 0.88);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(184, 137, 45, 0.25);
  background: #0a0a0a;
}
.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 0.88rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 550;
}
.nav a:hover, .nav a:focus-visible { color: var(--teal-deep); outline: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.92rem;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 18px rgba(14, 138, 119, 0.25);
}
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero {
  padding: 48px 0 36px;
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding: 64px 0 48px;
  }
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.5vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.hero .lead {
  margin: 14px 0 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 38rem;
}
.notice {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(196, 122, 18, 0.1);
  border: 1px solid rgba(196, 122, 18, 0.22);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.hero-card h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}
.signal-demo {
  display: grid;
  gap: 10px;
}
.signal-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7fafb;
  border: 1px solid var(--line);
  font-weight: 700;
}
.signal-pill[data-kind="wait"] { border-color: rgba(196, 122, 18, 0.35); color: #8a6418; }
.signal-pill[data-kind="long"] { border-color: rgba(14, 138, 119, 0.35); color: var(--teal-deep); }
.signal-pill[data-kind="short"] { border-color: rgba(212, 84, 58, 0.35); color: #a33a28; }
.signal-pill small { font-weight: 500; color: var(--muted); }

.section { padding: 36px 0; }
.section h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}
.section .sub {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 40rem;
}
.grid-3, .grid-2 {
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(18, 32, 44, 0.04);
}
.card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.card p, .card li { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.card ul { margin: 0; padding-left: 1.1rem; }
.card li + li { margin-top: 6px; }
.do-not .card { border-color: rgba(212, 84, 58, 0.22); background: #fffaf9; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
}
.faq p { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.92rem; }

.pricing .price {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}
.pricing .note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

.site-footer {
  margin-top: 28px;
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}
.footer-grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
.site-footer h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.site-footer a:hover { color: var(--teal-deep); }
.footer-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-meta { margin-top: 8px; font-size: 0.78rem; color: var(--muted); }

@media (max-width: 820px) {
  .nav-desktop { display: none; }
}
@media (min-width: 821px) {
  .nav-mobile { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ==================================================================
   ALIGNMENT SYSTEM â€” marketing shell (2026-07-28)
   ------------------------------------------------------------------
   Covers every page that loads this file: home, about, pricing,
   contact, security, status, validation, data-sources, news-engine,
   chart-lab, markets/*, reset-password, verify-email.

   The measured defects were: cards in a grid ending at different
   heights (the plan cards rendered 335px next to 475px), controls at
   four different heights, and a footer whose single line floated in a
   large empty band. One scale fixes all three.
   ================================================================== */

:root {
  --ctl-sm: 36px;
  --ctl-md: 40px;
  --ctl-lg: 44px;

  --r-pill: 999px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
}

/* ---------- 1. Page never scrolls sideways ---------- */

body { overflow-x: hidden; }

table { max-width: 100%; }

/* Wide tables scroll inside their own box, not the page. */
.table-wrap,
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- 2. Header: one baseline ---------- */

.site-header__inner {
  min-height: 68px;
  padding: var(--s3) 0;
  gap: var(--s3);
}

.site-header__inner .btn {
  flex: 0 0 auto;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  flex: 0 0 40px;
}

/* ---------- 3. Buttons and controls on one height scale ---------- */

.btn {
  min-height: var(--ctl-lg);
  height: var(--ctl-lg);
  border-radius: var(--r-md);
  padding: 0 var(--s5);
  white-space: nowrap;
}

.btn-sm {
  min-height: var(--ctl-sm);
  height: var(--ctl-sm);
  padding: 0 var(--s3);
  font-size: 0.84rem;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 var(--s3);
  min-height: var(--ctl-lg);
  width: 100%;
  max-width: 100%;
}

textarea {
  min-height: 120px;
  padding: var(--s3);
  line-height: 1.5;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
}

/* ---------- 4. Card grids end on a flush bottom edge ---------- */

.grid-2,
.grid-3 {
  align-items: stretch;
  gap: var(--s4);
}

.grid-2 > *,
.grid-3 > * {
  min-width: 0;
}

/* A card is a column, so trailing notes can be pinned to its floor. */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--r-lg);
  padding: var(--s5);
  gap: var(--s3);
}

.card > * { margin: 0; }

.card ul {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding-left: 1.15rem;
}

.card li + li { margin-top: 0; }

/* The fine print that used to leave one card short now sits on the floor
   of both, so a pair of plan cards squares off. */
.card .note {
  margin-top: auto;
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- 5. Plan cards ---------- */

.pricing .grid-2 { align-items: stretch; }

.pricing .card h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* The price line is a number slot. "Entitlement" is not a price, so the
   plan markup uses .plan-terms for it and this rule keeps .price numeric. */
.pricing .price {
  margin: 0;
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pricing .price small {
  display: inline-block;
  margin-left: var(--s1);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.pricing .plan-terms {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-deep);
}

.plan-badge {
  align-self: flex-start;
  padding: 4px var(--s3);
  border-radius: var(--r-pill);
  background: var(--teal);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card--featured {
  border-color: rgba(14, 138, 119, 0.38);
  box-shadow: 0 10px 28px rgba(14, 138, 119, 0.12);
}

/* ---------- 6. Section rhythm ---------- */

.section {
  padding: var(--s8) 0;
}

.section > h1,
.section > h2 {
  margin: 0 0 var(--s2);
}

.section > .sub {
  margin: 0 0 var(--s5);
}

/* ---------- 7. Footer ---------- */

.site-footer {
  margin-top: var(--s8);
  padding: var(--s6) 0 var(--s5);
}

.footer-note {
  margin-top: var(--s5);
  padding-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s2);
}

/* ---------- 8. Focus visibility (was inconsistent across pages) ---------- */

a:focus-visible,
.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}


/* ------------------------------------------------------------------
   Wide content containment.

   data-sources.html ships a table and news-engine / chart-lab ship code
   blocks, none of them inside a scroll container. On a 375px phone those
   are the only elements that can still push the page sideways, so they
   scroll inside their own box instead.
   ------------------------------------------------------------------ */

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}

table th,
table td {
  padding: var(--s2) var(--s3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  padding: var(--s3);
  border-radius: var(--r-md);
  background: rgba(18, 32, 44, 0.05);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.5;
}

code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

pre code {
  background: none;
  padding: 0;
}

/* Long unbroken strings (URLs, hashes) must wrap rather than widen a card. */
.card p,
.card li,
.sub,
.note {
  overflow-wrap: anywhere;
}


/* Hero call-to-action is a deliberate fourth step, not sprawl. Declared here
   so it does not depend on min-height happening to beat the height above. */
.btn.btn-lg {
  min-height: 52px;
  height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}

/* ==================================================================
   TEXT + CARD POLISH â€” marketing shell (2026-07-28)
   Same rules the app shell now follows, so the two read as one product.
   ================================================================== */

/* ---------- 1. Type rhythm ---------- */

h1, h2, h3, h4 {
  overflow-wrap: break-word;
  text-wrap: balance;          /* no single-word orphan on a heading line */
}

p, li, dd, dt, figcaption {
  overflow-wrap: anywhere;
}

.sub,
.lead {
  line-height: 1.55;
  max-width: 62ch;             /* long measure is the main readability defect */
}

.card p,
.card li {
  line-height: 1.55;
}

/* ---------- 2. Cards: heading, body, footnote all left-aligned ---------- */

.card h2,
.card h3 {
  margin: 0;
  line-height: 1.25;
}

.card > p:first-of-type {
  margin-top: 0;
}

/* Values inside stat-style cards line up on the same baseline. */
.card strong,
.stat strong,
.metric strong {
  font-variant-numeric: tabular-nums;
}

/* ---------- 3. Buttons hug their label ---------- */

.btn {
  width: auto;
  flex: 0 0 auto;
}

/* Except where a full-width action is the point: a form submit on a phone. */
form .btn-block,
.btn-full {
  width: 100%;
  flex: 1 1 100%;
}

@media (max-width: 559px) {
  form .btn[type="submit"] {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* ---------- 4. Header stays on one line ---------- */

.site-header__inner .brand {
  flex: 1 1 auto;
  min-width: 0;
}

.brand strong,
.brand span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 5. Footer columns align ---------- */

.footer-grid > div {
  min-width: 0;
}

.site-footer a {
  overflow-wrap: anywhere;
}

/* ---------- 6. Definition-style rows (status / data-sources) ---------- */

dl {
  display: grid;
  gap: var(--s2) var(--s4);
  margin: 0;
}

@media (min-width: 560px) {
  dl {
    grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  }
}

dt {
  font-weight: 700;
  color: var(--ink);
}

dd {
  margin: 0;
  color: var(--ink-soft);
}


/* ------------------------------------------------------------------
   Responsive nav visibility — MUST stay after the .btn-row rules above.

   `.nav-mobile` also carries the class `btn-row`. The alignment layer's
   `.btn-row { display: flex }` has the same specificity as the original
   `@media (min-width: 821px) { .nav-mobile { display: none } }` and is
   declared later, so it won — and the page rendered Login / Open App
   twice on desktop. Scoping to `.site-header` raises specificity so the
   hiding wins again regardless of declaration order.
   ------------------------------------------------------------------ */

@media (max-width: 820px) {
  .site-header .nav-desktop {
    display: none;
  }
}

@media (min-width: 821px) {
  .site-header .nav-mobile {
    display: none;
  }
}
