/* Maths Tutoring Rocks — Bebas Neue headings, Roboto body, red accent */
:root {
  color-scheme: light;
  --paper: #e6e6e6;
  --paper-2: #dadada;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #383838;
  --muted: #5a5a5a;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.2);
  --accent: #d00400;
  --accent-hover: #b80300;
  --accent-faint: rgba(208, 4, 0, 0.12);
  --rust: #c2410c;
  --rust-faint: rgba(194, 65, 12, 0.12);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.12);
  --font-sans: "Roboto", system-ui, -apple-system, sans-serif;
  --font-heading: "Bebas Neue", sans-serif;
  --step-0: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
  --step-1: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-2: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  --step-3: clamp(1.45rem, 1.15rem + 0.9vw, 1.85rem);
  --step-4: clamp(1.85rem, 1.4rem + 1.5vw, 2.65rem);
  --step-5: clamp(2.35rem, 1.65rem + 2.2vw, 3.35rem);
  --space: clamp(1.25rem, 1rem + 1.25vw, 2.5rem);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.02em;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 200;
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
}

/* Header */
.shell-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--space);
  background: color-mix(in srgb, var(--surface) 94%, var(--ink) 6%);
  backdrop-filter: blur(12px) saturate(1.15);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

@supports not (backdrop-filter: blur(12px)) {
  .shell-header {
    background: var(--surface);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 1;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.brand__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.2;
  min-width: 0;
}

.brand-text > span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 1px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--line);
}

.site-nav a.is-active {
  color: var(--accent);
  background: var(--accent-faint);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: min(28rem, calc(100dvh - 5rem));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem var(--space) 1.25rem;
    gap: 0.25rem;
  }

  .site-nav a {
    border-radius: var(--radius-sm);
  }
}

/* Hero — typography-first (no stock photo; portrait lives in About) */
.hero {
  position: relative;
  padding: clamp(2.75rem, 7vw, 4.5rem) var(--space) clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, #fafafa 0%, var(--paper) 55%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line-strong);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(100%, 520px);
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, transparent) 100%);
  border-radius: 0 0 4px 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -8%;
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-faint) 0%, transparent 68%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

@media (min-width: 640px) {
  .hero__inner {
    text-align: left;
  }
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-faint);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--ink);
}

.hero__lede {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--step-2);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .hero__lede {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero__actions {
    justify-content: flex-start;
  }
}

/* Trust strip (factual at-a-glance) */
.trust-strip {
  padding: 1rem var(--space) 1.35rem;
  background: color-mix(in srgb, var(--paper-2) 88%, var(--ink) 12%);
  border-bottom: 1px solid var(--line-strong);
}

.trust-strip__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  justify-content: center;
}

@media (min-width: 900px) {
  .trust-strip ul {
    justify-content: space-between;
  }
}

.trust-strip li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.trust-strip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn--primary:hover {
  color: #fff;
  filter: brightness(1.06);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  color: var(--ink);
  border-color: var(--muted);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  color: var(--ink);
  background: var(--line);
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5.5rem) var(--space);
}

.section--tight-top {
  padding-top: clamp(2rem, 5vw, 3.25rem);
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 0.65rem;
  font-size: var(--step-4);
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.section__intro {
  margin: 0;
  font-size: var(--step-2);
  color: var(--ink-soft);
  line-height: 1.55;
}

.section--privacy {
  padding-block: 2rem 2.25rem;
  border-top: 1px solid var(--line);
}

.section--privacy .section__inner {
  max-width: 42rem;
}

.section--privacy h2 {
  font-size: var(--step-3);
  letter-spacing: 0.04em;
}

/* Offerings bento */
.bento {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento__card {
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.bento__card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.bento__card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.bento__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: var(--accent-faint);
  border-radius: 12px;
}

/* About split */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.split.split--about {
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr minmax(260px, 340px);
    gap: 3.5rem;
  }

  .split.split--about {
    grid-template-columns: minmax(240px, 320px) 1fr;
    align-items: center;
  }
}

.prose p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--ink);
}

.pull-quote {
  margin: 1.65rem 0 0;
  padding: 1.1rem 0 0 1.1rem;
  border-left: 4px solid var(--accent);
}

.pull-quote p {
  margin: 0;
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}

.pull-quote__meta {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
}

.pull-quote__meta a {
  font-weight: 600;
  margin-left: 0.35rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
}

.pill {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--rust-faint);
  border-radius: 999px;
}

.portrait-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.portrait-wrap img {
  width: 100%;
  vertical-align: middle;
}

.portrait-wrap figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

/* Testimonials */
.section--reviews {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border-block: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.section--reviews h2 {
  margin-bottom: 0.35rem;
}

.section--reviews .section__intro {
  margin-bottom: 0.65rem;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
}

.testimonials__grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
  }
}

.reviews-trust-summary {
  margin: 0 0 0.85rem;
  max-width: 42rem;
  padding: 0.55rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.reviews-trust-summary p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.reviews-trust-summary a {
  font-weight: 600;
}

.reviews-trustpilot {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.reviews-trustpilot a {
  font-weight: 600;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  padding: 0.85rem 0.95rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-3px);
  }
}

.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.card__blockquote {
  margin: 0;
  flex: 1;
  padding: 0;
  border: none;
  border-inline-start: 3px solid color-mix(in srgb, var(--accent) 55%, var(--line-strong));
  padding-inline-start: 0.75rem;
}

.card__blockquote p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.card__footer {
  margin: 0;
  padding-top: 0;
  border-top: 1px solid var(--line);
}

.card__byline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.55rem;
}

.card__initial {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-sans);
  line-height: 1;
  border: 2px solid var(--line);
}

.card__initial--1 {
  color: var(--accent);
  background: var(--accent-faint);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}

.card__initial--2 {
  color: #9a3412;
  background: var(--rust-faint);
  border-color: color-mix(in srgb, var(--rust) 25%, var(--line));
}

.card__initial--3 {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.1);
  border-color: rgba(29, 78, 216, 0.22);
}

.card__initial--4 {
  color: #047857;
  background: rgba(4, 120, 87, 0.1);
  border-color: rgba(4, 120, 87, 0.22);
}

.card__initial--5 {
  color: #6d28d9;
  background: rgba(109, 40, 217, 0.1);
  border-color: rgba(109, 40, 217, 0.2);
}

.card__name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  font-style: normal;
  color: var(--ink);
}

.card__role {
  display: block;
  margin-top: 0.06rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* Book */
.book-panel {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: linear-gradient(145deg, var(--accent-faint), var(--rust-faint));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.book-panel > p {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.book-panel a.banner {
  display: block;
  max-width: 52rem;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
  }
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-aside p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.contact-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Native contact form (no iframe) */
.contact-form-panel {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.mtr-form__status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.mtr-form__status--success {
  background: var(--accent-faint);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.mtr-form__status--error {
  background: var(--rust-faint);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.mtr-form__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .mtr-form__grid--split {
    grid-template-columns: 1fr 1fr;
  }
}

.mtr-form__field--full {
  grid-column: 1 / -1;
}

.mtr-form__field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.mtr-form__req {
  color: var(--rust);
  font-weight: 700;
}

.mtr-form__opt {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
}

.mtr-form__field input,
.mtr-form__field select,
.mtr-form__field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}

.mtr-form__field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.mtr-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mtr-form__consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 0.35rem;
}

.mtr-form__consent input {
  width: auto;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.mtr-form__consent label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
}

.mtr-form__actions {
  margin-top: 1.35rem;
}

button.mtr-form__submit {
  border: none;
  cursor: pointer;
}

/* Footer */
.footer-nav {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}

.footer-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
}

.site-footer {
  padding: 2.5rem var(--space) max(4.5rem, calc(env(safe-area-inset-bottom, 0px) + 3.5rem));
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.site-footer__credit {
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.site-footer__credit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
}

.site-footer__credit-link:hover {
  color: var(--ink-soft);
}

.site-footer__credit-link span {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 2px;
}

.site-footer__credit-logo {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
  opacity: 0.9;
}

.site-footer__credit-link:hover .site-footer__credit-logo {
  opacity: 1;
}

.site-footer code {
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  background: var(--line);
  border-radius: 4px;
}

/* WhatsApp */
.wa-float {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  background: #128c7e;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(18, 140, 126, 0.4);
}

.wa-float:hover {
  color: #fff;
  filter: brightness(1.07);
}

.wa-float svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 480px) {
  .wa-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .wa-float {
    padding: 0.85rem;
    border-radius: 50%;
  }
}
