:root {
  --bg: #0d1b2e;
  --card: #16283e;
  --card-2: #1c3049;
  --gold: #ddc178;
  --gold-dim: #b89e5e;
  --text: #f2efe7;
  --muted: #b7c0cc;
  --green: #1e8e5a;
  --border: rgba(221, 193, 120, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--gold); }

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}
.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.92rem;
}
.topbar nav a {
  color: var(--muted);
  text-decoration: none;
}
.topbar nav a:hover { color: var(--gold); }

/* Hero */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  color: var(--gold);
  background: rgba(221, 193, 120, 0.1);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero p.tagline {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 28px;
}
.store-badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #1a1400;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
}
.store-badge.secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
}

/* Sections / cards */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 20px 60px;
}
main.narrow { max-width: 640px; }

section { margin-top: 56px; }

h2.section-title {
  font-size: 1.5rem;
  margin: 0 0 8px;
  font-weight: 800;
  text-align: center;
}
p.section-sub {
  color: var(--muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(221, 193, 120, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.plan.featured { border: 2px solid var(--gold); }
.plan h3 { margin: 0; font-size: 1.15rem; }
.plan-note { margin: 2px 0 12px; color: var(--muted); font-size: 0.88rem; }
.plan ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 0.92rem; }
.plan li { margin-bottom: 6px; }
.plan-tag {
  position: absolute;
  top: -11px;
  right: 16px;
  background: var(--gold);
  color: #1a1400;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.plan-foot { color: var(--muted); font-size: 0.84rem; text-align: center; margin: 16px 0 0; }

/* Need help block (shared with in-app style) */
.help-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
}
.help-card h2 { margin-top: 0; }
.email-button {
  display: inline-block;
  margin-top: 14px;
  background: var(--gold);
  color: #1a1400;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
}
.muted { color: var(--muted); font-size: 0.92rem; }

/* Bug report / support form */
.support-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.support-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.support-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) {
  .support-form .form-row { grid-template-columns: 1fr; }
}
.support-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.support-form input,
.support-form textarea {
  width: 100%;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}
.support-form textarea { min-height: 150px; }
.support-form input::placeholder,
.support-form textarea::placeholder { color: var(--muted); opacity: 0.7; }
.support-form input:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(221, 193, 120, 0.15);
}
.support-form .form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.support-form button {
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: #1a1400;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: inherit;
  white-space: nowrap;
}
.support-form button:hover:not(:disabled) { background: var(--gold-dim); }
.support-form button:disabled {
  opacity: 0.6;
  cursor: default;
}
.form-status {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
  text-align: left;
  flex: 1;
  min-width: 200px;
}
.form-status.success { color: var(--green); }
.form-status.error { color: #e57373; }

.faq-item {
  margin-bottom: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 16px; margin: 0; color: var(--muted); }

/* Legal pages */
.legal h1 { font-size: 1.8rem; margin-bottom: 4px; }
.legal .meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 32px; }
.legal h2 {
  font-size: 1.1rem;
  color: var(--gold);
  margin-top: 32px;
  margin-bottom: 10px;
}
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal p, .legal ul { margin: 0 0 12px; }

footer {
  text-align: center;
  padding: 30px 20px 50px;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
footer .links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold); }
