:root {
  --color-background: #fbf8f2;
  --color-accent: #f45226;
  --color-text: #333333;
  --color-muted: rgba(0, 0, 0, 0.42);
  --color-surface: #ffffff;
  --color-border: #eadfd1;
  --color-phone: #1c1c1e;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  background: var(--color-background);
  color: var(--color-text);
  font-family: Inter, -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
}

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

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: var(--space-4) var(--space-6);
  background: var(--color-background);
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

/* ── Layout ── */
.page-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  column-gap: 96px;
  row-gap: 0;
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px var(--space-7) 0;
}

/* ── Left: content ── */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-self: start;
  padding-top: 40px;
  grid-row: 1;
  grid-column: 1;
}

.hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 400px;
}

/* ── Coming soon ── */
.coming-soon-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 400px;
}

/* ── Divider ── */
.divider {
  border: none;
  height: 1px;
  width: 100%;
  max-width: 400px;
  background: var(--color-border);
}

/* ── Footer links ── */
.hero-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  padding-bottom: var(--space-4);
}

.footer-note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--color-muted);
}

.footer-link {
  color: var(--color-accent);
}

.footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Right: phone ── */
.hero-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
  padding-top: 10px;
}

.phone-frame {
  position: relative;
  width: 298px;
  border: 6px solid #ffffff;
  border-radius: 30px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.phone-screen {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #000;
}

.screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot.active {
  transform: translateY(0%);
}

.screenshot.exit {
  transform: translateY(-100%);
}

/* ── Feature cards ── */
.feature-card {
  position: absolute;
  right: calc(100% + 14px);
  background: #ffffff;
  border-radius: 14px;
  padding: 11px 13px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09), 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 152px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff2ee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.feature-card-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.35;
  margin: 0 0 2px;
}

.feature-card-sub {
  font-size: 10.5px;
  color: var(--color-muted);
  line-height: 1.4;
  margin: 0;
}

.feature-card--1 { right: calc(100% - 22px); top: 6%; }
.feature-card--3 { left: calc(100% - 22px); right: auto; top: 36%; }

/* ── How it works ── */
.how-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 160px var(--space-7) var(--space-8);
}

.how-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.how-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.how-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-muted);
  margin-top: var(--space-3);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  column-gap: var(--space-5);
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
}

.how-illustration {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.how-step-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 320px;
}

.how-arrow {
  align-self: center;
  color: var(--color-muted);
  opacity: 0.5;
  padding-top: 90px;
}

/* Illustration: phone with price */
.how-phone {
  position: relative;
  width: 150px;
  height: 210px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding-bottom: var(--space-6);
}

.how-phone-price {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 22px;
}

.how-phone-button {
  width: 66px;
  height: 16px;
  border-radius: 999px;
  background: var(--color-accent);
}

/* Illustration: chat bubbles */
.how-chat {
  position: relative;
  width: 260px;
  height: 200px;
}

.how-bubble {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  width: 150px;
}

.how-bubble--in {
  top: 20px;
  left: 44px;
  background: #f1ece3;
  border-bottom-left-radius: 4px;
}

.how-bubble--out {
  top: 96px;
  right: 44px;
  background: var(--color-surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-bottom-right-radius: 4px;
}

.how-line {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
}

.how-line--accent {
  background: var(--color-accent);
}

.how-line--short {
  width: 60%;
}

.how-avatar {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.how-avatar--dot {
  top: 44px;
  left: 0;
  background: rgba(0, 0, 0, 0.12);
}

.how-avatar--jt {
  top: 120px;
  right: 0;
  background: var(--color-accent);
}

/* Illustration: story cards */
.how-cards {
  position: relative;
  width: 190px;
  height: 210px;
}

.how-card {
  position: absolute;
  width: 118px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.how-card--back {
  left: 0;
  top: 6px;
  transform: rotate(-7deg);
}

.how-card--front {
  right: 0;
  top: 0;
  transform: rotate(6deg);
}

/* ── Mobile / tablet ── */
@media (max-width: 1024px) {
  .page-shell {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    column-gap: 0;
    row-gap: var(--space-5);
    padding: 76px 0 var(--space-6);
  }

  .hero-content {
    grid-row: auto;
    grid-column: auto;
    align-self: auto;
    padding-top: 0;
    text-align: center;
    align-items: center;
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .coming-soon-block {
    align-items: center;
    text-align: center;
  }

  .hero-phone {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    padding-top: 0;
    width: 100%;
    align-items: center;
  }

  .phone-frame {
    width: calc(100% - 64px);
    max-width: 294px;
    border-radius: 26px;
    margin-top: var(--space-6);
  }

  .phone-screen {
    border-radius: 20px;
  }

  .feature-card {
    display: flex;
    width: 136px;
    padding: 10px 12px;
  }

  .feature-card--1 { right: calc(100% - 104px); top: 5%; }
  .feature-card--3 { left: calc(100% - 104px); right: auto; top: 36%; }

  .feature-card-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }

  .feature-card-icon svg {
    width: 14px;
    height: 14px;
  }

  .feature-card-title {
    font-size: 11.5px;
  }

  .feature-card-sub {
    font-size: 10px;
  }

  .site-header {
    display: flex;
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(34px, 9vw, 46px);
  }

  .hero-footer {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    text-align: center;
    padding-bottom: var(--space-4);
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }

  .how-section {
    padding: var(--space-7) var(--space-5) var(--space-7);
  }

  .how-header {
    margin-bottom: var(--space-6);
  }

  .how-grid {
    grid-template-columns: 1fr;
    row-gap: var(--space-7);
  }

  .how-arrow {
    display: none;
  }
}
