:root {
  --system-background: #f2f2f7;
  --secondary-grouped-background: #ffffff;
  --separator: rgba(60, 60, 67, 0.18);
  --label: #000000;
  --secondary-label: rgba(60, 60, 67, 0.72);
  --tertiary-label: rgba(60, 60, 67, 0.42);
  --system-blue: #007aff;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
  --shadow-screen: 0 26px 56px rgba(0, 0, 0, 0.14);
  --radius-card: 26px;
  --radius-button: 18px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--system-background);
  color: var(--label);
  font-family:
    "SF Pro Rounded",
    ui-rounded,
    "SF Pro Display",
    "SF Pro Text",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

a {
  color: inherit;
}

.page-shell,
.legal-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(320px, 470px);
  grid-template-areas:
    "copy visual"
    "links visual";
  gap: 72px;
  align-items: center;
  justify-content: center;
  padding: 40px 0 32px;
  margin: 0 auto;
}

.hero-copy {
  grid-area: copy;
  max-width: 560px;
}

.hero-brand {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}

.hero-brand span {
  color: var(--secondary-label);
  font-weight: 500;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 32px;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1;
}

.hero-icon {
  width: clamp(58px, 6vw, 82px);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  -webkit-user-drag: none;
  user-select: none;
}

.hero-text,
.legal-page p {
  margin: 28px 0 0;
  color: var(--secondary-label);
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.hero-text {
  max-width: 32rem;
}

.hero-meta {
  grid-area: links;
  display: grid;
  gap: 10px;
  align-self: end;
}

.hero-links {
  display: inline-flex;
  gap: 16px;
}

.hero-links a {
  color: var(--tertiary-label);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
}

.copyright {
  margin: 0;
  color: var(--tertiary-label);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.hero-visual {
  grid-area: visual;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.screen-panel {
  width: min(100%, 470px);
  height: min(68vh, 720px);
  padding: 0;
}

.carousel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  gap: 16px;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 220ms ease;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.screen-image {
  width: min(100%, 265px);
  max-height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 265px);
  margin: 0 auto;
}

.carousel-button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--label);
  font: inherit;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--separator);
  cursor: pointer;
}

.carousel-dot.is-active {
  width: 22px;
  background: var(--label);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--tertiary-label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-page {
  max-width: 860px;
  margin: 28px auto 0;
  padding: 0 0 12px;
}

.legal-page h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.2rem);
  line-height: 0.98;
}

.legal-page h2 {
  margin: 32px 0 10px;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.legal-header {
  padding-top: 40px;
}

.legal-brand {
  margin-bottom: 14px;
}

.legal-nav {
  gap: 18px;
}

.legal-meta {
  max-width: 860px;
  margin: 18px auto 48px;
  align-self: auto;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "links";
    gap: 32px;
    padding-bottom: 40px;
  }

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

  .hero-visual {
    justify-content: center;
  }

  .hero-meta {
    margin-top: 4px;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .legal-shell {
    width: min(100% - 24px, 1240px);
  }

  h1 {
    margin-top: 24px;
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .hero-brand {
    font-size: 1rem;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .hero-meta {
    gap: 8px;
  }

  .hero-links {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
  }

  .screen-panel {
    width: 100%;
    height: 520px;
  }

  .screen-image {
    width: min(100%, 230px);
  }

  .carousel-controls {
    width: min(100%, 230px);
  }

  .legal-page {
    padding: 0 0 12px;
  }

  .legal-header {
    padding-top: 28px;
  }

  .legal-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .legal-meta {
    margin-bottom: 32px;
  }
}
