/* Everyday Guide — product site */

:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --bg-glow: #161618;
  --elev: #1c1c1e;
  --surface: #242426;
  --card: #2c2c2e;
  --card-hover: #333336;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --blue: #0a84ff;
  --blue-hover: #409cff;
  --blue-press: #0071e3;
  --warn: #ff9f0a;
  --warn-bg: rgba(255, 159, 10, 0.12);
  --ok: #30d158;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(20px, 4vw, 48px);
  --max: 1120px;
  --nav-h: 64px;
}

html.light {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-glow: #ffffff;
  --elev: #ffffff;
  --surface: #ececee;
  --card: #ffffff;
  --card-hover: #fafafa;
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-strong: rgba(0, 0, 0, 0.14);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --warn-bg: rgba(255, 149, 0, 0.12);
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 12% 0%, rgba(255, 255, 255, 0.07), transparent 55%),
    radial-gradient(900px 600px at 100% 20%, rgba(255, 255, 255, 0.04), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.light body {
  background:
    radial-gradient(1200px 700px at 12% 0%, rgba(255, 255, 255, 0.9), transparent 55%),
    var(--bg);
}

html.light .tip {
  background: rgba(0, 113, 227, 0.1);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a,
.icon-btn {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-links a:hover,
.icon-btn:hover,
.nav-links a.is-active {
  color: var(--text);
  background: var(--hairline);
}

.icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
}

.nav-toggle {
  display: none;
}

/* Hero */

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero .lede {
  margin: 16px 0 0;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--muted);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero .sub {
  margin: 14px auto 0;
  max-width: 540px;
  color: var(--muted);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 0;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-hover);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}

.btn-ghost:hover {
  background: var(--card-hover);
}

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Sections */

section {
  padding: 28px 0 64px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.035em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
}

.feature .mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  margin-bottom: 18px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Guide cards */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.guide-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.guide-card:hover {
  background: var(--card-hover);
  transform: translateY(-1px);
}

.guide-card[hidden] {
  display: none;
}

.guide-card img {
  width: 56px;
  height: 56px;
  flex: none;
}

.guide-card h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.guide-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.guide-card .chev {
  margin-left: auto;
  color: var(--faint);
  font-size: 22px;
  font-weight: 300;
}

.guide-card .progress {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ok);
}

/* Search */

.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}

.search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
}

.search input::placeholder {
  color: var(--faint);
}

.search kbd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  border: 1px solid var(--hairline-strong);
  border-radius: 5px;
  padding: 1px 6px;
}

.count {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.empty {
  display: none;
  text-align: center;
  padding: 72px 16px;
  color: var(--muted);
}

.empty.is-on {
  display: block;
}

/* Shots */

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.shot {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  background: #111;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
}

.shot figcaption {
  padding: 12px 16px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
}

/* Article */

.article-col {
  max-width: 720px;
  margin-inline: auto;
}

.article-meta {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 8px;
}

.toc a {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

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

.article-hero {
  padding: 48px 0 12px;
}

.article-hero img {
  width: 88px;
  height: 88px;
  margin-bottom: 22px;
}

.article-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.article-hero .intro {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 20px;
  max-width: 640px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 28px 0 8px;
}

.meter {
  flex: 1;
  min-width: 160px;
  height: 6px;
  background: var(--surface);
  border-radius: 99px;
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ok);
  transition: width 0.2s ease;
}

.meter-label {
  font-size: 13px;
  color: var(--muted);
}

.step {
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}

.step h2 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.step h2 span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}

.step p {
  margin: 0 0 12px;
  color: var(--muted);
}

.step .plain {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.step .plain li {
  margin: 6px 0;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  cursor: pointer;
}

.check input {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  flex: none;
}

.check span {
  flex: 1;
}

.check:has(input:checked) span {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.callout,
.tip {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warn-bg);
  color: var(--text);
  font-size: 15px;
}

.tip {
  background: rgba(10, 132, 255, 0.12);
}

.related {
  margin: 40px 0 8px;
}

.related h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.related-grid {
  display: grid;
  gap: 10px;
}

.related-grid .guide-card {
  min-height: 0;
}

.apple-notes {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--muted);
}

.apple-notes a {
  color: var(--blue);
}

.apple-notes a:hover {
  text-decoration: underline;
}

.source-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--faint);
}

.cta-band {
  margin: 48px 0 24px;
  padding: 28px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--hairline);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Contact / privacy */

.page-hero {
  padding: 56px 0 12px;
}

.page-hero h1 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.04em;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 80px;
}

.contact-id {
  margin: 18px 0 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--hairline);
}

.prose .contact-id p {
  margin: 0;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: baseline;
  color: var(--text);
  font-size: 15px;
}

.prose .contact-id p[hidden] {
  display: none !important;
}

.contact-id p + p {
  margin-top: 8px;
}

.contact-id span {
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
}

.contact-id a {
  color: var(--blue);
  overflow-wrap: anywhere;
}

.contact-id a:hover {
  text-decoration: underline;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin: 36px 0 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 18px;
}

.form {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 24px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--hairline-strong);
  background: var(--elev);
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25);
}

.form-note,
.form-ok,
.form-err {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}

.form-ok {
  color: var(--ok);
}

.form-err {
  color: #ff453a;
}

.hp {
  position: absolute;
  left: -9999px;
}

/* Footer */

.foot {
  border-top: 1px solid var(--hairline);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

/* Misc */

.crumbs {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

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

@media (max-width: 860px) {
  .features,
  .grid,
  .shots,
  .split,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--elev);
    border-bottom: 1px solid var(--hairline);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: grid;
  }

  .hero {
    padding-top: 48px;
  }

  .search kbd {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .guide-card,
  .meter > span {
    transition: none;
  }
}

@media print {
  .nav,
  .foot,
  .toolbar,
  .cta-band,
  .nav-toggle,
  .icon-btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .check span {
    text-decoration: none !important;
    color: #000 !important;
  }
}
