:root {
  --bg: #f4f6f8;
  --bg-deep: #0b0f14;
  --surface: #ffffff;
  --ink: #1a1f26;
  --muted: #5c6570;
  --line: rgba(26, 31, 38, 0.08);
  --brand-red: #ec2830;
  --brand-green: #5fc978;
  --brand-green-deep: #3fa85a;
  --shadow: 0 18px 40px rgba(15, 20, 25, 0.08);
  --radius: 22px;
  --tabbar-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "Onest", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(95, 201, 120, 0.18), transparent 50%),
    radial-gradient(90% 60% at 100% 0%, rgba(236, 40, 48, 0.10), transparent 45%),
    linear-gradient(180deg, #eef2f5 0%, var(--bg) 40%, #e8eef2 100%);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden;
}

button,
a {
  font: inherit;
  color: inherit;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app {
  height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.screens {
  height: calc(100dvh - var(--tabbar-h) - var(--safe-bottom));
  overflow: hidden;
  position: relative;
}

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-overflow-scrolling: touch;
}

.screen.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero {
  position: relative;
  min-height: min(72dvh, 560px);
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  transform: scale(1.06);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 16, 0.18) 0%, rgba(8, 12, 16, 0.28) 42%, rgba(8, 12, 16, 0.88) 100%),
    linear-gradient(90deg, rgba(236, 40, 48, 0.18), transparent 40%);
}

.hero__content {
  position: relative;
  z-index: 1;
  min-height: min(72dvh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 22px 30px;
}

.brand-mark {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-green);
}

.hero .brand-mark {
  color: #9be6ad;
}

.hero__title {
  margin: 0;
  font-size: clamp(42px, 11vw, 56px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 600;
}

.hero__meta {
  margin: 10px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.panel {
  padding: 26px 22px 36px;
}

.lead {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.body {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.body strong {
  color: var(--ink);
  font-weight: 700;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 26px;
}

.stat {
  padding: 16px 10px;
  text-align: center;
  background: linear-gradient(180deg, #fff, #f7faf8);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.stat__value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-red);
  line-height: 1;
}

.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bleed-photo {
  margin: 8px -22px 28px;
  position: relative;
  overflow: hidden;
}

.bleed-photo img {
  min-height: 220px;
  max-height: 280px;
  animation: photoIn 0.8s ease both;
}

.bleed-photo figcaption {
  position: absolute;
  left: 22px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.55);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.section-title {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.quote {
  margin: 0 0 24px;
  padding: 18px 18px 18px 20px;
  border-left: 3px solid var(--brand-green);
  background: linear-gradient(90deg, rgba(95, 201, 120, 0.12), transparent);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.pillars {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}

.pillar {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pillar h3 {
  margin: 0 0 8px;
  color: var(--brand-red);
  font-size: 18px;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.page-head {
  padding: 28px 22px 8px;
}

.page-head h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.03em;
}

.page-head__text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.page-head--photo {
  position: relative;
  min-height: 220px;
  padding: 0;
  color: #fff;
  overflow: hidden;
}

.page-head--photo > img {
  position: absolute;
  inset: 0;
  min-height: 220px;
}

.page-head__overlay {
  position: relative;
  z-index: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(8, 12, 16, 0.15), rgba(8, 12, 16, 0.82));
}

.page-head--photo .brand-mark {
  color: #9be6ad;
}

.page-head--photo .page-head__text {
  color: rgba(255, 255, 255, 0.8);
}

.steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.step__num {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-green-deep);
  line-height: 1;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.checklist {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding: 12px 14px 12px 38px;
  border-radius: 16px;
  background: rgba(95, 201, 120, 0.08);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(95, 201, 120, 0.18);
}

.callout {
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #121820, #1c2730 55%, #142019);
  color: #fff;
}

.callout--soft {
  background: linear-gradient(145deg, #ffffff, #f3faf5);
  color: var(--ink);
  border: 1px solid rgba(95, 201, 120, 0.25);
}

.callout__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-green);
  font-weight: 700;
}

.callout p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.callout .muted {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-bottom: 10px;
}

.day {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--brand-red);
}

.day__badge {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-red);
}

.day h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.day > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.day ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.day li + li {
  margin-top: 4px;
}

.contact {
  display: block;
  text-decoration: none;
  padding: 18px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact:active {
  transform: scale(0.985);
}

.contact__label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact__value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding: 8px 10px calc(8px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.tab {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  border-radius: 16px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tab__icon {
  width: 22px;
  height: 22px;
}

.tab__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.tab.is-active {
  color: var(--brand-red);
  background: rgba(236, 40, 48, 0.08);
  transform: translateY(-1px);
}

.reveal.is-visible img {
  animation: photoIn 0.7s ease both;
}

@keyframes heroDrift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@keyframes photoIn {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media,
  .bleed-photo img,
  .screen {
    animation: none !important;
    transition: none !important;
  }
}
