:root {
  --bg-canvas: #f4ede0;
  --bg-surface: rgba(255, 252, 246, 0.88);
  --bg-strong: #fffaf1;
  --ink-primary: #1f2a24;
  --ink-secondary: #536257;
  --line-soft: rgba(67, 86, 74, 0.14);
  --brand: #2f5e48;
  --brand-strong: #254b39;
  --accent: #c86d3b;
  --amber: #d89b30;
  --danger: #b94b3d;
  --safe: #2f7a5c;
  --shadow-soft: 0 18px 40px rgba(39, 50, 42, 0.08);
  --shadow-card: 0 10px 24px rgba(39, 50, 42, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-primary);
  background:
    radial-gradient(circle at top left, rgba(216, 155, 48, 0.18), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(47, 94, 72, 0.16), transparent 28%),
    linear-gradient(180deg, #f7f0e2 0%, #f4ede0 100%);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-strong);
}

img {
  max-width: 100%;
}

.site-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 0 24px 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
}

.site-header-inner {
  width: min(100%, var(--content-width));
  margin: 18px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 249, 240, 0.78);
  border: 1px solid rgba(67, 86, 74, 0.1);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f5e48, #4a7d63);
  color: #fff9ee;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-copy strong {
  display: block;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-copy span {
  display: block;
  font-size: 12px;
  color: var(--ink-secondary);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topnav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 600;
}

.topnav a.is-active,
.topnav a:hover {
  background: rgba(47, 94, 72, 0.1);
  color: var(--brand-strong);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(130deg, rgba(255, 251, 244, 0.94), rgba(255, 247, 234, 0.78)),
    rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow-soft);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 155, 48, 0.28), transparent 68%);
  pointer-events: none;
}

.page-hero {
  margin-bottom: 28px;
}

.hero h1,
.page-hero h1 {
  margin: 16px 0 18px;
  max-width: 760px;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero p,
.page-hero p,
.section-intro {
  max-width: 720px;
  margin: 0;
  color: var(--ink-secondary);
  font-size: 18px;
  line-height: 1.72;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 94, 72, 0.08);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.page-links {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button {
  background: linear-gradient(180deg, #356049, #274b39);
  color: #fff9f0;
  box-shadow: 0 10px 24px rgba(47, 94, 72, 0.18);
}

.button-ghost {
  background: rgba(47, 94, 72, 0.08);
  color: var(--brand-strong);
}

.button:hover,
.button-ghost:hover {
  transform: translateY(-1px);
}

section {
  margin-top: 28px;
}

.section-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
}

.section-kicker {
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-strong);
  border: 1px solid rgba(67, 86, 74, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.card h3 {
  margin: 0 0 10px;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 18px;
}

.card p,
.card li,
.metric-card p,
.timeline-card p {
  color: var(--ink-secondary);
  line-height: 1.68;
}

.metric-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(255, 248, 238, 0.8));
  border: 1px solid rgba(67, 86, 74, 0.08);
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.metric-card span {
  display: block;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 30px;
  line-height: 1.08;
}

.pill-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 94, 72, 0.08);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
}

.tag.amber {
  background: rgba(216, 155, 48, 0.12);
  color: #8e6512;
}

.tag.red {
  background: rgba(185, 75, 61, 0.1);
  color: #8e3c31;
}

.tag.safe {
  background: rgba(47, 122, 92, 0.12);
  color: #255b46;
}

.doc-list,
.bullet-list {
  margin: 0;
  padding-left: 18px;
}

.doc-list li,
.bullet-list li {
  margin: 8px 0;
  color: var(--ink-secondary);
  line-height: 1.64;
}

.doc-list a {
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-card {
  position: relative;
  padding: 22px 22px 22px 72px;
  border-radius: var(--radius-md);
  background: var(--bg-strong);
  border: 1px solid rgba(67, 86, 74, 0.08);
}

.timeline-card::before {
  content: attr(data-step);
  position: absolute;
  left: 18px;
  top: 20px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(47, 94, 72, 0.12);
  color: var(--brand-strong);
  font-weight: 800;
  font-family: "Manrope", "Avenir Next", sans-serif;
}

.timeline-card h3 {
  margin: 0 0 8px;
}

.wireframe {
  overflow: auto;
  margin: 16px 0 0;
  padding: 18px;
  border-radius: 18px;
  background: #f1eadf;
  border: 1px dashed rgba(47, 94, 72, 0.18);
  color: #2e3a33;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(67, 86, 74, 0.09);
  vertical-align: top;
  line-height: 1.56;
}

th {
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.callout {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(53, 96, 73, 0.08), rgba(53, 96, 73, 0.03));
  border: 1px solid rgba(47, 94, 72, 0.14);
}

.callout strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Manrope", "Avenir Next", sans-serif;
}

.footer {
  margin-top: 36px;
  padding: 22px 0 0;
  color: var(--ink-secondary);
  font-size: 14px;
}

.footer a {
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(216, 155, 48, 0.14);
  color: #8c6215;
}

.doc-path {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(31, 42, 36, 0.05);
  color: var(--ink-secondary);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 12px;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.phone-frame,
.widget-stage {
  position: relative;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(180deg, #131816, #202724);
  box-shadow: 0 28px 52px rgba(18, 24, 22, 0.22);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 132px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #0b0d0d;
}

.phone-screen {
  overflow: hidden;
  min-height: 760px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fcf8ef 0%, #f3ebde 100%);
}

.screen-dark {
  background: linear-gradient(180deg, #f7f2e7 0%, #efe4d3 100%);
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 0;
  font-size: 12px;
  color: rgba(31, 42, 36, 0.74);
  font-weight: 700;
}

.status-icons {
  display: flex;
  gap: 8px;
}

.status-icons span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(47, 94, 72, 0.26);
}

.screen-body {
  padding: 18px 18px 24px;
}

.screen-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.screen-label h3 {
  margin: 0;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(47, 94, 72, 0.1);
  color: var(--brand-strong);
}

.summary-strip {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(53, 96, 73, 0.14), rgba(216, 155, 48, 0.12));
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
}

.phone-card {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(53, 74, 63, 0.08);
  box-shadow: 0 10px 24px rgba(53, 74, 63, 0.08);
}

.phone-card + .phone-card {
  margin-top: 14px;
}

.pet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pet-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(53, 96, 73, 0.18), rgba(216, 155, 48, 0.12));
  color: var(--brand-strong);
  font-weight: 800;
}

.pet-lockup strong,
.phone-card strong,
.alert-title {
  display: block;
  font-size: 15px;
}

.pet-lockup span,
.phone-card p,
.alert-meta,
.micro-copy,
.widget-caption {
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.state-pill {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.state-pill.safe {
  background: rgba(47, 122, 92, 0.12);
  color: #21523f;
}

.state-pill.warn {
  background: rgba(216, 155, 48, 0.14);
  color: #8c6417;
}

.state-pill.critical {
  background: rgba(185, 75, 61, 0.12);
  color: #8b3d33;
}

.phone-card h4 {
  margin: 12px 0 6px;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.meta-chip {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(31, 42, 36, 0.045);
  font-size: 12px;
  color: var(--ink-secondary);
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(53, 74, 63, 0.08);
}

.bottom-nav span {
  padding: 10px 0;
  text-align: center;
  border-radius: 16px;
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 700;
}

.bottom-nav span.active {
  background: rgba(53, 96, 73, 0.12);
  color: var(--brand-strong);
}

.map-panel {
  position: relative;
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 24%, rgba(47, 122, 92, 0.12), transparent 22%),
    radial-gradient(circle at 80% 72%, rgba(216, 155, 48, 0.16), transparent 28%),
    linear-gradient(180deg, #e9e4d7 0%, #e4dccd 100%);
}

.map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(113, 122, 110, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 122, 110, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.48;
}

.map-header,
.map-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid rgba(53, 74, 63, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.map-chip.active {
  background: rgba(53, 96, 73, 0.12);
  color: var(--brand-strong);
}

.map-canvas {
  position: relative;
  min-height: 420px;
  padding: 8px 16px 24px;
}

.geofence {
  position: absolute;
  border-radius: 24px;
  border: 2px solid rgba(47, 122, 92, 0.34);
  background: rgba(47, 122, 92, 0.12);
}

.geofence.red {
  border-color: rgba(185, 75, 61, 0.34);
  background: rgba(185, 75, 61, 0.11);
}

.map-pin,
.phone-pin {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 16px rgba(31, 42, 36, 0.18);
}

.map-pin {
  background: linear-gradient(180deg, #355c46, #2b4a39);
  color: #fff;
}

.map-pin.warn {
  background: linear-gradient(180deg, #d38c2d, #bf7422);
}

.phone-pin {
  background: #fff9ee;
  color: #2d4739;
  border: 2px solid rgba(47, 94, 72, 0.18);
}

.accuracy-ring {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(31, 60, 136, 0.08);
  border: 1px solid rgba(31, 60, 136, 0.12);
}

.floating-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 249, 240, 0.88);
  border: 1px solid rgba(53, 74, 63, 0.09);
  backdrop-filter: blur(10px);
}

.floating-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.mini-button {
  flex: 1;
  min-height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.mini-button.primary {
  background: linear-gradient(180deg, #355c46, #274b39);
  color: #fff9f0;
}

.mini-button.secondary {
  background: rgba(47, 94, 72, 0.08);
  color: var(--brand-strong);
}

.alert-stack {
  display: grid;
  gap: 12px;
}

.alert-item {
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(53, 74, 63, 0.07);
}

.alert-bar {
  border-radius: 999px;
  background: var(--danger);
}

.alert-bar.amber {
  background: var(--amber);
}

.filter-pills {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}

.filter-pills span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(31, 42, 36, 0.05);
  color: var(--ink-secondary);
}

.filter-pills span.active {
  background: rgba(53, 96, 73, 0.12);
  color: var(--brand-strong);
}

.binding-panel {
  display: grid;
  gap: 16px;
}

.hero-panel {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(53, 96, 73, 0.18), rgba(216, 155, 48, 0.14));
}

.binding-device {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(53, 74, 63, 0.08);
}

.progress-steps {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.progress-steps span {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 42, 36, 0.08);
}

.progress-steps span.active {
  background: linear-gradient(90deg, #355c46, #d89b30);
}

.widget-stage {
  padding: 18px;
  border-radius: 28px;
}

.widget-board {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f5efe3, #efe5d6);
}

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

.widget-card {
  padding: 16px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(216, 155, 48, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(255, 246, 235, 0.86));
  border: 1px solid rgba(53, 74, 63, 0.08);
  box-shadow: 0 10px 22px rgba(53, 74, 63, 0.08);
}

.widget-card h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.widget-signal {
  display: inline-flex;
  gap: 8px;
  margin-top: 10px;
}

.widget-signal span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(53, 96, 73, 0.08);
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-strong);
}

@media (max-width: 980px) {
  .grid.two,
  .grid.three,
  .grid.four,
  .split,
  .mockup-grid,
  .widget-grid {
    grid-template-columns: 1fr;
  }

  .site-header-inner {
    border-radius: 26px;
    align-items: flex-start;
  }

  .topnav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding: 0 16px 40px;
  }

  .hero,
  .page-hero,
  .section-card {
    padding: 22px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero p,
  .page-hero p,
  .section-intro {
    font-size: 16px;
  }

  .site-header-inner {
    margin-top: 10px;
    padding: 14px;
  }
}
