/* Services page. Colours match home.css and app.css (see PROJECT.md, "Design Direction"). Change all three together. */
:root {
  --accent: #3DDC6B;
  --link: #0B6B2E;
  --ink: #14201A;
  --muted: #46544B;
  --ground: #EEF2EC;
  --card: #FFFFFF;
  --tint: #EAFBF0;
  --note: #E6ECE7;
  --on-ink: #FFFFFF;
  --on-ink-soft: #D5DFD8;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

a { color: var(--link); }

a:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

.top {
  background: var(--ink);
  color: var(--on-ink);
  padding: 20px 20px 32px;
}

.top__inner,
.page,
.foot__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
}

.top a:focus-visible { outline-color: var(--accent); }

.cable {
  display: block;
  width: 100%;
  max-width: 20rem;
  height: auto;
  margin-top: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .cable path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.4s ease-out forwards;
  }
  .cable circle {
    opacity: 0;
    animation: show 0.3s ease-out 1.3s forwards;
  }
  .reveal {
    opacity: 0;
    animation: show 0.6s ease-out 0.8s forwards;
  }
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }

h1 {
  margin: 12px 0 8px;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0;
  max-width: 34rem;
  color: var(--on-ink-soft);
  font-size: 1.0625rem;
}

.finder { margin-top: 24px; }

.finder h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 600;
}

.finder ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin-top: 8px;
  padding: 0 16px;
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
}

.pick::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: 12px;
  border: solid var(--link);
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.pick:hover,
.pick:active { background: var(--tint); }

.sheet:target { box-shadow: 0 0 0 3px var(--accent); }

.page { padding: 16px 16px 8px; }

.sheet {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 12px;
}

.sheet h2 {
  margin: 0 0 8px;
  font-size: 1.375rem;
  line-height: 1.2;
  font-weight: 600;
}

.sheet p { margin: 0 0 16px; }

.sheet h3 {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.gets {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.gets li {
  position: relative;
  padding: 0 0 8px 28px;
}

.gets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.32em;
  width: 7px;
  height: 12px;
  border: solid var(--link);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.sheet .note {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--tint);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9375rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover { background: #34C961; }

.btn:focus-visible { outline-color: var(--ink); }

.more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 4px;
  font-weight: 500;
  text-align: center;
}

.foot {
  padding: 8px 16px 32px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

@media (min-width: 40rem) {
  .top { padding: 28px 24px 40px; }
  h1 { font-size: 2.5rem; }
  .page { padding: 24px 24px 8px; }
  .sheet { padding: 28px; }
  .btn { display: inline-flex; min-width: 12rem; }
  .actions { display: flex; align-items: center; gap: 20px; }
  .more { margin-top: 0; }
}
