/* ─────────────────────────────────────────────────────────────
   mangocontact — design system
   Palette: mango orange + leaf green + warm cream
   ───────────────────────────────────────────────────────────── */

/* Self-hosted Inter (variable) — no third-party font CDN */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2-variations'),
       url('/fonts/InterVariable.woff2') format('woff2');
}

:root {
  /* Brand */
  --mango: #FE8302;
  --mango-soft: #FFE9D2;
  --mango-deeper: #E47000;
  --leaf: #518F34;
  --leaf-soft: #E1EFD8;

  /* Surfaces */
  --bg: #FEFEFE;
  --bg-warm: #FCFAF6;
  --card: #FFFFFF;
  --border: #ECE7DD;
  --border-strong: #DDD5C5;

  /* Text */
  --text: #1B1714;
  --text-soft: #4B433D;
  --muted: #8B8378;

  /* Status */
  --danger: #B7341E;
  --danger-hover: #98291A;
  --success: var(--leaf);
  --warn: #B8860B;

  /* Geometry */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(27, 23, 20, .04);
  --shadow: 0 1px 2px rgba(27, 23, 20, .04), 0 12px 28px -12px rgba(254, 131, 2, .12);
  --shadow-lift: 0 1px 2px rgba(27, 23, 20, .05), 0 22px 44px -14px rgba(254, 131, 2, .22);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur: 240ms;
  --dur-slow: 480ms;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body { max-width: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-warm);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  position: relative;
  overflow-x: hidden;
}

/* ── Background layers (grid + orbs + spotlight) ─────────────── */
html { isolation: isolate; }

/* Subtle grid pattern + soft spotlight, fixed behind everything */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 60%),
    linear-gradient(rgba(27, 23, 20, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 23, 20, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  background-position: 0 0, 0 0, 0 0;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 35%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 35%, #000 30%, transparent 90%);
}

/* Floating colored orbs */
body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(110px);
  z-index: -2;
  animation: drift 22s var(--ease) infinite alternate;
}
body::before {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle at 30% 30%, var(--mango) 0%, rgba(254, 131, 2, 0.0) 70%);
  top: -220px;
  right: -160px;
  opacity: 0.55;
  animation-duration: 26s;
}
body::after {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle at 70% 60%, var(--leaf) 0%, rgba(81, 143, 52, 0.0) 70%);
  bottom: -240px;
  left: -200px;
  opacity: 0.42;
  animation-duration: 30s;
  animation-delay: -8s;
}
.bg-orb-extra {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -2;
  border-radius: 50%;
  filter: blur(110px);
  width: 420px;
  height: 420px;
  top: 30%;
  left: 8%;
  background: radial-gradient(circle at 50% 50%, #FFB55E 0%, rgba(255, 181, 94, 0) 70%);
  opacity: 0.32;
  animation: drift 32s var(--ease) infinite alternate;
  animation-delay: -14s;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Page layout (single-column passthrough; ad slots hidden) ─ */
.page-layout {
  display: block;
  width: 100%;
  margin: 0 auto;
}
.ad-slot { display: none !important; }

/* ── Layout container ────────────────────────────────────────── */
.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* Share page: container width tracks the visible step.
   - Form / Code / Ended: 560px (header + footer align with the card)
   - Control (live session): 880px to fit the 2-col layout */
@media (min-width: 960px) {
  .container-wide { max-width: 560px; }
  .container-wide:has(#step-control:not(.hidden)) { max-width: 880px; }
}

/* ── Header / brand ──────────────────────────────────────────── */
/* Fixed, full-width sticky header across all pages */
body { padding-top: 64px; }

.brand {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: 64px;
  background: rgba(252, 250, 246, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand-link { margin-right: auto; }

/* Primary nav links (How it works / FAQ / Blog) */
.brand-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.brand-nav a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.brand-nav a:hover {
  background: var(--mango-soft);
  color: var(--text);
}

/* Auth buttons (Sign in / Sign up) */
.brand-auth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.brand-auth-link,
.brand-auth-cta {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.brand-auth-link {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--card);
}
.brand-auth-link:hover {
  background: var(--mango-soft);
  border-color: var(--border-strong);
}
.brand-auth-cta {
  color: #fff;
  background: var(--mango);
}
.brand-auth-cta:hover {
  background: var(--mango-deeper);
}

/* Hide page-specific top-right CTAs from the new header on all sizes */
.brand-cta,
.brand-secondary { display: none; }

@media (max-width: 860px) {
  .brand-nav { display: none; }
}
@media (max-width: 720px) {
  body { padding-top: 56px; }
  .brand { gap: 8px; padding: 0 12px; height: 56px; min-width: 0; }
  .brand-link { gap: 6px; font-size: 17px; min-width: 0; }
  .brand-logo { width: 26px; height: 26px; }
  .brand-link .wordmark { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-auth-link,
  .brand-auth-cta {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  .brand { padding: 0 10px; gap: 6px; }
  .brand-link .wordmark { display: none; }
  .brand-auth-link, .brand-auth-cta { padding: 0 10px; font-size: 12px; height: 30px; }
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
  min-width: 0;
}
.brand-logo {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-link .wordmark {
  display: inline-block;
  line-height: 1.2;
  padding-bottom: 0.08em;
  font-weight: 400;
  color: var(--text);
}
.brand-link .wordmark strong { font-weight: 700; color: inherit; }
@media (max-width: 520px) {
  .brand-link { font-size: 18px; gap: 8px; }
  .brand-logo { width: 28px; height: 28px; }
}
.brand-secondary {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.brand-secondary:hover {
  color: var(--mango-deeper);
  background: var(--mango-soft);
}

/* Top-right CTA — pill button on desktop, profile icon on mobile */
.brand-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--mango);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  letter-spacing: -0.005em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: 0 1px 2px rgba(27,23,20,.06), 0 8px 18px -8px rgba(254, 131, 2, .55);
}
.brand-cta:hover {
  background: var(--mango-deeper);
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(27,23,20,.06), 0 12px 22px -10px rgba(254, 131, 2, .65);
}
.brand-cta-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}
@media (max-width: 520px) {
  .brand-secondary { font-size: 12px; padding: 6px 10px; }
  .brand-cta {
    padding: 0;
    width: 42px;
    height: 42px;
    justify-content: center;
    border-radius: 50%;
  }
  .brand-cta-icon { width: 20px; height: 20px; }
  .brand-cta-label { display: none; }
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  animation: cardIn 600ms var(--ease-out) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card h3,
.card h2.card-eyebrow {
  margin: 20px 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card p {
  margin: 0 0 16px;
  color: var(--text-soft);
}

.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

.error {
  color: var(--danger);
  font-size: 14px;
  margin: 8px 0 0;
  background: #FBE9E5;
  border: 1px solid #F5C6BC;
  padding: 10px 12px;
  border-radius: 12px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

/* ── OTP code inputs (Person B) ──────────────────────────────── */
.otp-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 22px 0 6px;
}
.otp-input {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-feature-settings: "tnum" 1;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.otp-input:focus {
  outline: none;
  border-color: var(--mango);
  background: #fff;
  box-shadow: 0 0 0 4px var(--mango-soft);
  transform: translateY(-1px);
}

/* ── Emoji choices ───────────────────────────────────────────── */
.emoji-step { margin-top: 24px; animation: fadeUp 400ms var(--ease-out) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.emoji-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.emoji-btn {
  font-size: 46px;
  height: 100px;
  min-height: 84px;
  border: 1.5px solid var(--border-strong);
  background: var(--card);
  border-radius: 18px;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.emoji-btn:hover:not(:disabled) {
  border-color: var(--mango);
  background: var(--mango-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.emoji-btn:active:not(:disabled) { transform: translateY(0); }
.emoji-btn.selected {
  border-color: var(--mango);
  background: var(--mango-soft);
  box-shadow: 0 0 0 4px var(--mango-soft);
}
.emoji-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Contact info display (Person B sees) ────────────────────── */
.contact-name {
  margin: 8px 0 16px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 76px 14px 16px;
  border-radius: 14px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  min-width: 0;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.info-row:hover { background: #fff; border-color: var(--border-strong); }
.info-row.no-copy { padding-right: 16px; }
.info-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.info-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: anywhere;
  text-decoration: none;
  line-height: 1.4;
  white-space: pre-wrap;
}
a.info-value {
  color: var(--mango-deeper);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(254, 131, 2, 0.35);
}
a.info-value:hover { text-decoration-color: var(--mango); }
.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 11px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.copy-btn:hover {
  border-color: var(--mango);
  color: var(--mango-deeper);
  background: var(--mango-soft);
}

/* ── Notes (live messages) ───────────────────────────────────── */
.note-block { margin-top: 20px; }
.note-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.note-input:focus {
  outline: none;
  border-color: var(--mango);
  background: #fff;
  box-shadow: 0 0 0 4px var(--mango-soft);
}
textarea.note-input { resize: vertical; min-height: 60px; line-height: 1.45; }

.owner-note, .viewer-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--leaf-soft);
  border: 1px solid #c5dcb6;
  animation: fadeUp 320ms var(--ease-out) both;
}
.owner-note p, .viewer-note p { margin: 4px 0 0; word-break: break-word; }

/* ── Forms (Person A) ────────────────────────────────────────── */
.field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 14px;
}
form input,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--mango);
  box-shadow: 0 0 0 4px var(--mango-soft);
}
form textarea { resize: vertical; min-height: 48px; }

.duration {
  border: none;
  padding: 0;
  margin: 6px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.duration legend {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
  padding: 0;
  margin-bottom: 6px;
}
.radio {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  margin: 0;
  padding: 10px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.radio:has(input:checked) {
  border-color: var(--mango);
  background: var(--mango-soft);
}
.radio input { accent-color: var(--mango); width: auto; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 80ms var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
  text-decoration: none;
  width: 100%;
  letter-spacing: -0.01em;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: var(--mango);
  color: #fff;
  box-shadow: 0 1px 2px rgba(27,23,20,.06), 0 8px 18px -8px rgba(254, 131, 2, .55);
}
.btn-primary:hover:not(:disabled) {
  background: var(--mango-deeper);
  box-shadow: 0 1px 2px rgba(27,23,20,.06), 0 14px 26px -10px rgba(254, 131, 2, .65);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--mango);
  color: var(--mango-deeper);
  background: var(--mango-soft);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
  margin-top: 18px;
}
.btn-danger:hover { background: var(--danger-hover); }

/* Extension confirmation pulse: scale up → fade to green → fade back */
@keyframes btnExtendPulse {
  0%   { transform: scale(1);    background: var(--card);     border-color: var(--border-strong); color: var(--text); }
  20%  { transform: scale(1.06); background: #e8f7ed;          border-color: #2fa56a;             color: #1f7a4a; }
  60%  { transform: scale(1.02); background: #e8f7ed;          border-color: #2fa56a;             color: #1f7a4a; }
  100% { transform: scale(1);    background: var(--card);     border-color: var(--border-strong); color: var(--text); }
}
.btn-extended {
  animation: btnExtendPulse 2s var(--ease) forwards;
  pointer-events: none;
}
.btn-extended:hover {
  background: #e8f7ed;
  border-color: #2fa56a;
  color: #1f7a4a;
}
@media (prefers-reduced-motion: reduce) {
  .btn-extended { animation: none; background: #e8f7ed; border-color: #2fa56a; color: #1f7a4a; }
}

/* ── FAQ accordion ───────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 8px;
}
.faq-item {
  background: var(--card);
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq-item[open] {
  border-color: var(--mango);
  box-shadow: 0 1px 2px rgba(27,23,20,.04), 0 12px 28px -16px rgba(254, 131, 2, .35);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.4;
}
.faq-chevron {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 220ms var(--ease), border-color var(--dur) var(--ease);
  margin-top: -4px;
}
.faq-item[open] .faq-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
  border-color: var(--mango);
}
.faq-item summary:hover h2 { color: var(--mango-deeper); }
.faq-item summary:hover .faq-chevron { border-color: var(--mango); }
.faq-answer {
  padding: 0 20px 18px;
  animation: faqAnswerIn 240ms var(--ease);
}
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { margin: 8px 0 0; padding-left: 20px; }
@keyframes faqAnswerIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-answer { animation: none; }
  .faq-chevron, .faq-item { transition: none; }
}
.faq-cta {
  margin-top: 36px;
  padding: 24px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 16px;
  text-align: center;
  background: var(--bg-warm);
}
.faq-cta p {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.faq-cta .btn { margin: 0 auto; }
@media (max-width: 520px) {
  .faq-item summary { padding: 16px; }
  .faq-item summary h2 { font-size: 16px; }
  .faq-answer { padding: 0 16px 16px; }
}
.btn-link {
  background: none;
  color: var(--muted);
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 14px;
  width: auto;
  padding: 4px 0;
  transition: color var(--dur) var(--ease);
}
.btn-link:hover { color: var(--mango-deeper); }

/* ── OTP display (Person A's screen) ─────────────────────────── */
.otp-display {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 18px 0 14px;
}
.otp-digit {
  background: var(--bg-warm);
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  padding: 14px 0;
  letter-spacing: 0.02em;
  color: var(--text);
  font-feature-settings: "tnum" 1;
  animation: digitIn 400ms var(--ease-out) both;
}
.otp-digit:nth-child(1) { animation-delay: 0ms; }
.otp-digit:nth-child(2) { animation-delay: 40ms; }
.otp-digit:nth-child(3) { animation-delay: 80ms; }
.otp-digit:nth-child(4) { animation-delay: 120ms; }
.otp-digit:nth-child(5) { animation-delay: 160ms; }
.otp-digit:nth-child(6) { animation-delay: 200ms; }
@keyframes digitIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.otp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.otp-meta .btn { width: auto; padding: 9px 16px; font-size: 14px; }

.emoji-display {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--mango-soft);
  border: 1px solid #fcd7b3;
  border-radius: 16px;
  margin: 8px 0 6px;
}
.emoji-shown {
  font-size: 60px;
  line-height: 1;
  animation:
    emojiAppear 800ms cubic-bezier(0.16, 1, 0.3, 1) 250ms both,
    pulse 2.4s var(--ease) 1100ms infinite;
}
@keyframes emojiAppear {
  0%   { opacity: 0; transform: scale(0.55); filter: blur(6px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* ── Toggle list (Person A's control) ────────────────────────── */
.toggle-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toggle-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px 12px;
  border-radius: 12px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  min-width: 0;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.toggle-row:has(.toggle-switch input:checked) { border-color: #f1cfa9; background: #fff; }
.toggle-row.empty { background: var(--bg-warm); }
.toggle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
}
.toggle-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.toggle-input {
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  background: transparent;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.4;
  transition: color var(--dur) var(--ease);
}
.toggle-input:focus { outline: none; }
.toggle-input::placeholder { color: var(--muted); font-style: italic; font-weight: 400; font-size: 14px; }
textarea.toggle-input { resize: vertical; min-height: 22px; line-height: 1.45; padding: 0; }

.switch, .toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}
.switch .slider::before, .toggle-switch .slider::before {
  height: 20px;
  width: 20px;
  top: 3px;
  left: 3px;
}
.switch input:checked + .slider::before, .toggle-switch input:checked + .slider::before {
  transform: translateX(18px);
}
.switch input, .toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d0c7b8;
  border-radius: 999px;
  transition: background-color var(--dur) var(--ease);
}
.slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  height: 24px;
  width: 24px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--dur) var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.switch input:checked + .slider, .toggle-switch input:checked + .slider { background: var(--mango); }
.switch input:checked + .slider::before, .toggle-switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider, .toggle-switch input:disabled + .slider { opacity: 0.5; cursor: not-allowed; }

.preview-card {
  background: var(--bg-warm);
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}
.preview-row { display: flex; flex-direction: column; gap: 2px; }
.preview-row span:first-child {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
}
.preview-row span:last-child { font-weight: 500; word-break: break-word; }

.control-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.control-row .btn { width: 100%; padding: 11px 8px; font-size: 14px; }

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d4cdbe;
  margin-right: 7px;
  vertical-align: middle;
  transition: background-color var(--dur) var(--ease);
}
.status-dot.live {
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(81, 143, 52, .18);
  animation: livePulse 2s var(--ease) infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(81, 143, 52, .18); }
  50%      { box-shadow: 0 0 0 7px rgba(81, 143, 52, .08); }
}

.banner {
  background: #FFF6E0;
  border: 1px solid #f0d987;
  color: #6e5400;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  animation: fadeUp 320ms var(--ease-out) both;
}

/* ── How it works (3-step) ───────────────────────────────────── */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.step:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mango);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}
.step-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  padding: 28px 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--border);
}
.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-footer .footer-brand img,
.site-footer .footer-logo { height: 24px; width: 24px; object-fit: contain; }
.site-footer .footer-brand strong { font-weight: 800; color: var(--mango); }
.site-footer .footer-brand span { color: var(--mango); font-weight: 600; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: center;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--mango-deeper); }
.footer-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Long-form pages (privacy / terms / about) ──────────────── */
.prose {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
  animation: cardIn 600ms var(--ease-out) both;
}
.prose h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.025em;
}
.prose .updated {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 22px;
}
.prose h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 26px 0 8px;
  letter-spacing: -0.015em;
}
.prose h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 6px;
  color: var(--text);
}
.prose p, .prose li {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}
.prose ul {
  padding-left: 20px;
  margin: 8px 0 14px;
}
.prose li { margin-bottom: 4px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a {
  color: var(--mango-deeper);
  text-underline-offset: 3px;
  text-decoration-color: rgba(254,131,2,.35);
}
.prose a:hover { text-decoration-color: var(--mango); }
.prose a.btn { text-decoration: none; }
.prose a.btn-primary { color: #fff; }
.prose a.btn-primary:hover { color: #fff; }
.prose a.btn-secondary { color: var(--text); }
.prose a.btn-secondary:hover { color: var(--mango-deeper); }
.prose a.btn-danger { color: #fff; }

/* ── Mobile fine-tuning ──────────────────────────────────────── */
@media (max-width: 420px) {
  .container { padding: 14px 16px 32px; gap: 14px; }
  .card { padding: 22px 18px; }
  .card h1 { font-size: 24px; }
  .otp-input { font-size: 22px; border-radius: 12px; }
  .otp-digit { font-size: 26px; padding: 12px 0; border-radius: 12px; }
  .emoji-btn { font-size: 38px; height: 88px; border-radius: 16px; }
  .emoji-shown { font-size: 50px; }
  .field-group { grid-template-columns: 1fr; }
  .control-row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
}

/* ── Two-column control layout (desktop) ─────────────────────── */
.control-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.control-col { display: flex; flex-direction: column; min-width: 0; }
.control-col h3 { margin-top: 0; }
@media (min-width: 960px) {
  .control-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
  .control-col + .control-col { padding-left: 4px; border-left: 1px solid var(--border); padding-left: 28px; margin-left: -28px; }
  /* Drop the divider in favor of clean spacing */
  .control-col + .control-col { border-left: none; padding-left: 0; margin-left: 0; }
}

/* ── In-app modal (replaces native confirm/alert) ───────────── */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFade 200ms var(--ease-out) both;
}
.app-modal.hidden { display: none !important; }
@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.app-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 23, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.app-modal-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 20px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 60px -12px rgba(27, 23, 20, 0.4);
  animation: modalPop 240ms var(--ease-out) both;
}
.app-modal-icon {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  background: var(--mango-soft);
  color: var(--mango-deeper);
}
.app-modal-icon svg { width: 22px; height: 22px; }
.app-modal[data-variant="danger"] .app-modal-icon {
  display: inline-flex;
  background: rgba(183, 52, 30, 0.12);
  color: var(--danger);
}
.app-modal[data-variant="info"] .app-modal-icon {
  display: inline-flex;
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.app-modal-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.app-modal-body {
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}
.app-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: stretch;
  flex-wrap: wrap;
}
.app-modal-actions .btn {
  width: auto;
  min-width: 130px;
  padding: 11px 20px;
  font-size: 14px;
  min-height: 44px;
  border-radius: 12px;
  border-width: 1px;
  border-style: solid;
  letter-spacing: -0.005em;
  margin: 0;
  font-weight: 600;
}
.app-modal-actions .btn-secondary {
  background: var(--bg-warm);
  color: var(--text);
  border-color: var(--border-strong);
}
.app-modal-actions .btn-secondary:hover {
  background: var(--mango-soft);
  border-color: var(--mango);
  color: var(--mango-deeper);
}
.app-modal-actions .btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.app-modal-actions .btn-danger:hover {
  background: var(--danger-hover);
  border-color: var(--danger-hover);
}
.app-modal-actions .btn-primary {
  background: var(--mango);
  color: #fff;
  border-color: var(--mango);
}
.app-modal-actions .btn-primary:hover {
  background: var(--mango-deeper);
  border-color: var(--mango-deeper);
}

/* In-use code panel */
.code-inuse {
  text-align: left;
}
.code-inuse h2 { color: var(--text); }
.code-inuse .inuse-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--leaf);
  margin-bottom: 12px;
}
.code-inuse .inline-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.code-inuse .inline-actions .btn { width: 100%; }

/* ── Reconnect pill (top-center, fixed) ─────────────────────── */
.conn-pill {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27, 23, 20, 0.88);
  color: #fff;
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -8px rgba(27, 23, 20, 0.35);
  animation: pillSlide 280ms var(--ease-out) both;
}
.conn-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFB300;
  animation: connBlink 1.1s ease-in-out infinite;
}
.conn-pill.is-error::before { background: var(--danger); animation: none; }
.conn-pill.hidden { display: none !important; }
@keyframes pillSlide {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes connBlink {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

/* ── Add-to-contacts button on viewer screen ─────────────────── */
.vcf-row { margin-top: 14px; }

/* ── Cookie consent banner ──────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -16px rgba(27, 23, 20, 0.28);
  padding: 18px 20px;
  max-width: 760px;
  margin: 0 auto;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 380ms var(--ease-out), opacity 240ms var(--ease-out);
  will-change: transform, opacity;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hidden { display: none !important; }
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 720px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    gap: 22px;
  }
  .cookie-banner-main { flex: 1; min-width: 0; }
}
.cookie-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.cookie-body { margin: 0; font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.cookie-body a { color: var(--mango-deeper); text-underline-offset: 3px; }
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}
.cookie-banner-actions .btn {
  width: auto;
  padding: 9px 16px;
  font-size: 13px;
  min-height: 38px;
  min-width: 100px;
  border-radius: 10px;
  border-width: 1px;
  border-style: solid;
  margin: 0;
  font-weight: 600;
}
.cookie-banner-actions .btn-secondary { background: var(--bg-warm); color: var(--text); border-color: var(--border-strong); }
.cookie-banner-actions .btn-secondary:hover { background: var(--mango-soft); border-color: var(--mango); color: var(--mango-deeper); }
.cookie-banner-actions .btn-primary { background: var(--mango); color: #fff; border-color: var(--mango); }
.cookie-banner-actions .btn-primary:hover { background: var(--mango-deeper); border-color: var(--mango-deeper); }

.cookie-customize {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  animation: cookieExpand 320ms var(--ease-out) both;
}
.cookie-customize.hidden { display: none; }
@keyframes cookieExpand {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-customize h4 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cookie-row:last-of-type { border-bottom: none; }
.cookie-row > div { min-width: 0; flex: 1; }
.cookie-row strong { display: block; font-size: 14px; margin-bottom: 2px; color: var(--text); font-weight: 600; }
.cookie-row p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.cookie-customize-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
  flex-wrap: wrap;
}
.cookie-customize-actions .btn {
  width: auto;
  padding: 9px 16px;
  font-size: 13px;
  min-height: 38px;
  min-width: 100px;
  border-radius: 10px;
  border-width: 1px;
  border-style: solid;
  margin: 0;
  font-weight: 600;
}
.cookie-customize-actions .btn-secondary { background: var(--bg-warm); color: var(--text); border-color: var(--border-strong); }
.cookie-customize-actions .btn-primary { background: var(--mango); color: #fff; border-color: var(--mango); }
.cookie-customize-actions .btn-primary:hover { background: var(--mango-deeper); border-color: var(--mango-deeper); }
.toggle-switch.is-locked .slider { opacity: 0.6; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; transform: translateY(0); opacity: 1; }
  .conn-pill, .cookie-customize { animation: none; }
}

/* ── Trust badge (homepage hero) — outline-tech ring ─────────── */
.trust-badge-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 28px 0 8px;
}

/* Circular "Share my info" CTA pinned to the right of the trust-badge row.
   Always icon-only; label appears as a tooltip on hover. */
.hero-share-cta {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mango);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(254, 131, 2, 0.55), 0 2px 6px rgba(27, 23, 20, 0.06);
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.hero-share-cta:hover {
  background: var(--mango-deeper);
  transform: translateY(-50%) translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(254, 131, 2, 0.6), 0 2px 6px rgba(27, 23, 20, 0.08);
}
.hero-share-cta:active {
  transform: translateY(-50%) translateY(0);
}
.hero-share-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.hero-share-label {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--text);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  box-shadow: 0 6px 16px -6px rgba(27, 23, 20, 0.25);
}
.hero-share-label::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 14px;
  border: 5px solid transparent;
  border-top-color: var(--text);
}
.hero-share-cta:hover .hero-share-label,
.hero-share-cta:focus-visible .hero-share-label {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 560px) {
  .hero-share-cta { width: 36px; height: 36px; }
  .hero-share-icon { width: 16px; height: 16px; }
}

/* Floating "Back to home" / "Back to top" button */
.back-home-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px -12px rgba(27, 23, 20, 0.18), 0 2px 6px rgba(27, 23, 20, 0.06);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.back-home-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-home-btn:hover {
  background: var(--mango-soft);
  border-color: var(--mango);
  color: var(--mango-deeper);
}
.back-home-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Mobile: icon-only circle */
@media (max-width: 560px) {
  .back-home-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    right: 14px;
    bottom: 14px;
  }
  .back-home-label { display: none; }
}
@property --tb-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes trustBadgeSpin { to { --tb-angle: 360deg; } }
@keyframes trustBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.trust-badge {
  position: relative;
  display: inline-flex;
  border-radius: 999px;
  padding: 1.5px;
  isolation: isolate;
  animation: trustBadgeFloat 5s ease-in-out infinite;
}
/* Rotating ring */
.trust-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--tb-angle) at 50% 50%,
    transparent 82%,
    var(--mango) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: trustBadgeSpin 3.4s linear infinite;
  pointer-events: none;
}
/* Synced glow halo */
.trust-badge::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: conic-gradient(
    from var(--tb-angle) at 50% 50%,
    transparent 82%,
    rgba(254, 131, 2, 0.35) 100%
  );
  filter: blur(10px);
  z-index: -1;
  animation: trustBadgeSpin 3.4s linear infinite;
  pointer-events: none;
}
.trust-badge-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  border: 1px solid rgba(254, 131, 2, 0.38);
  box-shadow:
    0 8px 24px rgba(254, 131, 2, 0.14),
    0 2px 6px rgba(27, 23, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 10px 18px 10px 12px;
  white-space: nowrap;
}
.trust-badge-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  color: var(--text);
}
.trust-badge-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.trust-badge-text {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}
@media (max-width: 480px) {
  .trust-badge-wrap { margin: 22px 0 6px; }
  .trust-badge-text { font-size: 13px; }
  .trust-badge-icon { width: 20px; height: 20px; }
  .trust-badge-inner { padding: 8px 16px 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .trust-badge { animation: none; }
  .trust-badge::before, .trust-badge::after { animation: none; }
}

/* ── Blog ────────────────────────────────────────────────────── */
.container-blog { max-width: 1040px; }

.blog-hero {
  text-align: center;
  margin: 28px auto 36px;
  max-width: 720px;
  padding: 0 8px;
}
.blog-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mango-deeper);
  margin-bottom: 14px;
}
.blog-hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--text);
}
.blog-hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.blog-index {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0 auto 40px;
}
@media (min-width: 720px) {
  .blog-index { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (min-width: 1000px) {
  .blog-index { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--mango);
  box-shadow: 0 1px 2px rgba(27,23,20,.04), 0 24px 52px -22px rgba(254, 131, 2, .35);
}
.blog-card-thumb {
  height: 160px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffe4c4 50%, #ffdab0 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-card-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, rgba(254,131,2,.18), transparent 60%),
              radial-gradient(80% 60% at 100% 100%, rgba(254,131,2,.10), transparent 60%);
  pointer-events: none;
}
.blog-card-thumb-letter {
  font-size: 64px;
  font-weight: 700;
  color: var(--mango-deeper);
  letter-spacing: -0.04em;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}
.blog-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.blog-card-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.blog-card-dot { color: var(--border-strong); }
.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 2px 0 0;
  color: var(--text);
}
.blog-card-excerpt {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 4px 0 0;
}
.blog-card-tags {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.blog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mango-deeper);
  background: var(--mango-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
}

/* Post page */
.blog-back {
  margin: 12px 0 24px;
  font-size: 14px;
}
.blog-back a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px 6px 4px;
  border-radius: 8px;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.blog-back a:hover { color: var(--mango-deeper); background: var(--mango-soft); }

.blog-post { max-width: 720px; margin: 0 auto; }
.blog-post-header { margin: 16px 0 36px; text-align: center; }
.blog-post-tags { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.blog-post-title {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--text);
}
.blog-post-description {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.blog-post-meta {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 500;
}
.blog-post-author { color: var(--text); font-weight: 600; }

.blog-post-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.blog-post-body h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 14px;
  line-height: 1.2;
}
.blog-post-body h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 28px 0 10px;
}
.blog-post-body p { margin: 0 0 18px; }
.blog-post-body ul, .blog-post-body ol { margin: 0 0 18px; padding-left: 22px; }
.blog-post-body li { margin-bottom: 6px; }
.blog-post-body a {
  color: var(--mango-deeper);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: var(--mango-soft);
  transition: text-decoration-color var(--dur) var(--ease);
}
.blog-post-body a:hover { text-decoration-color: var(--mango); }
.blog-post-body strong { color: var(--text); font-weight: 600; }
.blog-post-body blockquote {
  border-left: 3px solid var(--mango);
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  font-size: 19px;
  font-style: italic;
  color: var(--text);
}
.blog-post-body code {
  background: var(--bg-warm);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}
.blog-post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.blog-post-cta {
  margin: 48px 0 32px;
  padding: 32px 28px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffe9d2 100%);
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--mango-soft);
}
.blog-post-cta h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text);
}
.blog-post-cta p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}
.blog-post-cta .btn { margin: 0 auto; }

.blog-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.blog-related-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  text-align: center;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .blog-related-grid { grid-template-columns: repeat(2, 1fr); }
}
.blog-related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.blog-related-card:hover { border-color: var(--mango); transform: translateY(-2px); }
.blog-related-meta { font-size: 12px; color: var(--muted); font-weight: 500; }
.blog-related-title-text { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.blog-related-arrow { position: absolute; top: 18px; right: 20px; color: var(--muted); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.blog-related-card:hover .blog-related-arrow { transform: translateX(3px); color: var(--mango); }

@media (max-width: 600px) {
  .blog-card-thumb { height: 130px; }
  .blog-card-thumb-letter { font-size: 52px; }
  .blog-card-body { padding: 18px 18px 20px; }
  .blog-post-cta { padding: 24px 18px; }
}
