/* PawCal website. The app's own palette (pet-grooming/app/lib/ui/theme.dart): cream and
   charcoal in light, Midnight Navy in dark, Fresh Mint Teal and Warm Apricot in both.
   Fredoka for headings, Inter for text, both served from here. No framework; the only script is the shared footer credit. */

@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/static/fonts/Fredoka-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/static/fonts/Fredoka-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --teal: #2EC4B6;
  --teal-deep: #14897F;
  --apricot: #FF9F1C;
  --bg: #FDFBF7;
  --bg-alt: #F5F1E9;
  --surface: #FFFFFF;
  --line: #EAE4D9;
  --text: #0F172A;
  --muted: #64748B;
  --link: #14897F;
  --teal-soft: #E3F7F5;
  --shadow: 0 6px 18px rgba(15, 23, 42, .08);
  --phone-shadow: 0 18px 40px rgba(15, 23, 42, .18);
  --radius: 20px;
  --heading: "Fredoka", ui-rounded, system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E293B;
    --bg-alt: #18222F;
    --surface: #263449;
    --line: #3A4A63;
    --text: #F1F5F9;
    --muted: #94A3B8;
    --link: #5EDDD1;
    --teal-soft: #1E4A52;
    --shadow: 0 6px 18px rgba(0, 0, 0, .25);
    --phone-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 14px; border-radius: 10px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 1.45rem/1 var(--heading); }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--teal-soft); }
.nav a[aria-current="page"] { background: var(--teal-soft); color: var(--link); }
@media (max-width: 860px) {
  .top__in { flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; }
  .top__cta { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 6px 12px; }
}

.crumbs { padding-top: 14px; font-size: .88rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--teal-deep); color: #fff; text-decoration: none;
  font: 700 1rem/1 var(--body); padding: 15px 24px; border-radius: 999px;
  border: 2px solid transparent;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--teal) 35%, transparent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px color-mix(in srgb, var(--teal) 40%, transparent); text-decoration: none; }
.btn--sm { padding: 10px 16px; font-size: .9rem; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--link); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--teal-soft); box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(900px 420px at 85% 20%, color-mix(in srgb, var(--teal) 22%, transparent), transparent 70%),
    radial-gradient(600px 300px at 10% 90%, color-mix(in srgb, var(--apricot) 14%, transparent), transparent 70%);
}
.hero--page { padding: 40px 0 48px; }
.hero--center { text-align: center; }
.hero--center .lead { margin-inline: auto; }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--teal); } }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .95rem; }
.ticks li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 6px; }
.byline { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 860px) {
  .hero, .hero--page { padding: 32px 0 40px; }
  .hero__in { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- light and dark phones ---------- */
.pair { margin: 0; }
.pair__phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; padding-bottom: 28px; }
.phone {
  width: min(240px, 44vw);
  border-radius: 26px;
  border: 6px solid #0F172A;
  box-shadow: var(--phone-shadow);
  background: #0F172A;
}
.phone--dark { margin-left: -36px; margin-top: 28px; }
.pair figcaption { text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section__h { text-align: center; }
.section__lead { text-align: center; color: var(--muted); max-width: 40em; margin: 0 auto 36px; }
@media (max-width: 640px) { .section { padding: 44px 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--flip > :first-child { order: 2; }
.split .section__h { text-align: left; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--flip > :first-child { order: 0; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 20px; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); color: var(--text); text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
a.card:hover { transform: translateY(-2px); border-color: var(--teal); }
.card p { color: var(--muted); }
.card__h { font-size: 1.2rem; font-weight: 600; }
.card--plain { box-shadow: none; }
.more { margin-top: auto; color: var(--link); font-weight: 600; }

.links { columns: 2 280px; gap: 32px; padding-left: 1.1em; }
.links li { margin-bottom: 8px; break-inside: avoid; }

/* ---------- long text ---------- */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--teal-deep); }
.doc h2 { font-size: 1.35rem; }
.note {
  margin-top: 2em; padding: 14px 18px; border-radius: 14px;
  background: var(--teal-soft); color: var(--text); font-size: .92rem;
}

/* ---------- breed pages ---------- */
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; }
.facts span { color: var(--muted); font-weight: 400; margin-right: 6px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.routine { width: 100%; border-collapse: collapse; font-size: .97rem; }
.routine th, .routine td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.routine tbody tr:last-child > * { border-bottom: 0; }
.routine thead th { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.routine tbody th { font-weight: 600; white-space: nowrap; }
.routine td:last-child { color: var(--muted); }
@media (max-width: 640px) {
  .routine thead { display: none; }
  .routine tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .routine tbody tr:last-child { border-bottom: 0; }
  .routine th, .routine td { display: block; padding: 2px 0; border: 0; }
  .routine td.nowrap { color: var(--link); font-weight: 600; }
}
.offlist { color: var(--muted); padding-left: 1.2em; }
.offlist li { margin-bottom: 6px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; }
.chips a:hover { border-color: var(--teal); }
.sources { font-size: .92rem; }

.breedlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.breedlist a {
  display: flex; flex-direction: column; padding: 12px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600;
}
.breedlist a:hover { border-color: var(--teal); }
.breedlist span { color: var(--muted); font-weight: 400; font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--teal-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan--main { border: 2px solid var(--teal); }
.plan h2 { font-size: 1.3rem; margin-bottom: .2em; }
.plan__price { font: 700 1.6rem/1.2 var(--heading); color: var(--link); }
.plan ul { padding-left: 1.2em; color: var(--muted); }
.plan p:not(.plan__price) { color: var(--muted); }

/* ---------- call to action ---------- */
.cta { background: linear-gradient(135deg, #3FD3C5, #2EC4B6 45%, #1FAE9F); color: #0F172A; padding: 48px 0; }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; max-width: 36em; }
.cta .btn { background: #0F172A; box-shadow: 0 8px 20px rgba(15, 23, 42, .25); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 24px; font-size: .95rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot__h { font: 600 1rem/1.3 var(--heading); margin-bottom: .6em; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--link); text-decoration: underline; }
.foot .btn { color: #fff; }
.brand--foot { margin-bottom: 12px; font-size: 1.25rem; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; color: var(--muted); font-size: .88rem; }
.foot__base span a { color: var(--muted); text-decoration: underline; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }

/* "Built by EHTech": the same typewriter credit as every EHTech site, driven by the
   shared credit.js, with capesaaaca's rules. Only the colours are PawCal's. */
.credit {
  display: inline-block; color: var(--muted); text-decoration: none;
  transform-origin: left center; backface-visibility: hidden;
  transition: color .18s ease;
}
.credit b { color: var(--link); font-weight: 700; transition: color .18s ease; }
.credit:hover { color: var(--text); text-decoration: none; }
.credit:hover b { color: var(--teal); }
/* The full text is always in the DOM for assistive tech; the typed spans are
   aria-hidden, so the link's accessible name stays "Built by EHTech". */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* the caret only exists once the script is driving the typing */
.credit-caret { display: none; }
.js-type .credit-caret {
  display: inline-block; width: 1px; height: 1em; margin-left: 2px;
  background: var(--link); vertical-align: -2px;
  animation: caret-blink 1s steps(2, start) infinite;
}
.js-type .credit.is-idle .credit-caret { animation: none; opacity: 1; }
@keyframes caret-blink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
/* Nothing types for anyone who asked for less motion. */
/* ---------- holding page (COMING_SOON) ---------- */
.soon { min-height: 100vh; display: flex; flex-direction: column; }
.soon__main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 48px 16px; text-align: center; }
.soon__main img { border-radius: 22px; box-shadow: var(--shadow); }
.soon__main h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: 0; }
.soon .foot { padding-top: 20px; }
.soon .foot__base { border-top: 0; margin-top: 0; padding-top: 0; }

@media (prefers-reduced-motion: reduce) { .js-type .credit-caret { display: none; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
