/* Lookhound: always the warm dark brown, cream ink, and the burnt orange from the logo.
   Instrument Serif for headlines, Geist for everything else. */
:root {
  color-scheme: dark;
  --bg: #141311;
  --card: #1C1A17;
  --tint: #22201C;
  --ink: #EEE8DE;
  --muted: #9A9184;
  --line: #2E2B26;
  --accent: #E09A5C;
  --button: #EEE8DE;
  --button-ink: #141311;
  --paper: #EFE6D6;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span { font-family: var(--serif); font-size: 26px; line-height: 1; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary { color: var(--button-ink); padding: 10px 20px; }
.nav-links a.btn-primary:hover { color: var(--button-ink); background: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--button); color: var(--button-ink); }
.btn-primary:hover { background: var(--accent); color: var(--button-ink); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* Hero */
.hero { text-align: center; padding: 40px 0 40px; }
.hero-dog { width: 170px; margin: 0 auto 8px; }
.closing-dog { width: 120px; margin: 0 auto 10px; }
/* The dog is drawn in black ink, so it sits on a little paper card. */
.hero-dog, .closing-dog { background: var(--paper); border-radius: 24px; padding: 16px 18px 10px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 18px auto 20px;
  max-width: 12ch;
}
.hero h1 em, .section-title em { font-style: italic; }
.lede { color: var(--muted); font-size: 18px; max-width: 34em; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine-print { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* App preview, drawn in HTML so it stays sharp */
.preview {
  margin: 56px auto 0;
  max-width: 820px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  text-align: left;
}
.preview-bar {
  position: relative; display: flex; align-items: center; height: 40px;
  border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted);
}
.preview-title { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }

/* macOS: grey dots that light up, glyphs and all, when you hover over them */
.mac-lights { display: flex; gap: 8px; padding: 0 14px; position: relative; z-index: 1; }
.mac-lights span {
  width: 12px; height: 12px; border-radius: 50%; background: #3A3631;
  display: grid; place-items: center; transition: background 0.12s;
}
.mac-lights svg { width: 8px; height: 8px; opacity: 0; stroke: rgba(0, 0, 0, 0.6); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.mac-lights:hover .close { background: #FF5F57; }
.mac-lights:hover .min { background: #FEBC2E; }
.mac-lights:hover .max { background: #28C840; }
.mac-lights:hover svg { opacity: 1; }

/* Windows: title on the left, minimise / maximise / close on the right */
.win-title { display: none; align-items: center; gap: 8px; padding-left: 12px; color: var(--ink); }
.win-title img { width: 16px; height: 16px; border-radius: 4px; }
.win-controls { display: none; margin-left: auto; align-self: stretch; }
.win-controls span { width: 46px; display: grid; place-items: center; transition: background 0.12s; }
.win-controls svg { width: 10px; height: 10px; stroke: var(--ink); stroke-width: 1; fill: none; }
.win-controls span:hover { background: rgba(255, 255, 255, 0.08); }
.win-controls .close:hover { background: #C42B1C; }
.win-controls .close:hover svg { stroke: #fff; }
.os-win .mac-lights, .os-win .preview-title { display: none; }
.os-win .win-title, .os-win .win-controls { display: flex; }
.os-win .preview { border-radius: 8px; }
.preview-body { padding: 26px 30px 12px; }
.preview-search {
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
}
.preview-search .caret {
  display: inline-block; width: 1px; height: 1em; background: var(--ink);
  vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.preview-tabs { display: flex; gap: 22px; font-size: 13px; color: var(--muted); margin: 16px 0 6px; }
.preview-tabs .on { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.rows { min-height: 228px; }
.rows .row { animation: rise 0.45s ease both; }
.rows .row:nth-child(2) { animation-delay: 0.08s; }
.rows .row:nth-child(3) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .rows .row, .preview-search .caret { animation: none; }
}
.tile.photo.blue { background: linear-gradient(135deg, #5C7FB8, #2F4A78); }
.tile.photo.green { background: linear-gradient(135deg, #8FA77A, #4F6B45); }
.tile {
  width: 48px; height: 48px; flex: none; border-radius: 6px; background: var(--tint);
  display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 18px;
}
.tile.photo { background: linear-gradient(135deg, #C9B79C, #8E7A5D); }
.row-text { flex: 1; min-width: 0; }
.row-text b { font-weight: 500; display: block; }
.row-text small { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Sections */
section { padding: 88px 0 0; }
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  margin: 12px 0 40px;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.step { padding: 26px 26px 0 0; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step-num { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--accent); }
.step h3 { font-weight: 500; font-size: 18px; margin: 8px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

.kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kind { background: var(--card); padding: 28px 24px; }
.kind h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 10px 0 6px; }
.kind p { color: var(--muted); font-size: 14px; }

.promise {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
  border-top: 1px solid var(--line); padding-top: 56px;
}
.promise ul { list-style: none; padding: 0; }
.promise li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.promise li span { color: var(--muted); }

.care { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.care-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; }
.care-card .care-quote { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.25; color: var(--ink); margin-bottom: 14px; }
.care-card h3 { font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.care-card p { color: var(--muted); font-size: 14px; }

.closing { text-align: center; padding: 110px 0 40px; }
.closing .section-title { margin-bottom: 28px; }

footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 80px; padding: 24px 0 40px;
  color: var(--muted); font-size: 13px;
}
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Download page */
.download-hero { text-align: center; padding: 64px 0 40px; }
.download-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 7vw, 72px); margin: 14px 0 10px; }
.download-hero p { color: var(--muted); }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
.platform-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 36px 32px; text-align: center; transition: border-color 0.15s;
}
.platform-card.is-detected { border-color: var(--ink); }
.platform-card .os-icon { width: 34px; height: 34px; margin: 0 auto 18px; fill: var(--ink); }
.platform-card h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; }
.os-sub { color: var(--muted); font-size: 13px; margin: 4px 0 24px; }
.detected-note { display: none; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; }
.is-detected .detected-note { display: block; }
.install-notice { max-width: 820px; margin: 40px auto 0; border-top: 1px solid var(--line); padding-top: 28px; }
.install-notice p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.install-notice strong { color: var(--ink); font-weight: 500; }

@media (max-width: 760px) {
  .steps, .kinds, .promise, .platform-grid, .care { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .nav-links .hide-sm { display: none; }
  .preview-body { padding: 18px 16px 6px; }
  .promise { gap: 28px; }
}

/* Long-form pages: About, Privacy, Terms */
.doc { max-width: 680px; margin: 0 auto; padding: 56px 0 0; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 7vw, 64px); line-height: 1.05; margin: 14px 0 12px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 44px 0 10px; }
.doc p, .doc li { color: #CFC6B8; font-size: 16px; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 20px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); font-weight: 500; }
.doc a { color: var(--accent); }
.doc .summary { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-bottom: 8px; }
.doc .summary p { color: var(--ink); }
.nav-links a.is-here { color: var(--ink); }
