/* plekbooking.com home page. Brand colours come from the mascot. */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --plum: #2a1740;
  --purple: #6b2fc4;
  --purple-deep: #4c1f95;
  --teal: #1fb5b8;
  --teal-deep: #0b6e74;
  --yellow: #ffd84a;
  --lavender: #a99be8;

  --bg: #fffcf6;
  --surface: #ffffff;
  --tint: #f2eefd;
  --text: var(--plum);
  --muted: #5a4d6b;
  --border: #e6e0f2;
  --link: var(--purple);
  --focus: var(--teal-deep);
  --primary-bg: var(--purple);
  --primary-text: #ffffff;
  --primary-hover: var(--purple-deep);
  --icon-bg: #e8f7f7;
  --icon: var(--teal-deep);
  --band-bg: var(--purple);
  --band-text: #ffffff;
  --band-card: rgba(255, 255, 255, 0.1);
  --band-icon-bg: var(--yellow);
  --band-icon: var(--plum);
  --blob: var(--yellow);
  --shadow: 0 0.75rem 2rem rgba(42, 23, 64, 0.12);
  --radius: 1.25rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #150f1d;
    --surface: #211930;
    --tint: #1c1528;
    --text: #f4effa;
    --muted: #c3b8d2;
    --border: #3a2f4c;
    --link: #c9b5ff;
    --focus: var(--yellow);
    --primary-bg: var(--yellow);
    --primary-text: var(--plum);
    --primary-hover: #ffe680;
    --icon-bg: #173a3d;
    --icon: #7fe0e2;
    --band-bg: #2e1a52;
    --band-card: rgba(255, 255, 255, 0.07);
    --blob: #5b3fa8;
    --shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.45);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

main:focus {
  outline: none;
}

h1,
h2,
h3 {
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
}

h3 {
  font-size: 1.1875rem;
  font-weight: 800;
}

p {
  margin: 0;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--primary-bg);
  color: var(--primary-text);
  border-radius: 0.5rem;
  font-weight: 800;
}

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

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.wrap-narrow {
  max-width: 48rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s, transform 0.15s, border-color 0.15s;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary-bg);
  color: var(--primary-text);
  box-shadow: 0 0.35rem 0 rgba(42, 23, 64, 0.18);
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-secondary {
  border-color: currentColor;
  color: var(--text);
}

.button-secondary:hover {
  background: var(--tint);
}

.button-quiet {
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  border-color: var(--border);
  color: var(--text);
  font-size: 1rem;
}

.button-quiet:hover {
  border-color: var(--lavender);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(8px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 900;
  font-size: 1.5rem;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
}

.main-nav {
  display: none;
}

@media (min-width: 56rem) {
  .main-nav {
    display: block;
  }

  .main-nav ul {
    display: flex;
    gap: 1.75rem;
  }

  .main-nav a {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
  }

  .main-nav a:hover {
    color: var(--link);
    text-decoration: underline;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language {
  position: relative;
}

.language summary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.language summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
}

.language summary:hover {
  background: var(--tint);
}

.language ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 10rem;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}

.language a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.language a:hover {
  background: var(--tint);
}

[aria-current="page"] {
  font-weight: 800;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 0 3rem;
  background: linear-gradient(180deg, var(--tint), var(--bg));
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--icon-bg);
  color: var(--icon);
  font-weight: 800;
  font-size: 0.9375rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.6vw, 3.75rem);
  max-width: 16ch;
}

.lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.1875rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero-art {
  position: relative;
  justify-self: center;
  width: 13rem;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 18% -35% 4% -35%;
  border-radius: 50%;
  background: var(--blob);
  z-index: 0;
}

.hero-art picture,
.mascot {
  position: relative;
  z-index: 1;
  display: block;
}

.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.85rem;
  background: var(--surface);
  color: var(--text);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
}

.chip-class {
  top: 38%;
  left: -30%;
}

.chip-class span {
  color: var(--icon);
  font-weight: 800;
}

.chip-paid {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  bottom: 12%;
  right: -30%;
  font-weight: 800;
}

.chip-paid .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--icon);
}

@media (min-width: 40rem) {
  .hero-art {
    width: 17rem;
  }
}

@media (min-width: 60rem) {
  .hero {
    padding: 4rem 0 4.5rem;
  }

  .hero-inner {
    grid-template-columns: 1.25fr 1fr;
    gap: 3rem;
  }

  .hero-art {
    width: 22rem;
  }

  .chip-class {
    left: -24%;
  }

  .chip-paid {
    right: -22%;
  }

  .chip {
    font-size: 0.9375rem;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-tinted {
  background: var(--tint);
}

.section-lead {
  margin-top: 0.75rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

/* Fixed columns on wide screens, so no card is left alone on a row */
@media (min-width: 64rem) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards-customers {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-uses {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }

  .cards-band {
    grid-template-columns: repeat(5, 1fr);
  }

  .cards-band .card {
    padding: 1.25rem;
  }
}

.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 0.9rem;
  background: var(--icon-bg);
  color: var(--icon);
}

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

.cards-customers .card-icon {
  background: color-mix(in srgb, var(--lavender) 30%, transparent);
  color: var(--link);
}

.section-band {
  background: var(--band-bg);
  color: var(--band-text);
}

.cards-band .card {
  background: var(--band-card);
  border-color: rgba(255, 255, 255, 0.16);
}

.cards-band .card p {
  color: rgba(255, 255, 255, 0.86);
}

.cards-band .card-icon {
  background: var(--band-icon-bg);
  color: var(--band-icon);
}

/* Cards that link to a page: the whole card is the link target */
.card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card-link h3 a {
  color: var(--text);
  text-decoration: none;
}

.card-link h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

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

.card-link:hover h3 a {
  color: var(--link);
}

.card-link h3 a:focus-visible {
  outline: none;
}

.card-link:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--link);
  font-weight: 800;
}

.card-more .icon {
  width: 1.1rem;
  height: 1.1rem;
}

/* Use-case pages */
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.35rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.prose {
  display: grid;
  gap: 2.5rem;
}

.prose-section p {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero-art-scene {
  width: min(100%, 26rem);
}

.hero-art-scene::before {
  inset: 8%;
}

.scene {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

/* How it works */
.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  counter-reset: step;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--plum);
  font-weight: 900;
  font-size: 1.25rem;
}

/* Testimonial */
.testimonial figure {
  margin: 0 auto;
  max-width: 44rem;
  text-align: center;
}

.testimonial blockquote {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
}

.testimonial figcaption {
  margin-top: 1rem;
  color: var(--muted);
}

/* FAQ */
.faq {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon);
  font-size: 1.25rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
}

/* Contact */
.contact-inner {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.contact-inner p {
  margin-top: 0.6rem;
  color: var(--muted);
  max-width: 36rem;
}

.contact-face {
  width: 5rem;
  height: 5rem;
}

@media (min-width: 48rem) {
  .contact-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.75rem;
  }

  .contact-face {
    width: 6rem;
    height: 6rem;
  }
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

.brand-name {
  color: var(--text);
  font-weight: 900;
  font-size: 1.25rem;
}

.site-footer ul {
  display: grid;
  gap: 0.35rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--link);
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .button:hover {
    transform: none;
  }
}

.card h3,
.card p {
  overflow-wrap: break-word;
}

.cards-band .card p {
  hyphens: auto;
}

/* 404 */
.not-found-languages {
  display: grid;
  gap: 0.5rem;
  margin-top: 2.5rem;
  color: var(--muted);
}
