/* SpicaPay — site styles */
:root {
  --ivory: #FBFAF7;
  --sand: #F3EFE6;
  --line: #E8E3D8;
  --ink: #0E0E10;
  --night: #0B0D12;
  --night-line: #2A2D35;
  --text: #4A4843;
  --muted: #6E6B64;
  --gold: #9A7433;       /* decorative / large text */
  --gold-text: #7A5A1E;  /* small text on light (≥ 4.5:1) */
  --gold-light: #D4B26A; /* text on dark */
  --stone: #B9B4A8;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: 12px 18px; text-decoration: none;
}
.skip:focus { top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Type */
.eyebrow {
  font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-text); font-weight: 500; margin-bottom: 16px;
}
.eyebrow--dark { color: var(--gold-light); }
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px); line-height: 1.1; letter-spacing: -0.01em;
}
.lede { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 28px;
  font: inherit; font-size: 16px; font-weight: 400; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; border: 1px solid var(--ink);
  transition: background-color .2s, color .2s;
}
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: #2A2A2E; color: var(--ivory); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; color: var(--gold); }
.brand__word { font-size: 26px; font-weight: 300; letter-spacing: -0.01em; line-height: 1; }
.brand__word span { color: #6E6E6E; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__links a:not(.btn) { text-decoration: none; padding: 10px 0; }
.nav__links a:not(.btn):hover { color: var(--gold-text); }
.nav__links .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--ink);
}
@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px 24px 24px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 16px; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 72px 96px; }
@media (min-width: 900px) { .hero { padding-block: 104px 120px; gap: 64px; } }
.hero__copy { flex: 1 1 520px; min-width: 0; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 7vw, 92px); line-height: 1.02; letter-spacing: -0.02em;
}
.hero h1 em { color: var(--gold); }
.hero .lede { margin-top: 28px; font-size: clamp(18px, 1.6vw, 20px); max-width: 540px; }
.hero__ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }

.ticket {
  width: 100%; max-width: 440px; margin: 0; background: var(--night); color: #F3EFE6;
  padding: clamp(24px, 6vw, 36px); box-shadow: 0 30px 60px -30px rgba(11, 13, 18, 0.55);
}
.ticket__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ticket__tag { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }
.ticket__ref { font-size: 13px; color: var(--stone); white-space: nowrap; }
.ticket__amount { margin-top: 28px; font-family: var(--serif); font-size: 40px; line-height: 1.1; }
.ticket__desc { margin-top: 4px; font-size: 14px; color: var(--stone); }
.ticket__rule { margin: 28px 0; height: 1px; background: var(--night-line); }
.ticket__route { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; }
.ticket__route small { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.ticket__route .to { text-align: right; }
.ticket__arrow { width: 40px; height: 20px; color: var(--gold-light); flex: none; }
.ticket__steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; font-size: 15px; }
.ticket__steps li { display: flex; align-items: center; gap: 14px; }
.dot { width: 20px; height: 20px; border-radius: 50%; flex: none; background: var(--gold-light); }
.dot--open { background: transparent; border: 1px solid var(--gold-light); }
.ticket__steps .pending { color: var(--stone); }

/* Sections */
.section { padding-block: 88px; }
@media (min-width: 900px) { .section { padding-block: 120px; } }
.section--sand { background: var(--sand); }
.section--night { background: var(--night); color: #F3EFE6; }

.cols { display: flex; flex-wrap: wrap; gap: 40px 48px; margin-top: 56px; }
.col { flex: 1 1 260px; min-width: 0; border-top: 1px solid var(--ink); padding-top: 24px; }
.col h3, .step h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.col p, .step p { color: var(--text); }

.steps { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 40px 32px; }
.step { flex: 1 1 230px; min-width: 0; }
.step__num { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--gold); margin-bottom: 20px; }

.features {
  margin-top: 56px; display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  background: var(--night-line); border: 1px solid var(--night-line);
}
.feature { background: var(--night); padding: 36px; }
.feature h3 { font-size: 20px; font-weight: 500; color: var(--gold-light); margin-bottom: 10px; }
.feature p { color: var(--stone); }

.corridors { margin-top: 88px; text-align: center; }
.corridors .eyebrow { color: var(--stone); margin-bottom: 24px; }
.corridors__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0;
  font-family: var(--serif); font-size: clamp(26px, 3.6vw, 44px); line-height: 1.4;
}
.corridors__list li + li::before { content: "✦"; color: var(--gold-light); margin: 0 0.5em; font-size: 0.6em; vertical-align: 0.25em; }

.split { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.split > :first-child { flex: 1 1 400px; min-width: 0; }
.split > :last-child { flex: 1 1 480px; min-width: 0; }
.stack { display: grid; gap: 24px; color: var(--text); font-size: 18px; }

/* Invite */
.invite__mark { width: 56px; height: 56px; color: var(--gold); }
.invite h2 { margin: 24px 0 16px; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.invite .lede { font-size: 18px; max-width: 440px; }

.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 400; }
.field input, .field select {
  font: inherit; font-weight: 400; color: var(--ink);
  min-height: 50px; padding: 12px 14px; width: 100%;
  border: 1px solid #A8A397; border-radius: 0; background: var(--ivory);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E0E10' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: #A3261D; }
.field__error { font-size: 13px; color: #A3261D; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13px; color: var(--muted); }
.form__note a { color: var(--gold-text); }
.form .btn { justify-self: start; margin-top: 4px; }
.form__status { font-size: 15px; }
.form__status.is-error { color: #A3261D; }
.thanks { border-top: 1px solid var(--ink); padding-top: 24px; }
.thanks p:first-child { font-family: var(--serif); font-size: 36px; }
.thanks p + p { margin-top: 10px; color: var(--text); }

/* Footer */
.site-footer { background: #FFFFFF; border-top: 1px solid var(--line); }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 40px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--text); }
.footer__links a { text-decoration: none; padding: 10px 0; }
.footer__links a:hover { color: var(--gold-text); }
.footer__legal { flex-basis: 100%; font-size: 13px; color: var(--muted); }

/* Simple pages (privacy, 404) */
.page { padding-block: 72px 112px; max-width: 760px; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 60px); line-height: 1.05; margin-bottom: 24px; }
.page h2 { font-size: 22px; font-weight: 500; margin: 40px 0 10px; }
.page p, .page li { color: var(--text); }
.page p + p { margin-top: 14px; }
.page ul { padding-left: 20px; }
.page .btn { margin-top: 32px; }

@media print {
  .site-header, .nav__toggle, .form { display: none; }
  .section--night { background: #fff; color: #000; }
}
