/* Groomoir by ANC Perpetua: the public site.
   Layout: a heraldic frontispiece, then chapters on a thistle-black desk, with vellum pages for the records.
   Colour comes from the ANC coat of arms itself: the purple of its thistle and mantling, its gold,
   the fire of its phoenix, and the green, gold and red of the per-visit traffic light. */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #140f21;      /* thistle black */
  --night-2: #1c1530;
  --purpure: #33215a;    /* the mantling's purple */
  --purpure-2: #4a3180;
  --lilac: #cbb6ef;      /* the thistle in flower */
  --or: #dcae4a;         /* heraldic gold */
  --or-bright: #f3d58f;
  --or-deep: #7a5a1e;
  --flame: #e2733b;      /* the phoenix */
  --flame-text: #ffc49f;
  --vellum: #f5ecda;
  --vellum-2: #eadcc0;
  --ink: #21172f;
  --ink-soft: #594a67;
  --text: #efe7f5;
  --text-soft: #c3b7d3;
  --line: rgb(203 182 239 / .2);
  --line-gold: rgb(220 174 74 / .5);
  --vert: #2f5d3a;
  --amber: #8f5a12;
  --gules: #8f2a1f;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --max: 72rem;
  --gilt: linear-gradient(180deg, #fbe7b0 0%, #e7bd5c 48%, #b9852c 100%);
  --grain: url("assets/grain.svg");
}
@media (min-width: 760px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(60rem 40rem at 50% -14rem, rgb(74 49 128 / .55), transparent 72%), var(--night);
  background-repeat: no-repeat;
  background-color: var(--night);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
}
@media (min-width: 760px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--or-bright); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: #fff1cc; }
:focus-visible { outline: 3px solid var(--or-bright); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; color: var(--text); font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 48rem); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 12px 18px; border-radius: 8px; background: var(--or-bright); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* The masthead */
.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; color: var(--text); text-decoration: none; }
.brand img { width: 38px; height: auto; filter: drop-shadow(0 4px 8px rgb(0 0 0 / .5)); }
.brand__text { display: grid; line-height: 1; }
.brand__name { font: 600 1.55rem/1 var(--display); letter-spacing: -.01em; }
.brand__by { margin-top: 4px; color: var(--lilac); font-size: .76rem; letter-spacing: .05em; }
.brand:hover { color: var(--or-bright); }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-gold); border-radius: 999px; background: transparent; color: var(--text); font: 700 1rem/1 var(--body); cursor: pointer; }
.menu-toggle__bars { display: grid; gap: 4px; }
.menu-toggle__bars span { display: block; width: 16px; height: 2px; background: var(--or); transition: transform .2s; }
.site-nav { width: 100%; padding-block: 6px 12px; }
.site-nav ul { display: grid; margin: 0; padding: 0; list-style: none; }
.site-nav li a { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line); color: var(--text); font: 600 1.5rem/1 var(--display); text-decoration: none; }
.site-nav li a:hover, .site-nav li a[aria-current="page"] { color: var(--or-bright); }
.site-nav li a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.site-nav .btn { width: 100%; margin-top: 18px; }
.js .menu-toggle { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav[data-open] { display: block; }
.js .menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(3px) rotate(45deg); }
.js .menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-3px) rotate(-45deg); }
@media (min-width: 940px) {
  .masthead { flex-wrap: nowrap; padding-block: 20px; }
  .js .menu-toggle { display: none; }
  .site-nav, .js .site-nav { display: flex; align-items: center; gap: 30px; width: auto; padding: 0; }
  .site-nav ul { display: flex; gap: 26px; }
  .site-nav li a { min-height: 44px; border: 0; font: 400 1rem/1 var(--body); }
  .site-nav .btn { width: auto; margin: 0; min-height: 46px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 1px solid transparent; border-radius: 999px; font: 700 1rem/1.1 var(--body); text-align: center; text-decoration: none; cursor: pointer; }
.btn--gold { background: var(--gilt); color: var(--ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 10px 26px rgb(0 0 0 / .4); }
.btn--gold:hover { background: linear-gradient(180deg, #fff0c4, #efc96e 48%, #c99437); color: var(--ink); }
.btn--line { border-color: var(--lilac); color: var(--text); }
.btn--line:hover { background: rgb(203 182 239 / .12); color: #fff; }
.btn--ink { background: var(--ink); color: var(--vellum); }
.btn--ink:hover { background: var(--purpure); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Home: the frontispiece. The coat of arms leads; the name is gilded beneath it. */
.frontis { overflow-x: clip; padding-block: 6px 72px; }
.frontis__inner { position: relative; display: grid; justify-items: center; text-align: center; padding: 18px 0 8px; }
.frontis__inner > * { min-width: 0; max-width: 100%; }
.frontis__arms { position: relative; isolation: isolate; width: min(62vw, 230px); }
.frontis__arms::before { content: ""; position: absolute; inset: -30% -48%; z-index: -1; background: radial-gradient(closest-side, rgb(226 115 59 / .32), rgb(220 174 74 / .2) 42%, rgb(74 49 128 / .22) 70%, transparent); pointer-events: none; }
.frontis__arms img { width: 100%; filter: drop-shadow(0 22px 34px rgb(0 0 0 / .6)); }
.frontis h1 { display: grid; justify-items: center; gap: 12px; margin-top: 18px; }
.frontis__name { display: block; max-width: 100%; padding: 0 .04em .08em; background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: var(--or); -webkit-text-fill-color: transparent; font-size: clamp(3.4rem, 1rem + 12vw, 9.5rem); line-height: .95; letter-spacing: -.035em; }
.frontis__by { display: block; color: var(--lilac); font: 700 .95rem/1 var(--body); letter-spacing: .1em; }
.frontis__line { display: block; max-width: 19ch; margin-top: 14px; color: var(--text); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); line-height: 1.12; }
.frontis__lead { max-width: 36rem; margin-top: 20px; color: var(--text-soft); }
.frontis .actions { justify-content: center; margin-top: 28px; }
.motto { margin-top: 28px; color: var(--or); font: 600 1.35rem/1.2 var(--display); }
@media (min-width: 760px) {
  .frontis__inner { margin-top: 10px; padding: 52px 40px 56px; border: 1px solid var(--line-gold); border-radius: 4px; outline: 1px solid rgb(220 174 74 / .22); outline-offset: 7px; }
  .frontis__arms { width: 290px; }
}
@media (prefers-reduced-motion: no-preference) {
  .frontis__arms img { animation: rise 1.3s cubic-bezier(.2, .7, .2, 1) both; }
  .frontis__arms::before { animation: bloom 2.2s .2s ease-out both; }
  .frontis__name { animation: gild 1.2s .5s ease-out both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bloom { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes gild { from { opacity: 0; letter-spacing: .02em; } to { opacity: 1; letter-spacing: -.035em; } }

/* The folio: one page from a dog's Grimoire */
.folio { position: relative; isolation: isolate; justify-self: center; width: min(100%, 27rem); margin: 0; }
.folio::before { content: ""; position: absolute; inset: -14% -16%; z-index: -1; background: radial-gradient(closest-side, rgb(203 182 239 / .16), transparent); pointer-events: none; }
.folio__page {
  padding: 26px 20px 22px 30px;
  border-radius: 3px 10px 10px 3px;
  background: var(--grain), linear-gradient(90deg, #dccaa6 0, var(--vellum) 9%, var(--vellum) 92%, var(--vellum-2) 100%);
  color: var(--ink);
  box-shadow: inset 22px 0 30px -24px rgb(60 35 20 / .5), 0 28px 60px rgb(0 0 0 / .55), 0 0 0 1px #000, 0 0 0 6px var(--purpure), 0 0 0 7px #000;
  outline: 1px solid rgb(122 90 30 / .35);
  outline-offset: -9px;
  transform: rotate(-1.4deg);
}
.folio__from { color: var(--or-deep); font-size: .9rem; font-weight: 700; letter-spacing: .04em; }
.folio__dog { margin-top: 12px; color: var(--ink); font: 600 2.6rem/1.02 var(--display); letter-spacing: -.02em; }
.folio__dog::first-letter { float: left; margin: 4px 10px 0 0; padding: 7px 10px 5px; border: 1px solid var(--or-deep); background: linear-gradient(160deg, var(--purpure-2), var(--purpure)); color: var(--or-bright); font-size: 3.1rem; line-height: .82; box-shadow: inset 0 0 0 3px var(--purpure), inset 0 0 0 4px var(--or); }
.folio__breed { margin-top: 4px; color: var(--ink-soft); font-size: .95rem; }
.folio__rows { clear: both; display: grid; margin: 18px 0 0; border-top: 1px solid rgb(122 90 30 / .35); }
.folio__rows div { display: grid; grid-template-columns: 5.8rem minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid rgb(122 90 30 / .22); }
.folio__rows dt { padding-top: 2px; color: var(--ink-soft); font-size: .82rem; font-weight: 700; }
.folio__rows dd { margin: 0; font-size: .95rem; line-height: 1.45; }
.chip { display: inline-block; margin-right: 6px; padding: 1px 10px; border-radius: 999px; color: #fff; font-size: .8rem; font-weight: 700; }
.chip--green { background: var(--vert); }
.folio__done { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: var(--vert); font-size: .92rem; font-weight: 700; }
.folio__done svg { flex: none; }
.folio figcaption { margin-top: 24px; color: var(--text-soft); font-size: .9rem; text-align: center; }

/* Sections */
.section { padding-block: clamp(64px, 10vw, 120px); }
.section--rule { border-top: 1px solid var(--line); }
.section--clip, .page-head { overflow-x: clip; }
.section h2 { font-size: clamp(2.1rem, 1.4rem + 2.9vw, 3.4rem); }
.intro p { max-width: 34rem; margin-top: 16px; }
.intro .soft { color: var(--text-soft); }
.split { display: grid; gap: 36px; }
.split .features { margin-top: 0; }
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; }
  .split--even, .split--folio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--folio { align-items: center; }
  .split--form { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
  .stick { position: sticky; top: 36px; align-self: start; }
}

/* A groom, start to finish: a real sequence, so it's numbered */
.steps { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 34px 68px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gilt); color: var(--ink); font: 600 1.35rem/1 var(--display); box-shadow: 0 0 0 4px var(--night), 0 0 0 5px var(--line-gold); }
.steps li::after { content: ""; position: absolute; left: 23px; top: 50px; bottom: 2px; width: 2px; background: linear-gradient(var(--or), rgb(220 174 74 / .1)); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.7rem; }
.steps p { margin-top: 6px; }

/* Vellum sheets */
.sheet {
  padding: clamp(30px, 5vw, 64px) clamp(22px, 5vw, 64px);
  border-radius: 6px;
  background: var(--grain), linear-gradient(115deg, var(--vellum), var(--vellum-2));
  color: var(--ink);
  box-shadow: 0 30px 70px rgb(0 0 0 / .5), 0 0 0 1px #000, 0 0 0 6px var(--purpure), 0 0 0 7px #000;
  outline: 1px solid rgb(122 90 30 / .38);
  outline-offset: -10px;
}
.sheet h2, .sheet h3 { color: var(--ink); }
.sheet a { color: var(--ink); text-decoration-color: var(--or-deep); }
.sheet a:hover { color: var(--purpure); }
.sheet .soft { color: var(--ink-soft); }
.sheet :focus-visible { outline-color: var(--purpure-2); }
.sheet__lead { max-width: 40rem; margin-top: 16px; }

/* The traffic light: vert, or and gules */
.lamps { display: grid; gap: 22px; margin: 34px 0 0; padding: 0; list-style: none; }
.lamps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 2px 16px; align-items: start; }
.lamp { --c: var(--vert); grid-row: span 2; width: 38px; height: 38px; margin-top: 2px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .5), transparent 46%), var(--c); box-shadow: 0 0 0 3px var(--vellum), 0 0 0 4px var(--c), 0 8px 18px -6px var(--c); }
.lamp--amber { --c: var(--amber); }
.lamp--red { --c: var(--gules); }
.lamps h3 { font-size: 1.6rem; }
.lamps p { margin-top: 2px; }
.trio li { grid-template-columns: minmax(0, 1fr); }
.sheet__foot { max-width: 44rem; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgb(122 90 30 / .3); }
@media (min-width: 760px) {
  .lamps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .lamps li { padding: 0 24px; }
  .lamps li:first-child { padding-left: 0; }
  .lamps li + li { border-left: 1px solid rgb(122 90 30 / .3); }
}

/* The three book words */
.glossary { display: grid; gap: 30px; margin: 40px 0 0; }
.glossary div { min-width: 0; }
.glossary dt { color: var(--or-bright); font: 600 2.3rem/1 var(--display); letter-spacing: -.02em; }
.glossary dt span { display: block; margin-top: 8px; color: var(--lilac); font: 700 .95rem/1.4 var(--body); letter-spacing: .02em; }
.glossary dd { margin: 12px 0 0; }
@media (min-width: 940px) {
  .glossary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .glossary div { padding: 4px 34px; }
  .glossary div:first-child { padding-left: 0; }
  .glossary div + div { border-left: 1px solid var(--line); }
}

/* Bands and lists */
.band { border-block: 1px solid var(--line-gold); background: linear-gradient(160deg, var(--purpure) 0%, #261844 55%, var(--night-2) 100%); }
.band h2 { color: var(--or-bright); }
.ticks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .22em; width: 21px; height: 21px; background: var(--or); -webkit-mask: url("assets/paw.svg") center / contain no-repeat; mask: url("assets/paw.svg") center / contain no-repeat; transform: rotate(-14deg); }
.ticks li:nth-child(even)::before { transform: rotate(10deg); }
.sheet .ticks li::before, .plan--sheet .ticks li::before { background: var(--purpure-2); }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font-weight: 700; }

.cta { text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 1.5rem + 3.8vw, 4.2rem); }
.cta p { max-width: 32rem; margin: 18px auto 0; }
.cta .actions { justify-content: center; margin-top: 30px; }

/* Inner pages: every title page carries the arms */
.page-head { padding-block: 18px 56px; }
.page-head__grid { display: grid; gap: 22px; }
.page-head__grid > div { min-width: 0; }
.page-head__crest { position: relative; isolation: isolate; justify-self: start; }
.page-head__crest::before { content: ""; position: absolute; inset: -30% -50%; z-index: -1; background: radial-gradient(closest-side, rgb(226 115 59 / .22), rgb(220 174 74 / .12) 45%, transparent); pointer-events: none; }
.page-head__crest img { width: 92px; filter: drop-shadow(0 12px 20px rgb(0 0 0 / .55)); }
.page-head h1 { max-width: 16ch; font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.025em; }
.page-head .lead { max-width: 38rem; margin-top: 20px; color: var(--text-soft); font-size: 1.125rem; }
.page-head .actions { margin-top: 28px; }
.page-head--alone { min-height: 52vh; padding-block: 36px 96px; }
@media (min-width: 940px) {
  .page-head { padding-block: 40px 80px; }
  .page-head__grid { grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 48px; }
  .page-head__crest { grid-column: 2; grid-row: 1; justify-self: center; }
  .page-head__crest img { width: 220px; }
}

/* Features: chapters */
.contents { display: grid; max-width: 36rem; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; counter-reset: ch; }
.contents li { border-bottom: 1px solid var(--line); counter-increment: ch; }
.contents a { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); align-items: baseline; min-height: 52px; padding: 12px 0; color: var(--text); font: 600 1.4rem/1.2 var(--display); text-decoration: none; }
.contents a::before { content: counter(ch, upper-roman); color: var(--or); font: 600 1rem/1 var(--display); }
.contents a:hover { color: var(--or-bright); }
.chapter { padding-block: clamp(56px, 8vw, 100px); border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.chapter:nth-of-type(odd) { background: linear-gradient(180deg, rgb(51 33 90 / .4), transparent 75%); }
.chapter__head { display: grid; gap: 14px; max-width: 42rem; }
.chapter__num { color: var(--lilac); font-size: .95rem; font-weight: 700; letter-spacing: .06em; }
.chapter__head h2 { font-size: clamp(2.1rem, 1.4rem + 2.9vw, 3.4rem); }
.features { display: grid; gap: 34px; margin-top: 40px; }
.feature { min-width: 0; }
.feature h3 { color: var(--or-bright); font-size: 1.55rem; }
.feature p { margin-top: 8px; }
.feature ul { margin: 12px 0 0; padding-left: 1.15em; }
.feature li { margin-top: 5px; padding-left: 4px; }
.feature li::marker { color: var(--or); }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; } }

/* Pricing */
.notice { display: grid; gap: 8px; max-width: 46rem; padding: 20px 22px; border: 1px solid var(--flame); border-radius: 10px; background: rgb(226 115 59 / .1); }
.notice__title { color: var(--flame-text); font-size: 1.5rem; }
.plans { display: grid; gap: 26px; margin-top: 40px; }
.plan { display: flex; flex-direction: column; min-width: 0; padding: 30px 24px 26px; border: 1px solid var(--line-gold); border-radius: 10px; background: linear-gradient(180deg, var(--night-2), var(--night)); }
.plan h3 { color: var(--text); font-size: 2.1rem; }
.plan__for { margin-top: 6px; color: var(--text-soft); }
.plan__tag { align-self: flex-start; margin-bottom: 16px; padding: 3px 12px; border: 1px solid var(--flame); border-radius: 999px; color: var(--flame-text); font-size: .82rem; font-weight: 700; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 22px; }
.price__amount { color: var(--or-bright); font: 600 3.4rem/1 var(--display); letter-spacing: -.03em; }
.price__per { color: var(--text-soft); }
.plan .ticks { flex: 1; margin-top: 24px; }
.plan .btn { margin-top: 28px; }
.plan__then { margin-top: 14px; color: var(--text-soft); font-size: .95rem; }

/* Monthly or yearly. Works with CSS only, no JavaScript. Browsers without :has()
   don't see the switch: they show both prices, "£29 a month or £290 a year". */
.billing { display: none; min-width: 0; margin: 36px 0 0; padding: 0; border: 0; }
.billing__legend { padding: 0; color: var(--text); font: 600 1.45rem/1.2 var(--display); }
.billing__options { position: relative; display: inline-flex; gap: 4px; margin-top: 12px; padding: 4px; border: 1px solid var(--line-gold); border-radius: 999px; background: var(--night-2); }
.billing__options input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.billing__options label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 26px; border-radius: 999px; color: var(--text-soft); font-weight: 700; cursor: pointer; }
.billing__options label:hover { color: var(--text); }
.billing__options input:checked + label { background: var(--gilt); color: var(--night); }
.billing__options input:focus-visible + label { outline: 3px solid var(--or-bright); outline-offset: 3px; }
.billing__note { margin-top: 10px; color: var(--text-soft); font-size: .95rem; }
.prices { margin-top: 22px; }
.prices .price { margin-top: 0; }
.prices .price--yearly { margin-top: 10px; }
.price--yearly .price__amount { font-size: 2rem; }
.price__or { color: var(--text-soft); }
.plan--sheet .price__or { color: var(--ink-soft); }
@supports selector(:has(*)) {
  .billing { display: block; }
  .price__or { display: none; }
  .prices .price--yearly { margin-top: 0; }
  .price--yearly .price__amount { font-size: 3.4rem; }
  .billing:has(#billing-monthly:checked) ~ .plans .price--yearly,
  .billing:has(#billing-yearly:checked) ~ .plans .price--monthly { display: none; }
}
.plan--sheet { border: 0; background: var(--grain), linear-gradient(115deg, var(--vellum), var(--vellum-2)); color: var(--ink); box-shadow: 0 30px 60px rgb(0 0 0 / .5), 0 0 0 1px #000, 0 0 0 6px var(--purpure), 0 0 0 7px #000; outline: 1px solid rgb(122 90 30 / .38); outline-offset: -10px; }
.plan--sheet h3, .plan--sheet .price__amount { color: var(--ink); }
.plan--sheet .plan__for, .plan--sheet .price__per, .plan--sheet .plan__then { color: var(--ink-soft); }
.plan--sheet .plan__tag { border-color: #b4502a; color: #7a2e12; }
.plan--sheet :focus-visible { outline-color: var(--purpure-2); }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.addon { display: grid; gap: 18px; margin-top: 26px; padding: 28px 24px; border: 1px solid var(--line-gold); border-radius: 10px; background: linear-gradient(160deg, var(--purpure), var(--night-2)); }
.addon__title { color: var(--or-bright); font-size: 1.9rem; }
.addon p { margin-top: 8px; }
@media (min-width: 940px) { .addon { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding: 32px 36px; } }
.fine { display: grid; gap: 10px; max-width: 46rem; margin-top: 36px; color: var(--text-soft); font-size: .95rem; }

/* Questions */
.faq-group { margin-top: 56px; }
.faq-group:first-child { margin-top: 0; }
.faq-group > h2 { color: var(--or-bright); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); }
.faq { margin-top: 14px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 16px 0; color: var(--text); font: 600 1.3rem/1.25 var(--display); list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px; border-right: 2px solid var(--or); border-bottom: 2px solid var(--or); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--or-bright); }
.faq .answer { display: grid; gap: 12px; max-width: 42rem; padding: 0 0 24px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after, .menu-toggle__bars span { transition: none; } }

/* The demo form */
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field legend { padding: 0; font-weight: 700; }
.field .hint { color: var(--text-soft); font-size: .92rem; font-weight: 400; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #8b78a8; border-radius: 8px; background: #1a1329; color: var(--text); font: inherit; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--or-bright); outline-offset: 1px; }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { margin-bottom: 8px; }
.choices { display: grid; gap: 10px; }
@media (min-width: 600px) { .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { position: relative; }
.choice input { position: absolute; top: 18px; left: 18px; width: 20px; height: 20px; margin: 0; opacity: 0; }
.choice label { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 14px 16px; border: 1px solid #8b78a8; border-radius: 8px; cursor: pointer; line-height: 1.35; }
.choice label::before { content: ""; flex: none; width: 20px; height: 20px; border: 2px solid var(--or); border-radius: 50%; }
.choice input:checked + label { border-color: var(--or); background: rgb(220 174 74 / .12); }
.choice input:checked + label::before { background: radial-gradient(circle, var(--or-bright) 0 4px, transparent 5px); }
.choice input:focus-visible + label { outline: 3px solid var(--or-bright); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 14px; }
.check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--or); }
.honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form .btn { justify-self: start; min-width: 14rem; }
.form-note { color: var(--text-soft); font-size: .95rem; }
.preview-note { padding: 14px 16px; border: 1px solid var(--flame); border-radius: 8px; background: rgb(226 115 59 / .12); color: var(--flame-text); font-weight: 700; }
.aside__title { font-size: 1.9rem; }
.next-steps { display: grid; gap: 18px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: n; }
.next-steps li { position: relative; padding-left: 50px; counter-increment: n; }
.next-steps li::before { content: counter(n); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--purpure); color: var(--or-bright); font: 600 1.1rem/1 var(--display); }

/* Plain reading pages */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 48px; color: var(--or-bright); font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.2rem); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 1.15em; }
.prose li { margin-top: 6px; padding-left: 4px; }
.prose li::marker { color: var(--or); }
.updated { margin-top: 14px; color: var(--text-soft); font-size: .95rem; }

/* The colophon: the arms sign off every page */
.colophon { border-top: 1px solid var(--line-gold); background: radial-gradient(40rem 22rem at 50% 0, rgb(74 49 128 / .45), transparent 75%), #0e0a17; padding-block: 64px 40px; }
.colophon__grid { display: grid; gap: 40px; }
.colophon__mark { display: grid; justify-items: center; gap: 12px; text-align: center; }
.colophon__mark img { width: 132px; filter: drop-shadow(0 14px 24px rgb(0 0 0 / .6)); }
.colophon__name { color: var(--text); font: 600 2.2rem/1 var(--display); letter-spacing: -.02em; }
.colophon__name span { display: block; margin-top: 8px; color: var(--lilac); font: 700 .9rem/1.3 var(--body); letter-spacing: .1em; }
.colophon__line { max-width: 22rem; color: var(--text-soft); font-size: .95rem; }
.colophon__motto { color: var(--or); font: 600 1.05rem/1.2 var(--display); letter-spacing: .02em; }
.colophon h2 { color: var(--or); font: 700 .95rem/1.4 var(--body); letter-spacing: .04em; }
.colophon ul { margin: 8px 0 0; padding: 0; list-style: none; }
.colophon li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.colophon li a:hover { color: var(--or-bright); text-decoration: underline; }
.colophon__legal { display: grid; gap: 8px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: .88rem; }
.colophon__legal a { color: var(--text-soft); }
@media (min-width: 760px) {
  .colophon__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .colophon__mark { justify-items: start; text-align: left; }
}

/* Dog touches: paw prints, the day board, grooming tools, a warm vellum band */
.motto::after, .cta .wrap::before { content: ""; display: block; width: min(100%, 400px); height: 42px; margin: 26px auto 0; background: linear-gradient(90deg, transparent, var(--or) 20%, var(--or) 80%, transparent); opacity: .75; -webkit-mask: url("assets/paw-trail.svg") left center / 84px 42px repeat-x; mask: url("assets/paw-trail.svg") left center / 84px 42px repeat-x; }
.cta .wrap::before { margin: 0 auto 30px; }
@media (prefers-reduced-motion: no-preference) {
  .frontis .motto::after { animation: pawprints 2.4s 1.2s steps(6, end) both; }
}
@keyframes pawprints { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.board { margin: 0; padding: 22px 18px 16px; border-radius: 10px; background: var(--grain), linear-gradient(115deg, var(--vellum), var(--vellum-2)); color: var(--ink); box-shadow: 0 28px 60px rgb(0 0 0 / .5), 0 0 0 1px #000, 0 0 0 6px var(--purpure), 0 0 0 7px #000; }
.board__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.board__title { color: var(--ink); font: 600 1.9rem/1 var(--display); }
.board__date { color: var(--ink-soft); font-size: .95rem; font-weight: 700; }
.board ol { margin: 0; padding: 0; list-style: none; }
.board li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 6px 12px; padding: 13px 0; border-bottom: 1px solid rgb(122 90 30 / .25); }
.board li:last-child { border-bottom: 0; }
.board__time { color: var(--ink); font: 600 1.1rem/1.35 var(--display); font-variant-numeric: tabular-nums; }
.board__dog { line-height: 1.35; }
.board__dog strong { font-size: 1.05rem; }
.board__breed { color: var(--ink-soft); }
.board__service { display: block; color: var(--ink-soft); font-size: .92rem; }
.board .status { grid-column: 2; justify-self: start; }
.status { display: inline-block; padding: 2px 11px; border: 1px solid currentColor; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.status--booked { color: var(--ink-soft); }
.status--in { color: var(--purpure-2); }
.status--table { border-color: var(--purpure); background: var(--purpure); color: #fff; }
.status--ready { border-color: var(--or-deep); background: var(--or); color: var(--ink); }
.board__note { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgb(122 90 30 / .25); color: var(--ink-soft); font-size: .88rem; }
@media (min-width: 600px) {
  .board { padding: 26px 26px 18px; }
  .board li { grid-template-columns: 4rem minmax(0, 1fr) auto; align-items: center; }
  .board .status { grid-column: auto; justify-self: end; }
}

.steps h3 { display: flex; align-items: center; gap: 10px; }
.steps h3 svg { flex: none; width: 26px; height: 26px; color: var(--or); }

.band--vellum { border-block: 0; background: var(--grain), linear-gradient(180deg, var(--vellum), var(--vellum-2)); color: var(--ink); }
.band--vellum h2, .band--vellum h3 { color: var(--ink); }
.band--vellum .intro p { color: var(--ink-soft); }
.band--vellum .steps li::before { box-shadow: 0 0 0 4px var(--vellum), 0 0 0 5px var(--or-deep); }
.band--vellum .steps li::after { background: linear-gradient(var(--or-deep), rgb(122 90 30 / .15)); }
.band--vellum .steps h3 svg { color: var(--purpure-2); }
.band--vellum a { color: var(--ink); text-decoration-color: var(--or-deep); }
.band--vellum :focus-visible { outline-color: var(--purpure-2); }
