/* Calmdogs website. Cream paper, deep forest green, the logo's orange used sparingly.
   Nunito for headings and reading; Cormorant Garamond only for the Calmdogs name, as in the
   logo. Fonts are self-hosted, so visitors' browsers don't contact Google. */
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --sand: #f3ecdf;
  --ink: #1d2a24;
  --muted: #5b6a62;
  --line: #e4dacb;
  --forest: #1f3129;
  --on-forest: #fbf6ee;
  --on-forest-muted: #b9c6bf;
  --sage: #4f7c6b;
  --sage-soft: #e4ede7;
  --orange: #e8622a;
  --orange-text: #b84a17;
  --orange-soft: #fbe6d8;
  --logo: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --display: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--sage);
  text-underline-offset: 3px;
}
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
}
h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
}
h3 {
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--orange-text);
}
p {
  margin: 0;
}
.eyebrow,
.tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-text);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow {
  max-width: 780px;
}

/* Header */
.site-header {
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--logo);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1;
}
.brand img {
  width: 28px;
  height: 36px;
}
.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 999px;
}
.nav a:hover {
  background: var(--sand);
}
.nav a[aria-current="page"] {
  color: var(--orange-text);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  background: var(--forest);
  color: var(--on-forest);
  border: 1.5px solid var(--forest);
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Home: hero */
.hero {
  padding-block: 56px 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.hero-text .lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 36ch;
}
.price-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.price-line b {
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
}
.price-line span {
  color: var(--muted);
  font-size: 1rem;
}
.badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 0.98rem;
  color: var(--muted);
}
.badges li::before {
  content: "✓";
  color: var(--sage);
  font-weight: 700;
  margin-right: 8px;
}
.badges b {
  color: var(--ink);
}

/* Hero picture: the orange pin standing behind the app's status card. */
.hero-stage {
  position: relative;
  min-height: 460px;
  border-radius: 32px;
  background: var(--forest);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-stage .sun {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgb(232 98 42 / 0.32), rgb(232 98 42 / 0) 68%);
}
.hero-stage .pin {
  position: relative;
  width: 44%;
  max-width: 200px;
  margin-top: -90px;
  filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.35));
}
.hero-stage .app-card {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8%;
}

/* The app's own status card, used in the hero and the feature rows. */
.app-card {
  background: #fbf6ee;
  color: #1d2a24;
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-card .row,
.screen .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.app-card strong,
.screen strong {
  font-family: var(--body);
  font-size: 1.35rem;
}
.pill {
  background: #e4ede7;
  color: #3e6a59;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill.out {
  background: #fbe6d8;
  color: #b84a17;
}
.app-card .where,
.screen .where {
  color: #4b5a52;
  font-size: 0.98rem;
}

/* Trust strip */
.trust-strip {
  background: var(--sand);
  padding-block: 18px;
}
.trust-strip ul {
  list-style: none;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}
.trust-strip li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 10px;
  vertical-align: middle;
}

/* Sections */
.section {
  padding-block: 96px;
}
.section.alt {
  background: var(--sand);
}
.section.dark {
  background: var(--forest);
  color: var(--on-forest);
}
.section.dark p,
.section.dark li {
  color: var(--on-forest-muted);
}
.section.dark .eyebrow {
  color: #ff9156;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
  max-width: 640px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.15rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--orange-text);
}
.steps p {
  color: var(--muted);
}

/* Feature rows: words on one side, the app's own screen on the other */
.rows {
  display: flex;
  flex-direction: column;
  gap: 88px;
}
.rows .section-head {
  margin-bottom: 0;
}
.row-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.row-feature:nth-child(odd) .row-text {
  order: 2;
}
.row-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 480px;
}
.row-text h3 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
}
.row-text p {
  color: var(--muted);
}
.mini-phone {
  justify-self: center;
  width: 100%;
  max-width: 360px;
  background: var(--forest);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 24px 48px rgb(16 28 23 / 0.22);
  min-width: 0;
}
.screen {
  background: #fbf6ee;
  color: #1d2a24;
  border-radius: 28px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
}
.screen .tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.screen .tiles span {
  background: #f3ecdf;
  border-radius: 14px;
  padding: 10px 4px;
  text-align: center;
  font-size: 0.78rem;
  color: #5b6a62;
  display: flex;
  flex-direction: column;
}
.screen .tiles b {
  color: #1d2a24;
  font-size: 0.95rem;
}
.note-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.08);
}
.note-card .app-name {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b6a62;
}
.lost-banner {
  background: #fbe6d8;
  color: #9c3d12;
  font-weight: 700;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 0.95rem;
}
.fake-button {
  border: 1.5px solid #4f7c6b;
  color: #3e6a59;
  border-radius: 16px;
  text-align: center;
  padding: 11px;
  font-weight: 700;
}
.screen .found {
  background: #e4ede7;
  color: #2f5a49;
  font-weight: 700;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 0.95rem;
}
.history {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 12px;
  background: #f3ecdf;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: #5b6a62;
}
.history b {
  color: #1d2a24;
  font-variant-numeric: tabular-nums;
  grid-row: span 2;
  align-self: center;
  font-size: 1.25rem;
}

/* Before you buy */
.before {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.before > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.before ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Promises on the dark band */
.promise-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
}
.promise-grid li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgb(251 246 238 / 0.18);
  min-width: 0;
}
.promise-grid b {
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--on-forest);
}

/* Tables */
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 1rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 700;
}
.compare {
  margin-bottom: 16px;
}
.compare th[scope="row"] {
  min-width: 190px;
}
.compare thead th {
  font-size: 0.9rem;
  color: var(--muted);
}
.compare thead th:nth-child(2) {
  color: var(--orange-text);
}
.compare td:nth-child(2) {
  font-weight: 700;
  color: var(--ink);
  background: var(--sage-soft);
}
.small {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Questions */
.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding-block: 20px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 0.8;
  color: var(--orange-text);
}
details[open] summary::after {
  content: "–";
}
details > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 22px;
  color: var(--muted);
  max-width: 64ch;
}
details ul {
  margin: 0;
  padding-left: 1.2em;
}

/* Long pages: guide, support, privacy */
.page-head {
  padding-block: 64px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-head p {
  color: var(--muted);
  font-size: 1.2rem;
}
.prose {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 96px;
}
.prose h2 {
  margin-top: 36px;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
}
.prose h3 {
  margin-top: 12px;
}
.prose > ul,
.prose > ol,
.callout ul {
  margin: 0;
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 20px;
}
.toc ol {
  columns: 2;
  column-gap: 40px;
  margin: 0;
  padding-left: 1.3em;
}
.toc li {
  margin-bottom: 4px;
}
.draft {
  background: var(--orange-soft);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
}
.callout {
  background: var(--sand);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.callout h2 {
  margin-top: 0;
}

/* Footer */
.site-footer {
  background: var(--forest);
  color: var(--on-forest-muted);
  padding-block: 56px;
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.site-footer .foot-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 460px;
}
.site-footer .foot-brand img {
  width: 220px;
  height: auto;
}
.site-footer a {
  color: var(--on-forest);
}
.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .section {
    padding-block: 64px;
  }
  .hero {
    padding-block: 32px 56px;
  }
  .hero .wrap,
  .row-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .hero-stage {
    min-height: 400px;
  }
  .row-feature:nth-child(odd) .row-text {
    order: 0;
  }
  .rows {
    gap: 64px;
  }
  .steps,
  .promise-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .before {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust-strip ul {
    flex-direction: column;
  }
  .toc ol {
    columns: 1;
  }
}
@media (max-width: 520px) {
  .before {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
