:root {
  --bg: #f2f5f3;
  --surface: #ffffff;
  --ink: #15201b;
  --muted: #4f5d56;
  --line: #d6ded9;
  --accent: #0b6e4f;
  --accent-ink: #ffffff;
  --accent-deep: #08573e;
  --accent-soft: #dff0e8;
  --bubble-me: #d4f5d0;
  --focus: #1a56db;
  --radius-lg: 22px;
  --radius-sm: 12px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

/* Hero */
.hero {
  padding: 56px 0 48px;
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.hello {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.5rem, 11vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 12ch;
}

.lede {
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 36ch;
}

/* Chat motif: the page ends in a WhatsApp chat, so it opens with one */
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 400px;
}

.bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 1rem;
  line-height: 1.4;
}

.bubble.me {
  align-self: flex-end;
  background: var(--bubble-me);
  border-bottom-right-radius: 6px;
}

.bubble.them {
  align-self: flex-start;
  background: var(--bg);
  border-bottom-left-radius: 6px;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 28px;
}

.section h3 {
  font-size: 1.3rem;
  font-weight: 750;
}

/* Services */
.services {
  display: grid;
  gap: 16px;
}

.service {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.service .price {
  display: inline-block;
  margin: 10px 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
}

.service p:last-child {
  color: var(--muted);
}

/* Work */
.work + .work {
  margin-top: 48px;
}

.shot {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}

.work-text {
  margin-top: 16px;
  max-width: 60ch;
}

.work-text p {
  margin-top: 6px;
  color: var(--muted);
}

.thumbs {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 1.125rem;
}

.steps h3 {
  padding-top: 8px;
}

.steps p {
  margin-top: 4px;
  color: var(--muted);
}

/* FAQ */
.faq {
  max-width: 720px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 700;
  font-size: 1.0625rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding: 0 0 20px;
  color: var(--muted);
  max-width: 60ch;
}

/* Picker */
.borak {
  background: var(--accent);
  color: var(--accent-ink);
}

.borak h2 {
  margin-bottom: 10px;
}

.borak-lede {
  margin-bottom: 28px;
  max-width: 44ch;
  color: #e3f3ec;
}

.picker {
  display: grid;
  gap: 12px;
}

.pick {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 22px;
  min-height: 72px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.pick:hover {
  border-color: var(--bubble-me);
}

.pick:active {
  transform: scale(0.98);
}

.borak .pick:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.pick-title {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent-deep);
}

.pick-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

.noscript {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-deep);
}

.noscript a,
.borak a:not(.pick) {
  color: #ffffff;
}

/* Footer */
.footer {
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Maggma thumbnails: wide screenshots, scroll sideways on phones so text stays legible */
@media (max-width: 759px) {
  .thumbs .shot {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .thumbs .shot img {
    max-width: none;
    width: 680px;
  }
}

/* Sticky mobile bar */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(242, 245, 243, 0.94);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.sticky-cta .btn {
  width: 100%;
}

.sticky-cta {
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.sticky-cta.is-hidden {
  opacity: 0;
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .pick,
  .sticky-cta {
    transition: none;
  }
}

/* Larger screens */
@media (min-width: 760px) {
  body {
    padding-bottom: 0;
  }

  .sticky-cta {
    display: none;
  }

  .hero {
    padding: 96px 0 88px;
  }

  .hero-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 56px;
  }

  .chat {
    justify-self: end;
    width: 100%;
  }

  .section {
    padding: 88px 0;
  }

  .services {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .service {
    padding: 32px;
  }

  .work {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px 40px;
    align-items: center;
  }

  .work + .work {
    margin-top: 72px;
  }

  .work-text {
    margin-top: 0;
  }

  .thumbs {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 0;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .picker {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .pick {
    min-height: 120px;
    justify-content: flex-end;
  }
}
