:root {
  --navy: #0B1D33;
  --navy-2: #13294A;
  --gold: #C6A55A;        /* on navy only */
  --gold-deep: #8A6F2E;   /* gold text on light grounds */
  --gold-soft: #DFC682;
  --pale: #FBF7EC;
  --wash: #F2E8CE;
  --ink: #0B1D33;
  --muted: #5B6778;
  --line: #E6DFCC;
  --white: #FFFFFF;
  --danger: #A12C2C;
  --ok: #1F6B45;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 29, 51, .06), 0 12px 32px -12px rgba(11, 29, 51, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--pale);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3, .serif { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: -.01em; margin: 0; }
a { color: var(--gold-deep); }
button { font: inherit; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-name { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 20px; letter-spacing: .01em; }

/* ─── Buttons & inputs ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 10px 16px;
  font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-gold { background: var(--gold); color: var(--navy); }       /* navy on gold: 8.4:1 */
.btn-gold:hover { background: var(--gold-soft); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold-deep); }
.btn-danger { background: transparent; color: var(--danger); border-color: #E9C9C9; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }

label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=password], input[type=url], input[type=number], textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
textarea { resize: vertical; min-height: 72px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.alert { border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.alert-error { background: #FBEDED; color: var(--danger); }
.alert-info { background: var(--wash); color: var(--ink); }
.hidden { display: none !important; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--gold-deep);
  animation: spin .8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* ─── Customer-facing shell (checkout, thank-you) ─── */
.shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 32px 16px 48px; }
.shell-head { margin-bottom: 28px; }
.shell-main { width: 100%; max-width: 440px; }
.shell-foot { margin-top: 28px; font-size: 12px; color: var(--muted); text-align: center; }
.shell-foot a { color: var(--muted); }

.product { padding: 28px 28px 24px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-deep); font-weight: 600; }
.product h1 { font-size: 30px; line-height: 1.15; margin-top: 8px; }
.product .desc { color: var(--muted); font-size: 15px; margin: 10px 0 0; white-space: pre-line; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.price-row span { color: var(--muted); font-size: 14px; }
.price { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 600; }

.pay { padding: 22px 28px 26px; border-top: 1px solid var(--line); background: #FDFBF5; border-radius: 0 0 var(--radius) var(--radius); }
#applepaybutton:empty { display: none; }
#applepaybutton { margin-bottom: 10px; }
#googlepaybutton { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 10px; overflow: hidden; }
.pay-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; color: var(--muted); font-size: 14px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 14px; }
.processing { position: fixed; inset: 0; background: rgba(11, 29, 51, .72); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--white); z-index: 50; }
.processing .spinner { width: 28px; height: 28px; border-color: rgba(255,255,255,.25); border-top-color: var(--gold); }

.state { text-align: center; padding: 40px 28px; }
.state h1 { font-size: 30px; margin-bottom: 8px; }
.state p { color: var(--muted); margin: 0; }

.check { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; margin: 0 auto 18px; }
.receipt { margin-top: 22px; text-align: left; border-top: 1px solid var(--line); }
.receipt div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 500; text-align: right; word-break: break-all; }
