/* Obsidian Detailing gift cards. Same system as the customer quote page (crm/quote-site/public/quote.css):
   warm grey ground, light Source Serif headings, Supreme body, square-cornered uppercase buttons,
   one dark object on the page (the card), one sticky bar with a single action. */
:root {
  color-scheme: light;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Supreme", "Helvetica Neue", Arial, sans-serif;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --bg: #f7f7f5; --fg: #141416; --mute: #6c6c72; --surface: #ffffff; --soft: #f1f0ed; --line: #e4e3e0; --line-strong: #cfcdc9;
  --accent: #3d395f; --good: #2f7a4a; --champ: #b89a5a; --champ-soft: #f6f0e3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--bg); }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; color: var(--fg); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 400; margin: 0; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 720px; margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.eyebrow { font-weight: 600; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--champ); }
.mute { color: var(--mute); }
.stars { color: #e9a93a; letter-spacing: 1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 15px 18px; font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; background: var(--fg); color: #fff; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn.quiet { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn .spark { color: #e3c98f; }

.top .wrap { display: flex; justify-content: space-between; align-items: center; padding-block: 18px; }
.logo { height: 34px; width: auto; }
.top a.tel { font-size: 14px; font-weight: 600; text-decoration: none; }

.page { padding-bottom: 130px; }
.hero { padding-block: 14px 8px; display: grid; gap: 16px; }
.hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 9vw, 58px); line-height: 1.02; letter-spacing: -0.02em; }
.hero p { font-size: 17px; color: #3a3a3f; max-width: 54ch; }
.proof { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--mute); }
.proof b { color: var(--fg); font-weight: 600; }

/* The card itself: the one dark object on the page */
.card-stage { margin-top: 26px; perspective: 1200px; }
.gcard { position: relative; aspect-ratio: 3 / 2; width: 100%; max-width: 560px; margin: 0 auto; border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 70px -40px rgba(10,10,12,0.75), 0 2px 0 rgba(255,255,255,0.4) inset; transform: rotateX(4deg); transition: transform 0.4s ease; }
.gcard img { width: 100%; height: 100%; object-fit: cover; }
.gcard .val { position: absolute; right: 6.5%; bottom: 10%; text-align: right; color: #f4f2ed; }
.gcard .val small { display: block; font-size: clamp(9px, 1.9vw, 11px); letter-spacing: 0.22em; text-transform: uppercase; color: #d8c08a; font-weight: 600; margin-bottom: 4px; }
.gcard .val b { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 10vw, 60px); line-height: 1; letter-spacing: -0.02em; }
.gcard .for { position: absolute; left: 6.5%; bottom: 10%; color: rgba(244,242,237,0.72); font-size: clamp(11px, 2.4vw, 13px); }
@media (prefers-reduced-motion: no-preference) { .gcard.bump { animation: bump 0.35s ease; } }
@keyframes bump { 40% { transform: rotateX(4deg) scale(1.015); } }

.sec { margin-top: 48px; display: grid; gap: 16px; }
.sec-h { display: grid; gap: 8px; }
.sec-h h2 { font-family: var(--serif); font-size: clamp(28px, 7vw, 38px); line-height: 1.08; letter-spacing: -0.01em; }
.sec-h p { color: var(--mute); max-width: 56ch; }

.amounts { display: grid; gap: 10px; }
.amt { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.amt .dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); position: relative; }
.amt[aria-checked="true"] { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.amt[aria-checked="true"] .dot { background: var(--fg); box-shadow: none; }
.amt[aria-checked="true"] .dot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.amt .t { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.amt .d { display: block; font-size: 14px; color: var(--mute); margin-top: 2px; }
.amt .p { font-family: var(--serif); font-size: 26px; line-height: 1; }
.pill { display: inline-block; background: var(--fg); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; }
.note { font-size: 13.5px; color: var(--mute); }

.steps { display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--fg); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.step b { display: block; font-weight: 600; }
.step span { font-size: 14.5px; color: var(--mute); }

.trust { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.trust h4 { font-family: var(--serif); font-size: 21px; }
.trust p { font-size: 14px; color: var(--mute); margin-top: 4px; }
.trust img { width: 84px; height: auto; }

.faq { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--mute); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; font-size: 14.5px; color: var(--mute); }

.foot { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13px; color: var(--mute); }

.bar { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.92); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.bar .what { min-width: 0; font-size: 13px; color: var(--mute); line-height: 1.3; }
.bar .what b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--fg); line-height: 1.15; }
.bar .btn { white-space: nowrap; }
.pay { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--mute); margin-top: 3px; }

/* thank-you page */
.done { padding-block: 30px 40px; display: grid; gap: 20px; }
.done h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 8.5vw, 52px); line-height: 1.04; letter-spacing: -0.02em; }
.done .lede { font-size: 17px; color: #3a3a3f; max-width: 54ch; }
.status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.status .ic { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.status.wait .ic { border: 2px solid var(--line-strong); border-top-color: var(--fg); animation: spin 0.9s linear infinite; }
.status.ok .ic { background: var(--good); position: relative; }
.status.ok .ic::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.status.warn .ic { background: var(--champ); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .status.wait .ic { animation: none; } }
