/* TagPing design system — brand guidelines v1.0 ("Midnight Signal"). Mobile first.
   Midnight is ink and surfaces; Ping Orange is the signal: the ping, one primary action, or one highlight per layout. */
:root {
  /* Brand palette */
  --midnight: #0F1630;
  --midnight-2: #2A3150;
  --ping: #EE4B16;
  --ping-600: #D63F0E;
  --ping-50: #FDE8E0;
  --glow: #F69C7F;
  --ember: #8A3322;
  --paper: #F6F6F2;
  --slate: #4A5068;
  --fog: #DADCE3;
  --drive: #1F55E8;
  --home-green: #097A54;

  /* Semantic tokens used across the app */
  --blue: var(--midnight);
  --blue-600: var(--midnight-2);
  --blue-50: #EEF0F5;
  --blue-100: var(--fog);
  --green: var(--home-green);
  --green-50: #E6F4EE;
  --yellow: #F5B400;
  --yellow-50: #FFF5D6;
  --orange: var(--ping);
  --red: #C2410C;
  --red-50: var(--ping-50);
  --purple: var(--drive);
  --ink: var(--midnight);
  --ink-2: var(--midnight-2);
  --muted: var(--slate);
  --line: var(--fog);
  --bg: var(--paper);
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 22, 48, .05), 0 6px 18px rgba(15, 22, 48, .06);
  --shadow-lg: 0 12px 40px rgba(15, 22, 48, .14);
  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --mono-font: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hindi: 'Mukta', 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
/* Full-height page column: the main area grows so the footer always sits at the bottom of the window. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main, body > .v-wrap { flex: 1 0 auto; }
img, svg { max-width: 100%; }
/* Links are Midnight like the text, so they are underlined to stay distinguishable. */
a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(15, 22, 48, .28); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.015em; }
.hindi { font-family: var(--hindi); font-weight: 500; letter-spacing: 0; line-height: 1.5; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono-font); }
.nowrap { white-space: nowrap; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 480px; margin: 0 auto; }
.medium { max-width: 720px; margin: 0 auto; }

/* Icons */
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; flex-shrink: 0; }
.i-lg { width: 1.6em; height: 1.6em; }
.i-xl { width: 2.4em; height: 2.4em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: transform .05s, box-shadow .15s, background .15s; line-height: 1.2; min-height: 44px; }
.btn { vertical-align: middle; }
.btn:active { transform: translateY(1px); }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--glow); outline-offset: 1px; }
/* Midnight with white text: the standard action. */
.btn-primary { background: var(--midnight); color: #fff; }
.btn-primary:hover { background: var(--midnight-2); }
/* Ping Orange with Midnight text: the single primary action of a layout (brand guidelines §11). */
.btn-ping { background: var(--ping); color: var(--midnight); }
.btn-ping:hover { background: var(--ping-600); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #07644a; }
.btn-yellow { background: var(--yellow); color: #422006; }
.btn-yellow:hover { background: #eab308; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b91c1c; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--paper); border-color: #c6c9d4; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-block { width: 100%; }
.btn-lg { padding: .95rem 1.3rem; font-size: 1.05rem; min-height: 54px; border-radius: 12px; }
.btn-sm { padding: .4rem .75rem; font-size: .875rem; min-height: 34px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.link-btn { background: none; border: 0; color: var(--blue); font: inherit; cursor: pointer; padding: 0; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 12px; }
.card-title h2, .card-title h3 { margin: 0; }
.card-flat { box-shadow: none; }

/* Forms */
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink-2); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field .error, .error-text { font-size: .85rem; color: var(--red); margin-top: 4px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=time], input[type=search], select, textarea {
  width: 100%; padding: .7rem .85rem; font: inherit; color: var(--ink); background: #fff; border: 1px solid #C6C9D4; border-radius: var(--radius-sm); min-height: 46px;
}
textarea { min-height: 96px; resize: vertical; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.check .hint { display: block; font-size: .82rem; color: var(--muted); font-weight: 400; }
.row-2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.otp-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-family: ui-monospace, Menlo, monospace; }
.inline-form { display: inline; }

/* Alerts */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; border: 1px solid; font-size: .95rem; display: flex; gap: .6rem; align-items: flex-start; }
.alert-success { background: var(--green-50); border-color: #bbf7d0; color: #14532d; }
.alert-error { background: var(--red-50); border-color: #fecaca; color: #7f1d1d; }
.alert-info { background: var(--blue-50); border-color: var(--blue-100); color: #0F1630; }
.alert-warn { background: var(--yellow-50); border-color: #fde68a; color: #713f12; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #F6F6F2; color: #2A3150; white-space: nowrap; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-blue { background: var(--blue-100); color: #2A3150; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #F6F6F2; color: #475569; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: #F6F6F2; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #FAFAF7; }
.pagination { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: .9rem; }

/* Stats */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .v { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.stat .k { color: var(--muted); font-size: .85rem; }

.grid { display: grid; gap: 16px; }
/* Cards placed side by side must line up: the stacking gap below only applies to cards in the same column. */
.grid > .card + .card, .row-2 > .card + .card { margin-top: 0; }
.grid-sidebar { align-items: start; }
/* Let grid columns shrink on small screens; wide tables scroll inside .table-wrap instead of widening the page. */
.grid > *, .studio > * { min-width: 0; }
.card-title { flex-wrap: wrap; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-sidebar { grid-template-columns: 2fr 1fr; } }

/* ---------- Public site ---------- */
.site-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.nav { display: flex; gap: .25rem; align-items: center; }
.nav a { color: var(--ink-2); padding: .5rem .7rem; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: #F6F6F2; text-decoration: none; }
.nav .btn-primary { color: #fff; }
.nav-links { display: none; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.menu-toggle { display: inline-flex; }
@media (min-width: 860px) { .menu-toggle { display: none; } }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: 8px 16px 16px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: .7rem .2rem; color: var(--ink); border-bottom: 1px solid #F6F6F2; }

.hero { padding: 48px 0 40px; background: radial-gradient(1200px 400px at 80% -10%, #DADCE3 0%, transparent 60%), radial-gradient(800px 300px at 0% 0%, #f0fdf4 0%, transparent 60%); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } .hero { padding: 80px 0 64px; } }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: 1.15rem; color: #2A3150; max-width: 560px; }
.eyebrow { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; font-size: .8rem; color: var(--blue); background: var(--blue-50); border: 1px solid var(--blue-100); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 18px; color: #2A3150; font-size: .95rem; }
.hero-points span { display: inline-flex; gap: .4rem; align-items: center; }
.hero-points .i { color: var(--green); }

.sticker-mock { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 22px; width: 250px; text-align: center; border: 1px solid var(--line); }
.sticker-mock .b { font-weight: 800; font-size: 1.35rem; }
.sticker-mock .qr { margin: 10px auto; width: 170px; height: 170px; }
.sticker-mock .qr svg { width: 100%; height: 100%; }
.sticker-mock .s { font-size: .78rem; color: var(--muted); }
.sticker-mock .c { font-weight: 800; color: var(--blue); letter-spacing: .05em; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 340px; }
.phone-mock { position: absolute; right: 0; bottom: 0; width: 210px; background: #0F1630; border-radius: 30px; padding: 10px; box-shadow: var(--shadow-lg); display: none; }
@media (min-width: 1000px) { .phone-mock { display: block; } .hero-visual .sticker-mock { transform: translateX(-70px) rotate(-4deg); } }
.phone-mock .screen { background: #fff; border-radius: 22px; padding: 14px 12px; font-size: .72rem; }
.phone-mock .screen .t { font-weight: 800; text-align: center; font-size: .85rem; }
.phone-mock .pill { border-radius: 8px; padding: 7px; margin-top: 6px; font-weight: 700; text-align: center; color: #fff; }

.section { padding: 56px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 10px; }
.step h3 { font-size: 1rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

.features { display: grid; gap: 16px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; background: var(--blue-50); color: var(--blue); }
.feature .ic.g { background: var(--green-50); color: var(--green); }
.feature .ic.y { background: var(--yellow-50); color: #a16207; }
.feature .ic.r { background: var(--red-50); color: var(--red); }
.feature .ic.p { background: #f5f3ff; color: var(--purple); }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.flow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.flow .node { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 110px; text-align: center; font-weight: 600; font-size: .9rem; }
.flow .node .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.flow .arrow { color: #8A90A6; }

.pricing { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }
@media (min-width: 760px) { .pricing { grid-template-columns: 1fr 1fr; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; position: relative; display: flex; flex-direction: column; }
.price-card .ticks { flex: 1; }
.price-ribbon { position: absolute; top: -12px; left: 24px; box-shadow: 0 0 0 4px #fff; }
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.ticks { list-style: none; padding: 0; margin: 16px 0 20px; }
.ticks li { display: flex; gap: .5rem; padding: 5px 0; }
.ticks .i { color: var(--green); margin-top: 3px; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: #2A3150; }

.cta-band { border-radius: 22px; padding: 40px 24px; text-align: center; }
.cta-band p { color: #DADCE3; }
.cta-band .btn-light { border: 0; }

.site-footer { background: #0F1630; color: #C6C9D4; padding: 40px 0 28px; margin-top: 40px; font-size: .92rem; }
.site-footer a { color: #DADCE3; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.footer-bottom { border-top: 1px solid #2A3150; margin-top: 28px; padding-top: 18px; color: #8A90A6; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.8em; font-size: 1.3rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.page-head { padding: 36px 0 12px; }

/* ---------- Visitor (scan) pages ---------- */
.v-body { background: linear-gradient(180deg, #EEF0F5 0, #F6F6F2 260px); min-height: 100vh; }
.v-wrap { width: 100%; max-width: 460px; margin: 0 auto; padding: 18px 16px 40px; }
.v-brand { display: flex; justify-content: center; margin-bottom: 14px; }
.v-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 20px; }
.v-card + .v-card { margin-top: 14px; }
.v-title { text-align: center; margin-bottom: 4px; font-size: 1.35rem; }
.v-sub { text-align: center; color: var(--muted); margin-bottom: 16px; }
.vehicle-chip { display: flex; align-items: center; gap: 12px; background: #F6F6F2; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.vehicle-chip .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.vehicle-chip .plate { font-family: ui-monospace, Menlo, monospace; font-weight: 800; letter-spacing: .06em; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 1px 8px; display: inline-block; font-size: .95rem; }
.vehicle-chip .meta { font-size: .85rem; color: var(--muted); }
.action-list { display: grid; gap: 10px; }
.action-list .btn { justify-content: flex-start; padding-left: 16px; }
.action-list form { margin: 0; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-grid .btn { flex-direction: column; gap: 4px; padding: 14px 8px; font-size: .9rem; min-height: 84px; text-align: center; }
.action-grid .btn-light .i { color: var(--blue); }
.privacy-note { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: #166534; background: var(--green-50); border: 1px solid #bbf7d0; border-radius: 12px; padding: 10px 12px; margin-top: 14px; }
.privacy-note .i { margin-top: 2px; }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .8rem; margin: 16px 0 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.reason-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.reason-pills label { cursor: pointer; }
.reason-pills input { position: absolute; opacity: 0; pointer-events: none; }
.reason-pills span { display: inline-block; padding: .5rem .8rem; border: 1px solid #C6C9D4; border-radius: 999px; font-size: .88rem; background: #fff; }
.reason-pills input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.reason-pills input:focus-visible + span { outline: 3px solid var(--blue-100); }
.call-visual { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 16px; }
.call-visual .p { display: flex; flex-direction: column; align-items: center; font-size: .8rem; font-weight: 600; gap: 4px; }
.call-visual .p .c { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.call-visual .mid .c { background: #fff; color: var(--blue); border: 2px solid var(--blue); border-radius: 14px; }
.v-foot { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 18px; }
.v-foot a { color: var(--muted); text-decoration: underline; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 16px; font-size: .95rem; position: relative; word-wrap: break-word; }
.msg .t { display: block; font-size: .72rem; opacity: .7; margin-top: 4px; }
.msg-me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg-them { align-self: flex-start; background: #F6F6F2; color: var(--ink); border-bottom-left-radius: 4px; }
.msg-sys { align-self: center; background: transparent; color: var(--muted); font-size: .82rem; text-align: center; padding: 2px 8px; }
.msg .tag { font-weight: 700; font-size: .78rem; display: block; margin-bottom: 2px; opacity: .9; }
.composer { display: flex; gap: 8px; margin-top: 14px; }
.composer input { flex: 1; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.quick-replies button { font-size: .82rem; }
.status-banner { display: flex; gap: .7rem; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--blue-50); color: #0F1630; margin-bottom: 14px; font-size: .92rem; }
.status-banner.ok { background: var(--green-50); color: #14532d; }
.status-banner.bad { background: var(--red-50); color: #7f1d1d; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: currentColor; flex-shrink: 0; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(238, 75, 22, .45); } 70% { box-shadow: 0 0 0 10px rgba(238, 75, 22, 0); } 100% { box-shadow: 0 0 0 0 rgba(238, 75, 22, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* ---------- App shell (owner + admin) ---------- */
.app-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.app-top .container { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 1rem; }
.app-tabs { background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.app-tabs .container { display: flex; gap: 4px; }
.app-tabs a { padding: 12px 12px; color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }
.app-tabs a:hover { color: var(--ink); text-decoration: none; }
.app-tabs a.active { color: var(--blue); border-bottom-color: var(--blue); }
@media (min-width: 900px) { .app-tabs .container { flex-wrap: wrap; } .app-tabs a { padding: 11px 10px; } }
.app-main { padding: 22px 0 48px; }
.page-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 18px; }
.page-title h1 { font-size: 1.5rem; margin: 0; }
.counter { background: var(--red); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 .4rem; min-width: 18px; text-align: center; line-height: 18px; }
.admin-top { background: #0F1630; }
.admin-top .brand { color: #fff; }
.admin-top .muted { color: #8A90A6; }

.tag-card { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; }
.tag-card:hover { text-decoration: none; border-color: #9AA0B4; box-shadow: var(--shadow); }
.tag-card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.tag-card .grow { flex: 1; min-width: 0; }
.tag-card .title { font-weight: 700; }
.list { display: grid; gap: 10px; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: inherit; }
.list-item:hover { text-decoration: none; background: #FAFAF7; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item.unread { border-left: 4px solid var(--blue); }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty .i { width: 40px; height: 40px; color: #8A90A6; margin-bottom: 8px; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: inline-block; }
.qr-box svg { display: block; width: 180px; height: 180px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.meter { height: 8px; border-radius: 999px; background: #DADCE3; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--blue); }
.danger-zone { border-color: #fecaca; }
.danger-zone h3 { color: var(--red); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; flex: 1; }
.toolbar .btn { flex: none; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }

/* ---------- Business ---------- */
.pt-0 { padding-top: 0; }
.row-3 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row-3 { grid-template-columns: repeat(3, 1fr); } }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.pricing-3 { max-width: 1100px; }
@media (min-width: 900px) { .pricing-3 { grid-template-columns: repeat(3, 1fr); } }
.hero-biz { padding-bottom: 48px; }
.segment-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .segment-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .segment-grid { grid-template-columns: repeat(5, 1fr); } }
.segment-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: inherit; transition: border-color .15s, box-shadow .15s; }
.segment-card:hover { text-decoration: none; border-color: #9AA0B4; box-shadow: var(--shadow); }
.segment-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 10px; }
.segment-card h3 { font-size: 1rem; margin-bottom: 4px; }
.segment-card p { color: var(--muted); font-size: .86rem; flex: 1; margin-bottom: 10px; }
.segment-card .more { color: var(--blue); font-weight: 600; font-size: .9rem; }
.segment-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.pain-list { list-style: none; padding: 0; margin: 0; }
.pain-list li { display: flex; gap: .6rem; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pain-list .i { color: var(--red); margin-top: 3px; }
.biz-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px; font-size: .9rem; max-width: 440px; justify-self: center; width: 100%; }
.biz-panel-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin-bottom: 12px; }
.biz-panel-head .badge { margin-left: auto; }
.biz-panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.biz-panel-stats div { background: var(--bg); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; }
.biz-panel-stats strong { font-size: 1.3rem; }
.biz-panel-stats span { color: var(--muted); font-size: .75rem; }
.biz-panel-row { display: flex; justify-content: space-between; gap: .5rem; padding: 8px 2px; border-bottom: 1px solid #F6F6F2; align-items: center; }
.biz-panel-lookup { margin-top: 12px; background: var(--yellow-50); border: 1px solid #fde68a; border-radius: 10px; padding: 10px; }
.check-grid { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .check-grid { grid-template-columns: 1fr 1fr; } }

.tier-strip { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); margin: 0 0 14px; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; cursor: pointer; color: inherit; }
.tier:hover { text-decoration: none; border-color: #9AA0B4; }
.tier.on { border: 2px solid var(--blue); background: var(--blue-50); }
.tier .q { font-size: .78rem; color: var(--muted); font-weight: 600; }
.tier .p { font-weight: 800; font-size: 1.1rem; }
.tier .o { font-size: .72rem; color: #15803d; font-weight: 700; }
.tier-bulk .o { color: var(--blue); }
.gst-box { border: 1px dashed #C6C9D4; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; }
.gst-box summary { cursor: pointer; font-weight: 600; }

/* Design studio */
.studio { display: grid; gap: 16px; align-items: start; padding-bottom: 24px; }
@media (min-width: 960px) { .studio { grid-template-columns: 1.15fr .85fr; } .studio-preview { position: sticky; top: 80px; order: 2; } }
.studio-controls .card + .card { margin-top: 16px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: .5rem .85rem; border: 1px solid #C6C9D4; border-radius: 999px; font-size: .9rem; background: #fff; cursor: pointer; }
.choice input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--blue-100); }
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type=color] { width: 54px; height: 44px; padding: 2px; border: 1px solid #C6C9D4; border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.file-input { display: block; font: inherit; font-size: .9rem; }
.proof-frame { background: repeating-conic-gradient(#F6F6F2 0% 25%, #fff 0% 50%) 50% / 20px 20px; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; place-items: center; }
.proof-frame svg { width: 100%; max-width: 340px; height: auto; filter: drop-shadow(0 6px 16px rgba(15, 22, 48, .15)); }
.proof-sm { padding: 10px; }
.proof-sm svg { max-width: 180px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); vertical-align: -2px; margin-right: 4px; }

.form-section { font-size: 1rem; margin: 20px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.card > .form-section:first-child, .card > input[type=hidden] + .form-section, .card > h3 + .form-section { margin-top: 4px; padding-top: 0; border-top: 0; }
/* Fields and their submit button on one row; wraps on narrow screens. */
.form-inline { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; }
.form-inline > .field { flex: 1 1 150px; min-width: 0; }
.form-inline > .btn { margin-bottom: 14px; min-height: 46px; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: 12px; }

.proof-frame.editing { touch-action: none; outline: none; }
.proof-frame.editing:focus-visible { box-shadow: 0 0 0 3px var(--blue-100); }
.proof-frame.editing svg { filter: none; user-select: none; -webkit-user-select: none; }

/* Anchored sections must not hide under the sticky header. */
[id] { scroll-margin-top: 84px; }
.proof-frame.flash svg { animation: proof-flash .5s ease; }
@keyframes proof-flash { from { transform: scale(.96); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .proof-frame.flash svg { animation: none; } }

/* Templates, style picker & design library */
.small-heading { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.tpl-picker { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); margin-bottom: 16px; }
@media (min-width: 900px) { .tpl-picker { grid-template-columns: repeat(auto-fill, minmax(128px, 150px)); } }
.tpl-card, .style-card { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; color: inherit; cursor: pointer; }
.tpl-card:hover { text-decoration: none; border-color: #9AA0B4; }
.tpl-card.on { border: 2px solid var(--blue); background: var(--blue-50); }
.tpl-thumb { display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; background: repeating-conic-gradient(#F6F6F2 0% 25%, #fff 0% 50%) 50% / 14px 14px; border-radius: 8px; padding: 6px; }
.tpl-thumb svg { width: 100%; height: 100%; }
.tpl-name { font-size: .82rem; font-weight: 600; text-align: center; line-height: 1.2; }
.style-picker { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); padding: 2px 0 6px; }
.style-option { display: flex; }
.style-option input { position: absolute; opacity: 0; pointer-events: none; }
.style-card { width: 100%; height: 100%; justify-content: flex-start; }
.style-option input:checked + .style-card { border: 2px solid var(--blue); background: var(--blue-50); }
.style-option input:focus-visible + .style-card { outline: 3px solid var(--blue-100); }
.design-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.design-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.design-card .tpl-thumb { padding: 14px; }
.design-card .tpl-thumb:hover { outline: 2px solid #9AA0B4; }
.design-meta { min-width: 0; }
.design-meta .btn-row { gap: .4rem; }
.batch-design { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.batch-design .tpl-thumb { width: 130px; flex: none; }
.batch-design .grow { flex: 1; min-width: 190px; }

/* Quotes */
.quote-doc { padding: 28px; }
.quote-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; border-bottom: 2px solid var(--ink); padding-bottom: 16px; }
.quote-meta h1 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: 6px; }
.kv-tight { grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .9rem; }
.quote-to { margin-top: 16px; }
.quote-totals { display: flex; justify-content: flex-end; margin-top: 14px; }
.quote-totals .kv { min-width: 260px; align-items: baseline; }
.quote-totals .kv dd { text-align: right; }
.quote-totals .total { font-size: 1.25rem; }
.quote-proof { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote-proof > div:last-child { flex: 1; min-width: 200px; }
.quote-notes { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.bank-details { white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; background: #fff; border: 1px solid var(--blue-100); border-radius: 8px; padding: 8px 10px; margin: 8px 0 0; }
.quote-lines input { min-height: 40px; padding: .45rem .6rem; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font-size: .82rem; }

@media (max-width: 640px) {
  .quote-doc { padding: 16px; }
  .quote-doc .table th:first-child, .quote-doc .table td:first-child { display: none; }
  .quote-doc .table th, .quote-doc .table td { padding: 8px; }
  .quote-totals .kv { min-width: 0; width: 100%; grid-template-columns: 1fr auto; }
}

/* Order tracking */
.tracker { list-style: none; display: flex; padding: 0; margin: 8px 0 0; counter-reset: t; }
.tracker li { flex: 1; text-align: center; font-size: .78rem; color: var(--muted); text-transform: capitalize; position: relative; padding-top: 22px; }
.tracker li .dot { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; background: #C6C9D4; z-index: 1; }
.tracker li::before { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: #C6C9D4; }
.tracker li:first-child::before { display: none; }
.tracker li.done { color: var(--ink); font-weight: 600; }
.tracker li.done .dot, .tracker li.done::before { background: var(--green); }

/* Admin & portal */
.pipeline { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pipeline a { padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: .88rem; font-weight: 600; text-transform: capitalize; display: inline-flex; gap: .35rem; align-items: center; }
.pipeline a:hover { text-decoration: none; border-color: #9AA0B4; }
.pipeline a.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.member-ref-form { display: flex; gap: 6px; min-width: 190px; }
.member-ref-form input[type=text] { min-height: 36px; padding: .35rem .6rem; }
.verified-org { display: flex; gap: .5rem; align-items: center; font-size: .88rem; color: #166534; background: var(--green-50); border: 1px solid #bbf7d0; border-radius: 12px; padding: 8px 12px; margin: -6px 0 14px; }

@media print {
  .site-header, .site-footer, .app-top, .app-tabs, .btn, .no-print, .flash, .alert { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; }
  .page-head { padding-top: 0; }
}


/* =====================================================================
   Brand layer — TagPing guidelines v1.0
   ===================================================================== */

/* Wordmark: lowercase Bricolage Grotesque ExtraBold, tracking −45, the ping on the i (master artwork). */
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--midnight); text-decoration: none !important; line-height: 1; flex-shrink: 0; }
.wordmark { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.045em; line-height: 1; white-space: nowrap; color: inherit; padding-top: .12em; }
.wm-i { width: .286em; height: 1.1em; overflow: visible; margin-right: -.045em; vertical-align: baseline; }
.wm-ring { stroke: var(--wm-ring, var(--glow)); }
.wm-ping { stroke: var(--ping); }
.wm-dot { fill: var(--ping); }
.brand-rev { color: #F6F6F2; --wm-ring: var(--ember); }
.brand-suffix { font-family: var(--font); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); padding-top: .3rem; }
.brand-rev .brand-suffix { color: #B9BED0; }
.v-brand .wordmark { font-size: 32px; }

/* Navigation */
.site-header { background: rgba(255, 255, 255, .94); }
.site-header .container { height: 68px; }
.nav a, .mobile-menu a, .app-tabs a, .pipeline a, .site-footer a, .tag-card, .list-item, .segment-card, .tpl-card, .tier, .design-card a, .choice span { text-decoration: none; }
.nav a { color: var(--midnight-2); font-weight: 500; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { color: var(--midnight); font-weight: 700; }
.app-tabs a.active { color: var(--midnight); border-bottom-color: var(--ping); }
.admin-top { background: var(--midnight); }

/* Ripple pattern: decorative arcs, only ever on Midnight (§9). */
.on-midnight { background-color: var(--midnight); color: #F6F6F2; }
.ripple-bg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23EE4B16' stroke-width='22' stroke-linecap='round'%3E%3Cpath d='M40 300 A260 260 0 0 1 560 300' opacity='.10'/%3E%3Cpath d='M110 300 A190 190 0 0 1 490 300' opacity='.16'/%3E%3Cpath d='M180 300 A120 120 0 0 1 420 300' opacity='.24'/%3E%3C/g%3E%3Ccircle cx='300' cy='300' r='52' fill='%23EE4B16' opacity='.32'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 900px 900px; background-position: right -260px bottom -560px; }

/* Hero (Midnight) */
.hero { background-color: var(--midnight); color: #F6F6F2; padding: 56px 0 56px; }
@media (min-width: 900px) { .hero { padding: 88px 0 80px; } }
.hero h1 { font-weight: 800; font-size: clamp(2.2rem, 5.4vw, 3.6rem); letter-spacing: -.035em; line-height: 1.02; color: #F6F6F2; }
.hero h1 em { color: var(--ping); }
.hero .lead { color: #D5D8E3; font-size: 1.15rem; }
.hero .hindi-line { font-family: var(--hindi); font-weight: 700; font-size: 1.25rem; color: #B9BED0; margin: -.25rem 0 1rem; }
.hero-points { color: #D5D8E3; }
.hero-points .i { color: var(--glow); }
.hero a:not(.btn) { color: #F6F6F2; text-decoration-color: rgba(246, 246, 242, .4); }
.hero .eyebrow { background: transparent; border-color: #2A3256; color: #D5D8E3; }
.hero .btn-light { background: transparent; color: #F6F6F2; border-color: #2A3256; }
.hero .btn-light:hover { background: rgba(246, 246, 242, .08); border-color: #4A5068; }
.hero .alert { color: var(--midnight); }

/* Eyebrow label: Midnight text with an orange signal icon (orange is never used for small text on white). */
.eyebrow { color: var(--midnight); background: #fff; border-color: var(--fog); letter-spacing: .1em; }
.eyebrow .i { color: var(--ping); }

/* Brand sticker mock (matches the printed sticker, §10) */
.sticker-mock { width: 248px; padding: 0; overflow: hidden; border-radius: 18px; border: 0; text-align: left; }
.sticker-mock .band { background: var(--midnight); height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.sticker-mock .band .wordmark { font-size: 22px; color: #fff; --wm-ring: var(--ember); }
.sticker-mock .pill { background: var(--ping); color: var(--midnight); border-radius: 999px; padding: 3px 9px; font-weight: 700; font-size: 11px; letter-spacing: .08em; }
.sticker-mock .body { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 14px 10px; }
.sticker-mock .qr { margin: 0; width: 150px; height: 150px; }
.sticker-mock .s { font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--midnight); }
.sticker-mock .h { font-family: var(--hindi); font-size: .78rem; color: var(--slate); }
.sticker-mock .foot { border-top: 1px solid var(--fog); padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--slate); }
.sticker-mock .c { font-family: var(--mono-font); font-weight: 700; font-size: 13px; color: var(--midnight); letter-spacing: 0; }
.phone-mock { background: #050913; }
.phone-mock .pill { color: var(--midnight); }

/* Sections, steps, features */
.section-alt { background: #fff; }
.section-head h2 { font-weight: 800; letter-spacing: -.03em; }
.step .n { background: var(--midnight); font-family: var(--display); }
.step:first-child .n { background: var(--ping); color: var(--midnight); }
.feature .ic.y { color: var(--midnight); }
.feature .ic.r { color: #9A2E0B; }
.feature .ic.p { background: #E8EEFD; }
.flow .arrow { color: #8A90A6; }
.price { font-family: var(--display); }
.price-card.featured { border-color: var(--midnight); }
.cta-band { background-color: var(--midnight); color: #F6F6F2; background-position: right -300px bottom -600px; overflow: hidden; }
.cta-band p { color: #D5D8E3; }
.cta-band h2 { font-weight: 800; }
.cta-band .btn-ghost { color: #F6F6F2; }
.cta-band .btn-ghost:hover { background: rgba(246, 246, 242, .08); }

/* Footer (Midnight) */
.site-footer { background: var(--midnight); color: #B9BED0; }
.site-footer a { color: #F6F6F2; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--glow); }
.site-footer h4 { color: #F6F6F2; font-family: var(--display); letter-spacing: -.01em; }
.footer-bottom { border-top-color: #2A3256; color: #B9BED0; }
.footer-contact { font-style: normal; display: grid; gap: .45rem; margin-top: 1rem; font-size: .9rem; line-height: 1.5; }
.footer-contact span, .footer-contact a { display: inline-flex; gap: .5rem; align-items: flex-start; }
.footer-contact .i { margin-top: .2em; color: var(--glow); }
.tagline { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.tagline em { font-style: normal; color: var(--ping); }

/* Scan page (§11): orange = the one primary action; reason tiles on light tints */
.v-body { background: var(--paper); }
.v-card { border-radius: 22px; }
.v-title { font-weight: 800; letter-spacing: -.03em; }
.vehicle-chip .plate { font-family: var(--mono-font); border-color: var(--midnight); }
.vehicle-chip .ic { background: var(--paper); color: var(--midnight); }
.action-grid .btn { background: var(--paper); border-color: transparent; color: var(--midnight); font-weight: 700; }
.action-grid .btn:hover { background: #ECECE6; }
.action-grid .btn .i { color: var(--midnight); }
.action-grid .tone-yellow { background: #FFF5D6; }
.action-grid .tone-yellow:hover { background: #FFEDB8; }
.action-grid .tone-red { background: var(--ping-50); color: #9A2E0B; }
.action-grid .tone-red:hover { background: #FBD7C9; }
.action-grid .tone-red .i { color: #9A2E0B; }
.privacy-note { color: var(--midnight); background: #fff; border-color: var(--fog); }
.privacy-note .i { color: var(--home-green); }
.v-foot { color: var(--slate); }

/* Codes, IDs and OTPs use JetBrains Mono */
.otp-input, .table .mono, .kv .mono, code { font-family: var(--mono-font); }
.badge-blue { background: #E4E6EE; color: var(--midnight); }
.alert-info { background: #EEF0F5; border-color: var(--fog); color: var(--midnight); }
.table th { background: var(--paper); }
.pulse { color: var(--ping); }
/* Mock-ups sit on the Midnight hero but are light surfaces: reset their text colour. */
.hero .sticker-mock, .hero .phone-mock .screen, .hero .biz-panel { color: var(--midnight); }
.phone-mock .screen .t { font-family: var(--display); }

/* =====================================================================
   Brand v2.0 — product family (Car · Bike · Luggage), product pages, motion
   ===================================================================== */
:root { --violet: #5B3FD9; --violet-600: #4B31C2; --violet-tint: #EEEAFC; --violet-ink: #3B2A99; }
.badge-violet { background: var(--violet-tint); color: var(--violet-ink); }
.text-violet { color: var(--violet); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-car { background: var(--ping); } .dot-bike { background: var(--drive); } .dot-luggage { background: #8D78FF; }

/* Hero refinements */
.hero .descriptor { font-size: 1.2rem; color: #D5D8E3; margin: -.1rem 0 .35rem; }
.product-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 22px; }
.product-chips a { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid #2A3256; border-radius: 999px; padding: .4rem .85rem; color: #F6F6F2; font-weight: 600; font-size: .92rem; text-decoration: none; transition: border-color .2s, background .2s; }
.product-chips a:hover { border-color: #4A5068; background: rgba(246, 246, 242, .05); }

/* Hero visual: car sticker + luggage tag, with the ping pulse */
.duo-visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.duo-visual .sticker-mock { position: relative; z-index: 2; transform: rotate(-5deg) translate(-104px, -44px); }
.duo-visual .lug-mock { position: absolute; z-index: 3; right: -36px; bottom: -34px; transform: rotate(4deg); }
@media (max-width: 1180px) and (min-width: 900px) { .duo-visual .sticker-mock { transform: rotate(-5deg) translate(-70px, -44px); } .duo-visual .lug-mock { right: -8px; } }
@media (max-width: 899px) {
  .duo-visual { min-height: 0; padding: 12px 0 8px; }
  .duo-visual .sticker-mock { transform: rotate(-4deg); }
  .duo-visual .lug-mock { position: relative; right: auto; bottom: auto; transform: rotate(3deg); max-width: 100%; }
  .duo-visual .sticker-mock + .lug-mock { margin-top: -40px; transform: rotate(3deg) translateX(28px); }
}
@media (max-width: 420px) { .lug-mock { width: 280px; grid-template-columns: 104px 1fr; } .lug-mock .qrside svg { width: 104px; height: 104px; } }

.lug-mock { width: 300px; height: 190px; display: grid; grid-template-columns: 112px 1fr; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); color: var(--midnight); }
.lug-mock .panel { background: var(--violet); color: #fff; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.lug-mock .panel .wordmark { font-size: 20px; color: #fff; --wm-ring: #fff; }
.lug-mock .panel .wm-ping { stroke: #fff; } .lug-mock .panel .wm-dot { fill: #fff; }
.lug-mock .panel strong { font-family: var(--display); font-size: 1.05rem; line-height: 1.05; margin-top: 8px; }
.lug-mock .panel small { font-size: .62rem; color: #E4DEFF; line-height: 1.3; }
.lug-mock .panel::before { content: ""; position: absolute; left: 5px; top: 72px; width: 6px; height: 38px; border-radius: 4px; background: #fff; }
.lug-mock .qrside { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; }
.lug-mock .qrside svg { width: 118px; height: 118px; }
.lug-mock .code { font-family: var(--mono-font); font-weight: 700; color: var(--violet); font-size: .85rem; }

/* The ping: three soft rings that expand from a mark (motion only where it carries meaning). */
.ping-pulse { position: absolute; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--ping); pointer-events: none; }
.ping-pulse::before, .ping-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--ping); animation: ping-ring 2.8s cubic-bezier(.2, .6, .3, 1) infinite; }
.ping-pulse::after { animation-delay: 1.4s; }
@keyframes ping-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(7); opacity: 0; } }
.duo-visual .ping-pulse { left: 16%; top: 8%; }

/* Product family cards */
.family { display: grid; gap: 18px; }
@media (min-width: 860px) { .family { grid-template-columns: 1fr 1fr; } }
.family-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.family-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #C6C9D4; }
.family-band { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 18px 22px; color: #fff; }
.family-band h3 { margin: 0; font-size: 1.35rem; color: #fff; }
.family-band .i { width: 26px; height: 26px; }
.band-car { background: var(--midnight); } .band-car .i { color: var(--ping); }
.band-luggage { background: var(--violet); }
.band-bike { background: var(--drive); }
.family-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.family-body .tagline { font-size: 1.45rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .82rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: var(--paper); color: var(--midnight); }
.chip-red { background: var(--ping-50); color: #9A2E0B; }
.chip-violet { background: var(--violet-tint); color: var(--violet-ink); }
.chip-yellow { background: #FFF5D6; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .9rem; margin: 0; }
.spec dt { color: var(--slate); } .spec dd { margin: 0; font-weight: 600; }
.family-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.family-price { font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.family-price small { font-family: var(--font); font-weight: 500; font-size: .85rem; color: var(--slate); }
.family-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-top: 16px; }
.family-mini .swatch-lg { width: 40px; height: 40px; }

/* Steps (3) */
.steps-3 { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .steps-3 { grid-template-columns: repeat(3, 1fr); } }
.step3 { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; position: relative; }
.step3 .num { font-family: var(--mono-font); font-weight: 700; color: var(--slate); font-size: .85rem; }
.step3 .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); margin: 10px 0 12px; }
.step3 h3 { margin-bottom: 6px; }
.step3 p { color: var(--slate); margin: 0; }

/* Two scan experiences (phone mock-ups, §12) */
.scan-duo { display: grid; gap: 28px; justify-items: center; }
@media (min-width: 860px) { .scan-duo { grid-template-columns: 1fr 1fr; } }
.phone { width: 290px; background: #0B1022; border-radius: 40px; padding: 11px; box-shadow: var(--shadow-lg); }
.phone .scr { background: #fff; border-radius: 30px; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; }
.phone .scr-body { padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.phone .scr-head { text-align: center; padding: 22px 16px 14px; }
.phone .scr-head .wordmark { font-size: 24px; }
.phone .scr-head h4 { font-family: var(--display); font-size: 1.15rem; margin: 10px 0 4px; line-height: 1.15; }
.phone .scr-head p { font-size: .76rem; margin: 0; }
.phone .scr-violet { background: var(--violet); color: #fff; }
.phone .scr-violet .wordmark { color: #fff; --wm-ring: #fff; }
.phone .scr-violet .wm-ping { stroke: #fff; } .phone .scr-violet .wm-dot { fill: #fff; }
.phone .scr-violet p { color: #E4DEFF; }
.mock-btn { border-radius: 12px; padding: 11px; text-align: center; font-weight: 700; font-size: .88rem; }
.mock-btn.ping { background: var(--ping); color: var(--midnight); }
.mock-btn.mid { background: var(--midnight); color: #fff; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mock-tile { border-radius: 10px; padding: 9px 6px; font-size: .74rem; font-weight: 700; text-align: center; background: var(--paper); }
.mock-tile.y { background: #FFF5D6; } .mock-tile.r { background: var(--ping-50); color: #9A2E0B; }
.mock-row { border-radius: 10px; padding: 9px 11px; font-size: .78rem; font-weight: 600; background: var(--violet-tint); color: var(--violet-ink); }
.mock-label { text-align: center; font-size: .66rem; font-weight: 700; letter-spacing: .1em; color: var(--slate); text-transform: uppercase; margin-top: 2px; }
.mock-foot { font-size: .64rem; color: var(--slate); text-align: center; padding: 10px; }
.phone-caption { text-align: center; margin-top: 12px; font-size: .92rem; }
.mock-plate { display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 10px; padding: 8px 10px; font-size: .72rem; color: var(--slate); }
.mock-plate b { font-family: var(--mono-font); color: var(--midnight); border: 2px solid var(--midnight); border-radius: 5px; padding: 0 5px; font-size: .78rem; }

/* Luggage band (violet) */
.lug-band { background: var(--violet); color: #fff; border-radius: 26px; padding: 40px 28px; display: grid; gap: 28px; align-items: center; overflow: hidden; position: relative; }
@media (min-width: 900px) { .lug-band { grid-template-columns: 1.1fr .9fr; padding: 56px; } }
.lug-band h2 { color: #fff; font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.02; letter-spacing: -.035em; }
.lug-band h2 em { font-style: normal; color: #D9D0FF; }
.lug-band p { color: #E4DEFF; }
.lug-band .hindi { color: #fff; font-weight: 700; font-size: 1.15rem; }
.lug-band .steps-mini { display: grid; gap: 10px; margin: 18px 0 22px; }
.lug-band .steps-mini div { display: flex; gap: 12px; align-items: flex-start; }
.lug-band .steps-mini b { font-family: var(--mono-font); background: rgba(255, 255, 255, .14); border-radius: 8px; padding: 1px 8px; }
.lug-band .btn-light { background: #fff; color: var(--violet-ink); border: 0; }
.lug-band .btn-ghost { color: #fff; }
.lug-band .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.lug-band .lug-mock { margin: 0 auto; transform: rotate(-3deg); }

/* Product pages */
.product-hero { padding: 56px 0; }
@media (min-width: 900px) { .product-hero { padding: 84px 0 76px; } }
.product-hero.is-luggage { background: var(--violet); color: #fff; }
.product-hero.is-luggage h1 em { color: #D9D0FF; }
.product-hero.is-luggage .lead, .product-hero.is-luggage .descriptor { color: #ECE8FF; }
.product-hero.is-luggage .eyebrow { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.product-hero.is-luggage .eyebrow .i { color: #fff; }
.product-hero.is-luggage .hero-points { color: #ECE8FF; }
.product-hero.is-luggage .hero-points .i { color: #fff; }
.product-hero.is-luggage .btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.product-hero .price-line { margin-top: 16px; font-size: .95rem; }
.product-hero .price-line strong { font-family: var(--display); font-size: 1.5rem; }
.reason-tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .reason-tiles { grid-template-columns: repeat(4, 1fr); } }
.reason-tile { border-radius: 16px; padding: 18px 12px; text-align: center; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--paper); }
.reason-tile .i { width: 28px; height: 28px; }
.reason-tile.y { background: #FFF5D6; } .reason-tile.r { background: var(--ping-50); color: #9A2E0B; } .reason-tile.v { background: var(--violet-tint); color: var(--violet-ink); }
.spec-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.spec-card .spec { font-size: .95rem; gap: 8px 18px; }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* My tags list (owner dashboard) */
.swatch-lg { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.tag-card-alert { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }

/* Buy page: product picker */
.product-picker { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 10px; }
.product-option input { position: absolute; opacity: 0; pointer-events: none; }
.product-card { display: flex; flex-direction: column; gap: 4px; height: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px 12px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.product-card:hover { border-color: #9AA0B4; }
.product-option input:checked + .product-card { border: 2px solid var(--midnight); box-shadow: var(--shadow); }
.product-luggage input:checked + .product-card { border-color: var(--violet); }
.product-option input:focus-visible + .product-card { outline: 3px solid var(--glow); }
.product-thumb { height: 104px; display: grid; place-items: center; background: var(--paper); border-radius: 10px; padding: 6px; margin-bottom: 6px; }
.product-thumb svg { max-height: 92px; width: auto; }
.product-icon { color: var(--drive); }
.product-name { font-family: var(--display); font-weight: 700; }
.product-line { font-size: .8rem; color: var(--slate); }
.product-price { font-size: .85rem; margin-top: auto; }

/* Luggage scan page (§12): violet header, message first */
.v-luggage { background: var(--violet-tint); }
.v-card-luggage { padding: 0; overflow: hidden; }
.lug-head { background: var(--violet); color: #fff; text-align: center; padding: 22px 20px 20px; }
.lug-head .brand { color: #fff; --wm-ring: #fff; }
.lug-head .wm-ping { stroke: #fff; } .lug-head .wm-dot { fill: #fff; }
.lug-head .v-title { color: #fff; margin: 12px 0 6px; }
.lug-head p { color: #E4DEFF; margin: 0; font-size: .92rem; }
.lug-body { padding: 18px 20px 20px; }
.ic-luggage { background: var(--violet-tint) !important; color: var(--violet) !important; }
.update-list { display: grid; gap: 8px; }
.update-list form { margin: 0; }
.update-btn { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--violet-tint); color: var(--violet-ink); border: 0; border-radius: 12px; padding: 13px 14px; font: inherit; font-weight: 700; cursor: pointer; text-align: left; min-height: 48px; transition: background .15s, transform .05s; }
.update-btn:hover { background: #E2DCFB; }
.update-btn:active { transform: translateY(1px); }
.update-btn span { flex: 1; }
.update-btn .go { opacity: .5; }

/* Scroll reveal: content is visible by default; only enhanced when JS confirms motion is welcome. */
.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion [data-reveal-delay="1"] { transition-delay: .08s; } .motion [data-reveal-delay="2"] { transition-delay: .16s; } .motion [data-reveal-delay="3"] { transition-delay: .24s; }
.btn-ping { transition: transform .12s, box-shadow .2s, background .15s; }
.btn-ping:hover { box-shadow: 0 6px 18px rgba(238, 75, 22, .32); }
@media (prefers-reduced-motion: reduce) {
  .ping-pulse::before, .ping-pulse::after { animation: none; opacity: 0; }
  .family-card, .family-card:hover { transition: none; transform: none; }
}

.lug-band .eyebrow .i { color: #fff; }
.lug-band .lug-mock, .product-hero.is-luggage .lug-mock { box-shadow: 0 0 0 2px rgba(255, 255, 255, .45), 0 18px 48px rgba(20, 10, 70, .35); }
