/* Sardi AI — landing hub shared styles. One file for the home page and all
   sub-pages (buy / download / support / whats-new). */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
  --teal: #16b8b8;
  --gold: #e0b43c;
  --bg-top: #16201f;
  --bg-bottom: #080b0b;
  --text: #f3efe7;
  --muted: #9fb0ad;
  --line: rgba(255, 255, 255, .10);
  --card: rgba(255, 255, 255, .035);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(130% 110% at 50% 0%, var(--bg-top) 0%, var(--bg-bottom) 62%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  padding: 40px 20px;
}
/* Home page centres its poster + buttons vertically */
body.home { justify-content: center; gap: 40px; }

a { color: inherit; }

/* ─── Home: poster ─────────────────────────────────────────────── */
.poster { width: 100%; max-width: 760px; }
.poster img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .04);
}

/* ─── BYOK note ────────────────────────────────────────────────── */
.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 620px;
  background: rgba(224, 180, 60, .08);
  border: 1px solid rgba(224, 180, 60, .28);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.7;
}
.note .ico { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 2px; }
.note b { color: var(--gold); }
.note small { color: var(--muted); font-size: 12px; }

/* ─── Buttons ──────────────────────────────────────────────────── */
.actions {
  width: 100%;
  max-width: 620px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 580px) { .actions { grid-template-columns: 1fr 1fr; } }

.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 16px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn .ico { width: 26px; height: 26px; flex: none; }
.btn small { display: block; font-weight: 600; font-size: 12px; opacity: .72; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-buy {
  color: #07100f;
  background: linear-gradient(135deg, var(--teal) 0%, var(--gold) 100%);
  box-shadow: 0 14px 34px rgba(224, 180, 60, .22);
}
.btn-buy:hover { box-shadow: 0 18px 44px rgba(224, 180, 60, .38); }

.btn-trial {
  color: #dffafa;
  background: rgba(22, 184, 184, .14);
  border-color: rgba(22, 184, 184, .5);
}
.btn-trial:hover { background: rgba(22, 184, 184, .24); border-color: var(--teal); }

.btn-ghost { color: var(--text); background: var(--card); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }

/* Inline CTA (single, horizontal) used on sub-pages */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: #07100f;
  background: linear-gradient(135deg, var(--teal) 0%, var(--gold) 100%);
  box-shadow: 0 14px 34px rgba(224, 180, 60, .22);
  transition: transform .15s ease, box-shadow .2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(224, 180, 60, .38); }
.cta .ico { width: 22px; height: 22px; }

/* ─── Sub-page document layout ─────────────────────────────────── */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
  opacity: .9;
}
.wordmark span { color: var(--teal); }
.wordmark:hover { opacity: 1; }
/* Real logo image in the sub-page header */
.wordmark img { height: 44px; width: auto; display: block; }

.page {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.page h1 { font-size: 28px; font-weight: 800; }
.page .lede { color: var(--muted); font-size: 15px; line-height: 1.7; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}
.card h2 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.card ul { color: var(--muted); font-size: 14px; line-height: 1.9; padding-inline-start: 20px; }
.card a.link { color: var(--teal); font-weight: 700; text-decoration: none; }
.card a.link:hover { text-decoration: underline; }

.price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
}
.price b { font-size: 34px; color: var(--gold); }
.price s { color: var(--muted); font-weight: 600; }

.meta { color: var(--muted); font-size: 12px; line-height: 1.8; }

footer {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.8;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Footer nav — small pill buttons (Home / Back) instead of plain text links */
.footer-nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.fbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 11px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s;
}
.fbtn:hover { background: rgba(22, 184, 184, .12); border-color: var(--teal); transform: translateY(-1px); color: var(--text); }
.fbtn .ico { width: 15px; height: 15px; }
.copy { color: var(--muted); }
