:root {
  --cream: #fdf8f2;
  --paper: #fffdfa;
  --paper-soft: #fff7ee;
  --ink: #201a16;
  --ink-soft: #4c423a;
  --muted: #766d65;
  --line: #ece3d8;
  --amber: #ff8721;
  --amber-dark: #dd6811;
  --cool: #dfeef4;
  --sage: #dfe8df;
  --shadow: 0 24px 70px rgba(50, 36, 24, 0.18);
  --soft-shadow: 0 18px 50px rgba(64, 45, 27, 0.11);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

::selection {
  color: #fff;
  background: var(--amber);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  right: auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100vw - 36px), calc(var(--max) + 48px));
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.72);
  box-shadow: 0 10px 30px rgba(42, 30, 20, 0.08);
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  transform: translateX(-50%);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 250, 0.88);
  box-shadow: 0 14px 40px rgba(42, 30, 20, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px 12px 4px 6px;
  font-weight: 800;
  font-size: 1rem;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(32, 26, 22, 0.06);
}

.site-nav .nav-cta {
  color: #fff;
  background: var(--ink);
}

.site-nav .nav-cta:hover {
  color: #fff;
  background: var(--amber-dark);
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(32, 26, 22, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(860px, 84svh);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 118px 24px 64px;
  background: var(--cream);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-tint {
  position: absolute;
  inset: 0;
  background: rgba(253, 248, 242, 0.68);
  pointer-events: none;
}

.floating-phone {
  position: absolute;
  width: clamp(210px, 22vw, 330px);
  aspect-ratio: 1206 / 2622;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.86);
  border-radius: clamp(28px, 3vw, 48px);
  box-shadow: var(--shadow);
  background: #fff;
}

.floating-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-a {
  right: max(5vw, 40px);
  top: 92px;
  transform: rotate(5deg);
}

.phone-b {
  right: min(31vw, 430px);
  bottom: -250px;
  transform: rotate(-7deg);
}

.phone-c {
  right: -70px;
  bottom: -150px;
  transform: rotate(10deg);
  opacity: 0.92;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--amber-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(4.3rem, 14vw, 10.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.35rem, 2.6vw, 2.25rem);
  line-height: 1.14;
  font-weight: 750;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--amber);
  box-shadow: 0 14px 30px rgba(255, 135, 33, 0.28);
}

.button.primary:hover {
  background: var(--amber-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(32, 26, 22, 0.08);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 660px;
  margin: 42px 0 0;
  padding: 0;
}

.hero-stats div {
  min-width: 142px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(42, 30, 20, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-stats dt {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.section-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.intro-section,
.screens-section,
.features-section,
.story-section,
.privacy-section,
.download-section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.intro-section {
  background: var(--paper);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 8vw, 110px);
  align-items: start;
}

.intro-layout h2,
.section-heading h2,
.story-copy h2,
.privacy-layout h2,
.download-layout h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-layout p:last-child {
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.7vw, 1.42rem);
  line-height: 1.42;
  font-weight: 650;
}

.screens-section {
  background: var(--cream);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(34px, 6vw, 64px);
}

.section-heading.compact {
  max-width: 650px;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
  align-items: start;
}

.screen-shot {
  display: grid;
  gap: 16px;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.screen-shot:hover .phone-frame {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(48, 34, 23, 0.2);
}

.phone-frame {
  display: block;
  aspect-ratio: 1206 / 2622;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: clamp(30px, 4vw, 48px);
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-label {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  font-weight: 850;
}

.features-section {
  background: var(--paper);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper-soft);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 54px;
  border-radius: 16px;
  color: #fff;
  background: var(--amber);
}

.feature-icon.cool {
  color: var(--ink);
  background: var(--cool);
}

.feature-icon.sage {
  color: var(--ink);
  background: var(--sage);
}

.feature-icon.dark {
  background: var(--ink);
}

.feature-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.08;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 600;
}

.story-section {
  background: #edf4f4;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1fr);
  gap: clamp(38px, 8vw, 100px);
  align-items: start;
}

.story-list {
  display: grid;
  gap: 16px;
}

.story-list article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid rgba(32, 26, 22, 0.12);
}

.story-list article:last-child {
  border-bottom: 1px solid rgba(32, 26, 22, 0.12);
}

.story-list span {
  grid-row: 1 / span 2;
  color: var(--amber-dark);
  font-size: 0.85rem;
  font-weight: 900;
}

.story-list h3 {
  grid-column: 2;
  margin-bottom: 8px;
  font-size: 1.55rem;
}

.story-list p {
  grid-column: 2;
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.48;
  font-weight: 620;
}

.privacy-section {
  color: #fff;
  background: var(--ink);
}

.privacy-section .section-kicker {
  color: #ffb26a;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(38px, 8vw, 100px);
  align-items: start;
}

.privacy-points {
  display: grid;
  gap: 12px;
}

.privacy-points p {
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.5vw, 1.26rem);
  line-height: 1.43;
  font-weight: 650;
}

.privacy-points p:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.download-section {
  background: var(--cream);
}

.download-layout {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(34px, 6vw, 60px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.download-layout h2 {
  max-width: 620px;
}

.site-footer {
  padding: 34px 0 46px;
  background: var(--cream);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer-brand {
  color: var(--ink);
}

.footer-inner p {
  margin: 0;
  font-weight: 650;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 28px;
}

.lightbox.is-open {
  display: grid;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 11, 0.72);
  cursor: zoom-out;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: min(90vw, 420px);
  margin: 0;
}

.lightbox-content img {
  max-height: min(82svh, 860px);
  width: auto;
  border: 10px solid rgba(255, 255, 255, 0.92);
  border-radius: 42px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  background: #fff;
}

.lightbox-content figcaption {
  color: #fff;
  font-weight: 850;
}

.lightbox-close {
  position: absolute;
  right: -16px;
  top: -16px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

@media (max-width: 1020px) {
  .screens-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phone-b {
    display: none;
  }

  .phone-a {
    right: -28px;
    opacity: 0.74;
  }

  .phone-c {
    right: 170px;
    opacity: 0.52;
  }
}

@media (max-width: 900px) {
  .site-header {
    inset: auto;
    top: 12px;
    left: 50%;
    right: auto;
    width: calc(100vw - 24px);
    max-width: none;
    margin: 0;
    border-radius: 28px;
    transform: translateX(-50%);
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: min(760px, 80svh);
    padding: 112px 20px 54px;
  }

  .hero-tint {
    background: rgba(253, 248, 242, 0.78);
  }

  .floating-phone {
    width: 210px;
    border-width: 6px;
  }

  .phone-a {
    top: 110px;
    right: -56px;
  }

  .phone-c {
    right: 105px;
    bottom: -210px;
  }

  .hero-subtitle {
    max-width: 520px;
  }

  .hero-stats {
    margin-top: 32px;
  }

  .intro-layout,
  .story-layout,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .download-layout {
    align-items: start;
    flex-direction: column;
    border-radius: 28px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .section-inner {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: clamp(3.55rem, 16.5vw, 4.35rem);
    line-height: 0.92;
  }

  .hero-subtitle {
    max-width: 350px;
    font-size: clamp(1.16rem, 5.5vw, 1.38rem);
  }

  .phone-a {
    right: -96px;
    opacity: 0.48;
  }

  .phone-c {
    right: 126px;
    bottom: -270px;
    opacity: 0.38;
  }

  .hero-actions,
  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions {
    width: min(100%, 350px);
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    min-width: 0;
  }

  .screens-grid {
    display: flex;
    gap: 18px;
    margin-inline: -14px;
    padding-inline: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .screen-shot {
    flex: 0 0 76%;
    scroll-snap-align: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 230px;
  }

  .feature-icon {
    margin-bottom: 34px;
  }

  .story-list article {
    grid-template-columns: 42px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
