/* Kixago. White space, charcoal ink and one deep blue; teal only for small
   confirmations. One family, Archivo: tight and bold for headings, plain for
   reading. The hero is a blueprint: guide lines draw themselves, the pieces of
   what Kixago builds rise in, and the service in focus comes forward. */

@font-face {
  font-family: "Archivo";
  src: url("/static/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --ink: #14171f;
  --ink-2: #4b5363;
  --line: #e3e6ec;
  --accent: #0f5bd8;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0fd;
  --teal: #0e9f8c;
  --danger: #c62b3b;
  --wire: #c9d7f2;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(20, 23, 31, 0.05), 0 18px 40px -22px rgba(20, 23, 31, 0.35);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111a2c;
  --ink: #e8ecf3;
  --ink-2: #a5afc2;
  --line: #223049;
  --accent: #5b8cff;
  --accent-ink: #0b1220;
  --accent-soft: #15254a;
  --teal: #2cc4ae;
  --danger: #ff6b7a;
  --wire: #34528c;
  --card: #141e33;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -20px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-stretch: 94%;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.9rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
  max-width: 62ch;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 50;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow {
  width: min(680px, 100% - 2.5rem);
}

.narrow-wide {
  width: min(820px, 100% - 2.5rem);
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 1.8rem;
  height: 1.8rem;
}

.mark-box {
  fill: var(--accent);
}

.mark-k {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark-dot {
  fill: var(--teal);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  color: var(--ink-2);
  font-weight: 550;
  text-decoration: none;
}

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

.nav .nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}

.nav .nav-cta:hover {
  color: var(--bg);
  opacity: 0.88;
}

.theme {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

.theme svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.theme-moon {
  fill: currentColor;
}

.theme-sun,
:root[data-theme="dark"] .theme-moon {
  display: none;
}

:root[data-theme="dark"] .theme-sun {
  display: block;
}

@media (max-width: 760px) {
  .nav {
    gap: 0.9rem;
  }
  .nav a:not(.nav-cta):not(.nav-keep) {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.75rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--accent) 90%, transparent);
}

.btn:active {
  transform: translateY(1px);
}

.link {
  font-weight: 600;
}

/* Hero: the blueprint. */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 4.25rem);
  padding: 4rem 0;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box;
}

/* A soft clearing behind the words, so lines and pieces never fight them. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 46% 50% at 50% 52%, var(--bg) 55%, transparent 100%);
  pointer-events: none;
}

.lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lines i {
  position: absolute;
  background: var(--wire);
  opacity: 0.55;
  animation: draw 1.1s cubic-bezier(0.6, 0, 0.2, 1) backwards;
}

.lines .h {
  left: 0;
  right: 0;
  height: 1px;
  transform-origin: left;
}

.lines .v {
  top: 0;
  bottom: 0;
  width: 1px;
  transform-origin: top;
  animation-name: draw-down;
}

.lines .h1 { top: 14%; animation-delay: 0.05s; }
.lines .h2 { top: 46%; animation-delay: 0.2s; transform-origin: right; }
.lines .h3 { top: 84%; animation-delay: 0.35s; }
.lines .v1 { left: 5%; animation-delay: 0.1s; }
.lines .v2 { left: 23%; animation-delay: 0.25s; }
.lines .v3 { right: 23%; animation-delay: 0.3s; transform-origin: bottom; }
.lines .v4 { right: 5%; animation-delay: 0.15s; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(940px, 100% - 2.5rem);
}

.hero h1 {
  max-width: 17ch;
  animation: rise 0.8s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.lede {
  margin: 0.4rem 0 0;
  color: var(--ink-2);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  animation: rise 0.8s 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.8rem;
  margin: 2rem 0 2.6rem;
  animation: rise 0.8s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

/* What Kixago builds, one at a time. */

.svc {
  display: grid;
  justify-items: center;
  gap: 1rem;
  animation: rise 0.8s 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.chip {
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.chip.on {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.say {
  min-height: 3.4em;
  margin: 0;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.say a {
  margin-left: 0.4ch;
  font-weight: 600;
  white-space: nowrap;
}

/* The pieces around the words. Each is an outline until its service is
   chosen, then the finished piece snaps in over it. */

.frags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.frag {
  position: absolute;
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.f-web { left: 6%; top: 9%; width: 250px; height: 184px; animation-delay: 0.5s; }
.f-dash { left: 7%; bottom: 9%; width: 236px; height: 150px; animation-delay: 0.7s; }
.f-book { right: 6%; top: 8%; width: 214px; height: 180px; animation-delay: 0.6s; }
.f-app { right: 9%; top: 40%; width: 104px; height: 196px; animation-delay: 0.8s; }
.f-auto { right: 5%; bottom: 8%; width: 236px; height: 92px; animation-delay: 0.9s; }

.built {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  opacity: 0.42;
  transform: scale(0.95);
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.3, 1.4, 0.5, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

/* The service in focus comes forward. */
.frag.on .built {
  opacity: 1;
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow), 0 0 0 5px var(--accent-soft);
}

/* Before the cycle starts, the first piece comes forward after the lines. */
.hero:not([data-ready]) .frag.on .built {
  animation: forward 0.55s 1.5s cubic-bezier(0.3, 1.4, 0.5, 1) backwards;
}

/* Website */

.b-bar {
  display: flex;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

.b-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.b-banner {
  height: 62px;
  margin: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(120deg, var(--accent), #6f9cff 60%, var(--teal));
}

.b-text {
  height: 8px;
  margin: 0 12px 7px;
  border-radius: 4px;
  background: var(--line);
}

.b-text.short {
  width: 45%;
}

.b-btn {
  display: inline-block;
  margin: 4px 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 650;
}

/* Booking */

.b-cal .b-btn.wide {
  display: block;
  margin: 10px 0 0;
  text-align: center;
}

.b-cal {
  padding: 12px;
  font-size: 11px;
  text-align: left;
}

.b-cal b {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.days span {
  height: 18px;
  border-radius: 5px;
  background: var(--surface);
}

.days .pick {
  background: var(--accent);
}

.b-slot {
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 650;
}

/* Dashboard */

.b-dash {
  padding: 12px;
  text-align: left;
}

.b-dash small {
  display: block;
  color: var(--ink-2);
  font-size: 10.5px;
}

.b-dash strong {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.b-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 64px;
  margin-top: 8px;
}

.b-chart i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
}

.b-chart i:nth-child(1) { height: 35%; opacity: 0.55; }
.b-chart i:nth-child(2) { height: 55%; opacity: 0.65; }
.b-chart i:nth-child(3) { height: 45%; opacity: 0.7; }
.b-chart i:nth-child(4) { height: 72%; opacity: 0.8; }
.b-chart i:nth-child(5) { height: 64%; opacity: 0.85; }
.b-chart i:nth-child(6) { height: 92%; }

/* App */
.f-app .built {
  border-radius: 22px;
}


.f-app .built {
  border: 5px solid var(--ink);
}

.b-app {
  display: grid;
  gap: 7px;
  padding: 16px 9px 10px;
}

.b-app .tile {
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--teal), var(--accent));
}

.b-app .row {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}

.b-app .go {
  margin-top: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
}

/* Automation */

.b-auto {
  display: flex;
  gap: 10px;
  align-items: center;
  height: 100%;
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
}

.b-auto .ok {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 16%, transparent);
}

.b-auto .ok::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -3px;
  border: solid var(--teal);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(42deg);
}

.b-auto b {
  display: block;
  font-size: 12.5px;
}

.b-auto span {
  color: var(--ink-2);
}

/* Phones and tablets: one piece at a time, above the headline. */
@media (max-width: 1080px) {
  .hero {
    padding-top: 2.5rem;
    align-content: start;
  }
  .hero::after {
    background: none;
  }
  .frags {
    position: relative;
    z-index: 2;
    inset: auto;
    width: 250px;
    height: 196px;
    margin: 0 auto 1.5rem;
  }
  .frag {
    inset: auto;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    translate: -50% -50%;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .frag.on {
    opacity: 1;
  }
  .lines .v2,
  .lines .v3 {
    display: none;
  }
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }
}

@keyframes draw-down {
  from {
    transform: scaleY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes forward {
  from {
    opacity: 0.42;
    transform: scale(0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Sections */

section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.tint {
  background: var(--surface);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.section-head p {
  color: var(--ink-2);
  font-size: 1.15rem;
}

/* Services */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  padding: 1.8rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  scroll-margin-top: 6rem;
}

.services li:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services p {
  margin: 0;
  color: var(--ink-2);
}

@media (max-width: 960px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .services {
    grid-template-columns: 1fr;
  }
}

/* Price */

.price-grid,
.areas-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.price p {
  color: var(--ink-2);
  font-size: 1.2rem;
}

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

.points li {
  position: relative;
  padding: 1rem 0 1rem 2.3rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: 1.1rem;
}

.points li:last-child {
  border-bottom: 1px solid var(--line);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 1.2rem;
  width: 0.45rem;
  height: 0.85rem;
  border: solid var(--teal);
  border-width: 0 3px 3px 0;
  transform: rotate(42deg);
}

@media (max-width: 820px) {
  .price-grid,
  .areas-grid {
    grid-template-columns: 1fr;
  }
}

/* How it works: three steps in order. */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 1.8rem 1.7rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--ink-2);
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Our work: one project per row, the picture on alternating sides. */

.cases {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.case:nth-child(even) .shot {
  order: 2;
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
}

.shot-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.shot-bar span {
  margin-left: 10px;
}

.shot img,
.shot-empty {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.shot-empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  color: var(--ink-2);
  font-weight: 600;
}

.case-copy h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.case-copy p {
  color: var(--ink-2);
  font-size: 1.1rem;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.case-tags li {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 820px) {
  .case {
    grid-template-columns: 1fr;
  }
  .case:nth-child(even) .shot {
    order: 0;
  }
}

/* Areas */

.area-links {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.05rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font-weight: 650;
  font-size: 1.1rem;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.area-links a::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border: solid var(--accent);
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

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

.area-links.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.2rem;
}

@media (max-width: 560px) {
  .area-links.two {
    grid-template-columns: 1fr;
  }
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-grid > div p {
  color: var(--ink-2);
  font-size: 1.1rem;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 600;
}

.opt {
  color: var(--ink-2);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.field.bad input,
.field.bad textarea {
  border-color: var(--danger);
}

.why {
  margin: 0;
  color: var(--danger);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-alert {
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  font-weight: 600;
}

.form .btn {
  justify-self: start;
  min-width: 9rem;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Plain pages and area pages */

.page.short {
  min-height: 55vh;
}

.legal h2 {
  margin-top: 2.2rem;
  font-size: 1.6rem;
}

.legal li {
  margin-bottom: 0.4rem;
  max-width: 62ch;
}

.updated {
  color: var(--ink-2);
}

.crumbs {
  margin-bottom: 1.4rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.crumbs a {
  color: var(--ink-2);
}

.area h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.area .page-lede {
  color: var(--ink-2);
  font-size: 1.25rem;
}

.area h2 {
  margin-top: 2.8rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.plain {
  padding-left: 1.2rem;
}

.plain li {
  margin-bottom: 0.6rem;
  max-width: 62ch;
}

.cta-line {
  margin-top: 2.6rem;
}

.also {
  color: var(--ink-2);
}

/* Town pages: a short hero, then cards, a strip, the local words and a FAQ. */

.area-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(78svh, 760px);
  padding: 4rem 0;
  overflow: hidden;
  text-align: center;
}

.area-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 50% 55% at 50% 50%, var(--bg) 55%, transparent 100%);
  pointer-events: none;
}

.area-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(900px, 100% - 2.5rem);
}

.area-hero h1 {
  max-width: 16ch;
  animation: rise 0.8s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.area-hero .actions {
  margin-bottom: 0;
}

.services.four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.strip {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--ink);
  color: var(--bg);
}

.strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.strip h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.strip p {
  margin: 0;
  color: color-mix(in srgb, var(--bg) 75%, var(--ink));
  font-size: 1.1rem;
}

.local p {
  color: var(--ink-2);
  font-size: 1.15rem;
}

.faq {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1.2rem 2.5rem 1.2rem 0;
  font-weight: 650;
  font-size: 1.15rem;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 1.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 1.7rem;
}

.faq details p {
  margin: 0 0 1.3rem;
  color: var(--ink-2);
}

/* Footer */

.foot {
  padding: 2.2rem 0 2.6rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.foot p {
  margin: 0;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  color: var(--ink-2);
}

/* Account pages (account.kixago.com) */

.acct > h1 {
  margin-bottom: 0.4rem;
}

.acct .form {
  margin-top: 1.4rem;
}

.acct-who,
.acct-aside {
  color: var(--ink-2);
}

.acct-aside {
  margin-top: 1.2rem;
  font-size: 0.98rem;
}

.acct-note {
  margin: 1.2rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-weight: 600;
}

.acct-card {
  margin-top: 1.4rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.acct-card h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.acct-card > :last-child {
  margin-bottom: 0;
}

.acct-out button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.acct-out button:hover {
  text-decoration: underline;
}

.acct-eyebrow {
  margin: 0 0 0.3rem;
  color: var(--accent);
  font-weight: 700;
}

.start-sub {
  margin: 0.2rem 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 650;
}

.start-lead {
  color: var(--ink-2);
}

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

.start-badge {
  display: inline-block;
  margin: 0.6rem 0 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--teal) 16%, transparent);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 650;
}

.start-fine {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.85rem;
}

.field-label {
  font-weight: 600;
}

/* The card form is drawn by the payment processor inside this box, styled
   from these same colors by pay.js. */
.pay-box {
  min-height: 3.2rem;
}

.pay-wait {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--ink-2);
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.pay-aside {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.8rem;
  line-height: 1.5;
}

.pay-aside a {
  color: inherit;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
}

.check input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-quiet:hover {
  background: var(--surface);
  color: var(--ink);
}

.bill-plan {
  font-size: 1.1rem;
  font-weight: 700;
}

.bill-price {
  margin-left: 0.4rem;
  color: var(--ink-2);
  font-weight: 400;
}

.bill-table {
  width: 100%;
  border-collapse: collapse;
}

.bill-table th,
.bill-table td {
  padding: 0.55rem 0.6rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.bill-table th {
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
}

.bill-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bill-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 520px) {
  .bill-table th:nth-child(2),
  .bill-table td:nth-child(2) {
    display: none;
  }
}
