/* ============================================================
   Teleprompter4u — landing styles
   Design system: Minimal single column · Figtree + Noto Sans
   Sky-blue trust (#0EA5E9 / #0369A1) + warm CTA (#F97316 / #EA580C)
   ============================================================ */

:root {
  /* palette */
  --bg: #f6fbff;
  --bg-soft: #eef6fc;
  --card: #ffffff;
  --ink: #0b2a45;        /* headings */
  --body: #34506a;       /* body text (>=4.5:1 on white) */
  --muted: #607d97;
  --line: #e1ecf5;
  --line-soft: #eef4f9;

  --primary: #0ea5e9;
  --primary-deep: #0369a1;
  --primary-ink: #075985;

  --cta: #ea580c;        /* AA-large on white text */
  --cta-hi: #f97316;
  --cta-ink: #ffffff;

  --ok-bg: #ecfdf3; --ok-ink: #14633b;
  --warn-bg: #fff7ed; --warn-ink: #9a3412;

  /* sinhala-capable stacks */
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --body-font: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --sinhala: "Noto Sans Sinhala", "Noto Sans", sans-serif;

  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1080px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 69, 0.04), 0 6px 18px rgba(11, 42, 69, 0.05);
  --shadow-md: 0 10px 30px rgba(11, 42, 69, 0.09);
  --shadow-lg: 0 24px 60px rgba(11, 42, 69, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { margin: 0; }
body {
  font-family: var(--body-font);
  color: var(--body);
  background:
    radial-gradient(1100px 520px at 78% -8%, #e3f2fd 0%, rgba(227, 242, 253, 0) 60%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .brand-text { font-family: var(--sans); color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 12px; }

a { color: var(--primary-deep); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans);
  font-size: 17px; font-weight: 700; line-height: 1;
  padding: var(--pad-y) 26px;
  border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.05s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid #7cc6f0; outline-offset: 2px; }

.btn-cta {
  background: linear-gradient(180deg, var(--cta-hi), var(--cta));
  color: var(--cta-ink);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.28);
}
.btn-cta:hover { box-shadow: 0 10px 26px rgba(234, 88, 12, 0.36); }
.btn-ghost {
  background: #fff; color: var(--primary-deep);
  border-color: var(--line); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: #cfe3f1; background: #fbfdff; }
.btn-sm { font-size: 15px; padding: 10px 18px; }
.btn-block { width: 100%; font-size: 18px; padding: 16px 26px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 251, 255, 0.82);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 20px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark { display: block; border-radius: 8px; }
.brand-text { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.brand-accent { color: var(--primary); }
.nav-links { margin-left: auto; display: flex; gap: 26px; }
.nav-links a {
  color: var(--body); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav .btn-cta { margin-left: 4px; }

/* ---------- Banner ---------- */
.banner { border-radius: 12px; padding: 13px 16px; font-size: 15px; margin-top: 18px; }
.banner.ok { background: var(--ok-bg); color: var(--ok-ink); }
.banner.warn { background: var(--warn-bg); color: var(--warn-ink); }
.hidden { display: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding-block: 72px 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  color: var(--primary-ink); font-weight: 600; font-size: 13.5px;
  padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cta-hi);
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.06; letter-spacing: -0.03em; font-weight: 800;
  margin: 18px 0 18px;
}
.grad {
  background: linear-gradient(120deg, var(--primary), var(--primary-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--body); max-width: 33em; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.micro { font-size: 13.5px; color: var(--muted); margin: 0; }

/* Hero visual */
.hero-visual { position: relative; }
.flow { width: 100%; height: auto; display: block; }
.flow .lbl { font: 600 9.5px var(--sans); fill: #5f7d97; }
.flow .lbl-sm { font: 500 9px var(--body-font); fill: #8aa3b6; }
.flow .lbl-live { font: 700 9px var(--sans); fill: #ff8a4c; letter-spacing: 0.05em; }
.flow .lbl-screen { font: 500 9px var(--sans); fill: #7fb6da; }
.flow .en { font: 500 11px var(--body-font); fill: #b8d4e8; }
.flow .si { font: 600 13px var(--sinhala); fill: #ffffff; }

/* ---------- Trust strip ---------- */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 22px; margin-top: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.trust-item { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; }
.trust-item .ic { width: 26px; height: 26px; color: var(--primary); flex: none; }
.trust-item strong { color: var(--ink); font-weight: 700; }
.trust-item span { font-family: var(--body-font); }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 40ch; margin: 0 auto 44px; }
.kicker {
  font-family: var(--sans); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary);
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; letter-spacing: -0.02em;
  margin: 12px 0 12px; font-weight: 800;
}
.section-head p { font-size: 17px; color: var(--body); margin: 0; }

/* ---------- Contrast (old vs new) ---------- */
.contrast {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
  padding-block: 56px 8px;
}
.contrast-card { border-radius: var(--radius); padding: 26px 26px 22px; border: 1px solid var(--line); }
.contrast-card h3 { font-size: 15px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.contrast-card ul { margin: 0; padding-left: 18px; }
.contrast-card li { margin: 9px 0; font-size: 15.5px; }
.contrast-card.old { background: #fff; }
.contrast-card.old h3 { color: var(--muted); }
.contrast-card.old li { color: #708aa0; }
.contrast-card.new { background: linear-gradient(180deg, #ffffff, #f3f9fd); border-color: #cfe6f4; box-shadow: var(--shadow-md); }
.contrast-card.new h3 { color: var(--primary-deep); }
.contrast-card.new li { color: var(--ink); }
.contrast-arrow { color: var(--primary); }
.contrast-arrow svg { display: block; }

/* ---------- How it works ---------- */
.how { padding-block: 76px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-art {
  background: linear-gradient(180deg, #f1f8fd, #e9f4fb);
  border-radius: var(--radius-sm); padding: 14px; margin-bottom: 20px;
}
.step-art svg { width: 100%; height: auto; display: block; }
.art-lbl { font: 600 10px var(--sans); fill: #5f7d97; }
.art-price { font: 800 22px var(--sans); fill: #0b2a45; }
.art-live { font: 700 8px var(--sans); fill: #ff8a4c; letter-spacing: 0.06em; }
.art-code { font: 600 8px var(--sans); fill: #7fb6da; letter-spacing: 0.08em; }
.art-en { font: 500 9.5px var(--body-font); fill: #b8d4e8; }
.art-si { font: 600 11px var(--sinhala); fill: #ffffff; }
.step-no {
  position: absolute; top: 20px; right: 22px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--primary-deep);
  font-family: var(--sans); font-weight: 800; font-size: 15px;
}
.step h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 15px; }

/* ---------- Demo ---------- */
.demo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding-block: 20px 76px;
}
.demo-copy h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 12px 0 14px; letter-spacing: -0.02em; }
.demo-copy > p { font-size: 17px; margin: 0 0 20px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin: 11px 0; font-size: 15.5px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314633b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/13px no-repeat;
}
.demo-screen {
  background: linear-gradient(180deg, #0b3a5c, #0a2c47);
  border-radius: 20px; padding: 18px 20px 22px; box-shadow: var(--shadow-lg);
  border: 1px solid #0a2c47;
}
.demo-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.demo-live {
  display: inline-flex; align-items: center; gap: 7px;
  color: #ff9a5c; font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 0.08em;
}
.demo-live .dot { background: #ff7a3c; }
.demo-code {
  font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.12em;
  color: #8fc4e6; background: rgba(143, 196, 230, 0.12); padding: 5px 11px; border-radius: 7px;
}
.demo-lines { display: flex; flex-direction: column; gap: 18px; min-height: 300px; }
.demo-lines .line { padding-bottom: 16px; border-bottom: 1px solid rgba(143, 196, 230, 0.13); animation: slideup 0.45s ease; }
.demo-lines .line:last-child { border-bottom: 0; padding-bottom: 0; }
.demo-lines .dir {
  display: inline-block; font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; color: #6fb0d8;
  background: rgba(143, 196, 230, 0.12); padding: 3px 9px; border-radius: 6px; margin-bottom: 9px;
}
.demo-lines .dir.alt { color: #f7a872; background: rgba(249, 115, 22, 0.13); }
.demo-lines .src { font-family: var(--body-font); font-size: 13.5px; color: #9cc3de; margin: 0 0 6px; }
.demo-lines .src.si { font-family: var(--sinhala); font-size: 15px; }
.demo-lines .tr { font-family: var(--body-font); font-size: clamp(17px, 2.2vw, 22px); line-height: 1.4; color: #fff; margin: 0; font-weight: 500; }
.demo-lines .tr.si { font-family: var(--sinhala); font-size: clamp(18px, 2.4vw, 23px); line-height: 1.5; }
@keyframes slideup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .demo-lines .line { animation: none; } }

/* ---------- Benefits ---------- */
.benefits { padding-block: 20px 76px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfe3f1; }
.bcard .ic {
  width: 34px; height: 34px; color: var(--primary); padding: 6px;
  background: var(--bg-soft); border-radius: 10px; margin-bottom: 14px;
}
.bcard h3 { font-size: 18px; margin: 0 0 7px; letter-spacing: -0.01em; }
.bcard p { margin: 0; font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing { padding-block: 36px 76px; }
.price-card {
  max-width: 460px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.price-top {
  text-align: center; padding: 34px 28px 26px;
  background: linear-gradient(180deg, #f4faff, #ffffff);
  border-bottom: 1px solid var(--line-soft);
}
.price-name { font-family: var(--sans); font-weight: 700; color: var(--primary-deep); font-size: 15px; letter-spacing: 0.02em; }
.price-amount { font-family: var(--sans); font-weight: 800; font-size: 54px; color: var(--ink); letter-spacing: -0.03em; margin: 8px 0 4px; }
.price-amount .ccy { font-size: 19px; font-weight: 700; color: var(--muted); vertical-align: middle; }
.price-terms { font-size: 16px; color: var(--body); }
.price-features { list-style: none; margin: 0; padding: 26px 30px 8px; }
.price-features li { position: relative; padding-left: 30px; margin: 13px 0; font-size: 15.5px; color: var(--ink); font-family: var(--body-font); }
.price-features li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%230369a1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/12px no-repeat;
}
.price-card .btn-block { margin: 18px 30px 10px; width: calc(100% - 60px); }
.price-fine { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 26px; }

/* ---------- FAQ ---------- */
.faq { padding-block: 20px 80px; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 30px 16px 0; position: relative;
  font-family: var(--sans); font-weight: 600; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  rotate: 45deg; transition: rotate 0.2s ease; margin-top: -3px;
}
.faq details[open] summary::after { rotate: -135deg; margin-top: 2px; }
.faq details p { margin: 0 0 16px; font-size: 15.5px; font-family: var(--body-font); }

/* ---------- Final CTA ---------- */
.final { padding-block: 20px 80px; }
.final-card {
  text-align: center; border-radius: 24px; padding: 56px 28px;
  background: linear-gradient(135deg, #0b3a5c, #0a2c47);
  box-shadow: var(--shadow-lg);
}
.final-card h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 10px; letter-spacing: -0.02em; }
.final-card p { color: #aacbe4; font-size: 18px; margin: 0 0 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-block: 40px 24px; }
.footer-brand .brand-text { font-size: 18px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 8px 0 0; max-width: 26em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.footer-links a { color: var(--body); text-decoration: none; font-size: 14.5px; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-block: 18px 30px; border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: 13px;
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--body); }

/* ---------- Welcome (post-checkout) ---------- */
.ok-badge {
  display: inline-block; background: var(--ok-bg); color: var(--ok-ink);
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  padding: 6px 13px; border-radius: 999px;
}
.welcome-title { font-size: clamp(24px, 4vw, 31px); letter-spacing: -0.02em; margin: 14px 0 8px; }
.welcome-lede { font-size: 17px; color: var(--body); margin: 0; }
.welcome-lede strong, .welcome-steps strong, .ok-badge + .welcome-title { color: var(--ink); }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.welcome-section {
  font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--primary); font-weight: 700; margin: 30px 0 4px;
}
.welcome-steps { padding-left: 20px; margin: 10px 0 0; }
.welcome-steps li { margin: 12px 0; font-size: 15.5px; color: var(--body); font-family: var(--body-font); }
.reading-link { margin-top: 8px; }
.reading-link a { color: var(--primary-deep); word-break: break-all; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-block: 48px 40px; }
  .hero-visual { order: 2; max-width: 520px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; gap: 32px; }
  .demo-screen { order: 2; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .contrast { grid-template-columns: 1fr; }
  .contrast-arrow { transform: rotate(90deg); margin: 4px auto; }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .trust { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .price-amount { font-size: 46px; }
  .footer-inner { flex-direction: column; gap: 18px; }
}

/* ===================== Telegram live-support ===================== */
.tg-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  background: #16a34a; color: #fff;
  padding: 12px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 22px rgba(22,163,74,0.38);
  transition: transform .15s ease, background .15s ease;
}
.tg-fab:hover { background: #15893f; transform: translateY(-1px); }
.tg-fab svg { width: 20px; height: 20px; display: block; }
.tg-live {
  width: 9px; height: 9px; border-radius: 50%; background: #7CFFB0;
  animation: tg-pulse 1.8s infinite;
}
@keyframes tg-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124,255,176,0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(124,255,176,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,255,176,0); }
}
@media (prefers-reduced-motion: reduce) { .tg-live { animation: none; } }
.tg-link { color: #16a34a; font-weight: 600; text-decoration: none; }
.tg-link:hover { text-decoration: underline; }
.tg-inline svg { width: 15px; height: 15px; vertical-align: -2px; }
@media (max-width: 480px) {
  .tg-fab { right: 14px; bottom: 14px; padding: 11px 15px; font-size: 14px; }
}
