/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #FDF5F3;
  --white:    #FFFFFF;
  --dark:     #382A24;
  --muted:    #8A756D;
  --accent:   #C85A47;
  --gold:     #D4B48F;
  --gold-50:  #D4B48F80;
  --serif:    "Cormorant Garamond", "Georgia", serif;
  --sans:     "Jost", system-ui, sans-serif;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--dark);
  font-family: var(--sans);
  overflow-x: hidden;
  position: relative;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── Page Border Lines ─── */
.page-border {
  position: fixed;
  top: 80px;
  bottom: 200px;
  width: 1px;
  background: linear-gradient(180deg, rgba(200,144,122,.50) 0%, rgba(200,144,122,.35) 60%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}
.page-border--left  { left: 40px; }
.page-border--right { right: 40px; }

/* ─── Side Labels ─── */
.side-label {
  position: fixed;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(138,117,109,.50);
  z-index: 10;
  pointer-events: none;
}
.side-label--left {
  left: 24px;
  top: 180px;
  transform: rotate(-90deg);
  transform-origin: 0 0;
}
.side-label--right {
  right: 23px;
  top: 180px;
  transform: rotate(90deg);
  transform-origin: 100% 0;
}

/* ─── Navigation ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 80px;
}
.logo {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3px;
  padding: 10px 24px;
  border-radius: 999px;
  transition: opacity .2s;
}
.nav-btn:hover { opacity: .9; }

/* ─── Section Label (shared) ─── */
.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 14px;
}

/* ─── Section Heading (shared) ─── */
.section-heading {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  line-height: 56px;
  color: var(--dark);
  text-align: center;
  max-width: 700px;
}

/* ─── Hero ─── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 80px 80px;
}
.hero__line {
  width: 1px;
  height: 48px;
  margin-bottom: 32px;
  background: linear-gradient(180deg, #C8907A 0%, transparent 100%);
}
.hero .section-label {
  font-size: 12px;
  letter-spacing: 4px;
  margin-bottom: 24px;
  text-align: center;
}
.hero__heading {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 300;
  line-height: 80px;
  text-align: center;
  color: var(--dark);
  max-width: 800px;
}
.hero__sub {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin-top: 28px;
}

/* ─── Download Buttons ─── */
.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0 80px 32px;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark);
  border-radius: 14px;
  padding: 14px 28px;
  transition: opacity .2s;
}
.store-btn:hover { opacity: .9; }
.store-btn__text {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
}
.store-btn__text small {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .5px;
  line-height: 12px;
  color: rgba(255,255,255,.70);
}

/* ─── Phone Mockup ─── */
.phone-section {
  display: flex;
  justify-content: center;
  padding: 48px 80px 0;
  position: relative;
}
.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(200,90,71,.06) 0%, transparent 70%);
  pointer-events: none;
}
.phone {
  position: relative;
  width: 300px;
  height: 650px;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(212,180,143,.25);
  box-shadow: 0 24px 64px rgba(56,42,36,.08);
  flex-shrink: 0;
}
.phone__bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}
.phone__border-line {
  position: absolute;
  top: 60px;
  bottom: 80px;
  width: 1px;
  background: linear-gradient(180deg, rgba(200,144,122,.50) 70%, transparent 100%);
}
.phone__border-line--left  { left: 16px; }
.phone__border-line--right { right: 16px; }

.phone__side-label {
  position: absolute;
  top: 70px;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #B8A090;
  writing-mode: vertical-lr;
  white-space: nowrap;
}
.phone__side-label--left  { left: 24px; }
.phone__side-label--right { right: 24px; }

.phone__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 220px 40px 0;
  gap: 12px;
  z-index: 1;
}
.phone__logo {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 12px;
}
.phone__divider {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, #C8907A 0%, transparent 100%);
}
.phone__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 34px;
  color: var(--dark);
  text-align: center;
  width: 220px;
}
.phone__heading em {
  font-weight: 600;
  font-style: italic;
}
.phone__btn-wrap {
  position: absolute;
  bottom: 52px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: flex-end;
  z-index: 1;
}
.phone__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(200,90,71,.20);
}
.phone__bottom {
  position: absolute;
  bottom: 18px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
.phone__indicators {
  font-family: var(--sans);
  font-size: 8px;
  color: #C8907A;
  letter-spacing: 1px;
}
.phone__signin {
  font-family: var(--sans);
  font-size: 8px;
  color: #9B8A7A;
  text-decoration: underline;
  letter-spacing: .5px;
}

/* ─── Spine Divider ─── */
.spine-divider {
  display: flex;
  justify-content: center;
  padding-top: 80px;
}
.spine-divider__marks {
  display: flex;
  align-items: center;
  gap: 3px;
}
.spine-divider__marks span {
  display: block;
  width: 1px;
  height: 8px;
  background: rgba(212,180,143,.60);
}
.spine-divider__gap {
  width: 4px !important;
  height: 0 !important;
  background: none !important;
}

/* ─── Features Header ─── */
.features-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 80px 48px;
  gap: 16px;
}

/* ─── Feature Cards ─── */
.feature-cards {
  display: flex;
  justify-content: center;
  padding: 0 120px 80px;
  gap: 32px;
  position: relative;
}
.card {
  display: flex;
  flex-direction: column;
  width: 360px;
  border-radius: 24px;
  padding: 40px 32px;
  gap: 20px;
  background: var(--white);
  border: 1px solid rgba(212,180,143,.19);
  box-shadow: 0 2px 10px rgba(56,42,36,.04);
}
.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background: var(--bg);
  flex-shrink: 0;
}
.card__title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 32px;
  color: var(--dark);
}
.card__body {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 26px;
  color: var(--muted);
}

/* Crosshair decorations */
.crosshair {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.crosshair--tl { top: -8px;  left: 112px; border-top: 1px solid rgba(212,180,143,.40); border-left: 1px solid rgba(212,180,143,.40); }
.crosshair--tr { top: -8px;  right: 112px; border-top: 1px solid rgba(212,180,143,.40); border-right: 1px solid rgba(212,180,143,.40); }
.crosshair--bl { bottom: 72px; left: 112px; border-bottom: 1px solid rgba(212,180,143,.40); border-left: 1px solid rgba(212,180,143,.40); }
.crosshair--br { bottom: 72px; right: 112px; border-bottom: 1px solid rgba(212,180,143,.40); border-right: 1px solid rgba(212,180,143,.40); }

/* Section Markers */
.section-marker {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-marker--i  { top: -24px; right: 120px; }
.section-marker--ii { top: 48px; right: 120px; }
.section-marker__line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: .5;
}
.section-marker__text {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--gold);
}

/* ─── Testimonial ─── */
.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px;
  gap: 32px;
  background: var(--white);
  position: relative;
}
.testimonial__quote-mark {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 140px;
  font-weight: 300;
  line-height: 100px;
  color: rgba(212,180,143,.15);
  pointer-events: none;
}
.testimonial__stars {
  display: flex;
  gap: 4px;
}
.testimonial__text {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  line-height: 44px;
  text-align: center;
  max-width: 720px;
  color: var(--dark);
}
.testimonial__attr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.testimonial__attr strong {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .5px;
  color: var(--dark);
}
.testimonial__attr span {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

/* ─── How It Works ─── */
.how-it-works {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 80px 48px;
  gap: 16px;
  position: relative;
}

/* ─── Steps ─── */
.steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 160px;
  gap: 0;
  height: 260px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 280px;
  flex-shrink: 0;
  gap: 16px;
}
.step__number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(200,90,71,.08);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
}
.step__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
  color: var(--dark);
}
.step__body {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  color: var(--muted);
  max-width: 240px;
}
.step__divider {
  width: 80px;
  height: 1px;
  background: var(--gold);
  opacity: .4;
  flex-shrink: 0;
  margin-top: 24px;
}

/* ─── Final CTA ─── */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px;
  gap: 28px;
  background: var(--white);
}
.cta__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, #C8907A 0%, transparent 100%);
}
.cta__heading {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  line-height: 56px;
  text-align: center;
  color: var(--dark);
  max-width: 700px;
}
.cta__sub {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
  color: var(--muted);
  max-width: 520px;
}
.cta__buttons {
  display: flex;
  gap: 16px;
}

/* ─── Footer ─── */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 80px 40px;
  gap: 20px;
}
.footer__rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: .4;
}
.footer__links {
  display: flex;
  gap: 32px;
}
.footer__links a {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  transition: color .2s;
}
.footer__links a:hover { color: var(--dark); }
.footer__tagline {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .5px;
  color: var(--gold);
  margin-top: 8px;
}
.footer__copyright {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .3px;
  color: var(--muted);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .nav { padding: 24px 40px; }
  .hero { padding: 80px 40px 60px; }
  .hero__heading { font-size: 52px; line-height: 60px; }
  .download-buttons { padding: 0 40px 32px; }
  .phone-section { padding: 40px 40px 0; }
  .features-header { padding: 48px 40px 32px; }
  .feature-cards { padding: 0 40px 60px; gap: 24px; flex-wrap: wrap; }
  .card { width: 320px; }
  .testimonial { padding: 60px 40px; }
  .testimonial__text { font-size: 26px; line-height: 38px; }
  .how-it-works { padding: 60px 40px 32px; }
  .steps { padding: 0 40px; }
  .cta { padding: 60px 40px; }
  .cta__heading { font-size: 40px; line-height: 48px; }
  .footer { padding: 40px; }
  .section-heading { font-size: 40px; line-height: 48px; }
  .page-border { display: none; }
  .side-label { display: none; }
  .crosshair { display: none; }
  .section-marker { display: none; }
}

@media (max-width: 768px) {
  .hero__heading { font-size: 40px; line-height: 48px; max-width: 100%; }
  .hero__sub { font-size: 17px; line-height: 28px; }
  .feature-cards { flex-direction: column; align-items: center; padding: 0 24px 48px; }
  .card { width: 100%; max-width: 400px; }
  .steps { flex-direction: column; align-items: center; height: auto; padding: 0 24px 60px; gap: 32px; }
  .step__divider { width: 1px; height: 40px; margin-top: 0; }
  .testimonial__text { font-size: 22px; line-height: 34px; }
  .cta__heading { font-size: 32px; line-height: 40px; }
  .section-heading { font-size: 32px; line-height: 40px; }
  .phone { width: 260px; height: 560px; }
  .phone__content { padding-top: 180px; }
  .phone__heading { font-size: 24px; line-height: 30px; }
}

@media (max-width: 480px) {
  .nav { padding: 20px 24px; }
  .hero { padding: 60px 24px 48px; }
  .hero__heading { font-size: 32px; line-height: 40px; }
  .hero .section-label { font-size: 10px; letter-spacing: 3px; }
  .download-buttons { padding: 0 24px 24px; }
  .store-btn { padding: 12px 20px; }
  .phone-section { padding: 32px 24px 0; }
  .features-header { padding: 40px 24px 24px; }
  .testimonial { padding: 48px 24px; }
  .how-it-works { padding: 48px 24px 24px; }
  .cta { padding: 48px 24px; }
  .footer { padding: 32px 24px; }
  .footer__links { gap: 20px; }
}

/* ═══════════════════════════
   Animations
   ═══════════════════════════ */

/* Hero entrance — staggered fade-in on load */
.hero-enter {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(var(--delay, 0) * .12s + .15s);
}

/* Scroll reveal — fade-up when section enters viewport */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children inside a visible reveal parent */
.reveal .stagger {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--i, 0) * .1s + .15s);
}
.reveal.visible .stagger {
  opacity: 1;
  transform: translateY(0);
}

/* Phone float — gentle ambient hover */
.phone {
  animation: phoneFloat 6s ease-in-out infinite;
}

/* Phone glow pulse */
.phone-glow {
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-enter,
  .reveal,
  .reveal .stagger { animation: none; transition: none; opacity: 1; transform: none; }
  .phone  { animation: none; }
  .phone-glow { animation: none; }
}
