:root {
  color-scheme: light;
  --blue: #0071e3;
  --ios-blue: #007aff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --line: #e5e5ea;
  --accent: #716bd1;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: #fff;
}
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font:
    16px/1.6 -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Helvetica Neue",
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ios-blue);
  outline-offset: 4px;
  border-radius: 4px;
}
.site-shell {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}
.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid #ececef;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.7px;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.brand small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}
nav a {
  color: #515154;
  font-size: 13px;
  text-decoration: none;
}
nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.nav-button {
  padding: 8px 17px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
}
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  gap: clamp(42px, 6vw, 72px);
  align-items: center;
  padding: 64px 0 82px;
}
.landing-hero h1 {
  max-width: 610px;
  margin: 20px 0 24px;
  font-size: clamp(50px, 5.7vw, 72px);
  font-weight: 720;
  line-height: 1.035;
  letter-spacing: -0.052em;
}
.landing-hero h1 span {
  color: var(--accent);
}
.lead {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
  margin-top: 25px;
  padding: 11px 22px;
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  font-size: 20px;
  font-weight: 550;
  line-height: 1.05;
  text-align: left;
  text-decoration: none;
}
.app-store-button small {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.download-mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  font-weight: 450;
  line-height: 1;
}
.fine-print {
  margin: 14px 0 0;
  color: #86868b;
  font-size: 11px;
}
.device-stage {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 590px;
  padding: 16px 30px 0;
  border: 1px solid var(--line);
  border-radius: 52px;
  background: var(--soft);
  box-shadow: 0 25px 65px rgba(32, 32, 64, 0.05);
}
.iphone-frame {
  width: min(328px, 86%);
  height: 570px;
  padding: 10px;
  border: 3px solid #242427;
  border-radius: 51px;
  background: #09090a;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}
.iphone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 40px;
  background: #d5ced3;
}
.companion-portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 35%;
}
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 92px;
  height: 25px;
  border-radius: 18px;
  background: #050506;
  transform: translateX(-50%);
}
.companion-caption {
  position: absolute;
  top: 53px;
  left: 24px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}
.companion-caption span {
  display: block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.companion-caption strong {
  display: block;
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -0.8px;
}
.sample-chat {
  position: absolute;
  bottom: 32px;
  left: -34px;
  z-index: 2;
  width: min(315px, 72%);
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(20px);
}
.chat-heading {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.bubble {
  margin: 0 0 10px;
  padding: 11px 14px;
  border-radius: 18px 18px 18px 5px;
  background: #e9e9eb;
  font-size: 13px;
  line-height: 1.45;
}
.bubble-me {
  margin-left: 55px;
  color: #fff;
  border-radius: 18px 18px 5px 18px;
  background: var(--ios-blue);
}
.illustration-label {
  margin: 2px 0 0;
  color: #86868b;
  font-size: 9px;
  text-align: right;
}
.experience {
  padding: 54px 0 66px;
  border-top: 1px solid #ececef;
}
.experience > h2,
.closing h2 {
  margin: 15px 0 0;
  font-size: clamp(35px, 4vw, 44px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.feature-grid article {
  padding: 28px;
  border-radius: 25px;
  background: var(--soft);
}
.feature-number {
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}
.feature-grid h3 {
  margin: 17px 0 11px;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.closing {
  margin-bottom: 48px;
  padding: 46px 28px;
  border-radius: 30px;
  background: var(--soft);
  text-align: center;
}
.closing .app-store-button {
  margin-top: 26px;
}
.account-note {
  max-width: 680px;
  margin: 0 auto 42px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 27px 0 38px;
  border-top: 1px solid #ececef;
  color: var(--muted);
  font-size: 11px;
}
.site-footer div {
  display: flex;
  gap: 22px;
}

.legal-layout {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 58px 0 76px;
}
.legal-hero {
  padding: clamp(28px, 6vw, 52px);
  border-radius: 30px;
  background: var(--soft);
}
.legal-hero h1 {
  max-width: 760px;
  margin: 14px 0 17px;
  font-size: clamp(44px, 8vw, 68px);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.legal-hero .intro {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.3vw, 20px);
}
.updated {
  margin: 19px 0 0;
  color: #86868b;
  font-size: 12px;
}
.legal-article {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.legal-article section {
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}
.legal-article h2 {
  margin: 0 0 15px;
  font-size: 25px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.legal-article p,
.legal-article ul {
  margin: 0;
  color: #515154;
}
.legal-article p + p,
.legal-article p + ul,
.legal-article ul + p {
  margin-top: 14px;
}
.legal-article ul {
  padding-left: 1.25rem;
}
.legal-article li + li {
  margin-top: 9px;
}
.legal-article strong {
  color: var(--ink);
}
.legal-article details {
  margin-top: 18px;
  padding: 15px 19px;
  border-radius: 14px;
  background: var(--soft);
}
.legal-article summary {
  color: var(--blue);
  cursor: pointer;
  font-weight: 600;
}
.legal-article details[open] > summary {
  margin-bottom: 14px;
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 36px, 680px);
  }
  nav {
    gap: 15px;
  }
  nav .nav-button {
    display: none;
  }
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 42px;
  }
  .device-stage {
    width: min(100%, 500px);
    margin-left: 16px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 30px, 680px);
  }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding: 17px 0;
  }
  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 17px;
  }
  .brand {
    font-size: 18px;
  }
  .landing-hero h1 {
    font-size: 49px;
    letter-spacing: -0.045em;
  }
  .device-stage {
    min-height: 518px;
    margin-left: 0;
    padding: 14px 14px 0;
    border-radius: 38px;
  }
  .iphone-frame {
    height: 495px;
    border-radius: 45px;
  }
  .iphone-screen {
    border-radius: 34px;
  }
  .sample-chat {
    bottom: 24px;
    left: -8px;
    width: 78%;
  }
  .feature-grid article {
    padding: 25px;
  }
  .closing {
    padding: 34px 20px;
  }
  .site-footer {
    flex-direction: column;
    gap: 14px;
  }
  .site-footer div {
    flex-wrap: wrap;
  }
  .legal-layout {
    padding-top: 34px;
  }
  .legal-hero {
    border-radius: 24px;
  }
  .legal-article section {
    border-radius: 20px;
  }
}

@media print {
  .site-header,
  .site-footer {
    display: none;
  }
  .legal-layout {
    padding: 0;
  }
  .legal-hero,
  .legal-article section {
    padding: 18px 0;
    border: 0;
    background: #fff;
  }
  .legal-article details > :not(summary) {
    display: block !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .sample-chat {
    background: #fff;
    backdrop-filter: none;
  }
}
