/* SwiftPrint prelaunch. Tokens mirror web.swiftprint/app/globals.css (oklch → hex
   so older Android browsers and Opera Mini render the same colours).
   Rule carried over from the storefront: neutral chrome, one accent (primary);
   the logo and the "artwork" are where colour lives. */

:root {
  --bg: #f8f8f8;
  --card: #ffffff;
  --fg: #171717;
  --muted: #f2f2f2;
  --muted-fg: #5c5c5c;
  --border: #dfdfdf;
  --input: #8a8a8a;
  --primary: #003c9c;
  --primary-hover: #00307f;
  --primary-fg: #fafafa;
  --accent: #e9f1fe;
  --accent-fg: #053482;
  --success: #0f7a3d;
  --danger: #b42318;
  --ink: #0b1b3a;          /* the dark CTA band */
  --ink-fg: #f2f5fb;
  --ink-muted: #b9c4da;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 12px 32px -12px rgb(0 32 96 / .22);
  --radius: 10px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --card: #1c1c1c;
    --fg: #f2f2f2;
    --muted: #262626;
    --muted-fg: #a3a3a3;
    --border: #333333;
    --input: #707070;
    --primary: #71a4fc;
    --primary-hover: #93baff;
    --primary-fg: #0b1220;
    --accent: #1f2a3c;
    --accent-fg: #cbdfff;
    --success: #4ade80;
    --danger: #ff8a80;
    --ink: #0d1a33;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--primary); color: var(--primary-fg); border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--primary-fg); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.wrap-narrow { max-width: 760px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-fg); }
.btn-light { background: #fff; color: #0b1b3a; }
.btn-light:hover { background: #e9f1fe; color: #0b1b3a; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--muted); color: var(--fg); }
.btn-whatsapp { background: #128c4a; color: #fff; }
.btn-whatsapp:hover { background: #0e7a40; color: #fff; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .btn-label::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; border-radius: 8px; }
.brand img { height: 40px; width: auto; }
@media (prefers-color-scheme: dark) {
  /* The wordmark's navy disappears on near-black; lift it onto a chip. */
  .brand img, .site-footer img { background: #fff; border-radius: 8px; padding: 2px 6px; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 48px 0 64px; }
.hero::before {
  /* Soft wash of the logo's palette behind the art; the chrome stays neutral. */
  content: ""; position: absolute; inset: -20% -10% auto 40%; height: 120%;
  background:
    radial-gradient(40% 40% at 70% 30%, rgb(59 166 245 / .16), transparent 70%),
    radial-gradient(35% 35% at 85% 60%, rgb(232 33 125 / .12), transparent 70%),
    radial-gradient(30% 30% at 60% 70%, rgb(252 186 40 / .14), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 80px 0 96px; } .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg);
  font-size: .875rem; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(5 52 130 / .45); } 70% { box-shadow: 0 0 0 8px rgb(5 52 130 / 0); } 100% { box-shadow: 0 0 0 0 rgb(5 52 130 / 0); } }

h1 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.25rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.035em;
}
.lede { margin-top: 20px; max-width: 34rem; font-size: 1.125rem; color: var(--muted-fg); }
@media (min-width: 960px) { .lede { font-size: 1.1875rem; } }

/* ── Waitlist form ──────────────────────────────────────── */
.waitlist { margin-top: 28px; max-width: 34rem; }
.field-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) {
  .field-row { flex-direction: row; gap: 0; padding: 5px; background: var(--card); border: 1px solid var(--input); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
  .field-row:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent), var(--shadow); }
  .field-row input { border: 0 !important; box-shadow: none !important; background: transparent !important; }
  .field-row input:focus-visible { outline: none; }
}
input[type="email"], input[type="text"], input[type="tel"], select {
  width: 100%; min-height: 48px; padding: 0 14px;
  font: 400 1rem var(--font); color: var(--fg);
  background: var(--card); border: 1px solid var(--input); border-radius: var(--radius);
}
.field-row input { flex: 1; min-width: 0; font-size: 1.0625rem; }
input::placeholder { color: var(--muted-fg); opacity: 1; }
input:focus-visible, select:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
input[aria-invalid="true"] { border-color: var(--danger); }
.field-row:has(input[aria-invalid="true"]) { border-color: var(--danger); }
.field-error { margin-top: 10px; color: var(--danger); font-size: .9375rem; font-weight: 500; }
.form-note { margin-top: 12px; font-size: .875rem; color: var(--muted-fg); }
.form-note a { color: inherit; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Hero art: the order card ───────────────────────────── */
.hero-art { display: flex; justify-content: center; }
.order-card {
  width: 100%; max-width: 440px;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
  transform: rotate(-1.2deg);
}
.artwork {
  position: relative; height: 210px;
  background:
    linear-gradient(135deg, rgb(59 166 245 / .10), rgb(232 33 125 / .08) 50%, rgb(252 186 40 / .10)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgb(0 0 0 / .025) 14px 15px),
    var(--muted);
  display: grid; place-items: center;
}
.bizcard {
  position: absolute; width: 230px; height: 132px; border-radius: 8px; background: #fff;
  box-shadow: 0 2px 4px rgb(0 0 0 / .08), 0 14px 28px -10px rgb(0 0 0 / .3);
}
.bizcard-back { transform: translate(26px, 16px) rotate(7deg); background: linear-gradient(120deg, #003c9c, #2a62c9); }
.bizcard-front { transform: rotate(-4deg); padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; }
.bizcard-front img { width: 92px; height: auto; }
.bizcard-lines span { display: block; height: 7px; border-radius: 4px; background: #e6e6e6; }
.bizcard-lines span:first-child { width: 62%; background: #1f2b44; height: 8px; }
.bizcard-lines span + span { margin-top: 7px; width: 44%; }
.order-body { padding: 20px 22px 22px; }
.order-title { font-weight: 700; font-size: 1.0625rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.chips li { font-size: .8125rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--muted); color: var(--fg); border: 1px solid var(--border); }
.price-row { margin-top: 16px; padding: 14px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-label { font-size: .8125rem; color: var(--muted-fg); }
.price-value { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.02em; }
.price-blur { filter: blur(6px); user-select: none; }
.price-tag { font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); white-space: nowrap; }
.tracker { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; font-size: .9375rem; }
.tracker li { display: flex; align-items: center; gap: 10px; color: var(--muted-fg); }
.tracker .tick { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex: none; }
.tracker .done { color: var(--fg); }
.tracker .done .tick { background: var(--primary); border-color: var(--primary); }
.tracker .done .tick::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid var(--primary-fg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tracker .now { color: var(--fg); font-weight: 600; }
.tracker .now .tick { border-color: var(--primary); }
.tracker .now .tick::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 104px 0; } }
.section-tint { background: var(--card); border-block: 1px solid var(--border); }
.section-head { max-width: 46rem; margin-bottom: 40px; }
.kicker { font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
h2 { margin-top: 10px; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem); font-weight: 800; letter-spacing: -0.03em; }
.section-lede { margin-top: 14px; font-size: 1.125rem; color: var(--muted-fg); }
h3 { font-size: 1.1875rem; font-weight: 700; }

.compare { display: grid; gap: 16px; }
@media (min-width: 800px) { .compare { grid-template-columns: 1fr 1fr; gap: 24px; } }
.compare-col { padding: 28px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); }
.compare-col ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.compare-col li { position: relative; padding-left: 32px; }
.compare-col li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; }
.compare-old h3 { color: var(--muted-fg); }
.compare-old li { color: var(--muted-fg); }
.compare-old li::before { background: var(--muted); border: 1px solid var(--border); }
.compare-old li::after { content: ""; position: absolute; left: 6px; top: 12px; width: 9px; height: 2px; background: var(--muted-fg); }
.compare-new { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow); }
.compare-new li::before { background: var(--primary); }
.compare-new li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px; border: solid var(--primary-fg); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.steps li { padding: 26px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: var(--primary-fg); font-weight: 800; font-size: 1.0625rem; }
.steps h3 { margin-top: 18px; }
.steps p { margin-top: 8px; color: var(--muted-fg); }

.catalogue { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 520px) { .catalogue { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .catalogue { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.catalogue li {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; font-weight: 600;
}
.catalogue svg { width: 36px; height: 36px; padding: 7px; flex: none; border-radius: 10px; background: var(--accent); stroke: var(--accent-fg); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.who { display: grid; gap: 16px; }
@media (min-width: 900px) { .who { grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; } }
.who-card { padding: 28px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.who-card p { margin-top: 10px; color: var(--muted-fg); }
.who-lead { background: var(--accent); border-color: transparent; }
.who-lead h3 { color: var(--accent-fg); }
.who-lead p { color: var(--fg); }

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 0; font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border: solid var(--muted-fg); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--muted-fg); max-width: 40rem; }

/* ── CTA band ───────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; padding: 80px 0; background: var(--ink); color: var(--ink-fg); text-align: center; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(30% 60% at 10% 100%, rgb(232 33 125 / .28), transparent 70%),
    radial-gradient(30% 60% at 90% 0%, rgb(59 166 245 / .28), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta h2 { margin: 0; color: #fff; }
.cta p { margin-top: 14px; color: var(--ink-muted); font-size: 1.125rem; }
.cta .waitlist { margin: 28px auto 0; text-align: left; }
.waitlist-on-dark .field-row { background: #fff; border-color: transparent; }
.waitlist-on-dark .field-row input { color: #171717; background: #fff; }
.waitlist-on-dark .field-row input::placeholder { color: #5c5c5c; }
.waitlist-on-dark .btn-light { background: #003c9c; color: #fff; }
.waitlist-on-dark .btn-light:hover { background: #00307f; color: #fff; }
.waitlist-on-dark .field-error { color: #ffb4ab; }
@media (max-width: 479px) {
  .waitlist-on-dark input { border-color: transparent; }
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { padding: 48px 0 24px; border-top: 1px solid var(--border); background: var(--card); }
.footer-inner { display: grid; gap: 32px; }
@media (min-width: 640px) { .footer-inner { grid-template-columns: 1fr auto; } }
.site-footer img { height: 36px; width: auto; }
.footer-tag { margin-top: 12px; color: var(--muted-fg); font-size: .9375rem; }
.footer-h { margin: 0; font-size: .875rem; font-weight: 700; letter-spacing: 0; }
.footer-links { list-style: none; margin: 6px 0 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted-fg); text-decoration: none; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .875rem; color: var(--muted-fg); }

/* ── Joined dialog ──────────────────────────────────────── */
.joined {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 20px;
  background: var(--card); color: var(--fg); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .5);
}
.joined::backdrop { background: rgb(8 14 30 / .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.joined[open] { animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.joined-inner { position: relative; padding: 32px 24px 24px; }
@media (min-width: 520px) { .joined-inner { padding: 40px 36px 32px; } }
.joined-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); }
.joined-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--primary-fg); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.joined h2 { margin-top: 18px; font-size: 1.75rem; }
.joined h2:focus { outline: none; }
.joined-sub { margin-top: 8px; color: var(--muted-fg); overflow-wrap: anywhere; }
.joined-sub strong { color: var(--fg); font-weight: 600; }
.joined-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted-fg); cursor: pointer; }
.joined-close:hover { background: var(--muted); color: var(--fg); }
.joined-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.profile { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.profile fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.profile legend { padding: 0; font-weight: 700; font-size: 1.0625rem; }
.optional { font-weight: 400; color: var(--muted-fg); }
.q-label { display: block; margin: 16px 0 8px; font-size: .9375rem; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--input); font-size: .9375rem; font-weight: 500; transition: background-color .15s, border-color .15s; }
.pills label:hover span { background: var(--muted); }
.pills input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.pills input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.profile-grid { display: grid; gap: 0 16px; }
@media (min-width: 520px) { .profile-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted-fg) 50%), linear-gradient(135deg, var(--muted-fg) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.hint { margin-top: 6px; font-size: .8125rem; color: var(--muted-fg); }
.profile-actions { display: flex; gap: 10px; margin-top: 20px; }
.profile-saved { margin-top: 12px; color: var(--success); font-weight: 600; }

.share { margin-top: 24px; padding: 18px; border-radius: 14px; background: var(--muted); }
.share p { font-weight: 600; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.share .btn-ghost { background: var(--card); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%);
  padding: 12px 18px; border-radius: 12px; background: var(--fg); color: var(--bg); font-weight: 600; box-shadow: var(--shadow);
}

/* ── Plain content pages (privacy) ──────────────────────── */
.prose { padding: 56px 0 80px; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin: 0 0 8px; }
.prose h2 { font-size: 1.375rem; margin-top: 36px; }
.prose p, .prose li { color: var(--muted-fg); margin-top: 12px; }
.prose ul { padding-left: 20px; }
.prose .updated { font-size: .875rem; }
