/* Support hub and guides. Brand: Inter Tight for display, Inter for reading, Noto Sans Mono for small tracked
   labels. A Swiss grid with hairlines; the dusk sky appears on brand surfaces only; teal marks one thing per screen. */

@font-face { font-family: Inter; src: url("../fonts/inter-latin-bec94a.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; src: url("../fonts/inter-latin-ext-367ba6.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-a807ee.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-ext-17cab1.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Sans Mono"; src: url("../fonts/noto-sans-mono-latin-a264f1.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193; }

:root {
  color-scheme: light dark;
  --bg: #fbfbfc;
  --bg-2: #f1f3f4;
  --surface: #fff;
  --fg: #111417;
  --muted: #5b6168;
  --line: #e3e6e8;
  --strong-line: #cdd3d6;
  --chip: #edf0f1;
  --teal: #2f6670;
  --teal-ink: #fff;
  --dusk: #1d2f42;
  --sky: linear-gradient(160deg, #1d2f42 0%, #2f5a66 45%, #5e8a8e 78%, #a9bbb6 100%);
  --glow-a: rgb(94 138 142 / .2);
  --glow-b: rgb(169 187 182 / .32);
  --shadow: 0 1px 2px rgb(17 20 23 / .04), 0 12px 32px -12px rgb(29 47 66 / .18);

  --f-display: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Noto Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bar-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c0f;
    --bg-2: #111418;
    --surface: #15191d;
    --fg: #eef1f3;
    --muted: #9aa3ab;
    --line: #23292f;
    --strong-line: #344048;
    --chip: #1a1f24;
    --teal: #7cc4cc;
    --teal-ink: #0a1416;
    --glow-a: rgb(47 90 102 / .5);
    --glow-b: rgb(29 47 66 / .65);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 1.25rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 600; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: var(--fg); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
}
@media (min-width: 40rem) { .wrap { padding-inline: max(2rem, env(safe-area-inset-left, 0px)) max(2rem, env(safe-area-inset-right, 0px)); } }
.label {
  font: 400 .6875rem/1.4 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.c { color: var(--teal); }
.skip { position: absolute; left: 1rem; top: 0; z-index: 40; padding: .5rem .85rem; border-radius: 8px; background: var(--fg); color: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: translateY(.5rem); }
.prose-link { font-weight: 600; color: var(--teal); }
.prose-link:hover { color: var(--fg); }

/* Site bar: sticky, blurred like the homepage. */
.site-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--bar-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font: 600 .9375rem var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.brand svg { flex: none; width: 28px; height: 28px; }
.bar-actions { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.25rem); }
.bar-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); }
.bar-link:hover, .bar-link:focus-visible, .bar-link[aria-current="page"] { color: var(--fg); background: var(--chip); }
.badge { display: inline-flex; flex: none; border-radius: 9px; }
.badge img { display: block; width: auto; height: 34px; }
@media (max-width: 26rem) {
  .brand span { display: none; }
}
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}
[dir="rtl"] .read-progress { transform-origin: right; }

/* Hero, shared by the hub and the guides. */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 40% 55% at 78% 18%, var(--glow-a), transparent 70%),
    radial-gradient(ellipse 55% 45% at 60% 0%, var(--glow-b), transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fg);
  opacity: .045;
  -webkit-mask: url("../hero-grain.svg") 0 0 / 160px 160px;
  mask: url("../hero-grain.svg") 0 0 / 160px 160px;
  pointer-events: none;
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.crumbs a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--fg); }
.crumbs a:hover { color: var(--teal); }
.crumbs span[aria-hidden] { color: var(--strong-line); }
.hero h1 {
  font-size: clamp(2.35rem, 1.35rem + 4.6vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.lede { max-width: 54ch; color: var(--muted); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; }
.lede a { color: var(--fg); }

/* ---------- Support hub ---------- */
.hub-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem);
}
.hub-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.hub-hero h1 { max-width: 11ch; }

/* A widget on the dusk sky: the clock is the hero, and only its colon moves. */
.sky-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 15rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  overflow: hidden;
  border-radius: 28px;
  background: var(--sky);
  color: #fff;
  box-shadow: var(--shadow);
}
.sky-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 18% 92%, rgb(255 255 255 / .3), transparent 70%);
  pointer-events: none;
}
.sky-card > * { position: relative; }
.sky-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sky-top .label { color: rgb(255 255 255 / .78); }
.sky-top svg { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px rgb(255 255 255 / .18); }
.live-time {
  display: block;
  font: 300 clamp(4.5rem, 3rem + 7vw, 8.5rem)/.9 var(--f-display);
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 18px rgb(0 0 0 / .16);
}
.live-time .colon { display: inline-block; margin-inline: -.02em; }
@media (prefers-reduced-motion: no-preference) {
  .live-time .colon { animation: pulse 2s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: .3; } }
.live-date { margin-top: .75rem; color: rgb(255 255 255 / .9); font: 500 .75rem/1.4 var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 55.99rem) {
  .sky-card { min-height: 0; gap: 1.75rem; border-radius: 24px; }
  .live-time { font-size: clamp(3.75rem, 2.5rem + 8vw, 6rem); }
}
.guide-row .meta span + span::before { content: "·"; margin-inline-end: .9rem; }
@media (max-width: 43.99rem) { .guide-row .meta span + span::before { content: none; } }

.hub-section { padding-block: clamp(3rem, 8vw, 6.5rem); border-bottom: 1px solid var(--line); }
.hub-section > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
.rail { display: flex; flex-direction: column; gap: .6rem; }
.rail h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.05; letter-spacing: -.03em; }
.rail p:not(.label) { color: var(--muted); max-width: 32ch; }

/* Guide index: numbered editorial rows. */
.guide-index { border-top: 1px solid var(--fg); }
.guide-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 5.5rem;
  gap: .25rem 1rem;
  align-items: start;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.guide-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * clamp(.5rem, 2vw, 1.25rem));
  z-index: -1;
  border-radius: 18px;
  background: var(--chip);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.guide-row:hover::before, .guide-row:focus-within::before { opacity: 1; }
.guide-row .num { padding-top: .5rem; font: 400 .8125rem var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.guide-row h3 { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 2.1rem); line-height: 1.12; letter-spacing: -.03em; }
.guide-row h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-row h3 a:focus-visible { outline: none; }
.guide-row:has(h3 a:focus-visible)::before { opacity: 1; outline: 2px solid var(--teal); outline-offset: 2px; }
.guide-row .desc { grid-column: 2; margin-top: .35rem; color: var(--muted); max-width: 46ch; }
.guide-row .meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .75rem; }
.guide-thumb {
  grid-row: 1 / span 3;
  grid-column: 3;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: var(--chip);
  box-shadow: 0 0 0 1px var(--line);
}
.guide-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--focus, 40%);
  transition: transform .6s var(--ease);
}
.guide-row:hover .guide-thumb img { transform: scale(1.06); }
.guide-row .go { display: none; }
.thumb--menu { --focus: 36%; }
.thumb--handles { --focus: 43%; }
.thumb--two-zones { --focus: 20%; }
.thumb--picker { --focus: 59%; }
.thumb--alarm { --focus: 50%; }
.thumb--report { --focus: 100%; }

@media (min-width: 44rem) {
  .guide-row { grid-template-columns: 3.5rem minmax(0, 1fr) 11rem 2.5rem; padding-block: 1.75rem; gap: .25rem 1.75rem; }
  .guide-thumb { aspect-ratio: 4 / 3; }
  .guide-row .go {
    display: grid;
    grid-row: 1 / span 3;
    grid-column: 4;
    align-self: center;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--strong-line);
    border-radius: 50%;
    transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
  }
  .guide-row:hover .go { transform: translateX(4px); background: var(--fg); border-color: var(--fg); color: var(--bg); }
}

/* Quick answers */
.faq { border-top: 1px solid var(--fg); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding-block: 1.15rem;
  font: 600 clamp(1.0625rem, 1rem + .4vw, 1.3rem)/1.3 var(--f-display);
  letter-spacing: -.015em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal); }
.faq summary::after {
  content: "";
  justify-self: end;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat,
    var(--chip);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 3rem 1.4rem 0; color: var(--muted); max-width: 62ch; }
.faq .answer p + p { margin-top: .6rem; }
.faq .answer a { color: var(--fg); }

/* Contact: the one dusk surface. */
.contact { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.contact-card {
  position: relative;
  display: grid;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 28px;
  background: var(--sky);
  color: #fff;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 92% 100%, rgb(255 255 255 / .28), transparent 70%);
  pointer-events: none;
}
.contact-card > * { position: relative; }
.contact-card .label { color: rgb(255 255 255 / .75); }
.contact-card h2 { margin-top: .6rem; font-size: clamp(2rem, 1.4rem + 2.8vw, 3.6rem); line-height: 1; letter-spacing: -.04em; }
.contact-card p:not(.label) { margin-top: 1rem; color: rgb(255 255 255 / .86); max-width: 40ch; }
.contact-list { display: grid; gap: 0; align-content: start; border-top: 1px solid rgb(255 255 255 / .28); }
.contact-list li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding-block: .85rem; border-bottom: 1px solid rgb(255 255 255 / .2); }
.contact-list li span { font: 400 .75rem/1.9 var(--f-mono); color: rgb(255 255 255 / .7); }
.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  justify-self: start;
  min-height: 48px;
  margin-top: 1.5rem;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  background: #fff;
  color: var(--dusk);
  font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.mail-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -10px rgb(0 0 0 / .45); }
.mail-btn:focus-visible { outline-color: #fff; }
.guide-hero .mail-btn { margin-top: 0; color: var(--teal-ink); background: var(--teal); }
.guide-hero .mail-btn:focus-visible { outline-color: var(--teal); }
.contact-card.compact { gap: 1.5rem; }
.contact-card.compact h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); }

@media (min-width: 56rem) {
  .hub-hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 3rem; }
  .sky-card { min-height: 22rem; }
  .hub-section > .wrap { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 3rem; }
  .rail { position: sticky; top: calc(var(--bar-h) + 2rem); align-self: start; }
  .contact-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 3rem; }
}

/* ---------- Guide ---------- */
.guide-hero .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; padding-block: clamp(1rem, 3vw, 2rem) clamp(2.5rem, 6vw, 4.5rem); }
.guide-hero h1 { max-width: 18ch; margin-top: .25rem; font-size: clamp(2.15rem, 1.3rem + 3.8vw, 4.4rem); }

.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: clamp(2rem, 5vw, 4rem) 0; }

/* On this page: chips on phones, a sticky index with step numbers on wide screens. */
.toc { display: flex; flex-direction: column; gap: .75rem; }
.toc-sections { display: flex; flex-wrap: wrap; gap: .5rem; }
.toc-sections > li > a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .45rem .95rem;
  border: 1px solid var(--strong-line);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.toc-sections > li > a:hover { border-color: var(--fg); }
.toc-sections > li > a.is-active { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.toc-steps { display: none; }
.toc-help { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.toc-help a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .875rem; }
.toc-help a:hover { color: var(--fg); }

@media (min-width: 64rem) {
  .guide-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); }
  .toc { position: sticky; top: calc(var(--bar-h) + 2rem); align-self: start; max-height: calc(100vh - var(--bar-h) - 3rem); overflow-y: auto; gap: 1rem; }
  .toc-sections { flex-direction: column; flex-wrap: nowrap; gap: 1.25rem; }
  .toc-sections > li > a { padding: 0; border: 0; border-radius: 0; min-height: 32px; font: 600 1rem var(--f-display); letter-spacing: -.01em; color: var(--fg); }
  .toc-sections > li > a.is-active { background: none; color: var(--fg); }
  .toc-steps { display: grid; margin-top: .25rem; border-left: 1px solid var(--line); }
  .toc-steps a {
    position: relative;
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    min-height: 36px;
    padding: .35rem 0 .35rem .9rem;
    color: var(--muted);
    font-size: .8125rem;
    line-height: 1.4;
  }
  .toc-steps a span { font: 400 .75rem/1.55 var(--f-mono); }
  .toc-steps a:hover { color: var(--fg); }
  .toc-steps a.is-active { color: var(--fg); font-weight: 500; }
  .toc-steps a.is-active::before { content: ""; position: absolute; left: -1px; top: .35rem; bottom: .35rem; width: 2px; border-radius: 2px; background: var(--teal); }
  .toc-help { flex-direction: column; gap: .15rem; margin-top: .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
  .toc-help a { min-height: 36px; text-decoration: none; }
}

.guide-content { min-width: 0; }
.device-guide + .device-guide { margin-top: clamp(3rem, 7vw, 5.5rem); }
.guide-intro { margin-bottom: clamp(2rem, 5vw, 3rem); max-width: 64ch; }
.guide-intro h2, .guide-faq h2 { margin-top: .5rem; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem); line-height: 1.2; letter-spacing: -.025em; }
.guide-intro p:not(.label) { margin-top: .75rem; color: var(--muted); }
.guide-faq { margin-top: clamp(2rem, 5vw, 3rem); }
.guide-faq .faq { margin-top: 1.25rem; }
.device-heading { display: flex; flex-direction: column; gap: .5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--fg); }
.device-heading h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem); line-height: 1.05; letter-spacing: -.035em; }
.device-heading p:not(.label) { color: var(--muted); }

/* Steps: a numbered timeline. The rule between numbers is the one thing tying the sequence together. */
.steps { display: grid; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1.25rem .75rem;
  padding-block: clamp(1.5rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.step::before {
  content: "";
  position: absolute;
  top: calc(clamp(1.5rem, 3.5vw, 2.5rem) + 2.5rem);
  bottom: 0;
  left: 1.25rem;
  width: 1px;
  background: linear-gradient(var(--strong-line), transparent);
}
.step:last-child::before { display: none; }
.step-copy { display: contents; }
.step-number {
  grid-row: 1;
  grid-column: 1;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--strong-line);
  border-radius: 50%;
  background: var(--bg);
  font: 400 .8125rem var(--f-mono);
  font-variant-numeric: tabular-nums;
}
.step:target .step-number, .step.is-active .step-number { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.step-text { grid-row: 1; grid-column: 2; min-width: 0; }
.step h3 { padding-top: .3rem; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.65rem); line-height: 1.2; letter-spacing: -.025em; }
.step-text p { margin-top: .6rem; color: var(--muted); max-width: 56ch; }
.captures { grid-column: 2; display: grid; gap: .85rem; min-width: 0; }
.captures--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
figure { min-width: 0; margin: 0; }
.capture {
  position: relative;
  display: block;
  aspect-ratio: 1.4;
  overflow: hidden;
  border-radius: 18px;
  background: var(--chip);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  transition: box-shadow .25s var(--ease), transform .35s var(--ease);
}
.capture:hover { box-shadow: 0 0 0 1px var(--strong-line), var(--shadow); transform: translateY(-2px); }
.capture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center var(--focus); }
.capture::after {
  content: "";
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat,
    color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--fg);
  box-shadow: 0 2px 8px rgb(0 0 0 / .14);
  opacity: .9;
  transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.capture:hover::after { opacity: 1; transform: scale(1.08); }
.capture--menu { --focus: 18%; }
.capture--search { --focus: 18%; }
.capture--faces { --focus: 59%; }
.capture--settings { --focus: 35%; }
.capture--placed { --focus: 42%; }
.capture--handles { --focus: 43%; }
.capture--expanded { --focus: 47%; }
.capture--resized { --focus: 49%; }
.capture--two-zones-face { --focus: 91%; }
.capture--two-zones-pin { --focus: 93%; }
.capture--two-zones-settings { --focus: 50%; }
.capture--two-zones-city { --focus: 92%; }
.capture--two-zones-home { --focus: 12%; }
.capture--xiaomi-picker { --focus: 100%; }
#samsung .capture { aspect-ratio: 1.15; }
.capture--samsung-add-menu, .capture--samsung-gmt-add, .capture--samsung-gmt-select { --focus: 100%; }
.capture--samsung-search { --focus: 0%; }
.capture--samsung-add-button { --focus: 12%; }
.capture--samsung-add-result, .capture--samsung-gmt-result { --focus: 2%; }
#samsung .capture--samsung-resize-handles { --focus: 12%; aspect-ratio: 1.08; }
#samsung .capture--samsung-resize-drag, #samsung .capture--samsung-resize-result { --focus: 7%; aspect-ratio: 1.08; }
.capture--samsung-gmt-settings { --focus: 24%; }
/* Keep cropped screenshots fully visible in the article and viewer. */
.capture--alarm, .capture--calendar, .capture--report, .capture--format, .capture--permission { aspect-ratio: auto; }
.capture--alarm img, .capture--calendar img, .capture--report img, .capture--format img, .capture--permission img { height: auto; object-fit: contain; }
.calendar-detail { max-width: 28rem; margin-top: 1rem; }
figcaption { margin-top: .6rem; color: var(--muted); font-size: .8125rem; line-height: 1.5; }

@media (min-width: 48rem) {
  .step { grid-template-columns: 3rem minmax(0, .95fr) minmax(0, 1.1fr); gap: 1.5rem 2rem; }
  .step::before { left: 1.5rem; top: calc(clamp(1.5rem, 3.5vw, 2.5rem) + 3rem); }
  .step-number { width: 3rem; height: 3rem; }
  .captures { grid-row: 1; grid-column: 3; }
  .step:not(:has(.captures)) .step-text { grid-column: 2 / -1; }
}

/* Troubleshooting */
.help {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-2);
}
.help h2 { margin-top: .5rem; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem); line-height: 1.15; letter-spacing: -.025em; }
.help p:not(.label) { margin-top: .75rem; color: var(--muted); max-width: 62ch; }
.help a { color: var(--fg); }

/* Next guide: one large row. */
.related { margin-top: clamp(2.5rem, 6vw, 4rem); }
.related h2 { font: 400 .6875rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.next-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem;
  gap: 1rem;
  align-items: center;
  margin-top: .75rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.next-card:hover { border-color: var(--strong-line); box-shadow: var(--shadow); }
.next-card b { display: block; font: 600 clamp(1.25rem, 1.05rem + .9vw, 1.85rem)/1.15 var(--f-display); letter-spacing: -.03em; }
.next-card span.more { display: inline-flex; gap: .5rem; margin-top: .6rem; color: var(--muted); font-size: .875rem; }
.next-card:hover span.more { color: var(--fg); }
.next-card .guide-thumb { grid-row: auto; grid-column: auto; }
.next-card:hover .guide-thumb img { transform: scale(1.06); }
@media (min-width: 44rem) { .next-card { grid-template-columns: minmax(0, 1fr) 10rem; } .next-card .guide-thumb { aspect-ratio: 4 / 3; } }

.guide-contact { padding-block: clamp(3rem, 7vw, 5rem); }

/* Screenshot viewer */
html:has(.screenshot-viewer) { scrollbar-gutter: stable; }
html:has(.screenshot-viewer[open]) { overflow: hidden; }
.screenshot-viewer {
  width: min(calc(100% - 1.5rem), 34rem);
  max-height: calc(100% - 1.5rem);
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 24px 80px rgb(0 0 0 / .4);
}
.screenshot-viewer::backdrop { background: rgb(10 14 20 / .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.screenshot-viewer-toolbar { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.screenshot-viewer button {
  min-height: 44px;
  padding: .45rem 1rem;
  border: 1px solid var(--strong-line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.screenshot-viewer button:hover { border-color: var(--fg); }
.screenshot-viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: max(8rem, calc(100vh - 9rem));
  max-height: max(8rem, calc(100dvh - 9rem));
  margin-inline: auto;
  border-radius: 16px;
}
.screenshot-viewer figcaption { padding-inline: .25rem; text-align: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: 1rem max(1rem, env(safe-area-inset-bottom, 0px)); }
.footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }
.footer-actions a, .foot-link { display: inline-flex; align-items: center; min-height: 44px; }
.footer-actions a:hover { color: var(--fg); }
.foot-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.foot-link:hover { color: var(--fg); }

/* Consent banner (assets/js/consent.js) */
.consent {
  position: fixed;
  z-index: 50;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  width: min(24rem, calc(100vw - 2rem));
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 12px 40px rgb(0 0 0 / .18);
  font-size: .875rem;
}
.consent h2 { font-size: 1rem; }
.consent p { margin-top: .4rem; color: var(--muted); }
.consent p .foot-link { display: inline; min-height: 0; }
.consent .row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: .9rem; }
.consent button {
  min-height: 44px;
  padding-inline: 1.1rem;
  border: 1px solid var(--strong-line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.consent button.primary { border-color: var(--fg); background: var(--fg); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
