:root {
  color-scheme: light;
  --text: #111114;
  --muted: #746e64;
  --paper: #f8f4ec;
  --card: rgba(255, 252, 246, 0.76);
  --cream: #fffcf6;
  --ink: #18181c;
  --orange: #f49a2f;
  --blue: #8fb6ee;
  --pink: #f37aa3;
  --green: #55c975;
  --shadow: 0 28px 80px rgba(48, 35, 19, 0.14);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(244, 154, 47, 0.2), transparent 28rem),
    linear-gradient(180deg, #fbf7ef 0%, #f1eadf 48%, #faf7ef 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 30px;
  background: rgba(255, 252, 246, 0.72);
  backdrop-filter: blur(26px) saturate(140%);
  box-shadow: 0 14px 44px rgba(48, 35, 19, 0.09);
}

.brand,
.nav-links,
.site-footer nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 820;
  letter-spacing: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(41, 32, 22, 0.14);
}

.nav-links,
.site-footer nav {
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.site-footer a,
.lang-toggle {
  padding: 10px 12px;
  border-radius: 999px;
}

.nav-links a:hover,
.site-footer a:hover,
.lang-toggle:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
}

.lang-toggle {
  border: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 64px;
  padding: 58px 0 46px;
}

.hero-icon {
  width: 84px;
  height: 84px;
  margin-bottom: 22px;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(48, 35, 19, 0.18);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 8vw, 108px);
  line-height: 0.92;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.08;
}

.hero-line,
.section-title p,
.story-card p,
.icloud-copy p,
.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.72;
}

.hero-line {
  max-width: 520px;
  margin-bottom: 28px;
  font-size: 21px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(48, 35, 19, 0.1);
}

.button.primary {
  color: white;
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.7);
}

.button.invert {
  color: var(--ink);
  background: white;
}

.hero-stage {
  position: relative;
  justify-self: center;
  width: min(468px, 100%);
  padding: 10px;
  border-radius: 38px;
  background: var(--card);
  backdrop-filter: blur(26px) saturate(140%);
  box-shadow: var(--shadow);
}

.phone-main {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 30px;
}

.floating-decision {
  position: absolute;
  right: -26px;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.82);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 42px rgba(48, 35, 19, 0.14);
  font-weight: 820;
}

.floating-decision.keep {
  top: 18%;
  border-left: 5px solid var(--green);
}

.floating-decision.discard {
  top: 32%;
  border-left: 5px solid var(--orange);
}

.floating-decision.love {
  top: 46%;
  border-left: 5px solid var(--pink);
}

.metrics {
  width: min(1120px, calc(100% - 32px));
  margin: -18px auto 76px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metrics article,
.story-card,
.icloud-panel,
.legal-card {
  background: var(--card);
  backdrop-filter: blur(26px) saturate(140%);
  box-shadow: var(--shadow);
}

.metrics article {
  padding: 22px;
  border-radius: 28px;
}

.metrics strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.flow-section,
.icloud-section,
.screens-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0;
}

.section-title {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-title.compact {
  max-width: 620px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.story-card {
  min-height: 280px;
  padding: 26px;
  border-radius: 32px;
  overflow: hidden;
}

.story-card.large {
  grid-row: span 3;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
}

.story-card.large img {
  width: min(360px, 92%);
  justify-self: center;
  align-self: end;
  border-radius: 28px;
}

.story-card.dark {
  color: white;
  background: var(--ink);
}

.story-card.dark p,
.story-card.dark small {
  color: rgba(255, 255, 255, 0.68);
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: 15px;
  color: white;
  background: var(--orange);
  font-weight: 850;
}

.story-card small {
  color: var(--orange);
  font-weight: 800;
}

.icloud-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 28px;
}

.icloud-copy p {
  max-width: 680px;
  font-size: 18px;
}

.english-line {
  padding-left: 18px;
  border-left: 4px solid var(--orange);
}

.icloud-panel {
  padding: 28px;
  border-radius: 32px;
}

.icloud-panel span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.icloud-panel strong {
  display: block;
  margin: 12px 0 24px;
  font-size: 38px;
  line-height: 1;
}

.icloud-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.screens-section {
  width: 100%;
  padding-left: max(16px, calc((100% - 1120px) / 2));
  padding-right: max(16px, calc((100% - 1120px) / 2));
  background: var(--cream);
}

.screen-pairs {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.9fr;
  align-items: end;
  gap: 16px;
}

.screen-pairs figure {
  margin: 0;
  padding: 10px;
  border-radius: 30px;
  background: #f4ecdf;
  box-shadow: 0 22px 54px rgba(48, 35, 19, 0.12);
}

.screen-pairs img {
  width: 100%;
  height: min(58vw, 620px);
  object-fit: contain;
  border-radius: 22px;
}

.screen-pairs figcaption {
  padding: 12px 6px 4px;
  color: var(--muted);
  font-weight: 750;
}

.privacy-band {
  width: min(1120px, calc(100% - 32px));
  margin: 76px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px;
  border-radius: 34px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.privacy-band h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 42px;
  color: var(--muted);
}

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

.legal-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.legal-card {
  padding: clamp(24px, 5vw, 54px);
  border-radius: 30px;
}

.legal-card h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 24px;
}

.legal-card p,
.legal-card li {
  font-size: 17px;
}

.legal-card ul {
  padding-left: 22px;
}

.legal-meta {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero,
  .icloud-section,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 34px;
    padding-top: 46px;
  }

  .hero-stage {
    width: min(430px, 92vw);
  }

  .floating-decision {
    right: 14px;
  }

  .metrics,
  .screen-pairs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  .privacy-band {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links,
  .site-footer nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  h1 {
    font-size: clamp(48px, 15vw, 64px);
  }

  .hero-copy,
  .hero-line {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-line {
    font-size: 18px;
  }

  h2 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .hero-icon {
    width: 72px;
    height: 72px;
  }

  .metrics {
    margin-top: 0;
  }

  .hero-stage {
    width: 100%;
    overflow: hidden;
  }

  .floating-decision {
    display: none;
  }

  .screen-pairs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }

  .screen-pairs figure {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  .screen-pairs img {
    height: 540px;
  }
}
