:root {
  color-scheme: light dark;
  --page: #f6f6f4;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #6d6d69;
  --line: #d9d9d4;
  --yellow: #ffd60a;
  --yellow-ink: #625000;
  --focus: #816900;
  --header: color-mix(in srgb, var(--page) 90%, transparent);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--page);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgb(255 214 10 / 18%);
}

a,
button,
summary {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--yellow-ink);
}

button,
summary {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #111111;
  background: var(--yellow);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
  background: var(--header);
}

.header-inner,
.overview,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.header-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.language-toggle {
  min-width: 44px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.language-toggle:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.site-main {
  min-height: 0;
  display: grid;
}

.overview {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(520px, 1.28fr);
  align-items: center;
  gap: clamp(40px, 6vw, 84px);
  padding-block: clamp(24px, 4.5vh, 50px);
}

.hero-copy,
.platform-card {
  min-width: 0;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 730;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-lockup {
  display: block;
}

.hero-icon {
  display: block;
  width: 82px;
  margin-bottom: 20px;
}

.hero-icon img {
  display: block;
  width: 82px;
  height: 82px;
  border-radius: 19px;
  box-shadow: 0 14px 36px rgb(0 0 0 / 14%);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  text-wrap: balance;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(52px, 5.5vw, 72px);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.platform-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(280px, 1.45fr);
  align-items: center;
  gap: clamp(16px, 2.2vw, 26px);
}

.platform-card {
  scroll-margin-top: 20px;
}

.product-figure {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #deded9;
  background: #ffffff;
  box-shadow: 0 18px 46px rgb(0 0 0 / 9%);
}

.product-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-figure {
  width: min(100%, 236px);
  margin-inline: auto;
  border-radius: 26px;
  aspect-ratio: 1178 / 2556;
}

.phone-figure img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.tv-figure {
  border-radius: 14px;
  aspect-ratio: 16 / 9;
}

.tv-figure img {
  height: 100%;
  object-fit: contain;
}

.site-footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.legal-dialog {
  width: min(820px, calc(100% - 32px));
  max-height: min(84svh, 860px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--page);
  box-shadow: 0 28px 90px rgb(0 0 0 / 28%);
}

.legal-dialog::backdrop {
  background: rgb(0 0 0 / 48%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.legal-dialog-shell {
  padding: 0 28px 28px;
}

.legal-dialog-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.legal-dialog-header .section-kicker {
  margin-bottom: 6px;
}

.legal-dialog-header h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.dialog-close {
  min-width: 58px;
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.dialog-close:hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.legal-panel {
  scroll-margin-top: 106px;
  border-bottom: 1px solid var(--line);
}

.legal-panel summary {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 2px;
  font-size: 17px;
  font-weight: 690;
  cursor: pointer;
}

.legal-panel summary:hover {
  color: var(--yellow-ink);
}

.legal-panel[open] summary {
  border-bottom: 1px solid var(--line);
}

.legal-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.legal-document {
  max-width: 700px;
  padding: 28px 2px 42px;
  color: color-mix(in srgb, var(--ink) 90%, var(--muted));
  font-size: 15px;
  line-height: 1.76;
}

.legal-document > :first-child {
  margin-top: 0;
}

.legal-document h3 {
  margin: 30px 0 8px;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.legal-document p {
  margin: 0 0 15px;
}

.legal-document .source-date {
  color: var(--muted);
  font-size: 13px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #090909;
    --ink: #f4f4f2;
    --muted: #a0a09b;
    --line: #2d2d2a;
    --yellow-ink: #ffd60a;
    --focus: #ffd60a;
  }
}

@media (max-width: 1000px) and (min-width: 761px) {
  .overview {
    grid-template-columns: minmax(230px, 0.68fr) minmax(470px, 1.32fr);
    gap: 36px;
  }

  .phone-figure {
    max-width: 184px;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .overview,
  .site-footer {
    width: min(100% - 32px, 620px);
  }

  .header-inner {
    min-height: 52px;
  }

  .overview {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 22px;
    padding-block: 18px;
  }

  .hero-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .hero-icon,
  .hero-icon img {
    width: 56px;
    height: 56px;
  }

  .hero-icon {
    flex: 0 0 auto;
    margin: 0;
  }

  .hero-icon img {
    border-radius: 13px;
  }

  h1 {
    margin-bottom: 0;
    font-size: clamp(38px, 12vw, 46px);
  }

  .platform-grid {
    grid-template-columns: minmax(96px, 0.62fr) minmax(0, 1.38fr);
    gap: 14px;
  }

  .section-kicker {
    margin-bottom: 7px;
    font-size: 9px;
  }

  .phone-figure {
    max-width: 136px;
    border-radius: 18px;
  }

  .tv-figure {
    border-radius: 10px;
  }

  .site-footer {
    min-height: 50px;
    justify-content: center;
    font-size: 12px;
  }

  .site-footer > p {
    display: none;
  }

  .site-footer nav {
    justify-content: center;
    gap: 16px;
  }

  .legal-dialog-shell {
    padding-inline: 18px;
  }

  .legal-dialog-header {
    gap: 16px;
    padding-block: 19px 15px;
  }

  .legal-dialog-header h2 {
    font-size: 22px;
  }

  .legal-panel summary {
    grid-template-columns: 1fr;
    gap: 0;
    font-size: 16px;
  }

  .legal-document {
    padding-block: 24px 36px;
    font-size: 14px;
  }
}

@media (max-width: 760px) and (max-height: 680px) {
  .overview {
    gap: 14px;
    padding-block: 10px;
  }

  .hero-icon,
  .hero-icon img {
    width: 48px;
    height: 48px;
  }

  h1 {
    font-size: 36px;
  }

  .phone-figure {
    max-width: 118px;
  }
}

@media (min-width: 761px) and (max-height: 720px) {
  .overview {
    padding-block: 18px;
  }

  .hero-icon,
  .hero-icon img {
    width: 64px;
    height: 64px;
  }

  h1 {
    font-size: 54px;
  }

  .phone-figure {
    max-width: 170px;
  }
}

@media (min-width: 761px) and (min-height: 620px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }
}
