/* ============================================================
   SafePaws — pawsafely.com · True Motion LLC
   Light by default; [data-theme="dark"] flips the tokens.
   ============================================================ */

:root {
  --bg:        #FFFFFF;
  --bg-alt:    #F7F8F7;
  --surface:   #FFFFFF;

  --ink:       #0F1513;
  --ink-soft:  #56665F;
  --ink-dim:   #86958E;

  --accent:    #0E7A57;
  --accent-h:  #0B6446;
  --accent-w:  #EAF4EF;

  --safe:      #1B7F4E;
  --warn:      #B0700A;
  --danger:    #BE3A2E;

  --line:      #E4E8E5;
  --line-2:    #EFF2F0;

  --shadow:    0 1px 2px rgba(15,21,19,.04), 0 8px 24px -14px rgba(15,21,19,.18);
  --shadow-lg: 0 2px 6px rgba(15,21,19,.05), 0 30px 60px -30px rgba(15,21,19,.28);

  --r-xs: 6px;
  --r-sm: 9px;
  --r:    13px;
  --r-lg: 18px;

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

[data-theme="dark"] {
  --bg:        #0B0F0E;
  --bg-alt:    #101615;
  --surface:   #131A18;

  --ink:       #EFF3F1;
  --ink-soft:  #A0AFA8;
  --ink-dim:   #72817B;

  --accent:    #35C48D;
  --accent-h:  #5BD6A6;
  --accent-w:  rgba(53,196,141,.10);

  --safe:      #3FBF7F;
  --warn:      #E0A03C;
  --danger:    #E8574C;

  --line:      #222C29;
  --line-2:    #1A2321;

  --shadow:    0 1px 2px rgba(0,0,0,.3), 0 8px 24px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.35), 0 30px 60px -30px rgba(0,0,0,.85);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
img, svg { display: block; max-width: 100%; }
svg { flex: none; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.028em; line-height: 1.12; }
h1 { font-size: clamp(2.35rem, 4.6vw, 3.7rem); letter-spacing: -.036em; line-height: 1.06; }
h2 { font-size: clamp(1.65rem, 2.9vw, 2.35rem); letter-spacing: -.032em; }
h3 { font-size: 1.02rem; }

.eyebrow {
  display: block; font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.lede { color: var(--ink-soft); font-size: clamp(1.02rem, 1.2vw, 1.12rem); max-width: 46ch; line-height: 1.62; }
.sub  { color: var(--ink-soft); margin-top: 14px; max-width: 52ch; }
.num  { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.nav.stuck { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.02rem; letter-spacing: -.025em; }
.logo svg { width: 22px; height: 22px; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a:not(.btn) { color: var(--ink-soft); font-size: .91rem; font-weight: 450; transition: color .18s; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
.icon-btn:hover { color: var(--ink); background: var(--bg-alt); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .moon { display: none; }
[data-theme="dark"] .icon-btn .sun { display: none; }
[data-theme="dark"] .icon-btn .moon { display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  font-family: var(--sans); font-size: .93rem; font-weight: 550; letter-spacing: -.01em;
  padding: 11px 20px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.btn-primary { background: var(--accent); color: #fff; }
[data-theme="dark"] .btn-primary { color: #05100C; }
.btn-primary:hover { background: var(--accent-h); }
.btn-secondary { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-secondary:hover { border-color: var(--ink-dim); }
.btn-sm { padding: 8px 15px; font-size: .87rem; }

/* ---------- store badges ---------- */
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 9px 16px 9px 13px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--bg);
  transition: opacity .18s;
}
.store:hover { opacity: .86; }
.store svg { width: 20px; height: 20px; }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store small { font-size: .6rem; letter-spacing: .05em; text-transform: uppercase; opacity: .7; }
.store strong { font-size: .92rem; font-weight: 550; letter-spacing: -.015em; }

/* ---------- pills / status ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .64rem; font-weight: 500; letter-spacing: .09em;
  padding: 3px 8px; border-radius: 5px; text-transform: uppercase;
}
.pill[data-s="safe"]   { background: color-mix(in srgb, var(--safe) 14%, transparent);   color: var(--safe); }
.pill[data-s="warn"]   { background: color-mix(in srgb, var(--warn) 16%, transparent);   color: var(--warn); }
.pill[data-s="danger"] { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 92px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto 30%; height: 120%;
  background: radial-gradient(46% 42% at 62% 34%, var(--accent-w), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr .86fr; gap: clamp(40px, 6vw, 84px); align-items: center; }

.tagline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); padding: 5px 11px 5px 9px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface);
}
.tagline i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.hero h1 { margin: 22px 0 0; max-width: 13ch; }
.hero .lede { margin-top: 20px; }
.hero .stores { margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: .82rem; color: var(--ink-dim); }
.hero-note b { color: var(--ink-soft); font-weight: 550; }

/* ---------- device ---------- */
.device-stage { position: relative; display: grid; place-items: center; }
.device {
  position: relative; width: min(292px, 80vw); aspect-ratio: 9 / 19.3;
  border-radius: 40px; padding: 9px;
  background: linear-gradient(155deg, #3A403D 0%, #141A18 40%, #2A302E 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08);
}
.screen {
  position: relative; height: 100%; border-radius: 32px; overflow: hidden;
  background: #FCFDFC; color: #0F1513; display: flex; flex-direction: column;
  font-size: 11px; line-height: 1.4;
}
.pin { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: 76px; height: 20px; border-radius: 999px; background: #141917; z-index: 5; }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px 4px; font-size: 10px; font-weight: 600; letter-spacing: -.01em; }
.sb-icons { display: flex; gap: 4px; align-items: center; opacity: .85; }
.sb-icons i { display: block; width: 3px; border-radius: 1px; background: #0F1513; }
.sb-icons i:nth-child(1) { height: 4px } .sb-icons i:nth-child(2) { height: 6px }
.sb-icons i:nth-child(3) { height: 8px } .sb-icons i:nth-child(4) { height: 10px }
.sb-batt { width: 17px; height: 9px; border: 1px solid #0F1513; border-radius: 2px; position: relative; margin-left: 3px; opacity: .85; }
.sb-batt::before { content: ""; position: absolute; inset: 1.5px; width: 9px; background: #0F1513; border-radius: 1px; }

.dev-body { flex: 1; padding: 8px 14px 0; overflow: hidden; }
.dev-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 12px; }
.dev-head b { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.dev-head span { font-size: 10px; color: #7B8A83; }
.dev-avatar { width: 26px; height: 26px; border-radius: 50%; background: #EAF4EF; display: grid; place-items: center; color: #0E7A57; }
.dev-avatar svg { width: 14px; height: 14px; }

.dev-card { border: 1px solid #E7EBE8; border-radius: 12px; padding: 12px 13px; background: #fff; }
.dev-card-top { display: flex; align-items: center; justify-content: space-between; }
.dev-label { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: #86958E; }
.dev-temp { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -.03em; color: #BE3A2E; line-height: 1.1; margin-top: 4px; }
.dev-sub { font-size: 10px; color: #7B8A83; }
.dev-scale { height: 5px; border-radius: 3px; margin: 10px 0 4px; background: linear-gradient(90deg, #1B7F4E, #B0700A 55%, #BE3A2E); position: relative; }
.dev-scale i { position: absolute; top: -3px; left: 90%; width: 2px; height: 11px; border-radius: 1px; background: #0F1513; box-shadow: 0 0 0 2px #fff; }
.dev-scale-ax { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 8px; color: #9AA8A1; }
.dev-msg { font-size: 10px; color: #4A5A53; margin-top: 9px; line-height: 1.45; }

.dev-hours { display: flex; gap: 5px; margin: 14px 0 12px; }
.dev-hours div { flex: 1; text-align: center; font-family: var(--mono); font-size: 8px; color: #86958E; }
.dev-hours em { display: block; height: 22px; border-radius: 4px; margin-bottom: 4px; font-style: normal; }

.dev-list-h { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: #86958E; margin-bottom: 7px; }
.dev-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid #EFF2F0; }
.dev-row-l { display: flex; align-items: center; gap: 8px; }
.dev-dot { width: 7px; height: 7px; border-radius: 50%; }
.dev-row b { font-size: 10.5px; font-weight: 550; letter-spacing: -.01em; }
.dev-row span { font-size: 9px; color: #86958E; display: block; }
.dev-row .num { font-size: 11px; font-weight: 500; }

.dev-tabs { display: flex; justify-content: space-around; padding: 9px 0 15px; border-top: 1px solid #EFF2F0; background: #fff; }
.dev-tabs svg { width: 17px; height: 17px; color: #A7B4AE; }
.dev-tabs .on svg { color: #0E7A57; }

/* floating alert beside the device */
.float-card {
  /* anchored to the device's left edge, overlapping it just enough to read as depth */
  position: absolute; z-index: 3; left: auto; right: calc(50% + 120px); top: 23%;
  display: flex; gap: 9px; align-items: flex-start;
  width: 198px; padding: 11px 13px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.float-card .fc-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.float-card .fc-ic svg { width: 14px; height: 14px; }
.float-card b { display: block; font-size: .8rem; font-weight: 600; letter-spacing: -.015em; }
.float-card span { font-size: .72rem; color: var(--ink-soft); line-height: 1.4; display: block; }

/* ---------- logo / stat band ---------- */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.band-grid > div { padding: 26px 30px; border-left: 1px solid var(--line); }
.band-grid > div:first-child { border-left: 0; padding-left: 0; }
.band-n { font-family: var(--mono); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.band-t { font-size: .84rem; color: var(--ink-soft); margin-top: 5px; }

/* ---------- sections ---------- */
section.block { padding: clamp(64px, 7.5vw, 104px) 0; }
.block-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 620px; margin-bottom: 44px; }

.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .06s }
.rv[data-d="2"] { transition-delay: .12s }
.rv[data-d="3"] { transition-delay: .18s }

/* ---------- surface chart ---------- */
.chart { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.chart-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--bg-alt);
}
.chart-head .ct { font-size: .95rem; font-weight: 600; letter-spacing: -.02em; }
.chart-head .cs { font-family: var(--mono); font-size: .72rem; color: var(--ink-dim); margin-top: 2px; }
.chart-legend { display: flex; gap: 16px; font-family: var(--mono); font-size: .68rem; color: var(--ink-soft); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; }

.rows { padding: 6px 24px 20px; }
.row {
  display: grid; grid-template-columns: 148px 1fr 62px 88px; align-items: center; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--line-2);
}
.row:last-child { border-bottom: 0; }
.row-name { font-size: .92rem; font-weight: 500; letter-spacing: -.01em; }
.track { display: block; position: relative; height: 9px; border-radius: 5px; background: var(--line-2); overflow: visible; }
.track::after {
  content: ""; position: absolute; left: 75%; top: -13px; bottom: -13px;
  border-left: 1px dashed var(--ink-dim); opacity: .5;
}
.fill { display: block; height: 100%; border-radius: 5px; width: 0; transition: width .9s var(--ease); }
.in .fill, .rows.in .fill { width: var(--w); }
.fill[data-s="safe"]   { background: var(--safe) }
.fill[data-s="warn"]   { background: var(--warn) }
.fill[data-s="danger"] { background: var(--danger) }
.row-t { font-family: var(--mono); font-size: .92rem; font-variant-numeric: tabular-nums; text-align: right; }
.row-s { justify-self: end; }
.chart-foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 24px; border-top: 1px solid var(--line); background: var(--bg-alt);
  font-size: .8rem; color: var(--ink-dim);
}
.chart-foot .mk { font-family: var(--mono); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature { background: var(--bg); padding: 30px 30px 32px; }
.feature .fi { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-w); color: var(--accent); margin-bottom: 18px; }
.feature .fi svg { width: 17px; height: 17px; }
.feature h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.feature p { color: var(--ink-soft); font-size: .93rem; line-height: 1.55; }
.tag { font-family: var(--mono); font-size: .6rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-weight: 400; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: s; }
.step { counter-increment: s; }
.step::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--mono); font-size: .74rem; color: var(--accent);
  display: block; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: .93rem; line-height: 1.55; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: 760px; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; background: var(--surface); }
.plan.featured { border-color: var(--accent); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { font-size: 1rem; }
.plan .flag { font-family: var(--mono); font-size: .6rem; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); background: var(--accent-w); padding: 3px 8px; border-radius: 5px; }
.plan .price { font-size: 2.3rem; font-weight: 600; letter-spacing: -.04em; margin: 14px 0 2px; line-height: 1.1; }
.plan .price span { font-size: .92rem; font-weight: 450; color: var(--ink-dim); letter-spacing: -.01em; }
.plan .per { font-size: .84rem; color: var(--ink-dim); margin-bottom: 22px; }
.plan ul { list-style: none; flex: 1; display: grid; gap: 11px; align-content: start; }
.plan li { display: flex; gap: 10px; font-size: .91rem; color: var(--ink-soft); align-items: flex-start; }
.plan li svg { width: 15px; height: 15px; color: var(--accent); margin-top: 3px; }
.plan .btn { margin-top: 26px; }
.price-note { margin-top: 20px; font-size: .82rem; color: var(--ink-dim); }

/* ---------- closing ---------- */
.close-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.close-inner h2 { max-width: 15ch; }
.close-inner p { color: var(--ink-soft); margin-top: 10px; max-width: 38ch; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 52px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.foot-grid p { color: var(--ink-dim); font-size: .86rem; margin-top: 12px; max-width: 30ch; line-height: 1.55; }
.foot-col h4 { font-size: .78rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: -.01em; }
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col a { color: var(--ink-soft); font-size: .88rem; transition: color .18s; }
.foot-col a:hover { color: var(--ink); }
.legal {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--ink-dim); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- legal pages ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 60px 28px 92px; }
.doc h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
.doc .updated { font-family: var(--mono); font-size: .76rem; color: var(--ink-dim); margin: 14px 0 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.doc h2 { font-size: 1.14rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); margin-bottom: 12px; font-size: .96rem; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  /* not enough room for section links alongside the CTA — the footer carries them */
  .nav-links li.hide-sm { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero h1 { max-width: 16ch; }
  .device-stage { justify-items: center; }
  .float-card { right: auto; left: calc(50% + 122px); top: 33%; width: 190px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 116px 1fr 56px 78px; gap: 12px; }
}
@media (max-width: 640px) {
  .nav-links li.hide-sm { display: none; }
  .band-grid { grid-template-columns: 1fr; }
  .band-grid > div { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .band-grid > div:first-child { border-top: 0; }
  .plans { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .row { grid-template-columns: 1fr 62px; grid-template-areas: "name temp" "bar bar"; gap: 6px 12px; }
  .row-name { grid-area: name } .row-t { grid-area: temp } .track { grid-area: bar; margin-top: 4px }
  .row-s { display: none }
  .track::after { top: -6px; bottom: -6px }
  .float-card { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
  .fill { width: var(--w); }
}
