:root {
  --coral: #ED7565;
  --teal: #057083;
  --ink: #283949;
  --white: #ffffff;
  --paper: rgba(5, 112, 131, 0.06);
  --line: rgba(40, 57, 73, 0.14);
  --muted: rgba(40, 57, 73, 0.72);
  --shadow: 0 18px 40px rgba(40, 57, 73, 0.08);
  --max: 1160px;
  --font: Candara, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  border-top: 4px solid var(--coral);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}
.logo img { height: 46px; width: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--paper);
  color: var(--teal);
}
.cart-link { display: inline-flex; align-items: center; gap: 8px; }
.cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 36px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.12; font-weight: 700; margin: 0; }
h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.lede {
  margin: 18px 0 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 19px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-panel {
  background: var(--paper);
  border-radius: 28px;
  min-height: 420px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.hero-panel img { width: min(340px, 78%); height: auto; }
.hero-chip {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  max-width: 220px;
}
.hero-chip strong { display: block; }
.hero-chip span { color: var(--teal); font-size: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-coral:hover { filter: brightness(1.05); }
.btn-line { border-color: var(--teal); color: var(--teal); }
.btn-line:hover { background: var(--teal); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--teal); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 12px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 20px;
}
.pillar {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: var(--white);
}
.pillar svg { width: 36px; height: 36px; }
.pillar h3 { margin: 14px 0 8px; font-size: 22px; }
.pillar p { margin: 0; color: var(--muted); }

.section { padding: 56px 0; }
.section-paper { background: var(--paper); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 520px; }
.link-teal { color: var(--teal); font-weight: 700; }
.link-teal:hover { text-decoration: underline; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card:hover { box-shadow: var(--shadow); }
.card-art { position: relative; display: block; background: var(--paper); }
.art { width: 100%; height: auto; }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kicker {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card h3 { font-size: 22px; }
.card h3 a:hover { color: var(--teal); }
.lead { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.price { font-size: 20px; }

.brand-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}
.brand-logo {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
}
.swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.swatch {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.swatch i { display: block; height: 64px; }
.swatch span { display: block; padding: 10px 12px 12px; font-size: 14px; }
.swatch b { display: block; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  padding: 8px 8px 0 0;
}
.step em {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-style: normal;
  font-weight: 700;
}
.step h3 { margin: 14px 0 8px; font-size: 22px; }
.step p { margin: 0; color: var(--muted); }

.cta-band {
  background: var(--teal);
  color: var(--white);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.cta-band h2 { color: var(--white); }
.cta-band p { margin: 8px 0 0; max-width: 520px; }
.cta-band .btn { background: var(--white); color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); padding-top: 36px; background: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.8fr;
  gap: 24px;
  padding-bottom: 28px;
}
.footer-logo { height: 48px; width: auto; margin-bottom: 10px; }
.footer-label {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer a, .site-footer p { display: block; margin: 0 0 6px; color: var(--muted); }
.site-footer a:hover { color: var(--teal); }
.legal {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 14px 16px;
  font-size: 14px;
}

.page-head { padding: 42px 0 10px; }
.page-head h1 { font-size: clamp(34px, 4vw, 52px); }
.page-head p { color: var(--muted); max-width: 560px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}
.chip.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }

.product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  padding: 28px 0 10px;
  align-items: start;
}
.product-art {
  background: var(--paper);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.product-art .art { width: 100%; }
.crumb { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.crumb a:hover { color: var(--teal); }
.product h1 { font-size: clamp(32px, 4vw, 48px); }
.price-lg { font-size: 32px; margin: 12px 0; }
.product .text { color: var(--muted); }
.specs { margin: 16px 0 0; padding: 0; list-style: none; }
.specs li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.buy-row { display: flex; gap: 10px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.qty button {
  width: 40px;
  height: 46px;
  border: 0;
  background: var(--paper);
  cursor: pointer;
  font-size: 20px;
}
.qty input {
  width: 48px;
  height: 46px;
  border: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

.cart-layout, .check-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  padding-bottom: 48px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--white);
}
.panel > .btn { margin-top: 16px; width: 100%; }
.line {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.line .art { border-radius: 12px; }
.line h3 { font-size: 20px; }
.line p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }
.sum-row, .total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
}
.total-row { font-size: 22px; font-weight: 700; margin-top: 12px; }
.ghost {
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  padding: 0;
  font-weight: 700;
}
.empty {
  padding: 48px 0 72px;
  text-align: center;
}
.empty img { width: 160px; margin: 0 auto 12px; }
.empty p { color: var(--muted); }

.form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
input, textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--white);
  font-size: 16px;
  font-weight: 400;
}
textarea { min-height: 90px; resize: vertical; }
.pay {
  display: grid;
  gap: 8px;
}
.pay label {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font-weight: 400;
  display: flex;
  gap: 10px;
  align-items: center;
}
.pay label:has(input:checked) { border-color: var(--teal); background: var(--paper); }
.field-error { color: var(--ink); background: rgba(237, 117, 101, 0.16); border-radius: 8px; padding: 8px 10px; font-size: 14px; font-weight: 700; }
.success {
  padding: 28px 0 64px;
}
.success-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background: var(--paper);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 40;
}
.toast a { color: var(--coral); font-weight: 700; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

@media (max-width: 980px) {
  .hero, .brand-grid, .product, .cart-layout, .check-layout, .footer-grid, .pillars, .steps {
    grid-template-columns: 1fr;
  }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .hero-panel { min-height: 300px; }
}
@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 14px 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .grid, .form-row { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .line { grid-template-columns: 72px 1fr; }
  .line .line-side { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none; }
}

.promo {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 9px 16px;
}
.hero-shot { margin: 0; }
.hero-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 8px;
}
.hero-shot figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 8px 0 36px;
}
.trust article { border-top: 2px solid var(--teal); padding-top: 12px; }
.trust h3 { font-size: 16px; margin-bottom: 4px; }
.trust p, .guide p, .quote footer { margin: 0; color: var(--muted); font-size: 14px; }
.cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.cat {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.cat i {
  width: 84px;
  height: 84px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
}
.cat:hover i { border-color: var(--teal); }
.cat svg { width: 30px; height: 30px; }
.bundles, .quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bundle, .quote {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--white);
  position: relative;
}
.quote { background: rgba(5, 112, 131, 0.08); border: 0; }
.save {
  display: inline-block;
  margin-bottom: 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
}
.bundle h3, .guide h3 { margin: 8px 0; font-size: 22px; }
.bundle p { margin: 0 0 16px; color: var(--muted); }
.guides { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.guide img, .card-art .photo, .product-art .photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--white);
}
.guide img { aspect-ratio: 4 / 5; border-radius: 8px; }
.product-art .photo { object-fit: contain; padding: 18px; }
.line .photo { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
}
.quote p { margin: 0 0 16px; }
.app-band {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.app-band img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.news { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 12px; }
.news label { width: 100%; }
.news input { min-width: 180px; }
.rules { margin: 12px 0 0; padding-left: 18px; }
.rules li { margin: 6px 0; }
.lockup-dark {
  background: var(--ink);
  color: var(--white);
  border-radius: 18px;
  min-height: 180px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
}
.lockup-dark img { width: 92px; height: auto; }
.lockup-dark strong { font-size: 36px; letter-spacing: -0.04em; }
.specimen { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.04em; margin: 8px 0; }

body[data-page="companion"] { background: var(--ink); }
.phone {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
}
.statusbar, .app-top, .sheet, .tabbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.statusbar, .app-top { padding: 14px 18px 0; }
.statusbar { font-size: 13px; font-weight: 700; }
.app-top { padding-top: 8px; padding-bottom: 8px; }
.app-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.app-brand img { width: 28px; height: 28px; }
.screens { flex: 1; overflow: auto; padding: 8px 18px 18px; }
.dog {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  margin: 8px 0 16px;
}
.dog img { width: 92px; height: 92px; object-fit: cover; border-radius: 50%; }
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}
.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.status-card, .device {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.status-card strong { display: block; font-size: 28px; letter-spacing: -0.03em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: rgba(5, 112, 131, 0.08); border-radius: 12px; padding: 10px; }
.stats b { display: block; }
.stats span { color: var(--muted); font-size: 12px; }
.map {
  height: 360px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 42%, rgba(5, 112, 131, 0.16), transparent 42%),
    var(--white);
  position: relative;
  overflow: hidden;
}
.pin {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -100%);
  background: var(--coral);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
}
.pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 8px;
  height: 8px;
  background: var(--coral);
  transform: translateX(-50%) rotate(45deg);
}
.home-mark {
  position: absolute;
  left: 18%;
  bottom: 18%;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}
.bar { height: 8px; border-radius: 999px; background: rgba(40, 57, 73, 0.12); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--teal); }
.tabbar {
  border-top: 1px solid var(--line);
  padding: 8px;
  background: var(--white);
}
.tabbar button, .tabbar a {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  min-height: 44px;
  cursor: pointer;
  text-align: center;
}
.tabbar button[aria-selected="true"] { color: var(--teal); }
@media (min-width: 800px) {
  body[data-page="companion"] { padding: 28px 0; }
  .phone {
    min-height: 0;
    height: 860px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
  }
}
@media (max-width: 980px) {
  .trust, .bundles, .quotes, .app-band { grid-template-columns: 1fr; }
  .guides { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .guides, .cats { grid-template-columns: 1fr 1fr; }
}
