/* Ruffolio Landing v2 — eigenständige Variante (nur Deutsch) */

@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/Fredoka-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/Fredoka-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #eae7de;
  --card: #fcfbF8;
  --line: #e0d3be;
  --ink: #3a2e24;
  --ink-soft: #6b5d4e;
  --ink-faint: #8c7f72;
  --petrol: #3c8079;
  --petrol-deep: #2e645f;
  --petrol-tint: #dde9e7;
  --ochre: #d69b4e;
  --sand-text: #8a6a3e;
  --sage: #7c8a5a;
  --sage-deep: #5c6b3e;
  --sage-tint: #e6ead6;
  --rust: #a85e3a;
  --rose: #e15c74;
  --rose-soft: #f3c6cf;
  --rose-ink: #b95f33;
  --rose-tint: #f4e4dc;
  --coat: #2e2a26;
  --max: 1120px;
  --shadow: 0 18px 44px rgba(58, 46, 36, 0.1);
  --shadow-big: 0 30px 70px rgba(58, 46, 36, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(46rem 30rem at 50% -8%, rgba(60, 128, 121, 0.12), transparent 62%) no-repeat,
    var(--bg);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

::selection {
  background: rgba(60, 128, 121, 0.24);
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--coat);
  color: white;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(60, 128, 121, 0.5);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 104px;
}

/* ---------- Pill header ---------- */

.nav-pill {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  width: min(calc(100% - 28px), 1060px);
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px auto 0;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(224, 211, 190, 0.9);
  border-radius: 999px;
  background: rgba(252, 251, 248, 0.86);
  box-shadow: 0 14px 34px rgba(58, 46, 36, 0.12);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--petrol-deep);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 800;
}

.language-switch a {
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a:focus-visible {
  color: var(--petrol-deep);
}

.language-switch a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--petrol);
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 180ms var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--petrol-deep);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(56px, 7vw, 92px);
  text-align: center;
}

.hero-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 26px;
  border-radius: 23px;
  box-shadow: 0 18px 40px rgba(58, 46, 36, 0.2);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 14px;
  border: 1px solid rgba(60, 128, 121, 0.3);
  border-radius: 999px;
  background: rgba(252, 251, 248, 0.7);
  color: var(--petrol-deep);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--petrol);
  box-shadow: 0 0 0 3.5px rgba(60, 128, 121, 0.16);
  content: "";
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(50px, 7.4vw, 92px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.99;
}

.hero h1 em {
  color: var(--petrol-deep);
  font-style: normal;
}

.hero-sub {
  max-width: 560px;
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: clamp(16.5px, 1.8vw, 19px);
}

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

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-family: "Fredoka", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 170ms ease, border-color 170ms ease, transform 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.button svg {
  width: 16px;
  height: 16px;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--petrol);
  color: white;
  box-shadow: 0 14px 30px rgba(60, 128, 121, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--petrol-deep);
}

.button-ghost {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(60, 128, 121, 0.45);
}

.hero-meta {
  margin: 18px 0 0;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 700;
}

/* Phone fan */

.phone-fan {
  position: relative;
  /* Track the center device's real height (width * screenshot ratio + frame),
     so the bottom-anchored phones never rise into the hero buttons. */
  height: calc(min(300px, 62vw) * 2.18 + 46px);
  margin-top: clamp(40px, 5vw, 64px);
}

.fan-glow {
  position: absolute;
  right: 12%;
  bottom: -4%;
  left: 12%;
  height: 62%;
  border-radius: 50%;
  background: rgba(60, 128, 121, 0.16);
  filter: blur(52px);
}

.device {
  position: absolute;
  bottom: 0;
  left: 50%;
  padding: 9px;
  border: 1px solid rgba(28, 22, 17, 0.7);
  border-radius: 46px;
  background: linear-gradient(160deg, #33291f, #17120d);
  box-shadow: 0 36px 74px rgba(46, 35, 25, 0.3);
}

.device img {
  width: 100%;
  border-radius: 37px;
}

.device-center {
  z-index: 3;
  width: min(300px, 62vw);
  translate: -50% 0;
}

.device-left {
  z-index: 2;
  width: min(240px, 50vw);
  rotate: -8deg;
  translate: calc(-50% - min(250px, 30vw)) 26px;
}

.device-right {
  z-index: 2;
  width: min(240px, 50vw);
  rotate: 8deg;
  translate: calc(-50% + min(250px, 30vw)) 26px;
}

/* ---------- App tab strip ---------- */

.app-tabs {
  display: grid;
  max-width: 720px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  grid-template-columns: repeat(4, 1fr);
}

.app-tab {
  display: flex;
  align-items: center;
  padding: 12px 6px;
  border-radius: 14px;
  color: var(--ink-faint);
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.app-tab svg {
  width: 20px;
  height: 20px;
}

.app-tab:hover,
.app-tab:focus-visible {
  background: var(--petrol-tint);
  color: var(--petrol-deep);
}

.app-tab.active {
  background: var(--petrol-tint);
  color: var(--petrol-deep);
}

/* ---------- Feature rows (app cards) ---------- */

.features {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  padding-block: clamp(64px, 8vw, 110px);
}

.feature-row {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 4.5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.feature-row > * {
  min-width: 0;
}

.feature-row:nth-child(even) .feature-copy {
  order: 2;
}

.feature-row:nth-child(even) .feature-mock {
  order: 1;
}

.feature-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--petrol-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-label svg {
  width: 15px;
  height: 15px;
}

.feature-copy h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.feature-copy > p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 16.5px;
}

.feature-points {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
}

.feature-points svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--petrol);
  flex: none;
}

/* Mocks */

.mock {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg);
}

/* Map mock */

.mock-map {
  position: relative;
  min-height: 380px;
}

.mock-map > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-pill {
  position: absolute;
  bottom: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  font-family: "Fredoka", sans-serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(58, 46, 36, 0.2);
}

.map-pill-main {
  left: 14px;
  background: var(--petrol);
  color: white;
}

.map-pill-soft {
  right: 14px;
  background: var(--sage-tint);
  color: var(--sage-deep);
}

.map-tag {
  position: absolute;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 8px 18px rgba(58, 46, 36, 0.14);
  font-size: 12px;
  font-weight: 800;
}

.map-tag-1 {
  top: 18%;
  left: 9%;
}

.map-tag-2 {
  right: 8%;
  bottom: 34%;
}

.map-tag svg {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 6px;
  color: var(--petrol);
  vertical-align: -2px;
}

/* Overview mock */

.mock-stack {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.dog-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.dog-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dog-head img {
  width: 46px;
  height: 46px;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(58, 46, 36, 0.14);
}

.dog-head strong,
.dog-head span {
  display: block;
}

.dog-head strong {
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.dog-head span {
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 700;
}

.dog-badge {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--petrol-tint);
  color: var(--petrol-deep);
  font-size: 11px;
  font-weight: 800;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 2px 0;
  font-size: 13.5px;
  font-weight: 700;
}

.check-row svg {
  width: 17px;
  height: 17px;
  color: var(--sage-deep);
  flex: none;
}

.check-row small {
  margin-left: auto;
  color: var(--ink-faint);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.puppy-bar {
  height: 9px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7ddc9;
}

.puppy-bar i {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: 99px;
  background: var(--ochre);
}

.puppy-note {
  margin: 8px 0 0;
  color: var(--sand-text);
  font-size: 11.5px;
  font-weight: 800;
}

/* Health mock */

.health-tiles {
  display: grid;
  padding: 16px 16px 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.health-tile {
  display: flex;
  overflow: hidden;
  align-items: center;
  min-width: 0;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
}

.ht-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
}

.ht-icon svg {
  width: 17px;
  height: 17px;
}

.ht-petrol {
  background: var(--petrol-tint);
  color: var(--petrol-deep);
}

.ht-rose {
  background: var(--rose-tint);
  color: var(--rose-ink);
}

.ht-sage {
  background: var(--sage-tint);
  color: var(--sage-deep);
}

.health-rows {
  display: grid;
  gap: 10px;
  padding: 12px 16px 16px;
}

.health-rows > *,
.mock-stack > * {
  min-width: 0;
}

.health-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.health-row .grow {
  min-width: 0;
  flex: 1;
}

.health-row strong,
.health-row small {
  display: block;
}

.health-row strong {
  font-size: 13.5px;
}

.health-row small {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 11.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.health-row > b {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--petrol-tint);
  color: var(--petrol-deep);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.heat-strip {
  display: flex;
  align-items: center;
  gap: 7px;
}

.heat-strip i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e7ddc9;
  flex: none;
}

.heat-strip i.on {
  background: var(--rose);
  opacity: 0.85;
}

.heat-strip i.today {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--petrol);
}

.chart-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.chart-head strong,
.chart-head small {
  display: block;
}

.chart-head strong {
  font-family: "Fredoka", sans-serif;
  font-size: 21px;
  font-weight: 600;
}

.chart-head small {
  margin-top: 2px;
  color: var(--sage-deep);
  font-size: 11px;
  font-weight: 800;
}

.chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
}

.shot-frame {
  width: min(100%, 268px);
  margin-inline: auto;
  padding: 9px;
  border: 1px solid rgba(28, 22, 17, 0.7);
  border-radius: 44px;
  background: linear-gradient(160deg, #33291f, #17120d);
  box-shadow: 0 30px 60px rgba(46, 35, 25, 0.28);
}

.shot-frame img {
  width: 100%;
  border-radius: 35px;
}

/* Costs mock */

.mock-costs {
  padding: 18px;
}

.costs-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.costs-total strong {
  font-family: "Fredoka", sans-serif;
  font-size: 30px;
  font-weight: 600;
}

.costs-total span {
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 800;
}

.cost-row {
  display: grid;
  align-items: center;
  grid-template-columns: 76px 1fr auto;
  gap: 11px;
  padding: 10px 0;
}

.cost-row + .cost-row {
  border-top: 1px dashed var(--line);
}

.cost-row span {
  font-size: 12.5px;
  font-weight: 800;
}

.cost-row b {
  font-size: 12.5px;
  font-weight: 800;
}

.cost-bar {
  height: 11px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7ddc9;
}

.cost-bar i {
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: 99px;
  background: var(--c);
}

/* ---------- Watch band ---------- */

.watch-band {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(30px, 4.5vw, 56px);
  border-radius: 30px;
  color: #eae7de;
  background:
    radial-gradient(30rem 20rem at 92% 0%, rgba(60, 128, 121, 0.4), transparent 62%),
    var(--coat);
  box-shadow: var(--shadow-big);
}

.watch-band .feature-label {
  color: #8fc2bb;
}

.watch-band h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.watch-band p {
  max-width: 52ch;
  margin: 16px 0 0;
  color: rgba(234, 231, 222, 0.68);
  font-size: 16px;
}

.watch-face {
  display: flex;
  width: 190px;
  align-items: center;
  padding: 18px 16px;
  border: 1px solid rgba(234, 231, 222, 0.18);
  border-radius: 38px;
  background: #14100c;
  box-shadow:
    0 0 0 8px #221c16,
    0 26px 54px rgba(0, 0, 0, 0.45);
  flex-direction: column;
  gap: 9px;
}

.watch-time {
  font-family: "Fredoka", sans-serif;
  font-size: 24px;
  font-weight: 600;
}

.watch-face svg {
  width: 22px;
  height: 22px;
  color: var(--ochre);
}

.watch-btn {
  padding: 9px 30px;
  border-radius: 999px;
  background: var(--petrol);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.watch-sub {
  color: rgba(234, 231, 222, 0.55);
  font-size: 10px;
  font-weight: 700;
}

/* ---------- Public Safety API ---------- */

.safety-api-band {
  min-width: 0;
  padding: clamp(34px, 5vw, 60px);
  border: 1px solid color-mix(in srgb, var(--petrol) 24%, var(--line));
  border-radius: 30px;
  background:
    radial-gradient(38rem 22rem at 0% 0%, rgba(214, 155, 78, 0.14), transparent 64%),
    linear-gradient(145deg, #f8f4eb, #e4efec);
  box-shadow: var(--shadow);
}

.safety-api-intro {
  max-width: 790px;
  margin-inline: auto;
  text-align: center;
}

.safety-api-intro .feature-label {
  justify-content: center;
}

.safety-api-intro h1,
.safety-api-intro h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.safety-api-intro > p:last-child {
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.safety-api-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.safety-api-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(224, 211, 190, 0.95);
  border-radius: 22px;
  background: rgba(252, 251, 248, 0.94);
  box-shadow: 0 14px 34px rgba(58, 46, 36, 0.08);
}

.safety-api-kicker {
  margin: 0 0 10px;
  color: var(--petrol-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.safety-api-card h2,
.safety-api-card h3,
.safety-api-guidance h2,
.safety-api-guidance h3 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.safety-api-card h2,
.safety-api-card h3 {
  font-size: 25px;
}

.safety-api-card > p:not(.safety-api-kicker) {
  color: var(--ink-soft);
}

.safety-api-card > p:nth-of-type(2) {
  min-height: 4.7em;
  margin: 12px 0 0;
}

.safety-api-band code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.safety-api-request {
  max-width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  padding: 16px;
  border-radius: 14px;
  color: #e6f1ef;
  background: var(--coat);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

.safety-api-request code {
  font-size: inherit;
}

.safety-api-params {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr);
  gap: 9px 16px;
  margin: 0;
}

.safety-api-params dt {
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
}

.safety-api-params dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-soft);
}

.safety-api-contract {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

.safety-api-guidance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.safety-api-guidance article {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(60, 128, 121, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.safety-api-guidance h2,
.safety-api-guidance h3 {
  font-size: 18px;
}

.safety-api-guidance p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.safety-api-disclaimer {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--rust);
  border-radius: 8px 14px 14px 8px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
  font-size: 13.5px;
}

/* ---------- Privacy ---------- */

.privacy-band {
  padding: clamp(44px, 6vw, 72px) clamp(26px, 5vw, 72px);
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(34rem 20rem at 8% 0%, rgba(255, 255, 255, 0.12), transparent 58%),
    linear-gradient(140deg, var(--petrol-deep), #1d4a44);
  box-shadow: 0 28px 66px rgba(46, 100, 95, 0.3);
  text-align: center;
}

.privacy-band svg.shield {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: #bfe0da;
}

.privacy-band .feature-label {
  color: #aad6cd;
}

.privacy-band h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.privacy-band > p {
  max-width: 700px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15.5px;
}

.privacy-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 26px;
  padding: 0;
  list-style: none;
}

.privacy-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  font-weight: 800;
}

.privacy-chips svg {
  width: 14px;
  height: 14px;
  color: #aad6cd;
}

.privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: white;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.privacy-link svg {
  width: 15px;
  height: 15px;
  transition: transform 170ms var(--ease);
}

.privacy-link:hover svg,
.privacy-link:focus-visible svg {
  transform: translateX(4px);
}

/* ---------- Closing ---------- */

.closing {
  position: relative;
  overflow: hidden;
  padding-block: clamp(84px, 10vw, 140px);
  text-align: center;
}

.closing-breeds {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding-block: clamp(22px, 3.5vw, 44px);
  opacity: 0.5;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.breed-row {
  display: flex;
  width: max-content;
  animation: breed-scroll 56s linear infinite;
}

.breed-row-reverse {
  animation-direction: reverse;
  animation-duration: 64s;
}

.breed-group {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  flex: none;
}

.breed-group img {
  width: clamp(50px, 5vw, 70px);
  height: auto;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 10px 20px rgba(58, 46, 36, 0.12);
}

@keyframes breed-scroll {
  to {
    transform: translateX(-50%);
  }
}

.closing-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.closing-inner img.mascot {
  width: 92px;
  height: 92px;
  margin-bottom: 24px;
  border-radius: 23px;
  box-shadow: 0 16px 36px rgba(58, 46, 36, 0.18);
}

.closing-inner .feature-label {
  margin-bottom: 10px;
}

.closing-inner h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(42px, 5.6vw, 70px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.closing-inner > p {
  margin: 20px 0 30px;
  color: var(--ink-soft);
  font-weight: 700;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 12.5px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--petrol-deep);
}

/* ---------- Entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 760ms var(--ease) backwards;
  }

  .hero > *:nth-child(1) { animation-delay: 40ms; }
  .hero > *:nth-child(2) { animation-delay: 130ms; }
  .hero > *:nth-child(3) { animation-delay: 220ms; }
  .hero > *:nth-child(4) { animation-delay: 310ms; }
  .hero > *:nth-child(5) { animation-delay: 400ms; }
  .hero > *:nth-child(6) { animation-delay: 490ms; }

  .phone-fan {
    animation: rise 900ms 280ms var(--ease) backwards;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .feature-row,
  .feature-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .feature-row:nth-child(even) .feature-copy {
    order: 1;
  }

  .feature-row:nth-child(even) .feature-mock {
    order: 2;
  }

  .watch-band {
    justify-items: center;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .watch-band p {
    margin-inline: auto;
  }

  .safety-api-grid,
  .safety-api-guidance {
    grid-template-columns: 1fr;
  }

  .safety-api-card > p:nth-of-type(2) {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-pill {
    min-height: 54px;
    padding-left: 14px;
  }

  .hero h1 {
    font-size: clamp(42px, 12.4vw, 60px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .phone-fan {
    height: auto;
  }

  .device {
    position: relative;
  }

  .device-left,
  .device-right {
    display: none;
  }

  .device-center {
    width: min(88%, 320px);
    margin-inline: auto;
    translate: 0 0;
    left: auto;
  }

  .app-tabs {
    border-radius: 17px;
  }

  .feature-row,
  .watch-band,
  .safety-api-band,
  .privacy-band {
    border-radius: 22px;
    padding: 24px;
  }

  .safety-api-card {
    padding: 20px;
  }

  .safety-api-params {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .safety-api-params dd + dt {
    margin-top: 10px;
  }

  .mock-map {
    min-height: 300px;
  }

  .breed-group {
    gap: 16px;
    padding-right: 16px;
  }

  .closing-breeds {
    opacity: 0.42;
  }

  .site-footer {
    align-items: flex-start;
    padding-block: 24px;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .breed-row {
    animation: none;
    transform: none;
  }
}
