/* =========================================================================
   Ladela — visual system
   White canvas with the Bookly palette: an orange accent for headlines and
   a blue primary for actions. Plus Jakarta Sans throughout, rounded geometry,
   flat elevation, a sky-blue illustration zone in the hero.
   ========================================================================= */

:root {
  /* Palette — matched to booking-wp-plugin.com */
  --orange: #ff6626;
  --orange-tint: rgba(255, 102, 38, 0.08);
  --blue: #12a2ec;
  --blue-hover: #0f8fd4;
  --blue-tint: rgba(18, 162, 236, 0.08);
  --sky: #eff6ff;
  --sky-2: #dbeafe;
  --black: #000000;
  --ink: #212326;
  --white: #ffffff;
  --mist: #f9fafb;
  --line: #e6e8eb;
  --cloud: #d0d3d8;
  --text: #212326;
  --muted: #6b7280;

  /* Type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r-card: 16px;
  --r-lg: 24px;

  /* Elevation */
  --shadow-sm: 0 2px 4px rgba(33, 35, 38, 0.04);
  --shadow-md: 0 8px 24px rgba(33, 35, 38, 0.08);

  /* Rhythm */
  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 2rem);
  --section-y: clamp(4rem, 8vw, 5.5rem);
}

/* -------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 30;
}
.skip-link:focus {
  left: 0;
}

/* -------------------------------------------------------------------------
   Primitives
   ------------------------------------------------------------------------- */
.eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--mint {
  color: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.72rem 1.4rem;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}
.btn--dark {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(18, 162, 236, 0.25);
}
.btn--dark:hover {
  background: var(--blue-hover);
}
.btn--ghost {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}
.btn--ghost:hover {
  background: var(--blue-tint);
}
.btn--block {
  width: 100%;
}

/* -------------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}
.nav[data-scrolled] {
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo__img {
  display: block;
  height: 42px;
  width: auto;
  flex: none;
}
.nav__links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #3a3e44;
  transition: color 0.15s ease;
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__cta {
  margin-left: 0.25rem;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) var(--section-y);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 1.1rem 0 0;
  max-width: 17ch;
  color: var(--orange);
}
.hero__lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}
.hero__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero illustration — sky blobs, an app-card mock, floating orange tags,
   mirroring the booking-wp-plugin.com hero. */
.hero__panel {
  position: relative;
  aspect-ratio: 4 / 3.4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blob {
  position: absolute;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  filter: blur(2px);
  z-index: 0;
}
.blob--a {
  width: 78%;
  height: 82%;
  right: -6%;
  top: 4%;
  background: var(--sky);
}
.blob--b {
  width: 52%;
  height: 55%;
  left: -4%;
  bottom: 2%;
  background: var(--sky-2);
  opacity: 0.7;
}

/* Engineering scene — hand-drawn SVG illustration */
.hero__scene {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  height: auto;
}

/* Floating orange tags */
.tag {
  position: absolute;
  z-index: 3;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  padding: 7px 12px;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(255, 102, 38, 0.32);
  white-space: nowrap;
}
.tag--1 {
  top: 0;
  right: 2%;
  transform: rotate(5deg);
}
.tag--2 {
  top: 56%;
  left: -4%;
  transform: rotate(-6deg);
}
.tag--3 {
  bottom: -2%;
  left: 14%;
  transform: rotate(3deg);
}

/* -------------------------------------------------------------------------
   Proof strip
   ------------------------------------------------------------------------- */
.proof {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.proof__box {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
}
.proof__list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.proof__k {
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.proof__v {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   Timeline — the story section
   ------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 46rem;
}
.tl {
  display: grid;
  grid-template-columns: 84px 22px 1fr;
  column-gap: 1.1rem;
}
.tl__year {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--orange);
  text-align: right;
  padding-top: 0.1rem;
}
.tl__axis {
  position: relative;
}
.tl__axis::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--orange-tint);
}
.tl__axis::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.35rem;
  bottom: 0.15rem;
  width: 2px;
  border-radius: 1px;
  background: var(--sky-2);
  transform: translateX(-50%);
}
.tl:last-child .tl__axis::before {
  display: none;
}
.tl__body {
  padding-bottom: 2.1rem;
}
.tl:last-child .tl__body {
  padding-bottom: 0;
}
.tl__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.tl__text {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9688rem;
  line-height: 1.6;
  max-width: 54ch;
}

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}
.section--muted {
  max-width: none;
  background: var(--mist);
  padding-left: 0;
  padding-right: 0;
}
.section--muted > .section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}
.section__title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  margin-top: 0.5rem;
}
.section__intro {
  margin-top: 0.85rem;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 44ch;
}
.quiet-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--cloud);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.quiet-link:hover {
  color: var(--blue);
  text-decoration-color: var(--blue);
}

/* -------------------------------------------------------------------------
   Cards grid
   ------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1rem;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: var(--r-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  border-color: #c4c4c4;
  box-shadow: var(--shadow-md);
}
.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.card__body {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9688rem;
  line-height: 1.55;
}
.card--work .card__title {
  margin-top: 0.5rem;
}
.grid--cases {
  margin-top: 1rem;
}
.case__meta {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.case__star {
  color: var(--orange);
  white-space: nowrap;
}
.work__more {
  margin-top: 1.75rem;
  font-size: 1rem;
  color: var(--muted);
}
.work__more a {
  color: var(--blue);
  font-weight: 600;
  transition: color 0.15s ease;
}
.work__more a:hover {
  color: var(--blue-hover);
}

/* -------------------------------------------------------------------------
   Feature (Bookly)
   ------------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--sky);
  border: 1px solid var(--sky-2);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.feature__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-top: 0.5rem;
}
.feature__body {
  margin-top: 0.9rem;
  color: #384049;
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 46ch;
}
/* Real product screenshot in an orange rounded frame */
.feature__shot {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--orange);
  padding: 20px;
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.feature__shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* -------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.about__copy {
  display: grid;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 54ch;
}

/* -------------------------------------------------------------------------
   Steps
   ------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: var(--r-card);
  padding: 1.5rem;
}
.step__n {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--orange);
}
.step__title {
  margin-top: 0.8rem;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.step__body {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9688rem;
  line-height: 1.55;
}

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__lead {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 40ch;
}
.contact__alt {
  margin-top: 1.1rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 42ch;
}
.contact__alt a {
  color: var(--blue);
  font-weight: 600;
  transition: color 0.15s ease;
}
.contact__alt a:hover {
  color: var(--blue-hover);
}
.contact__form {
  display: grid;
  gap: 0.85rem;
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}
.input {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: var(--r-sm);
  padding: 0.55rem 0.7rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder {
  color: #9aa0a6;
}
.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(18, 162, 236, 0.15);
}
.input--area {
  resize: vertical;
  min-height: 96px;
}
.contact__hint {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.contact__hint--error {
  color: #c2410c;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--mist);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.footer__links {
  display: flex;
  gap: 1.25rem;
}
.footer__links a {
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.footer__links a:hover {
  color: var(--ink);
}
.footer__meta {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   Motion — restrained, in keeping with the austere system
   ------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__panel {
    aspect-ratio: auto;
    min-height: 0;
    margin-top: 1.5rem;
  }
  .blob--a {
    right: 0;
    width: 70%;
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature,
  .about__grid,
  .contact__inner {
    grid-template-columns: 1fr;
  }
  .feature__mock {
    order: -1;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .tl {
    grid-template-columns: 56px 20px 1fr;
    column-gap: 0.85rem;
  }
}

@media (max-width: 560px) {
  .nav__links {
    display: none;
  }
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .proof__list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
