:root {
  --bg: #f7f7f5;
  --surface: #ececea;
  --text: #171917;
  --muted: #656963;
  --line: #d9dad6;
  --green: #22b866;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

.header,
main,
footer {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.logo span { width: 12px; height: 12px; border-radius: 4px; background: var(--green); }
.header nav { display: flex; gap: 26px; color: var(--muted); font-size: 13px; }
.header nav a:hover { color: var(--text); }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: center;
  padding: 88px 0 100px;
}
.platform,
.label,
.number {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .08em;
}
h1 { margin: 0; font-size: clamp(64px, 8vw, 104px); line-height: .95; letter-spacing: -.075em; }
.lead { margin: 26px 0 14px; font-size: clamp(24px, 3vw, 34px); font-weight: 650; letter-spacing: -.04em; line-height: 1.35; }
.lead span,
.section-heading h2 span,
.detail-copy h3 span { display: block; }
.description { margin: 0 0 34px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.download-button { display: flex; align-items: center; width: max-content; gap: 13px; min-height: 58px; margin-bottom: 22px; padding: 9px 20px 9px 14px; border-radius: 13px; background: var(--text); color: white; transition: transform .18s ease, background .18s ease; }
.download-button:hover { transform: translateY(-2px); background: #2b2e2b; }
.apple-mark { width: 30px; text-align: center; font-size: 27px; line-height: 1; }
.download-button > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.download-button strong { font-size: 13px; font-weight: 650; }
.download-button small { color: #b8bbb8; font-size: 10px; }
.text-link { display: inline-flex; gap: 18px; padding-bottom: 4px; border-bottom: 1px solid var(--text); font-size: 12px; font-weight: 600; transition: opacity .15s ease; }
.text-link:hover { opacity: .55; }
.product-demo,
.compact-image { margin: 0; }
.product-demo { position: relative; }
.demo-stage { position: relative; width: 100%; aspect-ratio: 692 / 500; }
.demo-stage img { position: absolute; inset: 0 auto auto 0; height: 100%; object-fit: fill; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(26, 31, 27, .07); }
.demo-closed { width: 46.25%; z-index: 1; transition: opacity .32s ease; }
.demo-open { width: 100%; z-index: 2; opacity: 0; clip-path: inset(0 53.75% 0 0 round 16px); transition: clip-path .72s cubic-bezier(.22,.75,.2,1), opacity .16s ease; }
.product-demo.is-open .demo-closed { opacity: 0; }
.product-demo.is-open .demo-open { opacity: 1; clip-path: inset(0 0 0 0 round 16px); }
.demo-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.demo-toggle span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.product-demo figcaption { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.section { padding: 120px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 170px 1fr; margin-bottom: 100px; }
.section-heading h2 { margin: 0; font-size: clamp(40px, 5vw, 62px); line-height: 1.1; letter-spacing: -.055em; }
.feature-list { border-top: 1px solid var(--line); }
.feature-list article { display: grid; grid-template-columns: 80px 220px 1fr; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.feature-list .number { margin: 0; }
.feature-list h3 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.feature-list article > p:last-child { max-width: 500px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.detail-row { display: grid; grid-template-columns: 320px 1fr; gap: 120px; align-items: center; padding: 110px 0 20px; }
.detail-copy { max-width: 480px; }
.detail-copy h3 { margin: 0 0 18px; font-size: 34px; line-height: 1.3; letter-spacing: -.04em; }
.detail-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.compact-image { width: 280px; justify-self: center; }
.compact-image img { border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(26, 31, 27, .07); }

.updates { padding-bottom: 160px; }
.release { display: grid; grid-template-columns: 170px 1fr; padding-top: 30px; border-top: 1px solid var(--text); }
.release-meta { display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.release-meta span { color: var(--green); }
.release-content { max-width: 620px; }
.release-content h3 { margin: 0 0 18px; font-size: 28px; letter-spacing: -.035em; }
.release-content > p { margin: 0 0 36px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.release-content ul { padding: 0; margin: 0; list-style-position: inside; color: #454944; font-size: 13px; line-height: 2.1; }

footer { min-height: 110px; display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer p { margin: 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 54px; padding-top: 76px; }
  .hero-copy { max-width: 580px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .feature-list article { grid-template-columns: 60px 180px 1fr; }
  .detail-row { grid-template-columns: 280px 1fr; gap: 70px; }
  .compact-image { justify-self: start; }
}

@media (max-width: 560px) {
  .header,
  main,
  footer { width: min(100% - 32px, 1080px); }
  .header { height: 66px; }.header nav { gap: 18px; font-size: 12px; }
  .hero { min-height: auto; padding: 70px 0 90px; }
  h1 { font-size: 66px; }
  .lead { font-size: 26px; }
  .description br { display: none; }
  .demo-stage img { border-radius: 13px; }
  .section { padding: 90px 0; }
  .section-heading { margin-bottom: 50px; }
  .section-heading h2 { font-size: 30px; line-height: 1.35; letter-spacing: -.04em; }
  .feature-list article { grid-template-columns: 44px 1fr; gap: 6px; padding: 20px 0; }
  .feature-list article > p:last-child { grid-column: 2; }
  .detail-row { grid-template-columns: 1fr; gap: 48px; padding-top: 80px; }
  .compact-image { width: min(280px, 86%); }
  .detail-copy h3 { font-size: 29px; }
  .download-button { width: 100%; max-width: 290px; }
  .release { grid-template-columns: 1fr; gap: 36px; }
  .release-meta { flex-direction: row; }
  footer { grid-template-columns: 1fr auto; gap: 16px; } footer p:first-of-type { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: appear .5s ease-out both; }
  .product-demo { animation: appear .5s .08s ease-out both; }
  @keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}

@media (prefers-reduced-motion: reduce) {
  .demo-open { transition: none; }
  .demo-closed { transition: none; }
}
