/* Store Stock Checker — one stylesheet for every page.
   Type: SF Pro on Apple devices (system font), Inter everywhere else (closest free SF Pro lookalike).
   Color: iOS-style neutrals plus one accent, "in stock" green. */

:root {
  /* The product name. Change it here; every [data-brand] span and page title uses it. */
  --brand: "Store Stock Checker";

  color-scheme: light dark;
  --bg: #ffffff;
  --fill: #f5f5f7;
  --fill-2: #e8e8ed;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --accent: #1a7f37;
  --accent-dot: #30c552;
  --danger: #d70015;
  --notif: rgba(242, 242, 245, 0.86);
  --notif-ring: rgba(0, 0, 0, 0.06);
  --on-ink: #ffffff;
  --seg-on: #ffffff;
  --shade: rgba(0, 0, 0, 0.08);
  --swatch-ring: rgba(0, 0, 0, 0.12);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fill: #1c1c1e;
    --fill-2: #2c2c2e;
    --ink: #f5f5f7;
    --ink-2: #98989d;
    --line: #38383a;
    --accent: #30d158;
    --accent-dot: #30d158;
    --danger: #ff6961;
    --notif: rgba(44, 44, 46, 0.86);
    --notif-ring: rgba(255, 255, 255, 0.08);
    --on-ink: #000000;
    --seg-on: #48484a;
    --shade: rgba(0, 0, 0, 0.5);
    --swatch-ring: rgba(255, 255, 255, 0.28);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main { flex: 1; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; letter-spacing: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

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

[data-brand]:empty::before { content: var(--brand); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.wrap-wide { max-width: 1120px; }
.wrap-narrow { max-width: 480px; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark { flex: none; width: 22px; height: 22px; margin-top: -2px; }
.brand-mark-dot, .notif-mark circle { fill: var(--accent-dot); }

.live-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-dot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-dot) 22%, transparent);
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 0;
}
@media (hover: hover) { .nav-link:hover { color: var(--ink-2); } }

.foot {
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}
.foot-inner { display: grid; gap: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { text-decoration: none; color: var(--ink); }
@media (hover: hover) { .foot a:hover { text-decoration: underline; } }

/* ---------- Type ---------- */

.display {
  font-size: clamp(40px, 5.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.title {
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-title {
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lede {
  font-size: 19px;
  line-height: 1.42;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}
@media (min-width: 880px) { .lede { font-size: 21px; } }

.sub { color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.fine { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.nums { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */

.btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, opacity 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-secondary { background: var(--fill-2); color: var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; }
@media (hover: hover) {
  .btn-primary:hover:not(:disabled) { opacity: 0.86; }
  .btn-secondary:hover:not(:disabled) { background: color-mix(in srgb, var(--fill-2) 80%, var(--ink) 8%); }
}

.link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link:disabled { color: var(--ink-2); text-decoration: none; cursor: default; }
.link-danger { color: var(--danger); text-decoration: none; }

.icon-btn {
  appearance: none;
  border: 0;
  background: none;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: -10px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 22px; height: 22px; }
@media (hover: hover) { .icon-btn:hover { background: var(--fill); } }

/* ---------- Form fields ---------- */

.label {
  display: block;
  margin: 0 0 8px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: var(--fill);
  color: var(--ink);
  font-size: 19px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.input::placeholder { color: color-mix(in srgb, var(--ink-2) 65%, transparent); }
.input:focus { border-color: var(--ink); background: var(--bg); }
.input[aria-invalid="true"] { border-color: var(--danger); }

.code-input {
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.42em;
  padding-left: calc(18px + 0.42em);
  font-variant-numeric: tabular-nums;
  min-height: 68px;
}

.status {
  min-height: 22px;
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.status.err { color: var(--danger); }
.status.ok { color: var(--accent); }
.status + .link { margin-top: 4px; }

/* ---------- Landing ---------- */

.hero {
  display: grid;
  gap: 28px;
  padding-top: 24px;
  padding-bottom: 40px;
}
.hero .lede { margin-top: 18px; }
.cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

.hero-art {
  position: relative;
  margin: 0;
  max-width: 560px;
  width: 100%;
  justify-self: center;
}
.hero-shot {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 50% 52%;
}
.hero-msg {
  position: absolute;
  left: 0;
  right: 12%;
  bottom: -6px;
  display: grid;
  justify-items: start;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 56px;
    padding-top: 56px;
    padding-bottom: 88px;
  }
  .hero-msg { left: -6%; right: 18%; bottom: 2%; }
}

/* iOS-style notification banner (the home share card in brand/og.html matches it) */
.notif {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
  width: min(100%, 360px);
  padding: 11px 14px 12px 11px;
  border-radius: 22px;
  background: var(--notif);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 10px 30px var(--shade), 0 0 0 0.5px var(--notif-ring);
  color: var(--ink);
}
.notif p { margin: 0; }
.notif-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  color: #1d1d1f;
}
.notif-mark { width: 28px; height: 28px; }
.notif-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); }
.notif-title { margin-top: 1px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.notif-body { font-size: 15px; line-height: 1.3; letter-spacing: -0.01em; }

.hero-msg .notif {
  opacity: 0;
  transform: translateY(-14px) scale(0.96);
  transform-origin: 50% 0;
  animation: pop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.1) 0.6s forwards;
}

@keyframes pop { to { opacity: 1; transform: none; } }

.section { padding-top: 56px; padding-bottom: 16px; }
@media (min-width: 880px) { .section { padding-top: 96px; } }
.section .sub { margin-top: 10px; max-width: 36em; }

.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.step-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fill);
  font-weight: 600;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.3; margin-top: 5px; }
.steps p { margin-top: 4px; color: var(--ink-2); }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps li { grid-template-columns: 1fr; gap: 16px; }
}

.lineup {
  margin-top: 28px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
}
.lineup::-webkit-scrollbar { display: none; }
.lineup figure { margin: 0; flex: 0 0 132px; scroll-snap-align: start; text-align: center; }
.lineup img { width: 132px; height: 132px; object-fit: contain; }
.lineup figcaption { margin-top: 4px; font-size: 14px; font-weight: 500; }
@media (min-width: 880px) {
  .lineup { overflow: visible; margin-inline: 0; padding-inline: 0; justify-content: space-between; }
  .lineup figure { flex: 1 1 0; }
  .lineup img { width: 100%; height: auto; aspect-ratio: 1; }
}

/* Plans */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
  max-width: 640px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  border-radius: 20px;
  background: var(--fill);
}
.plan-name { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.plan-price {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.plan-price small { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); }
.plan-what { margin-top: 10px; font-size: 15px; line-height: 1.4; }
.slots { display: flex; gap: 5px; margin-top: 14px; }
.slots i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); }
.slots[data-n="2"] i:nth-child(-n+2), .slots[data-n="5"] i { background: var(--ink); box-shadow: none; }

/* Selectable plan (flow + account) */
.plan-pick { cursor: pointer; border: 2px solid transparent; transition: border-color 0.15s ease; }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick:has(input:checked) { border-color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.plan-pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* FAQ */
.faq { margin-top: 24px; max-width: 720px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; margin-top: -4px; color: var(--ink-2); max-width: 62ch; }

/* ---------- Create-an-alert flow ---------- */

.flow-bar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  min-height: 60px;
}
.progress { height: 4px; border-radius: 4px; background: var(--fill-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--ink); transition: width 0.35s ease; }

.flow { padding-top: 12px; padding-bottom: 120px; }
.step-head .sub { margin-top: 8px; }
.step-body { margin-top: 24px; }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding-top: 24px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 22px);
}
.dock .wrap { display: grid; gap: 8px; }

/* Option lists (device, storage) */
.options { display: grid; gap: 10px; }
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 18px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.option-img { flex: none; width: 64px; height: 64px; object-fit: contain; }
.option-main { flex: 1; min-width: 0; }
.option-main > * { display: block; }
.option-title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }

/* Color circle in front of a phone's name (stands in for the color name) */
.color-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: -1px;
  outline: 1px solid var(--swatch-ring);
  outline-offset: -1px;
}
.color-dot .color-dot-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.option-sub { font-size: 14px; color: var(--ink-2); }
.option-end { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.option-device { padding: 8px 18px 8px 10px; }
.option-storage .option-title { font-size: 19px; }

/* Product shot + color swatches */
.shot {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.shot img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}
.shot img.is-loading { opacity: 0; }
.shot-sm { max-width: 150px; margin: 0; }

.color-name { margin-top: 4px; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 16px; }
.swatch {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch img, .swatch .swatch-fill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  outline: 1px solid var(--swatch-ring);
  outline-offset: -1px;
}
.swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.15s ease;
}
.swatch:has(input:checked)::after { box-shadow: inset 0 0 0 2px var(--accent); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.picked {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: var(--fill);
}
.picked img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.picked .option-title { font-size: 16px; }

/* Store list */
.store-list { margin-top: 18px; }
.check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.check svg { width: 14px; height: 14px; opacity: 0; color: var(--on-ink); }
.option:has(input:checked) .check, .chip[aria-pressed="true"] .check { background: var(--ink); border-color: var(--ink); }
.option:has(input:checked) .check svg, .chip[aria-pressed="true"] .check svg { opacity: 1; }
.option-store { min-height: 60px; }

/* ---------- Account ---------- */

.page-head { padding-top: 16px; }
.page-head .muted { margin-top: 4px; }

.block { padding-top: 40px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.block-head h2 { font-size: 22px; letter-spacing: -0.02em; }
.count { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.count.is-full { color: var(--ink); font-weight: 600; }

.group { list-style: none; margin: 0; padding: 0; border-radius: 18px; background: var(--fill); overflow: hidden; }
.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 16px;
}
.group > li { position: relative; }
.group > li + li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 1px;
  background: var(--line);
  opacity: 0.7;
}
.group > li.has-thumb + li::before { left: 86px; }
.row-thumb { flex: none; width: 56px; height: 56px; object-fit: contain; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; letter-spacing: -0.015em; }
.row-sub { font-size: 15px; color: var(--ink-2); }
.row-end { flex: none; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.row-empty { color: var(--ink-2); font-size: 15px; padding: 18px 16px; }

a.row, button.row {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
@media (hover: hover) { a.row:hover, button.row:hover { background: var(--fill-2); } }
.row-add { color: var(--ink); }
.row-add .plus {
  display: grid;
  place-items: center;
  width: 56px;
  height: 32px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 980px;
  background: var(--fill-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.tag-good { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.tag-good::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dot); }
.tag-bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }

.banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--fill);
  font-size: 15px;
  line-height: 1.4;
}
.banner::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--ink-2); }
.banner.ok::before { background: var(--accent-dot); }
.banner.err::before { background: var(--danger); }

.note {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--fill);
  font-size: 15px;
  line-height: 1.4;
}
.note .btn { margin-top: 12px; }
.note-strong { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- Alerts on this device (account page) ---------- */

.device-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  margin-top: 20px;
  padding: 18px 18px 16px 16px;
  border-radius: 20px;
  background: var(--fill);
}
.device-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--fill-2);
  color: var(--ink-2);
}
.device-card-icon svg { width: 22px; height: 22px; }
.device-card.is-on .device-card-icon { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.device-card.is-off { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--danger); }
.device-card.is-off .device-card-icon { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.device-card-main { min-width: 0; }
.device-card-title { margin: 0 0 4px; font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; }
.device-card .sub { margin: 0; font-size: 15px; line-height: 1.4; }
.device-card .fine { margin: 10px 0 0; }
.device-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.device-card .status { min-height: 0; }

/* "Add to Home Screen" steps for iPhone Safari */
.hs-steps { display: grid; gap: 14px; margin: 16px 0 4px; padding: 0; list-style: none; counter-reset: hs; }
.hs-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; font-size: 15px; line-height: 1.4; counter-increment: hs; }
.hs-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 0 0 0.5px var(--line);
  color: #007aff; /* iOS's own blue, so the icons look like the ones on screen */
}
.hs-icon svg { width: 20px; height: 20px; }
.hs-icon img { width: 100%; height: 100%; border-radius: inherit; }
.hs-icon::after {
  content: counter(hs);
  position: absolute;
  top: -6px;
  left: -6px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 11px;
  font-weight: 700;
}
@media (prefers-color-scheme: dark) { .hs-icon { color: #0a84ff; } }

.row-title .tag { margin-left: 8px; vertical-align: 1px; }

/* Cloudflare's bot check: no space until it asks for a tap, then it sits under the email field */
.human-check.is-asking { margin-top: 14px; }

/* Sign-in: passkey option under the email form */
.passkey-alt { margin-top: 20px; }
.or { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--ink-2); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* The "turn on alerts" step shows what an alert looks like */
.alerts-preview {
  display: grid;
  place-items: center;
  padding: 32px 16px;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--fill), var(--fill-2));
}
.alerts-preview .notif {
  opacity: 0;
  transform: translateY(-14px) scale(0.96);
  transform-origin: 50% 0;
  animation: pop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.1) 0.25s forwards;
}
.notif-icon img { width: 100%; height: 100%; border-radius: inherit; }

.zip-row { display: flex; gap: 10px; }
.zip-row .input { flex: 1; min-width: 0; }
.zip-row .btn { min-height: 56px; border-radius: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 980px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease;
}
.chip[aria-pressed="true"] { border-color: var(--ink); }
.chip .check { width: 22px; height: 22px; }
.chip-sub { color: var(--ink-2); font-weight: 400; }

.nudge { animation: nudge 0.32s ease; }
@keyframes nudge { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

body.is-loading main { visibility: hidden; }

/* ---------- Legal ---------- */

.prose { padding-top: 16px; max-width: 680px; }
.prose h2 { margin-top: 40px; font-size: 24px; letter-spacing: -0.02em; }
.prose h3 { margin-top: 24px; font-size: 18px; letter-spacing: -0.015em; }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose .muted { margin-top: 8px; }

/* ---------- Stock pages (/iphone-duo, server-rendered) ---------- */

.crumbs {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) { .crumbs a:hover { color: var(--ink); text-decoration: underline; } }
.crumbs [aria-current] { color: var(--ink); }

.stock-head { display: grid; gap: 8px; padding-top: 20px; }
.stock-head .lede { margin-top: 14px; }
/* On phones the shot is a short crop, so the store list stays near the top. */
.stock-shot { margin: 12px 0 0; width: 100%; max-width: 240px; justify-self: center; }
.stock-shot img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 880px) {
  .stock-head { padding-top: 32px; }
  .stock-head.has-shot { grid-template-columns: 1fr 340px; align-items: center; gap: 48px; }
  .stock-shot { max-width: none; margin: 0; }
  .stock-shot img { aspect-ratio: 1; object-fit: contain; }
}

.live-line { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.live-dot.is-stale { background: var(--ink-2); box-shadow: none; }

.stock-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .stock-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.stock-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stock-card-head img { width: 56px; height: 56px; object-fit: contain; }
.stock-card-head h3 { font-size: 19px; letter-spacing: -0.02em; }

a.row .row-sub { font-weight: 400; }
.row-chev { flex: none; width: 8px; height: 14px; color: var(--ink-2); opacity: 0.55; }

/* No fresh result yet: outlined, so it never reads as "Unavailable". */
.tag-wait { background: none; box-shadow: inset 0 0 0 1.5px var(--line); }

.config-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { padding: 8px 16px; text-decoration: none; }
@media (hover: hover) { .chip-link:hover { border-color: var(--ink); } }

.store-index { columns: 3 220px; column-gap: 32px; }
.store-index section { break-inside: avoid; padding-bottom: 20px; }
.store-index h3 { font-size: 15px; letter-spacing: -0.01em; margin-bottom: 6px; }
.store-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.store-index a { text-decoration: none; }
@media (hover: hover) { .store-index a:hover { text-decoration: underline; } }

.block .note { margin-top: 0; }
.note p + .btn { margin-top: 12px; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .hero-msg .notif, .alerts-preview .notif { opacity: 1; transform: none; animation: none; }
  .nudge { animation: none; }
}
