:root {
  color-scheme: light;
  --ink: #10233a;
  --muted: #607086;
  --blue: #1f6feb;
  --blue-dark: #1554b8;
  --blue-soft: #eaf2ff;
  --mint: #bdf3df;
  --paper: #ffffff;
  --canvas: #f4f7fb;
  --line: #dce4ee;
  --shadow: 0 24px 70px rgba(24, 54, 91, 0.12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 2%, rgba(189, 243, 223, 0.62), transparent 26rem),
    linear-gradient(180deg, #fbfdff 0, var(--canvas) 38rem, #fff 100%);
  min-width: 0;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

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

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

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark { width: 34px; height: 34px; }

nav { display: flex; gap: 1.5rem; }

nav a,
footer a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 620;
  text-decoration: none;
}

nav a:hover,
footer a:hover { color: var(--blue); }

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
  padding: 5.2rem 0 6.5rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.4rem;
  border-radius: 999px;
  background: #12a572;
  box-shadow: 0 0 0 5px rgba(18, 165, 114, 0.12);
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 0.99;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 7vw, 6.3rem);
  font-weight: 820;
}

h2 { font-size: clamp(2rem, 4vw, 3.7rem); }

.hero-lead {
  max-width: 670px;
  margin: 1.8rem 0 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.download-panel {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
}

.download-button {
  min-width: 265px;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.2rem;
  border-radius: 1rem;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(31, 111, 235, 0.24);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.download-button:not(.is-disabled):hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(31, 111, 235, 0.28);
}

.download-button:focus-visible,
.hash:focus-visible,
.version-download:focus-visible,
summary:focus-visible,
nav a:focus-visible,
footer a:focus-visible {
  outline: 3px solid #f6b73c;
  outline-offset: 3px;
}

.download-button.is-disabled {
  opacity: 0.64;
  cursor: wait;
  box-shadow: none;
}

.download-button svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-button span { display: grid; gap: 0.16rem; }
.download-button strong { font-size: 1.03rem; }
.download-button small { color: #dce9ff; }

.download-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.assurances {
  display: flex;
  gap: 0.85rem 1.4rem;
  flex-wrap: wrap;
  margin: 1.65rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.85rem;
  list-style: none;
}

.assurances span { color: #07825b; font-weight: 900; }

.release-card {
  position: relative;
  padding: 1.45rem;
  border: 1px solid rgba(220, 228, 238, 0.9);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.release-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), #55d4ac);
}

.release-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.3rem 1.35rem;
}

.release-mark {
  width: 66px;
  height: 66px;
  padding: 0.42rem;
  border-radius: 1.15rem;
  background: var(--blue-soft);
}

.muted-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.release-version { font-size: 1.7rem; }

.release-facts { margin: 0; }

.release-facts > div {
  display: grid;
  grid-template-columns: 7.8rem 1fr;
  align-items: center;
  min-height: 3.05rem;
  border-top: 1px solid var(--line);
}

.release-facts dt { color: var(--muted); font-size: 0.82rem; }
.release-facts dd { margin: 0; font-weight: 680; text-align: right; }

.hash {
  max-width: 13rem;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  color: var(--blue-dark);
  background: var(--blue-soft);
  cursor: copy;
  font: 650 0.78rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.hash span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hash:disabled { cursor: default; color: var(--muted); }

.release-caption {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.how,
.versions {
  padding: 6.5rem 0;
  border-top: 1px solid var(--line);
}

.how {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 4rem;
}

.how-heading > p:last-child {
  max-width: 24rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.steps li:first-child { padding-top: 0.2rem; }

.steps li > span {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-weight: 800;
}

.steps strong { font-size: 1.05rem; }

.steps p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.52;
}

.install-guide {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
  overflow: hidden;
}

.install-guide summary {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
}

.install-guide summary::-webkit-details-marker { display: none; }

.install-guide summary > span:first-child {
  display: grid;
  gap: 0.25rem;
}

.install-guide summary strong { font-size: 1.05rem; }
.install-guide summary small { color: var(--muted); font-size: 0.84rem; line-height: 1.4; }

.summary-icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 1.35rem;
  transition: transform 160ms ease;
}

.install-guide[open] .summary-icon { transform: rotate(45deg); }

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.guide-grid article {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
}

.guide-grid .samsung-guide { background: #f7f9ff; }
.guide-grid .older-android { grid-column: 1 / -1; }

.guide-label {
  margin: 0 0 0.45rem;
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-grid h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  letter-spacing: -0.025em;
}

.guide-steps {
  display: grid;
  gap: 0.75rem;
  margin: 1.1rem 0 0;
  padding-left: 1.25rem;
}

.guide-steps li,
.older-android p:last-child {
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.security-note {
  margin: 1.2rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  color: #6b4b04;
  background: #fff7df;
  font-size: 0.9rem;
  line-height: 1.5;
}

.older-android p:last-child { margin: 0.8rem 0 0; }

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.58fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.4rem;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.version-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
}

.version-row {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.25fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 86px;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
}

.version-row:first-child { border-top: 0; }
.version-name { font-size: 1.05rem; font-weight: 760; }
.version-latest { display: inline-block; margin-left: 0.5rem; padding: 0.25rem 0.45rem; border-radius: 999px; color: #086245; background: var(--mint); font-size: 0.68rem; text-transform: uppercase; }
.version-date,
.version-size { color: var(--muted); font-size: 0.86rem; }
.version-sha { overflow: hidden; color: var(--muted); font: 0.75rem ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }

.version-download {
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.archive-state { margin: 0; padding: 1.4rem; color: var(--muted); }

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  min-height: 132px;
  border-top: 1px solid var(--line);
}

footer p { color: var(--muted); font-size: 0.85rem; }
.footer-brand { font-size: 0.95rem; }
.footer-brand .brand-mark { width: 28px; height: 28px; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 3.5rem; }
  .release-card { max-width: 560px; }
  .how { grid-template-columns: 1fr; gap: 2.7rem; }
  .install-guide { grid-column: auto; margin-top: -0.5rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid .older-android { grid-column: auto; }
  .section-heading { grid-template-columns: 1fr; gap: 1.2rem; }
  .version-row { grid-template-columns: 1fr 1fr auto; }
  .version-sha { display: none; }
  footer { grid-template-columns: 1fr; gap: 0.7rem; padding: 2.2rem 0; }
  footer p { margin: 0; }
}

@media (max-width: 600px) {
  .site-header, main, footer { width: min(100% - 28px, 1120px); }
  .site-header { min-height: 64px; gap: 1rem; }
  nav { gap: 0; }
  nav a:nth-child(n+2) { display: none; }
  .hero { gap: 2.5rem; padding: 2.25rem 0 4rem; }
  h1 { font-size: clamp(2.55rem, 12.5vw, 3.65rem); line-height: 1.02; }
  .hero-lead { margin: 1.3rem 0 1.5rem; font-size: 1rem; line-height: 1.5; }
  .download-panel { align-items: stretch; }
  .download-button { width: 100%; min-width: 0; padding: 1rem; }
  .assurances { display: grid; }
  .release-card { border-radius: 1.35rem; }
  .how, .versions { padding: 4rem 0; }
  .how { gap: 2.1rem; }
  .install-guide summary { min-height: 76px; padding: 1rem; }
  .guide-grid article { padding: 1.15rem 1rem; }
  .version-row { grid-template-columns: 1fr auto; gap: 0.45rem 1rem; }
  .version-date { grid-column: 1; }
  .version-size { display: none; }
  .version-download { grid-column: 2; grid-row: 1 / span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
