:root {
  color-scheme: light;
  --ink: #15211f;
  --muted: #5f6f6b;
  --line: #d7dfdc;
  --paper: #fbfbf8;
  --panel: #ffffff;
  --mint: #2f6f62;
  --mint-deep: #214f47;
  --terra: #a66b50;
  --warm: #ffd9b8;
  --warn: #8a4b1f;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7faf6 0, #fbfbf8 44%, #f1f6f4 100%);
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header {
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: calc(100svh - 112px);
  grid-template-columns: minmax(0, 1.03fr) minmax(300px, 0.72fr);
  gap: 48px;
  align-items: center;
  padding: 24px 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--terra);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.nowrap {
  white-space: nowrap;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.lede {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--mint);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--mint-deep);
}

.button.secondary {
  border-color: var(--line);
  background: #ffffff;
}

.button.text-link {
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
}

.button.disabled {
  border-color: #e0d3c8;
  background: #f1e8df;
  color: var(--warn);
  cursor: not-allowed;
}

.release-facts {
  display: grid;
  max-width: 680px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}

.release-facts div,
.detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.release-facts div {
  padding: 12px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  min-width: 0;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.phone-preview {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(330px, 88vw);
  aspect-ratio: 0.49;
  border: 10px solid #1d2524;
  border-radius: 34px;
  padding: 22px;
  background:
    linear-gradient(180deg, #fff8ef 0%, #ffffff 46%, #eef6f2 100%);
  box-shadow: 0 22px 64px rgba(27, 46, 42, 0.24);
}

.phone-status {
  width: 64px;
  height: 6px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: #263231;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 900;
}

.app-title img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.focus-panel {
  display: grid;
  gap: 8px;
  margin: 38px 0 24px;
  border: 1px solid #d7c0ac;
  border-radius: 8px;
  padding: 22px;
  background: var(--warm);
  color: #3a2a22;
}

.focus-panel span {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.focus-panel strong {
  font-size: 3rem;
  letter-spacing: 0;
}

.preview-row {
  height: 50px;
  margin-top: 12px;
  border-radius: 8px;
  background: #e7efec;
}

.preview-row.short {
  width: 72%;
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.preview-tabs span {
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.update-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0;
  border-radius: 8px;
  padding: 28px;
  background: var(--mint-deep);
  color: #ffffff;
}

.update-band p {
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 8px 0 48px;
}

.detail-card {
  padding: 22px;
}

.detail-card p,
.detail-card li {
  color: var(--muted);
  line-height: 1.65;
}

.detail-card dl {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.checksum {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
}

.release-notes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.site-footer {
  min-height: 74px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  main {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 22px;
  }

  .phone-preview {
    justify-content: flex-start;
  }

  .release-facts,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .update-band {
    display: grid;
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 2.55rem;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
