:root {
  --ink: #102723;
  --muted: #63716d;
  --paper: #f4f1e9;
  --surface: #fffdf8;
  --line: #d9ded8;
  --teal: #19d3a2;
  --teal-dark: #0b7d65;
  --lime: #d9ff6a;
  --shadow: 0 28px 80px rgba(10, 38, 32, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header {
  height: 78px;
  padding: 0 clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 241, 233, .9);
  border-bottom: 1px solid rgba(16, 39, 35, .12);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 850; letter-spacing: -.8px; text-decoration: none; }
.brand > span:last-child > span { color: var(--teal-dark); }
.brand-mark { width: 28px; height: 28px; position: relative; display: inline-block; transform: rotate(45deg); }
.brand-mark i { position: absolute; width: 14px; height: 14px; border: 4px solid var(--teal-dark); border-radius: 3px; }
.brand-mark i:first-child { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.brand-mark i:last-child { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.header-link { font-size: 14px; font-weight: 750; text-decoration: none; border-bottom: 1px solid var(--ink); padding: 8px 0; }

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  padding: clamp(56px, 7vw, 104px) clamp(20px, 7vw, 112px);
  overflow: hidden;
  position: relative;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; max-width: 740px; z-index: 2; }
.eyebrow, .step-kicker { font-size: 12px; font-weight: 850; letter-spacing: 1.8px; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; }
.eyebrow span { width: 8px; height: 8px; border-radius: 99px; background: var(--teal); box-shadow: 0 0 0 5px rgba(25, 211, 162, .16); }
.hero h1 { margin: 0; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 7.3vw, 112px); font-weight: 400; letter-spacing: -5px; line-height: .88; }
.hero h1 em { font-weight: 400; color: var(--teal-dark); }
.hero-copy > p { max-width: 610px; margin: 34px 0 30px; color: #485b56; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.primary-link { width: fit-content; display: flex; align-items: center; gap: 28px; padding: 17px 20px 17px 25px; color: #fff; background: var(--ink); text-decoration: none; border-radius: 5px; font-weight: 780; box-shadow: 0 12px 28px rgba(16, 39, 35, .18); }
.primary-link span { display: grid; place-items: center; width: 35px; height: 35px; color: var(--ink); background: var(--lime); border-radius: 3px; font-size: 20px; }
.hero-notes { margin-top: 27px; display: flex; flex-wrap: wrap; gap: 18px 28px; color: #63716d; font-size: 13px; }

.hero-visual { min-height: 520px; display: grid; place-items: center; position: relative; }
.hero-visual::before { content: ""; width: 540px; height: 540px; position: absolute; border-radius: 50%; background: #d6ff70; filter: blur(.2px); }
.hero-orbit { position: absolute; border: 1px solid rgba(16, 39, 35, .2); border-radius: 50%; }
.orbit-one { width: 650px; height: 350px; transform: rotate(30deg); }
.orbit-two { width: 650px; height: 350px; transform: rotate(-28deg); }
.mini-placard { width: 250px; height: 375px; position: relative; z-index: 2; padding: 28px 25px; color: #fff; background: #123c34; border-radius: 18px; box-shadow: 0 40px 80px rgba(16, 39, 35, .28); transform: rotate(7deg); overflow: hidden; }
.mini-placard::before { content: ""; width: 180px; height: 180px; position: absolute; right: -90px; top: -70px; border: 45px solid var(--teal); border-radius: 50%; opacity: .55; }
.mini-top { font-size: 10px; letter-spacing: 2px; font-weight: 900; position: relative; }
.mini-placard strong { display: block; margin-top: 16px; font-family: Georgia, serif; font-size: 37px; line-height: .92; font-weight: 400; position: relative; }
.fake-qr { width: 145px; height: 145px; margin: 20px auto 12px; padding: 11px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background-color: #fff; background-image: repeating-conic-gradient(#123c34 0 25%, #fff 0 50%); background-size: 18px 18px; border-radius: 8px; }
.fake-qr span { width: 35px; height: 35px; background: #fff; border: 8px solid #123c34; z-index: 1; }
.mini-name { text-align: center; font-size: 11px; letter-spacing: 1.8px; font-weight: 800; }
.float-pill { position: absolute; z-index: 3; padding: 11px 16px; background: #fff; border: 1px solid rgba(16, 39, 35, .14); border-radius: 99px; font-size: 12px; font-weight: 850; box-shadow: 0 12px 28px rgba(16, 39, 35, .12); }
.pill-one { top: 17%; right: 2%; transform: rotate(7deg); }
.pill-two { left: 2%; bottom: 18%; transform: rotate(-6deg); }

.generator, .models, .result-section { padding: clamp(68px, 8vw, 112px) clamp(20px, 7vw, 112px); }
.generator { color: #f8fbf8; background: var(--ink); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 55px; }
.section-heading h2 { margin: 11px 0 0; font-family: Georgia, serif; font-size: clamp(42px, 5.5vw, 72px); font-weight: 400; letter-spacing: -2.7px; line-height: 1; }
.section-heading > p { max-width: 330px; margin: 0; color: #aebbb7; line-height: 1.55; }
.section-heading.compact > p { color: var(--muted); }
.step-kicker { color: var(--teal); }

.pix-form { display: grid; grid-template-columns: repeat(12, 1fr); gap: 27px 18px; }
.field { grid-column: span 4; }
.field-type { grid-column: span 4; }
.field-key { grid-column: span 8; }
.field label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .3px; }
.field label span { color: #8da09b; font-weight: 550; }
.field input, .field select { width: 100%; height: 58px; padding: 0 17px; color: #eef8f4; background: #183c35; border: 1px solid #31564e; border-radius: 5px; outline: none; transition: border .2s, box-shadow .2s; }
.field input::placeholder { color: #759089; }
.field input:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(25, 211, 162, .13); }
.field input.is-invalid { border-color: #ff8c7d; }
.select-wrap { position: relative; }
.select-wrap::after { content: "⌄"; position: absolute; right: 17px; top: 16px; pointer-events: none; color: var(--teal); }
.field select { appearance: none; cursor: pointer; }
.money-input { display: flex; align-items: center; height: 58px; background: #183c35; border: 1px solid #31564e; border-radius: 5px; overflow: hidden; }
.money-input > span { padding-left: 17px; color: var(--teal); font-weight: 800; }
.money-input input { border: 0; background: transparent; }
.field-error { min-height: 18px; display: block; margin-top: 7px; color: #ffab9f; font-size: 12px; }
.form-action { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; margin-top: 4px; }
.primary-button, .download-button { border: 0; cursor: pointer; font-weight: 850; }
.primary-button { min-width: 280px; padding: 18px 22px; display: flex; justify-content: space-between; color: var(--ink); background: var(--lime); border-radius: 5px; }
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.03); }
#form-status { margin: 0; color: #9eb0ab; font-size: 13px; }

.models { background: #f8f6f0; }
.model-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.model-option { position: relative; min-width: 0; padding: 0; text-align: left; color: inherit; background: transparent; border: 0; cursor: pointer; }
.model-swatch { aspect-ratio: 5 / 6; padding: 13px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 8px; overflow: hidden; position: relative; transition: transform .2s, box-shadow .2s; }
.model-swatch::after { content: ""; width: 90px; height: 90px; position: absolute; right: -38px; top: -38px; border: 23px solid var(--accent); border-radius: 50%; opacity: .55; }
.model-mini-title { max-width: 70%; font-family: Georgia, serif; font-size: 17px; line-height: .95; position: relative; z-index: 1; }
.model-mini-qr { width: 52%; aspect-ratio: 1; align-self: center; background: repeating-conic-gradient(var(--dark) 0 25%, #fff 0 50%) 50% / 10px 10px; border: 7px solid #fff; border-radius: 3px; position: relative; z-index: 1; }
.model-name { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; font-size: 12px; font-weight: 780; }
.model-name span:last-child { width: 18px; height: 18px; display: grid; place-items: center; color: transparent; border: 1px solid #b8c1bd; border-radius: 50%; }
.model-option[aria-checked="true"] .model-swatch { transform: translateY(-4px); box-shadow: 0 15px 28px rgba(16, 39, 35, .18); outline: 3px solid var(--teal-dark); outline-offset: 3px; }
.model-option[aria-checked="true"] .model-name span:last-child { color: #fff; background: var(--teal-dark); border-color: var(--teal-dark); }

.result-section { background: #e8eee8; }
.result-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 22px; transition: opacity .2s; }
.result-grid.is-locked { opacity: .68; }
.download-card { padding: clamp(23px, 3vw, 38px); background: var(--surface); border: 1px solid #d4ddd6; border-radius: 12px; box-shadow: 0 18px 50px rgba(16, 39, 35, .08); }
.card-copy { min-height: 128px; }
.output-tag { color: var(--teal-dark); font-size: 10px; letter-spacing: 1.7px; font-weight: 900; }
.card-copy h3 { margin: 12px 0 7px; font-family: Georgia, serif; font-size: 29px; font-weight: 400; letter-spacing: -.8px; }
.card-copy p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }
.qr-preview-shell { aspect-ratio: 1; max-height: 410px; margin: 8px auto 25px; padding: 24px; display: grid; place-items: center; background: #eef1ec; border-radius: 8px; position: relative; overflow: hidden; }
#qr-output { width: 100%; height: 100%; display: grid; place-items: center; }
#qr-output canvas, #qr-output img { width: 100% !important; height: 100% !important; object-fit: contain; border: 13px solid #fff; }
.locked-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: #eef1ec; }
.locked-placeholder span { width: 68px; height: 68px; display: grid; place-items: center; color: #8ba098; border: 2px dashed #aebdb7; border-radius: 50%; font-size: 30px; }
.result-grid:not(.is-locked) .locked-placeholder { display: none; }
.placard-card { display: grid; grid-template-columns: minmax(190px, .9fr) minmax(230px, 1.1fr); grid-template-rows: auto auto; column-gap: 35px; }
.placard-card .card-copy { grid-column: 1; }
.placard-preview-shell { grid-column: 2; grid-row: 1 / span 2; min-width: 0; display: grid; place-items: center; position: relative; padding: 21px; background: #dce4dc; border-radius: 9px; }
#placard-preview { max-width: 100%; max-height: 570px; width: auto; height: auto; aspect-ratio: 2 / 3; background: #fff; box-shadow: 0 17px 42px rgba(16, 39, 35, .2); }
.size-badge { position: absolute; right: 8px; bottom: 8px; padding: 8px 10px; color: #fff; background: var(--ink); border-radius: 4px; font-size: 10px; }
.size-badge b { color: var(--lime); }
.download-button { width: 100%; min-height: 56px; padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; color: #fff; background: var(--ink); border-radius: 5px; }
.download-button span { color: var(--lime); font-size: 11px; letter-spacing: .7px; }
.download-button:disabled { cursor: not-allowed; opacity: .46; }
.copy-button { width: 100%; margin-top: 10px; padding: 10px; color: var(--teal-dark); background: transparent; border: 0; cursor: pointer; font-size: 12px; font-weight: 800; }
.copy-button:disabled { cursor: not-allowed; opacity: .45; }
.placard-card .download-button { grid-column: 1; align-self: end; }

.how-it-works { padding: clamp(75px, 10vw, 145px) clamp(20px, 7vw, 112px); background: var(--lime); }
.how-it-works .step-kicker { color: var(--teal-dark); }
.how-it-works > h2 { margin: 16px 0 58px; font-family: Georgia, serif; font-size: clamp(46px, 6vw, 80px); font-weight: 400; letter-spacing: -3px; line-height: .98; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(16, 39, 35, .3); }
.steps > div { padding: 28px 28px 0 0; border-right: 1px solid rgba(16, 39, 35, .3); }
.steps > div + div { padding-left: 28px; }
.steps > div:last-child { border: 0; }
.steps b { width: 32px; height: 32px; display: grid; place-items: center; color: var(--lime); background: var(--ink); border-radius: 50%; font-size: 13px; }
.steps h3 { margin: 28px 0 7px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.steps p { margin: 0; color: #52605b; }

footer { padding: 35px clamp(20px, 7vw, 112px); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #d3dcd8; background: var(--ink); font-size: 12px; }
.footer-brand { color: #fff; }
footer p { text-align: center; }
footer a { color: var(--lime); font-weight: 780; text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; padding: 12px 18px; color: #fff; background: var(--ink); border-radius: 6px; box-shadow: var(--shadow); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .25s; font-size: 13px; font-weight: 750; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr .7fr; }
  .hero h1 { font-size: clamp(55px, 8.5vw, 85px); }
  .hero-visual { transform: scale(.86); }
  .model-grid { grid-template-columns: repeat(4, 1fr); }
  .result-grid { grid-template-columns: 1fr; }
  .qr-card { display: grid; grid-template-columns: 1fr 260px; column-gap: 28px; }
  .qr-card .qr-preview-shell { grid-column: 2; grid-row: 1 / span 3; width: 100%; margin: 0; }
}

@media (max-width: 760px) {
  .site-header { height: 66px; }
  .header-link { font-size: 0; }
  .header-link span { font-size: 20px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 62px; }
  .hero h1 { font-size: clamp(54px, 17vw, 84px); letter-spacing: -3px; }
  .hero-visual { min-height: 475px; transform: scale(.82); margin: -25px -60px -45px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 38px; }
  .section-heading h2 { letter-spacing: -2px; }
  .section-heading > p { max-width: 500px; }
  .field, .field-type, .field-key { grid-column: 1 / -1; }
  .form-action { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .model-swatch { padding: 9px; }
  .model-mini-title { font-size: 13px; }
  .qr-card { display: block; }
  .qr-card .qr-preview-shell { width: auto; margin: 8px auto 25px; }
  .placard-card { display: flex; flex-direction: column; }
  .placard-preview-shell { order: 2; margin: 5px 0 22px; }
  .placard-card .download-button { order: 3; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps > div, .steps > div + div { padding: 24px 0; border-right: 0; border-top: 1px solid rgba(16, 39, 35, .3); }
  footer { align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}

@media (max-width: 430px) {
  .hero-notes { flex-direction: column; gap: 8px; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
