/* ============================================================
   Coronation Scorekeeper Website — style.css
   ============================================================ */

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

:root {
  --plum:         #2b1740;
  --plum2:        #3d2159;
  --aubergine:    #1c0f2b;
  --gold:         #e7c66b;
  --gold-deep:    #c99a34;
  --gold-soft:    #f3e2a8;
  --garnet:       #a01f45;
  --parchment:    #f7f1e2;
  --parchment2:   #efe6cf;
  --ink:          #2a2038;
  --ink-soft:     #6b5f7a;
  --border:       #ded2c0;
  --max:          960px;
  --nav-h:        64px;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 2px 12px rgba(28, 15, 40, 0.12);
  --shadow-lg:    0 8px 32px rgba(28, 15, 40, 0.22);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
}

img { max-width: 100%; display: block; }
a { color: var(--garnet); text-decoration: none; }
a:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 226, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-mark {
  font-size: 20px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--parchment2);
  color: var(--ink);
  text-decoration: none;
}

.nav-links a.active { color: var(--garnet); }

.nav-cta {
  background: linear-gradient(160deg, var(--gold-soft), var(--gold));
  color: var(--plum) !important;
  border-radius: 100px !important;
  padding: 8px 16px !important;
  font-weight: 700 !important;
  transition: filter 0.15s !important;
}

.nav-cta:hover {
  filter: brightness(0.95);
  text-decoration: none !important;
}

.nav-cta.is-disabled,
.btn-primary.is-disabled {
  background: var(--ink-soft) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  cursor: default;
  filter: none !important;
}

.nav-cta.is-disabled:hover,
.btn-primary.is-disabled:hover {
  filter: none !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 80px 24px 72px;
  max-width: var(--max);
  margin: 0 auto;
  color: var(--parchment);
  background: radial-gradient(1200px 700px at 50% -10%, #4a2a6e 0%, var(--plum) 40%, var(--aubergine) 100%);
  border-radius: 0 0 32px 32px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(231, 198, 107, 0.16);
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(17px, 2.5vw, 20px);
  color: #d9c9ee;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  background: linear-gradient(160deg, var(--gold-soft), var(--gold));
  color: var(--plum);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: filter 0.15s, transform 0.1s;
  text-decoration: none;
}

.btn-primary:hover {
  filter: brightness(0.95);
  text-decoration: none;
  transform: translateY(-1px);
  color: var(--plum);
}

.btn-secondary {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #fff;
}

/* Hero screenshot placeholder */
.hero-placeholder {
  max-width: 260px;
  margin: 0 auto;
  border: 2px dashed rgba(231, 198, 107, 0.45);
  border-radius: var(--radius);
  padding: 48px 20px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-placeholder .icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero-placeholder .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-soft);
}

.hero-placeholder .caption {
  font-size: 12.5px;
  color: #c9b8e8;
  margin-top: 4px;
}

/* ---- Section ---- */
.section {
  padding: 72px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.section-alt { background: var(--parchment2); }
.section-alt .section { max-width: 100%; padding: 72px 24px; }
.section-alt .section-inner { max-width: var(--max); margin: 0 auto; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--garnet);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--plum);
}

.section-body {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.6;
}

/* ---- Stat strip ---- */
.diff-strip { background: var(--plum); color: #fff; padding: 56px 24px; }

.diff-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.diff-item { text-align: center; }

.diff-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
}

.diff-label { font-size: 15px; color: rgba(255, 255, 255, 0.75); line-height: 1.45; }

/* ---- Feature cards ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.feature-card {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.feature-icon { font-size: 28px; margin-bottom: 14px; display: block; line-height: 1; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.2px; color: var(--plum); }
.feature-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* ---- Two-column ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; align-items: start; }

.feature-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.feature-list li::before {
  content: '✓';
  color: var(--garnet);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Icon strip ---- */
.icon-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.icon-strip-grid .icon { font-size: 32px; display: block; margin-bottom: 12px; }
.icon-strip-grid h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.2px; color: var(--plum); }
.icon-strip-grid p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

/* ---- Content pages (support, privacy) ---- */
.content-page { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }

.content-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--plum);
}

.content-page .page-sub { font-size: 18px; color: var(--ink-soft); margin-bottom: 48px; }

.content-page h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 48px 0 14px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--plum);
}

.content-page h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.content-page h3 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; color: var(--ink); }
.content-page p { font-size: 16px; color: var(--ink); line-height: 1.7; margin-bottom: 16px; }
.content-page ul, .content-page ol { padding-left: 24px; margin-bottom: 16px; }
.content-page li { font-size: 16px; line-height: 1.65; color: var(--ink); margin-bottom: 6px; }

/* ---- Quick-link cards (support page) ---- */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.quick-link-card {
  background: var(--parchment2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
}

.quick-link-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.quick-link-card .icon { font-size: 28px; margin-bottom: 8px; }
.quick-link-card .title { font-weight: 700; color: var(--plum); margin-bottom: 4px; }
.quick-link-card .desc { font-size: 14px; color: var(--ink-soft); }

/* ---- Contact form ---- */
.contact-form {
  background: var(--parchment2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 32px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--parchment);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--garnet); }

.form-group textarea { min-height: 120px; resize: vertical; }

.form-submit {
  background: linear-gradient(160deg, var(--gold-soft), var(--gold));
  color: var(--plum);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  padding: 12px 24px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: filter 0.15s;
}

.form-submit:hover { filter: brightness(0.95); }

/* ---- Banners (form result states) ---- */
.banner {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 600;
}

.banner-success {
  background: rgba(31, 157, 107, 0.12);
  border: 1px solid #1f9d6b;
  color: #146b48;
}

.banner-error {
  background: rgba(160, 31, 69, 0.1);
  border: 1px solid var(--garnet);
  color: var(--garnet);
}

/* ---- CTA band ---- */
.cta-band { background: var(--plum); color: #fff; text-align: center; padding: 64px 24px; }
.cta-band h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 600; letter-spacing: -0.5px; margin-bottom: 12px; }
.cta-band p { font-size: 18px; opacity: 0.85; margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---- Footer ---- */
.footer { background: var(--aubergine); color: rgba(255, 255, 255, 0.55); padding: 40px 24px; font-size: 14px; }

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo { font-size: 16px; font-weight: 700; color: #fff; text-decoration: none; }
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav-toggle { display: block; }

  .two-col { grid-template-columns: 1fr; }
  .hero { padding: 48px 20px 56px; border-radius: 0 0 20px 20px; }
  .section { padding: 52px 20px; }
  .diff-strip-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 400px) {
  .diff-strip-inner { grid-template-columns: 1fr; }
}
