/* CoinCatalogPro website - colours match the desktop app's UITheme. */
:root {
  --canvas: #f5f7fa;
  --navy: #192a3e;
  --deep-navy: #122031;
  --primary: #354a63;
  --gold: #a58548;
  --text: #2e3b4a;
  --muted: #697582;
  --border: #dae1e8;
  --white: #ffffff;
  --radius: 8px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--primary); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--white); color: var(--navy); padding: 8px 12px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

/* Header */
.site-header { background: var(--deep-navy); color: var(--white); border-bottom: 3px solid var(--gold); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { color: var(--white); text-decoration: none; font-weight: 700; letter-spacing: 0.04em; font-size: 1.1rem; }
.brand span { color: var(--gold); }
.site-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: #becad8; text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 72px 0 80px; }
.hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; margin: 0 0 16px; }
.hero p { font-size: 1.15rem; color: #d3dce6; max-width: 640px; margin: 0 0 28px; }

.button {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
}
.button-primary { background: var(--gold); color: var(--deep-navy); }
.button-primary:hover { background: #b8975a; }
.button-secondary { border-color: #becad8; color: var(--white); margin-left: 12px; }
.button-secondary:hover { background: rgba(255, 255, 255, 0.08); }
.button[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

/* Sections */
main section { padding: 56px 0; }
h2 { color: var(--navy); font-size: 1.7rem; margin: 0 0 12px; }
.lead { color: var(--muted); max-width: 680px; margin: 0 0 32px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--gold);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

/* Pricing */
.price { font-size: 2.2rem; font-weight: 700; color: var(--navy); margin: 8px 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.card ul { padding-left: 20px; margin: 16px 0 0; }
.card li { margin: 6px 0; }
.card.featured { border-top-color: var(--primary); box-shadow: 0 6px 18px rgba(18, 32, 49, 0.08); }

.notice {
  background: #fff8e8; border: 1px solid #ecd9a8; border-radius: var(--radius);
  padding: 14px 18px; color: var(--text); margin: 0 0 24px;
}

.prose { max-width: 760px; }

/* Footer */
.site-footer { background: var(--deep-navy); color: #9fb0c3; padding: 32px 0; font-size: 0.95rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #becad8; }
.site-footer ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* FAQ */
.faq details {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; margin: 0 0 10px;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p { margin: 0 0 8px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 20px 64px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.steps strong { color: var(--navy); display: block; }
.section-alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
code { background: #eef2f6; padding: 1px 5px; border-radius: 4px; font-size: 0.95em; }
.button-secondary-dark { border-color: var(--primary); color: var(--primary); }
.button-secondary-dark:hover { background: #eef2f6; }
.small-print { font-size: 0.9rem; color: var(--muted); margin-top: 12px !important; }
.cta { text-align: center; }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .button + .button { margin-left: 12px; }
