/* ===========================================================
   Contact Card + Call Protection (white-label template)
   Brand colors are set in config.js; the values below are only defaults.
   =========================================================== */

:root {
  /* Brand */
  --gold: #c8a34d;
  --gold-soft: #e2c585;
  --gold-light: #d8b15f;
  --gold-pale: #f5e7c2;
  --gold-tint: #fff5e0;
  --gold-tint-2: #fffaf0;
  --gold-glow: rgba(200, 163, 77, 0.18);
  --accent-rgb: 200, 163, 77;
  --primary-rgb: 10, 21, 48;

  --navy-900: #0a1530;
  --navy-800: #0e1d40;
  --navy-700: #15295a;
  --navy-500: #2a3f6e;

  --ink-900: #0f1729;
  --ink-700: #2b364c;
  --ink-500: #5b6478;
  --ink-300: #9aa3b3;

  --bg: #eef1f6;
  --card: #ffffff;
  --line: #e7eaf0;

  /* Type */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 41, 0.08), 0 2px 6px rgba(15, 23, 41, 0.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* ===== Page shell ===== */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ===== Hero / Header ===== */
.hero {
  position: relative;
  margin: 0 -16px;
  padding: 56px 24px 88px;
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(var(--accent-rgb), 0.18), transparent 60%),
    linear-gradient(165deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-800) 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.06), transparent 50%),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.05), transparent 50%),
    radial-gradient(2px 2px at 40% 80%, rgba(var(--accent-rgb), 0.08), transparent 50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeUp 0.7s ease-out both;
}

.hero__logo {
  width: min(360px, 80%);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}

.hero__tagline {
  margin: -4px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--gold-soft);
}

.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.hero__phone:hover,
.hero__phone:focus-visible {
  transform: translateY(-1px);
  background: rgba(var(--accent-rgb), 0.12);
  box-shadow: 0 6px 20px var(--gold-glow);
  outline: none;
}

.hero__phone svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== Cards ===== */
.card {
  position: relative;
  margin-top: -40px;
  margin-bottom: 20px;
  padding: 28px 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s ease-out 0.1s both;
}

.card + .card {
  margin-top: 18px;
  animation-delay: 0.2s;
}

.card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}

.card__icon svg {
  width: 20px;
  height: 20px;
}

.card__icon--gold {
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold-soft) 100%);
  color: var(--navy-900);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.25);
}

.card__icon--soft {
  background: var(--gold-tint);
  color: var(--gold);
}

.card__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.2px;
  color: var(--ink-900);
}

.card__lede {
  margin: 8px 0 20px;
  color: var(--ink-500);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ===== Info list (Save Contact) ===== */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #f5f7fb;
  font-size: 14.5px;
  color: var(--ink-700);
  transition: background 0.18s ease;
}

.info-row:hover {
  background: #eef1f6;
}

.info-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--gold);
}

.info-row__icon svg {
  width: 18px;
  height: 18px;
}

.info-row a {
  font-weight: 500;
  color: var(--ink-700);
  word-break: break-word;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 41, 0.25);
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(var(--accent-rgb), 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn--primary:hover::before { transform: translateX(100%); }

.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 41, 0.32), 0 0 0 1px var(--gold-glow);
  outline: none;
}

.btn--primary:active { transform: translateY(0); }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.35);
  padding: 12px 18px;
  font-size: 14px;
}

.btn--gold:hover,
.btn--gold:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.45);
  outline: none;
}

/* ===== Toggle ===== */
.toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 22px;
  background: #f3f5fa;
  border-radius: 12px;
}

.toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle__btn svg {
  width: 16px;
  height: 16px;
}

.toggle__btn[aria-selected="true"] {
  background: #fff;
  color: var(--navy-900);
  box-shadow: 0 2px 8px rgba(15, 23, 41, 0.08);
}

.toggle__btn:hover:not([aria-selected="true"]) {
  color: var(--ink-700);
}

/* ===== Steps ===== */
[hidden] { display: none !important; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--serif);
  margin-top: 1px;
}

.step__title {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 0.1px;
}

.step__body {
  margin: 0;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.5;
}

/* ===== Hint ===== */
.hint {
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-500);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
}

.hint:empty { display: none; }

/* ===== Security note ===== */
.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.5;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--gold);
}

/* ===== Footer ===== */
.foot {
  text-align: center;
  padding: 24px 16px 8px;
}

/* ===== Install prompt ===== */
.install {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--gold-tint-2) 0%, var(--gold-tint) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.08);
  animation: fadeUp 0.6s ease-out 0.4s both;
}

.install__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-300);
  cursor: pointer;
  padding: 0;
}

.install__close:hover { color: var(--ink-700); }

.install__icon img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.install__body { flex: 1; min-width: 0; }

.install__title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
}

.install__text {
  margin: 0;
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.45;
}

.install__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--navy-900);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.35);
  transition: transform 0.15s ease, box-shadow 0.18s ease;
}

.install__btn:hover,
.install__btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(var(--accent-rgb), 0.45);
  outline: none;
}

.install__btn:active { transform: translateY(0); }

.install__btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ===== iOS instructional modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: modalFade 0.25s ease-out;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--primary-rgb), 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 28px 24px 26px;
  box-shadow: 0 -20px 50px rgba(var(--primary-rgb), 0.25);
  animation: modalUp 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f5fa;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-500);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal__close:hover { background: #e7eaf0; color: var(--ink-900); }

.modal__title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink-900);
}

.modal__lede {
  margin: 0 0 18px;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.5;
}

.modal__steps {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal__steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-700);
  line-height: 1.55;
}

.modal__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--serif);
  margin-top: 1px;
}

.modal__share {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  margin: 0 2px;
  color: #007aff; /* iOS share-button blue */
}

.modal__ok {
  margin-top: 4px;
}

@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@media (min-width: 520px) {
  .modal {
    align-items: center;
    padding: 20px;
  }
  .modal__card {
    border-radius: 20px;
  }
}

.foot__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 500;
}

.foot__badge svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .hero { padding: 44px 20px 80px; }
  .hero__logo { width: 86%; }
  .hero__tagline { font-size: 16px; }
  .card { padding: 22px 18px; }
  .card__title { font-size: 21px; }
  .info-row { padding: 12px 14px; font-size: 14px; }
  .btn { padding: 15px 18px; font-size: 14.5px; }
}

@media (min-width: 720px) {
  .page { padding: 0 0 60px; }
  .hero { margin: 0; border-radius: 0 0 22px 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===== Hero name (shown only when no logo is set in config.js) ===== */
.hero__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: #fff;
  text-wrap: balance;
}

/* ===== Setup reminder ===== */
.setup-notice {
  margin: 0 -16px;
  padding: 12px 18px;
  background: #fff3cd;
  color: #5c4500;
  border-bottom: 1px solid #f0d98a;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
}

.setup-notice code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.07);
  font-size: 12.5px;
}

@media (min-width: 720px) {
  .setup-notice { margin: 0; }
}
