/* Tap Card styles. Quiet luxury: charcoal, warm cream, a thin gold accent. */

@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/PlayfairDisplay.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #1c1a17;
  --paper: #fbf8f1;
  --cream: #efe8da;
  --line: #e3dccd;
  --muted: #6b6458;
  --gold: #a8823a;
  --gold-deep: #8a6a2c;
  --error: #a3261b;
  --radius: 14px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Gurmukhi", "Noto Sans Devanagari", "Noto Nastaliq Urdu", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; }

/* The card */
.card {
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  padding-bottom: env(safe-area-inset-bottom);
}

.hero {
  position: relative;
  height: 200px;
  background:
    linear-gradient(180deg, rgba(28, 26, 23, 0.1) 0%, rgba(28, 26, 23, 0.75) 100%),
    url("/art/banner.jpg") center / cover no-repeat,
    radial-gradient(120% 100% at 50% 0%, #4a4033 0%, #2a251f 45%, var(--ink) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.logo {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.photo {
  position: absolute;
  left: 50%;
  bottom: -74px;
  width: 152px;
  height: 152px;
  margin-left: -76px;
  border-radius: 50%;
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 1px var(--gold), 0 12px 28px rgba(28, 26, 23, 0.25);
  object-fit: cover;
  background: var(--cream);
  z-index: 1;
}

.who { padding: 90px 24px 4px; text-align: center; }
.who h1 { font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.15; }
.title { margin: 6px 0 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.license { margin: 2px 0 0; color: var(--gold-deep); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.langs { margin: 14px 0 0; font-size: 15px; line-height: 1.7; }
.langs span { display: inline-block; }
.langs-en { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* Buttons */
.actions { display: grid; gap: 10px; padding: 20px 20px 4px; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: 700 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-gold { width: 100%; background: var(--gold-deep); color: #fff; }
.btn-gold:disabled { opacity: 0.6; cursor: wait; }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; display: inline-flex; }

/* Call, text, WhatsApp, email */
.quicks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 18px 16px 8px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 700; }
.quick .ic { box-sizing: content-box; padding: 15px; border-radius: 50%; background: var(--cream); }

/* Links */
.section-h { padding: 18px 24px 6px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.rows { list-style: none; margin: 0 16px; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.rows li + li { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; text-decoration: none; }
.row-text { display: flex; flex-direction: column; min-width: 0; }
.row-text strong { font-size: 15px; }
.row-text small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--ink); }
.ic-tiktok { background: #000; }
.ic-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ic-facebook { background: #1877f2; }
.ic-snapchat { background: #fffc00; color: #000; }
.ic-star { background: var(--gold); }
.ic-globe { background: #2f4858; }
.ic-pin { background: #b8442f; }

/* Send me your info */
.swap { margin: 22px 16px 0; padding: 22px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); scroll-margin-top: 16px; }
.swap h2 { font-family: var(--serif); font-size: 24px; }
.lead { margin: 6px 0 16px; color: var(--muted); font-size: 14px; }
.field { display: block; margin: 0 0 14px; padding: 0; border: 0; }
.field > span, .field > legend { display: block; margin-bottom: 6px; padding: 0; font-size: 14px; font-weight: 700; }
.field em { color: var(--muted); font-style: normal; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.4 var(--sans);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(168, 130, 58, 0.25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--paper); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 4px 0 14px; }
.form-error { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #fbeae7; color: var(--error); font-size: 14px; font-weight: 600; }
.swap-done { text-align: center; padding: 8px 0; }
.swap-done h3 { font-family: var(--serif); font-size: 24px; }
.swap-done p { color: var(--muted); margin: 6px 0 16px; }

.foot { padding: 28px 24px 36px; text-align: center; color: var(--muted); font-size: 12px; }
.foot p { margin: 2px 0; }

/* Plain pages: leads, signatures, QR, notices */
.plain { max-width: 560px; margin: 0 auto; padding: 32px 20px 48px; }
.plain.wide { max-width: 760px; }
.plain h1 { font-family: var(--serif); font-size: 30px; }
.leads { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lead-item { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.lead-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.lead-top time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.lead-meta { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.lead-note { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-size: 14px; white-space: pre-wrap; }
.lead-actions { display: flex; gap: 8px; margin-top: 12px; }
.steps { padding-left: 20px; font-size: 15px; }
.steps li { margin: 4px 0; }
.sig { margin: 14px 0 24px; }
.sig h2 { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.sig-preview, .sig-plain { margin: 0 0 10px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow-x: auto; }
.sig-plain { font: 500 14px/1.6 var(--sans); white-space: pre-wrap; }
.copied { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; padding: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; }
.copied:not(:empty) { padding: 10px 18px; }
.qr-page { text-align: center; }
.qr-box { width: min(78vw, 360px); margin: 0 auto 20px; }
.qr-box svg { display: block; width: 100%; height: auto; }

/* Fold-out steps (leads page, signature builder) */
.guide { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 16px; }
.guide + .guide { margin-top: -4px; }
.guide summary { padding: 12px 0; font-weight: 700; cursor: pointer; }
.guide ol { margin: 0 0 14px; padding-left: 20px; font-size: 14px; }
.guide li { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}

code { padding: 2px 6px; border-radius: 6px; background: var(--cream); font: 600 14px ui-monospace, Menlo, monospace; word-break: break-all; }
