/* 2143 Labs — one page, one stylesheet, no external requests.
   Mobile: the column is the page. Desktop: the column keeps its reading
   width and height, over a tiled background. */

:root {
  --bg: #08090d;
  --panel: #0d1017;
  --text: #e9edf5;
  --muted: #8f9aae;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #5eead4;
  --accent-2: #a78bfa;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("/tile.svg");
  background-size: 168px 168px;
  color: var(--text);
  font: 400 16px/1.55 ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

/* Brand glow over the tile. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(42rem 28rem at 10% -10%, rgba(94, 234, 212, 0.14), transparent 62%),
    radial-gradient(38rem 26rem at 92% 110%, rgba(167, 139, 250, 0.18), transparent 60%);
  pointer-events: none;
}

/* The reading column. */
.viewport {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2rem;
  min-height: 100svh;
  min-height: 100dvh;
  background: var(--panel);
}

.viewport::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #7dd3fc 55%, var(--accent-2));
}

/* Above phone width the column stops growing, and the tile takes the rest. */
@media (min-width: 42rem) {
  .viewport {
    max-width: 27rem;
    min-height: min(100svh - 5rem, 40rem);
    margin: 2.5rem auto;
    padding: 2rem 1.75rem 1.75rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 24px 70px -28px rgba(0, 0, 0, 0.9);
  }

  /* Inside the framed column the contact block sits at the bottom. */
  .contact {
    margin-top: auto;
    padding-top: 2rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand img {
  display: block;
  border-radius: 7px;
}

.lede {
  margin: 2.5rem 0 0;
  font-size: clamp(1.25rem, 5.4vw, 1.5rem);
  line-height: 1.28;
  font-weight: 500;
  letter-spacing: -0.028em;
}

.lede__tail {
  color: var(--muted);
}

.products {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.products li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.detail {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--muted);
  white-space: nowrap;
}

a.detail {
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(94, 234, 212, 0.35);
}

a.detail:hover {
  border-bottom-color: currentColor;
}

.contact {
  margin-top: 2.5rem;
}

.contact p {
  margin: 0;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.status__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.14);
}

.email {
  font-size: 1.05rem;
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(94, 234, 212, 0.35);
}

.email:hover {
  border-bottom-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Store ------------------------------------------------------------- */

/* Store-only tokens. The sky tint is already the middle stop of the header
   rule, so the three collars reuse colours the page already carries. */
.viewport--store {
  --sky: #7dd3fc;
  --card: #0b0e15;
}

.back {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
}

.back:hover {
  color: var(--text);
}

.intro {
  margin-top: 2.5rem;
}

.intro__name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 620;
  letter-spacing: -0.028em;
}

.intro__desc {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.section {
  margin: 2.25rem 0 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.section + .products {
  margin-top: 0.6rem;
}

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

/* The board every collar shares, stated once as plain text rather than as
   another box competing with the collars. */
.line__shared {
  max-width: 46ch;
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

/* One frame, three collars. The 1px grid gap is the divider, so the columns
   are separated by hairlines instead of by more boxes. */
.collars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
  overflow: hidden;
}

.collar {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.15rem 1.3rem;
  background: var(--card);
}

/* A short rule patterned per radio: dotted mesh hops, cellular dashes, solid
   satellite. Decorative, so it is aria-hidden in the markup. */
.collar__mark {
  width: 2.25rem;
  height: 3px;
  border-radius: 999px;
  background-color: var(--tint);
}

.collar--mesh {
  --tint: var(--accent);
}

.collar--mesh .collar__mark,
.collar--lte .collar__mark {
  background-color: transparent;
}

.collar--mesh .collar__mark {
  background-image: repeating-linear-gradient(90deg, var(--tint) 0 3px, transparent 3px 8px);
}

.collar--lte {
  --tint: var(--sky);
}

.collar--lte .collar__mark {
  background-image: repeating-linear-gradient(90deg, var(--tint) 0 13px, transparent 13px 18px);
}

.collar--global {
  --tint: var(--accent-2);
}

.collar__role {
  margin: 0.8rem 0 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tint);
}

.collar__name {
  margin: 0.3rem 0 0;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.028em;
}

.collar__price {
  margin: 0.1rem 0 0;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
}

/* The one line that separates this collar from the other two. */
.collar__pitch {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

/* Absorbs whatever slack the pitch leaves, so the disclosure row and the
   call to action land on the same line across all three cards. */
.collar__points {
  flex-grow: 1;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.collar__points li {
  position: relative;
  padding-left: 0.95rem;
}

.collar__points li + li {
  margin-top: 0.4rem;
}

.collar__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--tint);
  opacity: 0.55;
}

/* Optional detail behind a native disclosure: no script, and the keyboard and
   screen-reader behaviour comes for free. */
.collar__specs {
  margin-top: 1.05rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.collar__specs summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.collar__specs summary::before {
  content: "+";
  width: 0.85em;
  text-align: center;
  color: var(--tint);
}

.collar__specs[open] summary::before {
  content: "−";
}

.collar__specs summary:hover,
.collar__specs[open] summary {
  color: var(--text);
}

.collar__specs dl {
  margin: 0.75rem 0 0;
}

.collar__specs dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.collar__specs dd {
  margin: 0.15rem 0 0.7rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.collar__specs dd:last-child {
  margin-bottom: 0;
}

/* Sits on the card floor, so the three call to action links line up. */
.collar__cta {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.2rem;
}

/* The one caveat the line shares: airtime, satellite status, and the optional
   bridge. */
.terms {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

/* How owners use the collar: the app, pairing, and where it can connect. */
.app {
  max-width: 46ch;
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.cta {
  display: block;
  margin-top: 1.15rem;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #04120f;
  font-size: 0.95rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.cta:hover {
  background: #7bf0dd;
}

.launch {
  display: inline-block;
  margin: 0.85rem 0 0;
  padding: 0.3rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* Three collars side by side need a stage wider than the reading column.
   Below this width the framed column stays exactly as the landing page has
   it, and the collars stack. */
@media (min-width: 56rem) {
  .viewport--store {
    max-width: 62rem;
  }

  .collars {
    grid-template-columns: repeat(3, 1fr);
  }

  .intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .intro .cta {
    flex: none;
    margin-top: 0;
    padding-inline: 1.5rem;
  }
}
