/* HomeNet website. System fonts only, no external requests. */

:root {
  color-scheme: light dark;
  --ink: #0b1630;
  --ink-2: #14244f;
  --bg: #ffffff;
  --bg-alt: #eef2f8;
  --surface: #ffffff;
  --text: #14203d;
  --muted: #55627f;
  --line: #d6deec;
  --accent: #1f5fe0;
  --led: #2bd36b;
  --c-net: #ed851a;
  --c-ap: #2a7cf0;
  --c-cam: #e0443e;
  --c-srv: #9158d6;
  --c-oth: #8791ad;
  --radius: 16px;
  --wrap: 1120px;
  --track: -0.02em;
  --lh-head: 1.1;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #08101f;
    --ink-2: #12224a;
    --bg: #0a1226;
    --bg-alt: #0e1a35;
    --surface: #12213f;
    --text: #e8eefc;
    --muted: #a3b1d1;
    --line: #223559;
    --accent: #7fadff;
  }
}

html:lang(zh-Hans) {
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
html:lang(zh-Hant) {
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", system-ui, sans-serif;
}
html:lang(ja) {
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans CJK JP", system-ui, sans-serif;
}
html:lang(ko) {
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", system-ui, sans-serif;
}
html:lang(zh-Hans),
html:lang(zh-Hant),
html:lang(ja),
html:lang(ko) {
  --track: 0;
  --lh-head: 1.3;
}
/* Korean separates words with spaces, so keep them whole when wrapping. */
html:lang(ko) {
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* Japanese has no spaces: where supported, wrap headings at phrase boundaries. */
html:lang(ja) :is(h1, h2) {
  word-break: auto-phrase;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1 0 auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 760;
  line-height: var(--lh-head);
  letter-spacing: var(--track);
  overflow-wrap: break-word;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid #6ea2ff;
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2.5rem, 760px);
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
}

/* ---- header ---------------------------------------------------------- */

.top {
  position: relative;
  z-index: 20;
  background: var(--bg-alt);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  font-size: 1.15rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
.links {
  display: flex;
  gap: 1.5rem;
}
.links a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.links a:hover,
.links a[aria-current] {
  color: var(--text);
}

.lang {
  position: relative;
}
.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang summary svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 11rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 40px -18px rgba(11, 22, 48, 0.4);
}
.lang li a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
}
.lang li a:hover {
  background: var(--bg-alt);
}
.lang li a[aria-current] {
  font-weight: 700;
}

@media (max-width: 719px) {
  .links {
    display: none;
  }
}

/* ---- hero ------------------------------------------------------------ */

.hero {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background: var(--bg-alt);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 24%, transparent) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 899px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--accent);
  font: 600 0.78rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--led) 28%, transparent);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
}
.lead {
  max-width: 34em;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 1.8rem 0 0;
}
.fine {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 650;
  text-decoration: none;
}
.btn:hover {
  opacity: 0.9;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.7rem 1.2rem;
  border: 1px dashed color-mix(in srgb, var(--text) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-weight: 600;
}
.soon .led {
  background: #f5b50b;
  box-shadow: 0 0 8px #f5b50b;
}

.led {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 8px var(--led);
}

/* ---- IP grid panel --------------------------------------------------- */

.panel {
  position: relative;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border-radius: 22px;
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  box-shadow: 0 30px 60px -28px rgba(11, 22, 48, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #e8eefc;
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 1rem;
  font: 500 0.78rem/1.4 var(--mono);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #fff;
  letter-spacing: 0.04em;
}
.panel-sub {
  margin: 0;
  color: #9fb2dd;
}

.ipgrid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: clamp(2px, 0.5vw, 4px);
}
.c {
  display: block;
  aspect-ratio: 1;
  border-radius: clamp(2px, 0.5vw, 4px);
  background: rgba(255, 255, 255, 0.075);
  animation: scan 1.1s ease-out backwards;
  animation-delay: calc(var(--d, 0) * 42ms + 0.25s);
}
.c.res {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.dev {
  display: grid;
  place-items: center;
  background: var(--c);
  animation-name: found;
}
.dev em {
  color: rgba(255, 255, 255, 0.92);
  font: 600 clamp(6px, 1.3vw, 9.5px) / 1 var(--mono);
  font-style: normal;
}
@media (max-width: 479px) {
  .dev em {
    display: none;
  }
}
.net { --c: var(--c-net); }
.ap { --c: var(--c-ap); }
.cam { --c: var(--c-cam); }
.srv { --c: var(--c-srv); }
.oth { --c: var(--c-oth); }

.d0{--d:0}.d1{--d:1}.d2{--d:2}.d3{--d:3}.d4{--d:4}.d5{--d:5}.d6{--d:6}.d7{--d:7}.d8{--d:8}.d9{--d:9}.d10{--d:10}
.d11{--d:11}.d12{--d:12}.d13{--d:13}.d14{--d:14}.d15{--d:15}.d16{--d:16}.d17{--d:17}.d18{--d:18}.d19{--d:19}.d20{--d:20}
.d21{--d:21}.d22{--d:22}.d23{--d:23}.d24{--d:24}.d25{--d:25}.d26{--d:26}.d27{--d:27}.d28{--d:28}.d29{--d:29}.d30{--d:30}

@keyframes scan {
  0% { background-color: rgba(255, 255, 255, 0.075); }
  28% { background-color: rgba(255, 255, 255, 0.34); }
  100% { background-color: rgba(255, 255, 255, 0.075); }
}
@keyframes found {
  0% { opacity: 0.18; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9); }
  35% { opacity: 1; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.28); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.dev.on {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
@media (hover: hover) {
  .dev:hover {
    outline: 2px solid #fff;
    outline-offset: 1px;
  }
}

.tip {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 2;
  margin-top: 0.7rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: #0b1630;
  color: #fff;
  font: 500 0.85rem/1.35 var(--sans);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}
.tip span {
  margin-right: 0.65rem;
  color: #9fc2ff;
  font-family: var(--mono);
}
.dev.on .tip {
  opacity: 1;
}
@media (hover: hover) {
  .dev:hover .tip {
    opacity: 1;
  }
}

.readout {
  display: flex;
  align-items: center;
  min-height: 2.4rem;
  margin: 0.7rem 0 0;
  color: #9fb2dd;
  font-size: 0.85rem;
  line-height: 1.35;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  color: #b9c6e6;
  font-size: 0.8rem;
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.sw {
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 3px;
  background: var(--c);
}
.sw.free {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .c {
    animation: none;
  }
  .tip,
  .gauge i {
    transition: none;
  }
}

/* ---- sections -------------------------------------------------------- */

.sec {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.alt {
  background: var(--bg-alt);
}
.sec-head {
  max-width: 46rem;
  margin: 0 0 clamp(1.75rem, 4vw, 3rem);
}
.sec-head h2,
.cta h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
}
.sec-lead {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}
.center {
  margin-inline: auto;
  text-align: center;
}
.center .eyebrow {
  justify-content: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 899px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.split.start {
  align-items: start;
}
.split > div > .sec-head {
  margin-bottom: 0;
}

.ticks {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 2rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 0.33rem;
  top: calc(0.38em + 0.3rem);
  width: 0.45rem;
  height: 0.24rem;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---- devices (screenshots) ------------------------------------------- */

.phone {
  margin: 0;
  container-type: inline-size;
}
.device {
  padding: 2.4cqw;
  border-radius: 32px;
  border-radius: 11cqw;
  background: #0b0f1a;
  box-shadow: inset 0 0 0 1px #2b3247, 0 28px 50px -22px rgba(11, 22, 48, 0.6);
}
.device img {
  width: 100%;
  aspect-ratio: 600 / 1304;
  border-radius: 26px;
  border-radius: 8.8cqw;
  background: #eef2f8;
}
.phone figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font: 600 0.76rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: start;
}
.phones .phone:nth-child(2) {
  margin-top: -1.75rem;
}
@media (max-width: 719px) {
  .phones {
    grid-auto-flow: column;
    grid-auto-columns: min(64vw, 250px);
    grid-template-columns: none;
    gap: 1rem;
    margin-inline: -1.25rem;
    padding: 0 1.25rem 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .phones .phone {
    scroll-snap-align: center;
  }
  .phones .phone:nth-child(2) {
    margin-top: 0;
  }
}

.tablet {
  margin: 0;
}
.tablet .device {
  padding: clamp(6px, 1.2vw, 12px);
  border-radius: clamp(16px, 3vw, 30px);
}
.tablet img {
  aspect-ratio: 4 / 3;
  border-radius: clamp(10px, 2vw, 20px);
}

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}
.duo .phone:nth-child(2) {
  margin-top: 2.5rem;
}

.laptop {
  max-width: 62rem;
  margin: 0 auto;
}
.laptop img {
  width: 100%;
  border-radius: clamp(10px, 2vw, 20px);
  box-shadow: 0 40px 80px -34px rgba(11, 22, 48, 0.6);
}

/* ---- dark band + PoE what-if ----------------------------------------- */

.ink {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  color: #e8eefc;
}
.ink .eyebrow {
  color: #8fb5ff;
}
.ink .sec-lead {
  color: #b2c0e0;
}
.ink .ticks li::before {
  background: rgba(143, 181, 255, 0.16);
  box-shadow: inset 0 0 0 1.5px #8fb5ff;
}
.ink .ticks li::after {
  border-color: #8fb5ff;
}

.whatif {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 899px) {
  .whatif {
    grid-template-columns: 1fr;
  }
}
.pick {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wi-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.wi-tabs label {
  padding: 0.6rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #d3def5;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.wi-tabs label:hover {
  background: rgba(255, 255, 255, 0.08);
}
#wi-a:checked ~ .wi-main label[for="wi-a"],
#wi-b:checked ~ .wi-main label[for="wi-b"] {
  border-color: #fff;
  background: #fff;
  color: #0b1630;
}
#wi-a:focus-visible ~ .wi-main label[for="wi-a"],
#wi-b:focus-visible ~ .wi-main label[for="wi-b"] {
  outline: 3px solid #6ea2ff;
  outline-offset: 3px;
}

.wi-card {
  margin-bottom: 1.75rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}
.wi-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.wi-status svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wi-status.ok { color: #4ee08a; }
.wi-status.bad { color: #ff7a72; }

.st-b { display: none; }
.wi-status.st-b { display: none; }
#wi-b:checked ~ .wi-main .st-a,
#wi-b:checked ~ .wi-phone .st-a { display: none; }
#wi-b:checked ~ .wi-main .st-b,
#wi-b:checked ~ .wi-phone .st-b { display: block; }
#wi-b:checked ~ .wi-main .wi-status.st-b { display: flex; }

.gauge {
  position: relative;
  display: grid;
  grid-template-columns: repeat(36, minmax(0, 1fr)) 14px repeat(2, minmax(0, 1fr));
  gap: 3px;
  height: 40px;
  margin: 1.5rem 0 3.4rem;
}
.gauge i {
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
  transition: background-color 0.35s, box-shadow 0.35s;
}
.gauge .g { --c: #2bd36b; }
.gauge .y { --c: #f2c230; }
.gauge .o { --c: #f58a1f; }
.gauge .r { --c: #ff4d44; }
.gauge .a1 {
  background: var(--c);
  box-shadow: 0 0 12px -2px var(--c);
}
.gauge .a2 {
  background: color-mix(in srgb, var(--c) 55%, rgba(255, 255, 255, 0.09));
}
#wi-b:checked ~ .wi-main .gauge .b1 {
  background: var(--c);
  box-shadow: 0 0 12px -2px var(--c);
}
#wi-b:checked ~ .wi-main .gauge .b2 {
  background: color-mix(in srgb, var(--c) 55%, rgba(255, 255, 255, 0.09));
}
.gauge .mark {
  position: relative;
}
.gauge .mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  bottom: -8px;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: #fff;
}
.gauge .mark span {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  color: #dbe5fb;
  font: 600 0.74rem/1 var(--mono);
  white-space: nowrap;
}

.wi-rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}
@media (max-width: 479px) {
  .wi-rows {
    grid-template-columns: 1fr;
  }
}
.wi-rows > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.wi-rows dt {
  color: #a9bbe3;
  font: 600 0.68rem/1.35 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wi-rows dd {
  margin: 0;
  color: #fff;
  font: 700 clamp(1.4rem, 3vw, 1.9rem) / 1 var(--mono);
}
.wi-rows dd.good { color: #4ee08a; }
.wi-rows dd.warn { color: #ff7a72; }

.sample {
  margin: 1rem 0 0;
  color: #8ea1cd;
  font: 500 0.72rem/1.3 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wi-phone > div {
  width: min(100%, 290px);
  margin-inline: auto;
}

/* ---- chips, cards, faq ------------------------------------------------ */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
  line-height: 1.4;
}
.chips .more {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}
.card {
  padding: 1.3rem 1.3rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card svg {
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.85rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card p {
  margin: 0;
}

.faq {
  display: grid;
  gap: 0.6rem;
}
.faq details,
.doc details {
  padding: 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.faq summary,
.doc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker,
.doc summary::-webkit-details-marker {
  display: none;
}
.faq summary::after,
.doc summary::after {
  flex: none;
  content: "+";
  color: var(--accent);
  font: 400 1.5rem/1 var(--mono);
}
.faq details[open] summary::after,
.doc details[open] summary::after {
  content: "−";
}
.faq details p,
.doc details p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

/* ---- call to action + footer ------------------------------------------ */

.cta {
  text-align: center;
}
.cta .sec-lead {
  max-width: 36rem;
  margin-inline: auto;
}
.cta .actions {
  justify-content: center;
}
.ink .btn {
  background: #fff;
  color: #0b1630;
}
.ink .soon {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.foot {
  padding: 3rem 0 2.5rem;
  background: #060d1d;
  color: #9fb0d3;
  font-size: 0.9rem;
}
.foot a {
  color: #d6e0f7;
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}
.foot .brand {
  color: #fff;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  margin-bottom: 1.75rem;
}
.foot-links,
.foot-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-langs a[aria-current] {
  color: #fff;
  font-weight: 700;
}
.small {
  max-width: 62rem;
  margin: 0.4rem 0;
  color: #8193ba;
  font-size: 0.8rem;
  line-height: 1.55;
}

/* ---- legal pages ------------------------------------------------------ */

.doc {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}
.doc h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 4.4vw, 3rem);
}
.doc .upd {
  margin: 0 0 2rem;
  color: var(--muted);
  font: 500 0.85rem/1.4 var(--mono);
}
.doc h2 {
  margin: 2.5rem 0 0.7rem;
  font-size: 1.35rem;
}
.doc ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.2rem;
}
.doc dl {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
  gap: 0.7rem 1.4rem;
  margin: 0;
}
.doc dt {
  font-weight: 650;
}
.doc dd {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 600px) {
  .doc dl {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .doc dd {
    margin-bottom: 0.8rem;
  }
}
.doc details {
  margin: 0.6rem 0;
}
