/* Sayvour — shared styles for the Pricing, FAQ and Help pages.
   Same palette and type as the landing page. */

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

:root {
  --bg: #f5f7f6; --surface: #ffffff; --border: #dde6e4;
  --accent: #0D9488; --accent-dim: #0f766e; --accent-soft: #e0f2f0;
  --text: #1a2421; --muted: #5c706d; --subtle: #eef4f3;
  --warm: #fff4e5; --warm-ink: #8a5a12;
  --footer-dot: #c0b8b4; --radius: 16px; --radius-sm: 10px; --max-w: 1040px;
  --shadow: 0 10px 30px rgba(26, 36, 33, 0.08);
}
[data-theme="dark"] {
  --bg: #0d0d0d; --surface: #161616; --border: #262626;
  --accent: #14B8A6; --accent-dim: #0D9488; --accent-soft: #0a1e1c;
  --text: #f0ece4; --muted: #8a857f; --subtle: #141716;
  --warm: #2a1f0e; --warm-ink: #f0c070;
  --footer-dot: #3a3530; --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; transition: background 0.3s, color 0.3s;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
[hidden] { display: none !important; }

/* ---- nav ---- */
nav { width: 100%; display: flex; justify-content: center; padding: 20px 20px 0; }
.nav-inner { width: 100%; max-width: var(--max-w); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 54px; height: 54px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-sub { font-size: 0.78rem; font-weight: 500; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; gap: 22px; font-weight: 600; font-size: 0.98rem; margin-left: auto; margin-right: 18px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--accent); }
.theme-toggle { background: none; border: 1px solid var(--border); border-radius: 999px; width: 40px; height: 40px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
html:not([data-theme]) .icon-sun { display: none; }
@media (max-width: 560px) { .brand-sub { display: none; } .nav-links { gap: 14px; font-size: 0.92rem; margin-right: 10px; } }
/* phones: keep wordmark, links and toggle on one line without overlapping */
.brand, .nav-links { min-width: 0; }
@media (max-width: 480px) {
  nav { padding: 16px 16px 0; }
  .nav-inner { gap: 10px; }
  .brand { gap: 8px; font-size: 1.2rem; }
  .brand img { width: 40px; height: 40px; border-radius: 10px; }
  .nav-links { gap: 12px; font-size: 0.9rem; margin-right: 2px; }
  .theme-toggle { width: 36px; height: 36px; }
}
@media (max-width: 370px) { .brand-text { display: none; } }

/* ---- layout ---- */
main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
.container { width: 100%; max-width: var(--max-w); }
.narrow { max-width: 760px; margin: 0 auto; }
section { padding: 56px 0; }
.eyebrow { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 16px; }
h1 .accent { color: var(--accent); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 12px; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.lead { font-size: clamp(1.08rem, 2.6vw, 1.25rem); color: var(--muted); line-height: 1.6; max-width: 600px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
p + p { margin-top: 10px; }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding: 56px 0 40px; }
.hero-visual { display: flex; justify-content: center; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } .hero-visual { order: 2; } }

/* ---- phone ---- */
.phone { width: 260px; border-radius: 36px; padding: 10px; background: #1a2421; box-shadow: var(--shadow); }
[data-theme="dark"] .phone { background: #2a2a2a; }
.phone img { border-radius: 28px; width: 100%; }
.phone.sm { width: 200px; border-radius: 30px; padding: 8px; }
.phone.sm img { border-radius: 24px; }

/* ---- buttons / badges ---- */
.store-badges { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.store-badges img { height: 50px; width: auto; }
/* Google's PNG (646x250) has 41px of transparent padding on every edge, so the visible badge is 564x168.
   Scale it so the visible badge is exactly 50px tall like Apple's, and pull the padding in (41 x 50/168 = 12.2px).
   The two are the same height; Google's is wider because its badge is a longer shape (never stretch either). */
.store-badges img[src$="badge-googleplay.png"] { height: 74.4px; margin: -12.2px; }
.center .store-badges { justify-content: center; }
.fine-print { font-size: 0.92rem; color: var(--muted); margin-top: 12px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }

/* ---- cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); font-size: 0.98rem; }
a.card { text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chips a { font-size: 0.92rem; font-weight: 600; text-decoration: none; color: var(--accent-dim); background: var(--accent-soft); padding: 8px 14px; border-radius: 999px; }
[data-theme="dark"] .chips a { color: var(--accent); }

/* ---- plans ---- */
.region { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 4px; background: var(--surface); margin-top: 18px; }
.region button { border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 0.95rem; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.region button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; position: relative; }
.plan.pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .tag { position: absolute; top: -14px; left: 28px; background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan h2 { font-size: 1.35rem; margin-bottom: 2px; }
.plan .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 0; line-height: 1.1; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .alt { color: var(--muted); font-size: 0.98rem; margin: 6px 0 18px; }
.plan ul { list-style: none; }
.plan li { padding: 9px 0 9px 30px; position: relative; border-top: 1px solid var(--border); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
.plan li::after { content: ""; position: absolute; left: 8px; top: 18px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.plan .note { font-size: 0.92rem; color: var(--muted); margin-top: 14px; }

/* ---- accordion ---- */
.faq-group { margin-top: 36px; }
.faq-group h2 { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; margin-bottom: 8px; }
.faq-group h2 .icon { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.faq-group h2 .icon svg { width: 18px; height: 18px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 18px; margin-top: 10px; }
summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; padding: 16px 34px 16px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 13px; font-size: 1.5rem; font-weight: 400; color: var(--accent); }
details[open] summary::after { content: "–"; }
.answer { color: var(--text); padding: 0 0 18px; max-width: 640px; }
.answer p + p { margin-top: 10px; }
.answer ul { margin: 8px 0 0 20px; }

/* ---- split rows (help) ---- */
.row { display: grid; grid-template-columns: 1fr 240px; gap: 36px; align-items: center; padding: 40px 0; border-top: 1px solid var(--border); }
.row:first-of-type { border-top: 0; }
.row.flip { grid-template-columns: 240px 1fr; }
.row.flip .row-text { order: 2; }
.row ol, .row ul { margin: 10px 0 0 20px; }
.row li + li { margin-top: 6px; }
.row .visual { display: flex; justify-content: center; }
@media (max-width: 720px) { .row, .row.flip { grid-template-columns: 1fr; } .row.flip .row-text { order: 0; } .row .visual { order: 2; } }
.ui { font-weight: 600; }
.tip { margin-top: 14px; padding: 12px 16px; background: var(--warm); color: var(--warm-ink); border-radius: var(--radius-sm); font-size: 0.95rem; }

/* ---- bands ---- */
.band { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 28px; text-align: center; margin: 32px 0 24px; }
.band h2 { margin-bottom: 6px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; color: var(--muted); font-size: 0.95rem; margin-top: 20px; }
.trust span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ---- footer ---- */
footer { padding: 32px 20px 40px; text-align: center; color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--muted); }
footer span { color: var(--footer-dot); margin: 0 6px; }
.disclaimer { margin-bottom: 10px; }

/* ---- help topic grid: 10 cards → 2 rows of 5 on desktop ---- */
.help-cards { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.help-cards .card { padding: 18px 16px; }
.help-cards .card h3 { font-size: 1rem; }
.help-cards .card p { font-size: 0.88rem; }
.help-cards .card .icon { width: 38px; height: 38px; margin-bottom: 10px; }
@media (max-width: 900px) { .help-cards { grid-template-columns: repeat(2, 1fr); } }
