/* Feather Foot site. Colors come from the app's theme (ui/theme/Theme.kt). Always dark, like the app. */
:root {
  color-scheme: dark;
  --bg: #0f1412;
  --surface: #161d1a;
  --surface-2: #1e2622;
  --line: #2a3530;
  --text: #e0e6e2;
  --muted: #a9b3ae;
  --primary: #7fc8a9;
  --on-primary: #00382a;
  --green: #43a047;
  --yellow: #fdd835;
  --red: #e53935;
  --radius: 16px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }

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

.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.1rem; }
.brand img { width: 32px; height: auto; }
.nav { display: flex; gap: 20px; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: #95d6ba; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-static, .btn-static:hover { border-color: var(--line); cursor: default; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 880px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } .hero { padding: 88px 0 104px; } }
.eyebrow { color: var(--primary); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.fine { color: var(--muted); font-size: .9rem; }

/* Phone mock-up of the gauge screen */
.phone {
  width: min(320px, 100%); margin: 0 auto;
  background: #000; border: 1px solid var(--line); border-radius: 40px; padding: 14px;
  box-shadow: 0 30px 80px -30px rgba(127, 200, 169, .25);
}
.screen { background: var(--bg); border-radius: 28px; padding: 26px 18px 22px; }
.screen-status { font-size: .78rem; color: var(--muted); text-align: center; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.gauge .needle { transform-box: view-box; transform-origin: 100px 100px; animation: drive 9s ease-in-out infinite; }
@keyframes drive {
  0%, 6%   { transform: rotate(0deg); }
  20%      { transform: rotate(28deg); }   /* smooth start: green */
  30%      { transform: rotate(4deg); }
  44%, 50% { transform: rotate(-2deg); }
  62%      { transform: rotate(-46deg); }  /* firmer stop: yellow */
  74%      { transform: rotate(-8deg); }
  82%, 100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) { .gauge .needle { animation: none; transform: rotate(24deg); } }
.gauge-labels { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin: 2px 6px 16px; }
.sidebar-track { height: 8px; border-radius: 4px; background: var(--surface-2); position: relative; margin: 0 6px 18px; overflow: hidden; }
.sidebar-fill { position: absolute; left: 50%; top: 0; bottom: 0; width: 18%; background: var(--green); border-radius: 0 4px 4px 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--surface-2); border-radius: 12px; padding: 10px 6px; text-align: center; }
.tile b { display: block; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { font-size: .72rem; color: var(--muted); }
.tile i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
@media (min-width: 880px) { section { padding: 96px 0; } }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.steps { display: grid; gap: 16px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); color: var(--primary); font-weight: 800; margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; }

.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--muted); margin: 0; }
.feature .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; margin-bottom: 14px; color: var(--primary); }
.feature .icon svg { width: 22px; height: 22px; }

/* Real screenshots: a swipeable row on phones, four across on wide screens */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 240px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px;
  scrollbar-color: var(--line) transparent; scrollbar-width: thin;
}
@media (min-width: 640px) { .shots { margin: 0 -32px; padding-left: 32px; padding-right: 32px; scroll-padding: 0 32px; } }
@media (min-width: 960px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; } }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img {
  width: 100%; height: auto; background: #000;
  border: 1px solid var(--line); border-radius: 30px; padding: 8px;
}
.shots figcaption { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 12px; }

/* Report sample */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.report {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 0; font: .9rem/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text);
}
.report .dim { color: var(--muted); }
.grades { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.grades li { background: var(--surface-2); border-radius: 999px; padding: 4px 12px; font-size: .9rem; color: var(--muted); }
.grades b { color: var(--text); }

/* Threshold table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; font-variant-numeric: tabular-nums; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--surface); font-size: .85rem; color: var(--muted); font-weight: 600; }
td small { color: var(--muted); display: block; font-size: .8rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.g { background: var(--green); } .y { background: var(--yellow); } .r { background: var(--red); }
.note { color: var(--muted); font-size: .95rem; margin-top: 16px; }

/* Callouts */
.callout {
  display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--yellow); border-radius: var(--radius); padding: 22px 24px;
}
.callout p { margin: 0; color: var(--muted); }
.callout strong { color: var(--text); }
.callout.ok { border-left-color: var(--primary); }

.privacy-points { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .privacy-points { grid-template-columns: repeat(3, 1fr); } }
.privacy-points li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--muted); }
.privacy-points strong { display: block; color: var(--text); margin-bottom: 4px; }

/* Get the app */
.install { display: grid; gap: 32px; }
@media (min-width: 880px) { .install { grid-template-columns: 1fr 1fr; gap: 64px; } }
.install ol { margin: 0; padding-left: 1.3em; color: var(--muted); }
.install li { margin-bottom: .6em; }
.install li strong { color: var(--text); }

/* Long-form pages (privacy, 404) */
.prose { max-width: 42em; padding: 56px 0 80px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose table { min-width: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }
