/* Netshelf site. Tokens follow the app (apps/ios/Netshelf/Design/Theme.swift). */
:root {
  --ink: #17191c;
  --ink-raised: #24272c;
  --ink-divider: #2a2d33;
  --on-ink: #a9aeb6;
  --on-ink-caption: #8a9099;
  --ground: #f1f0ec;
  --surface: #ffffff;
  --text: #17191c;
  --text-2: #656b74;
  --rule: #e6e4df;
  --tag-border: #cfc9bc;
  --selected: #fbf7ec;
  --signal: #f2b134;
  --ok: #2e8b57;
  --active: #3b6fd8;
  --caution-text: #8a5a00;
  --sans: "IBM Plex Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #121316;
    --surface: #1b1d21;
    --text: #ecebe7;
    --text-2: #9ba1a9;
    --rule: #2e3137;
    --tag-border: #4a4e55;
    --selected: #2b2719;
    --caution-text: #f2b134;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 16px/1.75 var(--sans);
}

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.mono, code, .caption, .tag { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.caption {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 12px;
}

/* Header and footer: ink chrome, like the app's sidebar and tab bar. */
.top { background: var(--ink); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 18px; font-size: 14px; color: var(--on-ink); }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: #fff; }
.top nav .lang { font-family: var(--mono); font-size: 12px; border: 1px solid var(--ink-divider); padding: 2px 8px; }

.foot { background: var(--ink); color: var(--on-ink); font-size: 13px; margin-top: 72px; }
.foot .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 40px 0 0; }
.hero h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.25; margin: 0 0 16px; font-weight: 700; }
.hero h1 .signal { display: inline-block; width: .42em; height: .42em; background: var(--signal); margin-right: .3em; vertical-align: .12em; }
.hero .lead { color: #d7d9dd; font-size: 17px; max-width: 36em; margin: 0 0 24px; }
.hero .caption { color: var(--on-ink-caption); }
.hero-grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.price-note { font-size: 13px; color: var(--on-ink); margin: 0 0 32px; }

/* Placeholder slots, filled by the screenshot and badge task. */
.slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--tag-border);
  color: var(--text-2);
  font: 12px/1.5 var(--mono);
  padding: 12px;
}
.hero .slot { border-color: #4a4e55; color: var(--on-ink-caption); }
.slot.badge { width: 168px; height: 52px; text-decoration: none; }
.slot.shot { aspect-ratio: 9 / 19.5; width: 100%; background: var(--surface); }
.hero .slot.shot { background: var(--ink-raised); }
.slot.shot.tablet { aspect-ratio: 4 / 3; }

.shots-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 420px; justify-self: center; width: 100%; }
.shots-hero .slot.shot { margin-bottom: -1px; }

/* Sections */
section.block { padding: 56px 0 0; }
section.block h2 { font-size: clamp(22px, 3.4vw, 28px); margin: 0 0 8px; line-height: 1.35; }
section.block > .wrap > p.sub { color: var(--text-2); margin: 0 0 24px; max-width: 40em; }

/* Ruled rows, as in the app's lists. */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); background: var(--surface); }
.rows > li {
  display: grid; grid-template-columns: 6px 1fr; column-gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding: 16px 16px 16px 0;
}
.rows > li::before { content: ""; background: var(--rule); }
.rows > li.ok::before { background: var(--ok); }
.rows > li.active::before { background: var(--active); }
.rows > li.signal::before { background: var(--signal); }
.rows h3 { font-size: 17px; margin: 0 0 4px; }
.rows p { margin: 0; color: var(--text-2); font-size: 15px; }
.rows .tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  display: inline-block; font-size: 10.5px; letter-spacing: .04em; line-height: 1;
  color: var(--text-2); border: 1px solid var(--tag-border); padding: 4px 6px;
}

.cols { display: grid; gap: 24px; }
@media (min-width: 820px) { .cols { grid-template-columns: 1fr 1fr; } }

/* Steps 1 → 2 → 3, as in the app's transfer rows. */
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps b { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; background: var(--ink); color: #fff; font: 500 12px var(--mono); }
@media (prefers-color-scheme: dark) { .steps b { background: var(--ground); outline: 1px solid var(--on-ink); } }

.state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.state::before { content: ""; width: 8px; height: 8px; background: var(--ok); }

.shots-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .shots-row { grid-template-columns: repeat(4, 1fr); } }

/* Notice with a left bar, as in the app's banners. */
.notice { border-left: 4px solid var(--signal); background: var(--surface); padding: 12px 16px; font-size: 14px; }
.notice.placeholder { border-left-color: var(--caution-text); }
.notice.placeholder strong { color: var(--caution-text); }

/* Long-form pages: privacy, support. */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(26px, 4.5vw, 34px); line-height: 1.3; margin: 48px 0 8px; }
.doc h2 { font-size: 20px; margin: 40px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--text); }
.doc h3 { font-size: 16px; margin: 24px 0 4px; }
.doc p, .doc li { font-size: 15.5px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc .meta { color: var(--text-2); font: 13px var(--mono); margin: 0 0 24px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.doc th { border-bottom: 1px solid var(--text); font-weight: 700; }
.doc .table-scroll { overflow-x: auto; }
.doc dl { margin: 0; }
.doc dt { font-weight: 700; margin-top: 20px; }
.doc dd { margin: 4px 0 0; color: var(--text); }

.ph { background: var(--selected); border-bottom: 1px dashed var(--caution-text); padding: 0 2px; }

.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* Keep grid children from widening the page on phones. */
.hero-grid > *, .cols > * { min-width: 0; }
.hero-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
@media (max-width: 480px) {
  .top nav { gap: 12px; font-size: 13px; }
  .brand { font-size: 15px; }
}

#statistics-settings {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

#statistics-dialog {
  max-width: min(32rem, calc(100% - 2rem));
  padding: 1.5rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

#statistics-dialog h2 { margin: 0; }
#statistics-dialog::backdrop { background: rgb(0 0 0 / 55%); }

.statistics-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .75rem;
}

.statistics-actions button {
  min-height: 44px;
  padding: .4rem .9rem;
  font: inherit;
  color: var(--text);
  background: var(--ground);
  border: 1px solid var(--tag-border);
  border-radius: 4px;
  cursor: pointer;
}
