:root {
  color-scheme: light;
  --paper: #fff8eb;
  --paper-deep: #faefd9;
  --ink: #26231f;
  --muted: #645e55;
  --sauce: #c8442d;
  --sauce-dark: #a83222;
  --mustard: #dfa52c;
  --line: #e4d8c5;
  --white: #fffdf8;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, textarea { font: inherit; }
:focus-visible { outline: 3px solid #116b56; outline-offset: 4px; }
.skip-link { position: absolute; z-index: 10; top: 0.75rem; left: 0.75rem; padding: 0.7rem 1rem; background: var(--ink); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.topbar { max-width: 1200px; padding: 1.35rem 2rem; margin: auto; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--mustard); color: var(--ink); border-radius: 50% 50% 46% 54%; font-size: 1.2rem; }
.brand-accent { color: var(--sauce); }
.top-note { color: var(--muted); font-size: 0.85rem; }

.hero { max-width: 1200px; min-height: 540px; margin: auto; padding: 5.6rem 2rem 5rem; display: grid; grid-template-columns: 1.03fr 0.97fr; gap: 3.4rem; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 1rem; color: var(--sauce); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.16em; }
.eyebrow-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--mustard); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.045em; }
h1 { max-width: 650px; margin-bottom: 1.25rem; font-size: clamp(3.2rem, 6.2vw, 5.35rem); line-height: 0.99; }
h1 em, .closing h2 em { color: var(--sauce); font-style: normal; }
.intro { max-width: 510px; margin-bottom: 1.8rem; color: var(--muted); font-size: 1.12rem; line-height: 1.75; }
.button { min-height: 3.35rem; padding: 0.86rem 1.3rem; display: inline-flex; justify-content: center; align-items: center; gap: 0.7rem; border: 0; border-radius: 0.5rem; text-decoration: none; font-size: 0.98rem; font-weight: 700; cursor: pointer; transition: transform 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--sauce); color: white; }
.button-primary:hover { background: var(--sauce-dark); }
.small-note { max-width: 380px; margin: 1.1rem 0 0; color: var(--muted); font-size: 0.83rem; line-height: 1.6; }
.hero-art { position: relative; margin: 0; padding: 1rem; transform: rotate(1.2deg); }
.hero-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 1.1rem; }
.hero-art figcaption { margin-top: 0.65rem; color: var(--muted); text-align: center; font-family: var(--serif); font-size: 1.05rem; }
.art-spark { position: absolute; z-index: 1; color: var(--sauce); font-size: 2rem; }
.spark-one { top: 0; right: 0.2rem; transform: rotate(10deg); }
.spark-two { bottom: 3rem; left: 0; color: var(--mustard); font-size: 1.5rem; }

.pix-section { padding: 5.2rem max(2rem, calc((100vw - 1120px) / 2)); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr); gap: clamp(2.5rem, 7vw, 6.5rem); align-items: center; background: var(--paper-deep); }
.pix-intro { max-width: 475px; }
.eyebrow-dark { color: #76531e; }
.pix-intro h2, .how-title h2, .faq-section h2 { margin-bottom: 1.1rem; font-size: clamp(2.4rem, 4.5vw, 3.75rem); line-height: 1.03; }
.pix-intro > p:not(.eyebrow) { color: #4f4941; font-size: 1rem; line-height: 1.8; }
.pix-intro strong { color: var(--ink); }
.recipient { margin-top: 1.8rem; padding-left: 1rem; display: grid; gap: 0.3rem; border-left: 3px solid var(--mustard); }
.recipient-label { color: var(--muted); font-size: 0.78rem; }
.recipient strong { font-size: 1rem; }
.qr-card { width: 100%; max-width: 460px; justify-self: center; padding: clamp(1rem, 3vw, 1.6rem); background: var(--white); border: 1px solid #e8dece; border-radius: 1.15rem; box-shadow: 0 18px 50px rgb(58 44 20 / 9%); }
.qr-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.qr-kicker { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; }
.amount { color: var(--sauce); font-size: clamp(1rem, 2.6vw, 1.35rem); font-weight: 700; white-space: nowrap; }
.qr-image { width: min(100%, 390px); margin: 0 auto; aspect-ratio: 948 / 1138; object-fit: contain; background: #fff; border-radius: 0.35rem; image-rendering: crisp-edges; }
.qr-help { margin: 1rem 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.6; text-align: center; }
.copy-details { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.copy-details summary, .faq-list summary { cursor: pointer; color: var(--sauce-dark); font-weight: 700; }
.copy-details p { margin: 0.8rem 0; color: var(--muted); font-size: 0.85rem; line-height: 1.55; }
.copy-details textarea { width: 100%; min-height: 5.8rem; resize: vertical; padding: 0.75rem; border: 1px solid var(--line); border-radius: 0.4rem; color: var(--ink); background: var(--paper); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.75rem; line-height: 1.5; overflow-wrap: anywhere; }
.button-copy { width: 100%; margin-top: 0.8rem; color: white; background: var(--ink); }
.button-copy:hover { background: #423c34; }
.copy-status { display: block; min-height: 1.4rem; margin-top: 0.35rem; color: #116b56; text-align: center; font-size: 0.85rem; }

.how-section { max-width: 1120px; margin: auto; padding: 5.4rem 2rem; display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 4rem; }
.how-title h2 { font-size: clamp(2.5rem, 4.2vw, 3.6rem); }
.steps { padding: 0; margin: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 0.8rem 0 1.2rem; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.step-number { padding-top: 0.2rem; color: var(--sauce); font-family: var(--serif); font-size: 1.55rem; }
.steps h3 { margin-bottom: 0.3rem; font-size: 1.06rem; }
.steps p { max-width: 550px; margin-bottom: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.65; }

.faq-section { padding: 4.6rem max(2rem, calc((100vw - 900px) / 2)) 5.3rem; background: var(--paper-deep); }
.faq-section h2 { font-size: clamp(2.4rem, 4vw, 3.25rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.faq-list summary { color: var(--ink); font-size: 1rem; }
.faq-list p { max-width: 700px; margin: 0.7rem 0 0; color: var(--muted); font-size: 0.94rem; line-height: 1.7; }

.closing { position: relative; overflow: hidden; padding: 4.5rem 2rem; background: var(--sauce); color: white; text-align: center; }
.closing h2 { margin-bottom: 0.8rem; font-size: clamp(2.35rem, 5vw, 4rem); line-height: 1.06; }
.closing h2 em { color: #ffe5a3; }
.closing p { margin-bottom: 1.5rem; color: #fff0df; }
.closing-star { position: absolute; right: max(5vw, calc((100vw - 1120px) / 2)); top: 1.3rem; color: #ffd37b; font-size: 3rem; transform: rotate(14deg); }
.button-light { background: var(--white); color: var(--sauce-dark); }
.button-light:hover { background: #ffe9cc; }
.footer { max-width: 1200px; min-height: 4.8rem; margin: auto; padding: 1.2rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: 0.79rem; }

@media (max-width: 760px) {
  .topbar { padding: 1rem 1.2rem; }
  .top-note { max-width: 10rem; text-align: right; font-size: 0.75rem; }
  .hero { min-height: auto; padding: 3.6rem 1.25rem 3rem; grid-template-columns: 1fr; gap: 1.4rem; }
  h1 { font-size: clamp(3rem, 13vw, 4.25rem); }
  .intro { font-size: 1.02rem; }
  .hero-art { width: min(100%, 500px); margin: 0 auto; padding: 0.2rem 0.7rem; }
  .pix-section { padding: 3.6rem 1.25rem; grid-template-columns: 1fr; gap: 2rem; }
  .pix-intro { max-width: 620px; }
  .qr-card { max-width: 490px; }
  .how-section { padding: 3.8rem 1.25rem; grid-template-columns: 1fr; gap: 1.5rem; }
  .faq-section { padding: 3.6rem 1.25rem; }
  .closing { padding: 3.5rem 1.25rem; }
  .closing-star { right: 1rem; top: 0.5rem; font-size: 2rem; }
  .footer { padding: 1.2rem 1.25rem; align-items: flex-start; flex-direction: column; gap: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
