:root {
  --bg: #f5f0eb;
  --surface: #ffffff;
  --surface-soft: #f8f5f2;
  --surface-rose: #f4e6ea;
  --surface-lilac: #ece6f7;
  --text: #1f2230;
  --muted: #5a6072;
  --line: #dcd4d2;
  --button: #232735;
  --button-hover: #171a25;
  --accent: #8f6fc6;
  --accent-soft: #bba4df;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 420px at 8% -5%, rgba(203, 176, 240, 0.28), transparent 65%),
    radial-gradient(800px 460px at 92% 4%, rgba(250, 188, 205, 0.26), transparent 62%),
    var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  font-family: "DM Serif Display", serif;
  font-size: 2rem;
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(31, 34, 48, 0.16);
}

.brand-label {
  display: inline-block;
  transform: translateY(1px);
}

.section {
  padding: 70px 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  background: linear-gradient(to bottom, rgba(245, 240, 235, 0.96), rgba(245, 240, 235, 0.76));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(220, 212, 210, 0.7);
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(220, 212, 210, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(24, 28, 42, 0.08);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  padding: 6px;
  border: 1px solid rgba(220, 212, 210, 0.95);
  border-radius: 14px;
  background: rgba(248, 245, 242, 0.9);
}

.topnav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: #4b5161;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.topnav a:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(220, 212, 210, 0.9);
  color: #1f2230;
  transform: translateY(-1px);
}

.topnav a[aria-current="page"] {
  background: #232735;
  border-color: #232735;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(35, 39, 53, 0.24);
}

.topnav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero {
  padding-top: 86px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: start;
  gap: 42px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #5f4b84;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.84rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.06;
}

.lead {
  margin: 20px 0 30px;
  color: var(--muted);
  max-width: 590px;
  font-size: 1.15rem;
  line-height: 1.65;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  text-decoration: none;
  background: var(--button);
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition:
    transform 0.18s ease,
    background-color 0.18s ease;
}

.store-btn:hover {
  transform: translateY(-1px);
  background: var(--button-hover);
}

.store-btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: #2d3346;
  border-color: rgba(160, 146, 183, 0.4);
}

.store-btn-secondary:hover {
  background: #ffffff;
}

.hero-pills {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills li {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(156, 140, 187, 0.46);
  background: rgba(255, 255, 255, 0.75);
  color: #4f3f76;
  font-weight: 600;
  font-size: 0.84rem;
}

.hero-card {
  margin: 0;
  background:
    linear-gradient(145deg, rgba(236, 230, 247, 0.95), rgba(244, 230, 234, 0.86)),
    var(--surface-lilac);
  border: 1px solid rgba(185, 170, 211, 0.55);
  border-radius: 24px;
  min-height: 340px;
  padding: 28px;
  box-shadow: 0 14px 30px rgba(45, 33, 70, 0.11);
}

.hero-card-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
  color: #5f4b84;
}

.hero-card h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.12;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hero-stats li {
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(171, 154, 201, 0.36);
}

.hero-stats span {
  display: block;
  font-size: 0.8rem;
  color: #59457d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.hero-stats strong {
  font-size: 1rem;
}

.hero-card-note {
  margin: 14px 0 0;
  color: #574d69;
  font-size: 0.92rem;
}

.section-title {
  margin: 0 0 34px;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.15;
}

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

.feature-card {
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.92), rgba(248, 245, 242, 0.92));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: left;
  min-height: 198px;
  box-shadow: 0 10px 20px rgba(28, 24, 38, 0.05);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.99rem;
  line-height: 1.55;
}

.experience-section {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
}

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

.phone-card {
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.95), rgba(245, 236, 249, 0.96));
  border: 1px solid rgba(200, 184, 224, 0.65);
  border-radius: 18px;
  padding: 20px 18px;
  min-height: 300px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 10px;
}

.phone-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.phone-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.phone-shot {
  width: clamp(105px, 42vw, 150px);
  justify-self: center;
  border-radius: 14px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border: 1px solid rgba(170, 153, 201, 0.38);
  box-shadow: 0 8px 16px rgba(43, 34, 62, 0.14);
}

.mini-list {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
  color: #3a3750;
  font-size: 0.9rem;
}

.mini-list li {
  line-height: 1.4;
}

.apple-links-section {
  padding-top: 52px;
}

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

.apple-link-card {
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 16px rgba(24, 25, 32, 0.05);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.apple-link-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
}

.apple-link-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.apple-link-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.cta-section {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to right, rgba(252, 247, 250, 0.92), rgba(244, 238, 252, 0.9));
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.cta-inner p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.04rem;
}

.store-buttons.centered {
  justify-content: center;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
}

.copyright {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: #2d3346;
}

.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.legal {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.legal article {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  max-width: 840px;
}

.legal h1 {
  margin-top: 0;
}

.legal h2 {
  margin-top: 24px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal-empty {
  min-height: 300px;
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .discover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apple-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    position: static;
    padding: 8px 0;
  }

  .topbar-inner {
    min-height: auto;
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

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

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

  .apple-links-grid {
    grid-template-columns: 1fr;
  }

  .store-btn {
    width: 100%;
    text-align: center;
  }

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

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
