:root {
  --ink: #173331;
  --muted: #60726f;
  --surface: #ffffff;
  --soft: #eef8f6;
  --line: #d9e7e4;
  --brand: #0b7772;
  --brand-dark: #075a57;
  --accent: #e7a85b;
  --danger: #a93636;
  --success: #126b45;
  --shadow: 0 18px 44px rgba(18, 62, 58, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html {
  background: #eaf4f2;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(233, 183, 115, .2), transparent 34%),
    linear-gradient(180deg, #f9fcfb 0%, #edf6f4 100%);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.app-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(255,255,255,.72);
  box-shadow: 0 0 60px rgba(13, 77, 72, .08);
}

.page {
  min-height: 100vh;
  padding: 14px 16px calc(116px + var(--safe-bottom));
}

.hero-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #fff;
  box-shadow: var(--shadow);
  isolation: isolate;
  background: linear-gradient(145deg, #0b7772, #173331);
}

.hero-image, .profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image { position: absolute; inset: 0; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,28,27,.25), rgba(4,28,27,.02) 42%, rgba(4,28,27,.87));
}

.hero-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,.93);
  color: var(--brand-dark);
  font-weight: 900;
}

.brand-name { font-weight: 800; letter-spacing: .01em; }
.age-chip {
  margin-inline-start: auto;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: rgba(0,0,0,.24);
  font-weight: 800;
}
.dark-chip { border-color: var(--line); background: #fff; color: var(--brand-dark); }

.hero-copy {
  position: absolute;
  z-index: 1;
  inset-inline: 22px;
  bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #c5f3ec;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--brand); }

h1, h2, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(2rem, 8vw, 3.15rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.25; }
p { line-height: 1.55; }
.hero-subtitle { margin: 13px 0 0; color: rgba(255,255,255,.9); font-size: .98rem; }

.thumb-section { margin-top: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 0; }
.count-pill { padding: 5px 9px; border-radius: 999px; background: var(--soft); color: var(--brand-dark); font-size: .78rem; font-weight: 800; }
.thumb-track { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 0 1px 6px; scrollbar-width: none; }
.thumb-track::-webkit-scrollbar { display: none; }
.thumb-button {
  flex: 0 0 74px;
  height: 92px;
  padding: 0;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 62, 58, .11);
  position: relative;
  color: var(--brand-dark);
}
.thumb-button.image-missing::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e4f3f0, #fff5e7);
  font-size: 1.1rem;
  font-weight: 900;
}
.thumb-button[aria-current="true"] { border-color: var(--accent); }
.thumb-button img { width: 100%; height: 100%; object-fit: cover; }

.info-card, .trust-card, .contact-card {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(18, 62, 58, .07);
}
.info-card p, .contact-card p { margin: 0; color: var(--muted); }
.icon-disc { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 15px; background: var(--soft); color: var(--brand); font-size: 1.2rem; }
.trust-card { display: block; }
.trust-list { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.trust-list li { position: relative; padding-inline-start: 28px; color: var(--muted); line-height: 1.45; }
.trust-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 900; }

.site-footer { padding: 28px 8px 4px; text-align: center; color: var(--muted); font-size: .78rem; }
.disclosure { margin: 0 0 12px; }
.legal-nav { display: flex; justify-content: center; gap: 10px; }
.legal-nav a, .text-link { color: var(--brand-dark); font-weight: 750; text-underline-offset: 3px; }
.footer-spaced { padding-bottom: 18px; }

.sticky-cta-wrap {
  position: fixed;
  z-index: 20;
  bottom: 0;
  left: 50%;
  width: min(100%, 520px);
  transform: translateX(-50%);
  padding: 14px 16px calc(12px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(249,252,251,0), rgba(249,252,251,.97) 24%);
}

.primary-button, .secondary-button, .icon-button, .modal-close {
  border: 0;
  font-weight: 850;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 13px 18px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 12px 26px rgba(8, 93, 89, .25);
}
.primary-button:focus-visible, .secondary-button:focus-visible, .thumb-button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(229, 162, 78, .7); outline-offset: 2px; }
.primary-button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.primary-button.compact { min-height: 46px; margin-top: 8px; }
.button-arrow { font-size: 1.65rem; line-height: .7; }
.cta-hint { margin: 7px 0 0; color: var(--muted); text-align: center; font-size: .74rem; }

.full-header { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 4px 0 18px; }
.full-header h1 { font-size: 1.55rem; letter-spacing: -.02em; }
.full-header .eyebrow { margin-bottom: 4px; }
.icon-button, .modal-close { width: 44px; height: 44px; border-radius: 15px; background: #fff; color: var(--ink); font-size: 1.6rem; box-shadow: 0 8px 20px rgba(18,62,58,.09); }

.profile-deck { min-height: 560px; }
.profile-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow); }
.profile-photo-wrap { position: relative; height: 430px; background: linear-gradient(145deg, #e4f3f0, #fff5e7); }
.profile-photo-wrap.image-missing::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: rgba(11,119,114,.16);
  box-shadow: 0 90px 0 35px rgba(11,119,114,.1);
}
.profile-copy { padding: 20px; }
.profile-name-row { display: flex; align-items: baseline; gap: 8px; }
.profile-name-row h2 { margin: 0; font-size: 1.55rem; }
.profile-age { color: var(--muted); font-weight: 750; }
.profile-city { margin: 5px 0 0; color: var(--brand-dark); font-weight: 750; }
.profile-bio { margin: 14px 0; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 10px; border-radius: 999px; background: var(--soft); color: var(--brand-dark); font-size: .78rem; font-weight: 750; }
.deck-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 14px; }
.secondary-button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--brand-dark); }
.secondary-button:disabled { opacity: .4; cursor: not-allowed; }
.deck-position { color: var(--muted); font-size: .82rem; font-weight: 800; }
.contact-card { display: block; }
.configuration-status { margin-top: 10px !important; color: var(--danger) !important; font-size: .78rem; }

.handoff-page { display: grid; align-items: center; padding-bottom: calc(28px + var(--safe-bottom)); }
.handoff-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow); text-align: center; }
.handoff-card h1 { font-size: 1.8rem; }
.handoff-visual { width: min(240px, 74%); margin: 0 auto 20px; }
.handoff-text { margin: 13px 0; color: var(--muted); }
.handoff-steps { display: grid; gap: 10px; margin: 18px 0 22px; padding-inline-start: 26px; text-align: start; color: var(--ink); }
.handoff-steps li { padding-inline-start: 5px; line-height: 1.45; }
.copy-status { min-height: 22px; margin: 10px 0; color: var(--success); font-size: .82rem; }

.modal { position: fixed; z-index: 50; inset: 0; display: grid; align-items: end; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(9,31,29,.65); backdrop-filter: blur(4px); }
.modal-panel { position: relative; z-index: 1; width: min(100%, 520px); max-height: 92vh; margin: 0 auto; overflow-y: auto; padding: 26px 20px calc(24px + var(--safe-bottom)); border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -20px 60px rgba(0,0,0,.18); }
.modal-close { position: absolute; inset-inline-end: 16px; top: 14px; box-shadow: none; background: var(--soft); }
.modal-panel h2 { padding-inline-end: 52px; font-size: 1.4rem; }
.form-intro { margin: 8px 0 20px; color: var(--muted); }
form { display: grid; gap: 9px; }
form label { margin-top: 7px; color: var(--ink); font-size: .86rem; font-weight: 800; }
input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #bfcfcb; border-radius: 13px; background: #fff; color: var(--ink); }
.phone-row { display: grid; grid-template-columns: auto 1fr; align-items: center; overflow: hidden; border: 1px solid #bfcfcb; border-radius: 13px; }
.phone-row:focus-within { outline: 3px solid rgba(229, 162, 78, .7); outline-offset: 2px; }
.phone-row input { border: 0; border-radius: 0; outline: 0 !important; }
.dial-code { padding: 0 12px; border-inline-end: 1px solid var(--line); color: var(--brand-dark); font-weight: 850; }
.field-help { margin: -2px 0 4px; color: var(--muted); font-size: .76rem; }
.consent-row { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 10px; margin: 10px 0 !important; color: var(--muted) !important; font-weight: 600 !important; line-height: 1.45; }
.consent-row input { width: 20px; min-height: 20px; margin: 1px 0 0; accent-color: var(--brand); }
.form-status { min-height: 24px; margin: 3px 0 0; font-size: .82rem; }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--success); }

@media (min-width: 521px) {
  .app-shell { margin-block: 20px; min-height: calc(100vh - 40px); border-radius: 32px; overflow: hidden; }
  .page { min-height: calc(100vh - 40px); }
  .sticky-cta-wrap { bottom: 20px; border-radius: 0 0 32px 32px; }
  .modal { align-items: center; padding: 20px; }
  .modal-panel { border-radius: 28px; }
}

@media (max-width: 370px) {
  .page { padding-inline: 11px; }
  .hero-card { min-height: 405px; }
  .hero-copy { inset-inline: 17px; }
  .profile-photo-wrap { height: 390px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.legal-page {
  min-height: 100vh;
  padding: 28px 16px;
}
.legal-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
}
.legal-shell h1 { color: var(--ink); font-size: clamp(1.8rem, 6vw, 2.6rem); }
.legal-shell h2 { margin-top: 28px; }
.legal-shell p, .legal-shell li { color: var(--muted); line-height: 1.65; }
.legal-shell ul { padding-inline-start: 24px; }
.status-banner {
  margin: 22px 0;
  padding: 16px;
  border-inline-start: 5px solid var(--accent);
  border-radius: 14px;
  background: #fff7ea;
  color: #694518 !important;
}
.legal-meta { color: var(--brand-dark) !important; font-size: .82rem; font-weight: 750; }
.legal-back { display: inline-flex; margin-top: 28px; color: var(--brand-dark); font-weight: 800; text-underline-offset: 3px; }
