/* The Gift of Discovery: plain-CSS port of the Lovable design (same tokens, same spacing). */
:root {
  --radius: 0.25rem;
  --background: oklch(0.985 0.006 95);
  --foreground: oklch(0.24 0.025 165);
  --card: oklch(1 0 0);
  --primary: oklch(0.47 0.07 165);
  --primary-foreground: oklch(0.985 0.006 95);
  --secondary: oklch(0.95 0.015 120);
  --muted-foreground: oklch(0.5 0.02 165);
  --accent: oklch(0.76 0.11 80);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.9 0.015 110);
  --input: oklch(0.88 0.015 110);
  --ring: oklch(0.47 0.07 165);
  --ink: oklch(0.27 0.035 168);
  --ink-foreground: oklch(0.96 0.012 95);
  --gold: oklch(0.72 0.11 78);
  --paper: oklch(0.975 0.018 90);
  --gradient-ink: linear-gradient(100deg, oklch(0.22 0.03 168 / 0.96) 0%, oklch(0.25 0.035 168 / 0.85) 45%, oklch(0.25 0.035 168 / 0.15) 100%);
  --gradient-gold: linear-gradient(135deg, oklch(0.8 0.1 85), oklch(0.65 0.11 70));
  --shadow-certificate: 0 40px 80px -30px oklch(0.2 0.04 168 / 0.45), 0 8px 20px -8px oklch(0.2 0.04 168 / 0.25);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-script: "Pinyon Script", cursive;
}

/* ---- reset (Tailwind preflight essentials) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--background); color: var(--foreground); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; font-family: var(--font-serif); letter-spacing: -0.015em; }
a { color: inherit; text-decoration: inherit; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; background: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---- helpers */
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
.wrap-3xl { max-width: 48rem; margin-inline: auto; padding-inline: 1.5rem; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
.c-primary { color: var(--primary); }
.c-gold { color: var(--gold); }
.bg-secondary { background: var(--secondary); }
.sec { padding-block: 6rem; }
.sec-y { padding-block: 6rem; }
.h2-4xl { margin-top: 1rem; font-size: 2.25rem; line-height: 2.5rem; }
.h2-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.muted-sm { font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.muted-xs { font-size: .75rem; line-height: 1rem; color: var(--muted-foreground); }
.lnk { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.err { font-size: .75rem; line-height: 1rem; color: var(--destructive); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; border-radius: calc(var(--radius) - 2px);
  font-size: .875rem; line-height: 1.25rem; font-weight: 500; height: 2.25rem; padding: .5rem 1rem; transition: background-color .15s, color .15s, opacity .15s; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--ring); }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); }
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 90%, transparent); }
.btn-outline { border: 1px solid var(--input); background: var(--background); box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); }
.btn-outline:hover { background: var(--accent); }
.btn-gold { background-image: var(--gradient-gold); color: var(--ink); font-weight: 600; }
.btn-gold:hover { opacity: .9; }
.btn-outline-light { border: 1px solid color-mix(in oklab, var(--ink-foreground) 60%, transparent); color: var(--ink-foreground); }
.btn-outline-light:hover { background: color-mix(in oklab, var(--ink-foreground) 10%, transparent); }
.btn-lg { height: 2.5rem; padding-inline: 2rem; }
.btn-block { width: 100%; }

/* ---- header */
.site-head { position: sticky; top: 0; z-index: 30; border-bottom-width: 1px; background: color-mix(in oklab, var(--background) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.head-in { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }
.head-logo img { height: 2.5rem; width: auto; }
.head-nav { display: flex; align-items: center; gap: 1.5rem; font-size: .875rem; line-height: 1.25rem; }
.nav-link { display: none; }
.nav-link:hover { color: var(--primary); }

/* ---- hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--ink-foreground); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background-image: var(--gradient-ink); }
.hero-in { position: relative; padding-block: 7rem; }
.hero-h1 { margin-top: 1.25rem; max-width: 42rem; font-size: 3rem; line-height: 1.05; }
.hero-text { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.75rem; color: color-mix(in oklab, var(--ink-foreground) 80%, transparent); }
.hero-btns { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-deadline { margin-top: 1.5rem; font-size: .875rem; line-height: 1.25rem; color: color-mix(in oklab, var(--ink-foreground) 60%, transparent); }

/* ---- why */
.why-head { max-width: 48rem; margin-inline: auto; text-align: center; }
.why-h2 { margin-top: 1rem; font-size: 1.875rem; line-height: 2.25rem; }
.why-grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
.why-card { border-width: 1px; background: var(--card); padding: 2rem; }
.why-card h3 { font-size: 1.5rem; line-height: 2rem; color: var(--primary); }
.why-card p { margin-top: .75rem; font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* ---- sample certificate section */
.cert-sec { display: grid; align-items: center; gap: 3.5rem; }
.cert-sec-text { margin-top: 1.25rem; color: var(--muted-foreground); }
.cert-caption { margin-top: 1rem; text-align: center; font-size: .75rem; line-height: 1rem; color: var(--muted-foreground); }

/* ---- how */
.how-grid { margin-top: 3.5rem; display: grid; gap: 2.5rem; }
.how-step { border-top: 2px solid var(--primary); padding-top: 1.5rem; }
.how-num { font-family: var(--font-serif); font-size: 2.25rem; line-height: 2.5rem; color: var(--gold); }
.how-step h3 { margin-top: .75rem; font-size: 1.25rem; line-height: 1.75rem; }
.how-step p { margin-top: .5rem; font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* ---- pricing */
.pricing { background: var(--ink); color: var(--ink-foreground); padding-block: 6rem; }
.price-grid { margin-top: 2rem; display: grid; gap: 1px; overflow: hidden; background: color-mix(in oklab, var(--ink-foreground) 10%, transparent); }
.price-tile { background: var(--ink); padding: 2rem; }
.price-big { font-family: var(--font-serif); font-size: 3rem; line-height: 1; color: var(--gold); }
.price-text { margin-top: .75rem; color: color-mix(in oklab, var(--ink-foreground) 75%, transparent); }
.price-note { margin-top: 2rem; font-size: .875rem; line-height: 1.25rem; color: color-mix(in oklab, var(--ink-foreground) 60%, transparent); }
.price-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }

/* ---- order */
.order-grid { display: grid; gap: 3rem; }
.order-form { background: var(--card); padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.field-grid { display: grid; gap: 1rem; }
.fld { display: block; font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
.fld > span { display: block; margin-bottom: .375rem; }
.fld .err { margin-top: .375rem; }
.field { width: 100%; border: 1px solid var(--input); background: var(--background); padding: .65rem .8rem; border-radius: var(--radius); font-weight: 400; outline: none; }
.field:focus { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 20%, transparent); }
.field::placeholder { color: var(--muted-foreground); opacity: .8; }
textarea.field { resize: vertical; }
.field.file { padding: .45rem .8rem; font-size: .875rem; }
.field.file::file-selector-button { margin-right: .75rem; border: 0; background: var(--primary); color: var(--primary-foreground); padding: .25rem .75rem; font: inherit; cursor: pointer; }
.qty { display: flex; align-items: center; gap: .75rem; }
.qty-n { width: 2rem; text-align: center; font-family: var(--font-serif); font-size: 1.5rem; line-height: 2rem; }
.totals { border-top-width: 1px; padding-top: 1.25rem; font-size: .875rem; line-height: 1.25rem; }
.totals .row { display: flex; justify-content: space-between; color: var(--muted-foreground); margin-bottom: .25rem; }
.totals .row-accent { color: var(--primary); }
.row-total { display: flex; justify-content: space-between; padding-top: .5rem; font-family: var(--font-serif); font-size: 1.5rem; line-height: 2rem; }
.fs { border-top-width: 1px; display: flex; flex-direction: column; gap: 1rem; }
.legend { padding-top: 1.25rem; font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.75rem; }
.upload { display: flex; flex-direction: column; gap: .5rem; }
.upload-lbl { font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
.upload-ok { font-size: .75rem; line-height: 1rem; color: var(--primary); }
.ack-text { display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); }
.ack-check { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; line-height: 1.625; }
.chk { margin-top: .25rem; width: 1rem; height: 1rem; flex: none; accent-color: var(--primary); cursor: pointer; }
.preview-eyebrow { margin-bottom: 1rem; }

/* ---- order form steps (without JavaScript every step shows, one after the other) */
.steps { display: none; list-style: none; gap: .5rem; }
.js-steps .steps { display: flex; }
.step-tab { flex: 1; display: flex; align-items: center; gap: .5rem; padding-bottom: .6rem; border-bottom: 2px solid var(--border); font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.step-tab b { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 999px; border: 1px solid var(--border); font-weight: 600; flex: none; }
.step-tab.is-on { color: var(--foreground); border-bottom-color: var(--primary); font-weight: 600; }
.step-tab.is-on b, .step-tab.is-done b { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.step { display: flex; flex-direction: column; gap: 1.25rem; }
.js-steps .step:not(.is-on) { display: none; }
.js-steps .step.fs { border-top: 0; }
.js-steps .step .legend:first-child { padding-top: 0; }
.js-only { display: none !important; }
.js-steps .js-only { display: inline-flex !important; }
.js-steps .step-nav.js-only { display: flex !important; }
.step-nav { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; }
.step-nav .btn { min-width: 8rem; }
.pay-later { margin-top: .75rem; font-size: 1rem; line-height: 1.5; color: var(--foreground); }
.sending { border: 1px solid var(--primary); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--background); }
.sending-title { font-weight: 600; font-size: 1rem; }
.sending-text { margin-top: .25rem; font-size: 1rem; line-height: 1.5; }
.bar { margin-top: .75rem; height: .5rem; border-radius: 999px; background: var(--border); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.sending-pct { margin-top: .4rem; font-size: .875rem; }
@media (max-width: 560px) { .step-tab { font-size: 0; gap: 0; justify-content: center; } .step-tab b { font-size: .875rem; } }

/* ---- footer */
.site-foot { background: var(--ink); padding-block: 3rem; font-size: .875rem; line-height: 1.25rem; color: color-mix(in oklab, var(--ink-foreground) 70%, transparent); }
.foot-in > * + * { margin-top: 1.5rem; }
.foot-notice { text-align: justify; line-height: 1.625; }
.foot-notice-t { font-family: var(--font-serif); color: var(--ink-foreground); }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid color-mix(in oklab, var(--ink-foreground) 10%, transparent); padding-top: 1.5rem; }
.foot-logo { height: 3rem; width: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot-nav a:hover { color: var(--gold); }

/* ---- legal pages */
.page { min-height: 100vh; background: var(--background); }
.legal-head { border-bottom-width: 1px; }
.legal-head-in { display: flex; align-items: center; justify-content: space-between; padding-block: 1.5rem; }
.legal-brand { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.75rem; }
.legal-brand em { color: var(--primary); }
.legal-back { font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.legal-back:hover { color: var(--primary); }
.legal-main { padding-block: 4rem; }
.legal-h1 { margin-top: 1rem; font-size: 2.25rem; line-height: 2.5rem; }
.legal-updated { margin-top: 1rem; color: var(--muted-foreground); }
.legal-sections { margin-top: 3rem; }
.legal-sections section + section { margin-top: 2.5rem; }
.legal-sections h2 { font-size: 1.5rem; line-height: 2rem; }
.legal-sections p { margin-top: .75rem; line-height: 1.625; color: var(--muted-foreground); }

/* ---- certificate */
.cert { position: relative; width: 100%; background: var(--paper); padding: 3%; color: var(--ink); box-shadow: var(--shadow-certificate); }
.cert-in { display: flex; flex-direction: column; align-items: center; gap: clamp(0.8rem, 2.2vw, 1.8rem); border: 1px solid color-mix(in oklab, var(--gold) 70%, transparent);
  padding: 4%; text-align: center; outline: 1px solid color-mix(in oklab, var(--gold) 40%, transparent); outline-offset: -8px; }
.cert-top { display: flex; width: 100%; align-items: center; justify-content: space-between; }
.cert-logo { height: clamp(1.6rem, 4vw, 3rem); width: auto; mix-blend-mode: multiply; }
.cert-brand { font-size: clamp(0.45rem, 0.9vw, 0.65rem); color: var(--muted-foreground); }
.cert-mid > * + * { margin-top: .6em; }
.cert-for { font-size: clamp(0.5rem, 1vw, 0.72rem); color: var(--primary); }
.cert-title { font-family: var(--font-serif); font-size: clamp(1.4rem, 4.4vw, 3.2rem); font-weight: 500; line-height: 1; }
.cert-title em { color: var(--primary); }
.cert-name { font-family: var(--font-script); font-size: clamp(1.3rem, 3.6vw, 2.6rem); line-height: 1.25; overflow-wrap: anywhere; }
.cert-body { margin-inline: auto; max-width: 80%; font-size: clamp(0.55rem, 1.1vw, 0.85rem); color: var(--muted-foreground); }
.cert-msg { margin-inline: auto; max-width: 75%; font-family: var(--font-serif); font-size: clamp(0.55rem, 1.1vw, 0.85rem); font-style: italic; overflow-wrap: anywhere; }
.cert-sign { font-family: var(--font-serif); font-size: clamp(0.55rem, 1.1vw, 0.85rem); color: var(--muted-foreground); }
.cert-bottom { display: flex; width: 100%; align-items: flex-end; justify-content: space-between; gap: 1rem; text-align: left; font-size: clamp(0.5rem, 0.95vw, 0.75rem); }
.cert-lbl { font-size: .85em; color: var(--muted-foreground); }
.cert-serif { font-family: var(--font-serif); }
.cert-seal { width: clamp(2.5rem, 7vw, 5rem); height: clamp(2.5rem, 7vw, 5rem); flex: none; }
.cert-right { text-align: right; }
.cert-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; letter-spacing: .05em; }

/* ---- breakpoints (Tailwind sm 640 / md 768 / lg 1024) */
@media (min-width: 640px) {
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .nav-link { display: block; }
  .hero-in { padding-block: 10rem; }
  .hero-h1 { font-size: 4.5rem; }
  .why-h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .why-grid, .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .order-form { padding: 2.5rem; }
}
@media (min-width: 1024px) {
  .cert-sec { grid-template-columns: 1fr 1.4fr; }
  .how-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .order-grid { grid-template-columns: 1.1fr 1fr; }
  .order-preview { position: sticky; top: 7rem; align-self: start; }
}
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } html { scroll-behavior: auto; } }
