/**
 * site.css — the public pages: the product page (index.html) and the three
 * legal pages (terms / privacy / refund).
 *
 * Separate from style.css on purpose. style.css centres `body` with flexbox
 * because every page it dresses is one card on one screen; these pages are long
 * documents that scroll. The design tokens below are copied deliberately, not
 * imported, so a later redesign of the marketing site cannot move the login box
 * or the dashboard by accident.
 *
 * English only, and that is a decision rather than an omission. The app itself
 * is translated into eight languages (i18n.js); these pages are not, because
 * the terms are a contract -- one governing language, stated in the document --
 * and because Paddle reviews the site in English. See web/DEPLOY.md.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:        #f97316;
  --brand-dark:   #ea580c;
  --text:         #f5f5f5;
  --muted:        #a3a3a3;
  --dim:          #737373;
  --border:       rgba(255, 255, 255, 0.08);
  --bg:           #0a0a0a;
  --card:         #141414;
  --white:        #ffffff;
  --radius:       14px;
  --nav-h:        56px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 780px; }

/* ── Navigation ─────────────────────────────────────────────── */
/* Paddle's Domain Review requires the legal pages to be reachable from the
   site's navigation, not merely to exist -- so these links are in the header
   AND the footer of every public page. */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.2);
  z-index: 100;
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav-brand:hover { text-decoration: none; }
.nav-icon {
  width: 28px; height: 28px;
  background: var(--brand);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; color: #fff; letter-spacing: -.5px;
}
.nav-name { font-size: .95rem; font-weight: 700; color: var(--white); letter-spacing: -.2px; }
.nav-sub  { font-size: .75rem; color: var(--muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a {
  font-size: .85rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.nav-cta {
  color: #fff;
  background: var(--brand);
  padding: .45rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--brand-dark); color: #fff; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: rgba(249, 115, 22, 0.55); color: var(--white); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 5.5rem 0 4rem;
  text-align: center;
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(249, 115, 22, 0.10) 0%, transparent 65%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  color: var(--brand);
  border: 1px solid rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.08);
  border-radius: 999px;
  padding: .3rem .9rem;
  margin-bottom: 1.5rem;
}
/* The brand mark inside a badge or pill. The icon ships with its own tile and
   glow, so it is never given a background, a radius or a shadow here. */
.badge-mark { width: 18px; height: 18px; display: block; flex-shrink: 0; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -1.5px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1.2rem; font-size: .82rem; color: var(--dim); }

/* ── Sections ───────────────────────────────────────────────── */
section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.6px;
  color: var(--white);
  margin-bottom: .6rem;
}
.section-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }

.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.card h3 { font-size: 1.02rem; color: var(--white); margin-bottom: .5rem; font-weight: 600; }
.card p  { font-size: .92rem; color: var(--muted); }
.card .icon { font-size: 1.5rem; display: block; margin-bottom: .8rem; }

/* ── Pricing ────────────────────────────────────────────────── */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: rgba(249, 115, 22, 0.45); }
.price-tier { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--brand); font-weight: 700; }
.price-amount { font-size: 2.1rem; font-weight: 700; color: var(--white); margin: .5rem 0 .1rem; letter-spacing: -1px; }
.price-amount .per { font-size: .9rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price-alt { font-size: .82rem; color: var(--dim); margin-bottom: 1.1rem; }
.price-card ul { list-style: none; margin: 0 0 1.4rem; }
.price-card ul li {
  font-size: .9rem; color: var(--muted);
  padding-left: 1.4rem; position: relative; margin-bottom: .45rem;
}
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.price-card .btn { margin-top: auto; text-align: center; }

/* ── Plain content list (used by "what it does not do") ─────── */
.plain-list { list-style: none; }
.plain-list li {
  font-size: .95rem; color: var(--muted);
  padding-left: 1.5rem; position: relative; margin-bottom: .6rem;
}
.plain-list li::before { content: "—"; position: absolute; left: 0; color: var(--dim); }

/* ── Legal documents ────────────────────────────────────────── */
.doc { padding: 3.5rem 0 4rem; }
.doc h1 { font-size: 2rem; color: var(--white); letter-spacing: -.8px; margin-bottom: .4rem; }
.doc .updated { font-size: .85rem; color: var(--dim); margin-bottom: 2.5rem; }
.doc h2 {
  font-size: 1.15rem; color: var(--white);
  margin: 2.4rem 0 .8rem; padding-top: .3rem; font-weight: 600;
}
.doc h3 { font-size: 1rem; color: var(--text); margin: 1.5rem 0 .5rem; font-weight: 600; }
.doc p, .doc li { font-size: .95rem; color: var(--muted); }
.doc p { margin-bottom: 1rem; }
.doc ul, .doc ol { margin: 0 0 1rem 1.3rem; }
.doc li { margin-bottom: .45rem; }
.doc strong { color: var(--text); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .9rem; }
.doc th, .doc td { text-align: left; padding: .6rem .8rem; border: 1px solid var(--border); color: var(--muted); }
.doc th { background: var(--card); color: var(--text); font-weight: 600; }

/* A boxed callout for the clause a buyer most needs to read before paying. */
.notice {
  background: rgba(249, 115, 22, 0.07);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 0 0 1.6rem;
}
.notice p { margin: 0; color: var(--text); }
.notice p + p { margin-top: .7rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 0; background: #000; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-links a { font-size: .85rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-legal { font-size: .82rem; color: var(--dim); }
.footer-legal a { color: var(--muted); }

@media (max-width: 680px) {
  .nav-links { gap: .9rem; }
  .nav-links a.nav-hide { display: none; }
  .nav-sub { display: none; }
  .hero { padding: 3.5rem 0 3rem; }
  section { padding: 3rem 0; }
}
