/* bwebdesign: light + indigo, with warm "shop window" amber as the homey accent */
:root {
  --paper: #F7F7FB;
  --white: #FFFFFF;
  --ink: #1A1B3A;
  --muted: #5A5C7A;
  --mist: #E2E3F0;
  --indigo: #4B4EDC;
  --indigo-deep: #3638B4;
  --indigo-wash: #ECECFC;
  --lamp: #F2B544;
  --lamp-wash: #FDF1D8;
  --sage-wash: #E3F0E6;
  --sage-ink: #2F6B44;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-stage: 32px;
  --r-card: 20px;
  --r-field: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --shadow-float: 0 10px 30px -12px rgba(26, 27, 58, .22), 0 2px 6px rgba(26, 27, 58, .06);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--indigo-deep); }
.btn-light:hover { background: var(--lamp-wash); }

/* Nav: floating pill, as in the reference */
.nav {
  position: fixed; z-index: 50; top: 28px; left: 50%; transform: translateX(-50%);
  width: min(var(--maxw) - 48px, 100% - 2 * var(--gutter) - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 6px 8px 6px 10px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: 0 6px 24px -14px rgba(26, 27, 58, .25);
  transition: top .3s, box-shadow .3s;
}
.nav.is-scrolled { top: 14px; box-shadow: var(--shadow-float); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: .9688rem; color: var(--muted);
  padding: 10px 14px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--indigo-wash); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: 16px; }
.hero-stage {
  position: relative;
  min-height: min(900px, calc(100svh - 32px));
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  border-radius: var(--r-stage);
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 72% 55%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(rgba(75, 78, 220, .06) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(75, 78, 220, .06) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(160deg, #E9E9FB 0%, #F2F2FC 55%, #EDEFF9 100%);
}
.hero-copy {
  position: relative; z-index: 2;
  padding: 140px 0 96px clamp(24px, 5vw, 72px);
  max-width: 600px;
}
h1 {
  font-size: clamp(2.75rem, 5.4vw, 4.75rem);
  font-weight: 800; font-style: italic;
  letter-spacing: -0.03em; line-height: 1.0;
  text-wrap: balance;
}
.lede { margin-top: 24px; font-size: 1.1875rem; color: var(--muted); max-width: 46ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: .9375rem; color: var(--muted); }

.scene { position: relative; align-self: stretch; min-height: 520px; }
.scene canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  cursor: grab; touch-action: pan-y; outline: none;
}
.scene.is-dragging canvas { cursor: grabbing; }
.scene.is-hovering canvas { cursor: pointer; }
.scene-hint {
  position: absolute; left: 50%; top: 112px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); color: var(--muted);
  font-size: .875rem; font-weight: 500; white-space: nowrap; pointer-events: none;
  transition: opacity .5s;
}
.scene-hint.is-hidden { opacity: 0; }
/* No WebGL: hide the canvas and keep the finished stats card. */
.scene.is-static canvas, .scene.is-static .scene-hint { display: none; }

/* Wide screens: the canvas fills the hero and the camera frames the shop on the right. */
@media (min-width: 1081px) {
  .scene { position: absolute; inset: 0; min-height: 0; }
  .scene-hint { left: 70%; }
}

.hud {
  position: absolute; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 3;
  width: min(380px, calc(100% - 32px));
  padding: 16px 18px 12px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-float);
}
.hud-caption { font-weight: 700; font-size: .9688rem; line-height: 1.35; min-height: 2.7em; }
.hud-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 0; }
.hud-stats div { padding-top: 10px; border-top: 1px solid var(--mist); }
.hud-stats dt { font-size: .75rem; color: var(--muted); line-height: 1.3; }
.hud-stats dd { margin: 2px 0 0; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.hud-stats div:nth-child(3) dd { color: var(--indigo); }
.hud-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: .75rem; color: var(--muted); }
.hud-replay {
  border: 0; background: none; padding: 6px 0; cursor: pointer;
  font: 700 .8125rem var(--font); color: var(--indigo); text-decoration: underline; text-underline-offset: 3px;
}
.hud-replay:hover { color: var(--indigo-deep); }

.built-for {
  width: min(760px, 100% - 2 * var(--gutter)); margin: 56px auto 0;
  text-align: center; color: var(--muted); font-size: 1.125rem; text-wrap: balance;
}

/* Sections */
.section { padding-block: clamp(80px, 11vw, 140px); }

/* Services */
.services-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.services-intro { position: sticky; top: 130px; }
.services-intro p { margin-top: 20px; color: var(--muted); max-width: 40ch; }
.legend { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: .8125rem; font-weight: 700; line-height: 1.5;
}
.tag-traffic { background: var(--indigo-wash); color: var(--indigo-deep); }
.tag-customers { background: var(--lamp-wash); color: #8A5A00; }
.tag-time { background: var(--sage-wash); color: var(--sage-ink); }

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.service {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px;
  padding: 32px 0; border-bottom: 1px solid var(--mist);
}
.service-icon {
  width: 40px; height: 40px; fill: none; stroke: var(--indigo); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.service p { color: var(--muted); margin-top: 8px; max-width: 58ch; }
.service .service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* Process */
.process { background: var(--white); }
.steps {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--indigo) 0 8px, transparent 8px 16px);
  opacity: .35;
}
.step { position: relative; }
.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--indigo); color: var(--white);
  font-weight: 800; font-style: italic; font-size: 1.125rem;
  box-shadow: 0 0 0 8px var(--white);
}
.step:last-child .step-num { background: var(--lamp); color: var(--ink); }
.step h3 { margin-top: 24px; }
.step-time { margin-top: 4px; font-size: .875rem; font-weight: 700; color: var(--indigo); }
.step p:last-child { margin-top: 10px; color: var(--muted); }

/* Results */
.results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.placeholder-badge {
  border: 1.5px dashed #C9A23F; color: #7A5600; background: var(--lamp-wash);
  padding: 4px 12px; border-radius: 8px; font-size: .8125rem; font-weight: 700;
}
.result-stats {
  margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--ink);
}
.result-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 28px 24px 0 0; }
.result-stats div + div { padding-left: 24px; border-left: 1px solid var(--mist); }
.result-stats dd { margin: 0; font-size: clamp(2.75rem, 5vw, 4rem); font-weight: 800; font-style: italic; letter-spacing: -0.03em; line-height: 1; color: var(--indigo); }
.result-stats dt { margin-top: 10px; color: var(--muted); max-width: 22ch; }

.quotes { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }
.quote figcaption { margin-top: 18px; color: var(--muted); font-size: .9375rem; }
.quote figcaption strong { display: block; color: var(--ink); }

/* Pricing */
.pricing { background: linear-gradient(var(--paper), var(--indigo-wash)); }
.pricing-head p { margin-top: 18px; color: var(--muted); max-width: 60ch; }
.plans { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  padding: 32px 28px 28px; border-radius: var(--r-card);
  background: var(--white); border: 1px solid var(--mist);
}
.plan-for { margin-top: 8px; color: var(--muted); font-size: .9688rem; min-height: 3.2em; }
.price { margin-top: 20px; color: var(--muted); font-size: .9375rem; }
.price-amount { font-size: 2.75rem; font-weight: 800; font-style: italic; letter-spacing: -0.03em; color: var(--ink); margin-right: 4px; }
.plan-list { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
.plan-list li { position: relative; padding: 8px 0 8px 28px; border-top: 1px solid var(--mist); font-size: .9688rem; }
.plan-list li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px;
  border-left: 2px solid var(--indigo); border-bottom: 2px solid var(--indigo); transform: rotate(-45deg);
}
.plan-featured {
  background: var(--indigo); color: var(--white); border-color: var(--indigo);
  box-shadow: 0 30px 60px -30px rgba(54, 56, 180, .6);
  transform: translateY(-12px);
}
.plan-featured .plan-for, .plan-featured .price { color: rgba(255, 255, 255, .78); }
.plan-featured .price-amount { color: var(--white); }
.plan-featured .plan-list li { border-color: rgba(255, 255, 255, .2); }
.plan-featured .plan-list li::before { border-color: var(--lamp); }
.plan-flag {
  align-self: flex-start; margin-bottom: 14px; padding: 3px 12px; border-radius: 999px;
  background: var(--lamp); color: var(--ink); font-size: .8125rem; font-weight: 700;
}
.care {
  margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 28px; border-radius: var(--r-card); border: 1.5px dashed rgba(75, 78, 220, .45);
}
.care p { margin-top: 4px; color: var(--muted); }

/* Contact */
.contact-panel {
  display: grid; gap: clamp(28px, 4vw, 48px);
  padding: clamp(20px, 5vw, 64px); border-radius: var(--r-stage);
  background: var(--ink); color: var(--white);
}
.contact-copy { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 72px); align-items: end; }
.contact-copy h2, .contact-copy > p { grid-column: 1; }
.contact-copy p { margin-top: 20px; color: rgba(255, 255, 255, .75); max-width: 46ch; }
.contact-points { list-style: none; padding: 0; margin: 0; grid-column: 2; grid-row: 1 / span 2; }

/* Booking calendar (Cal.com) with the message form as a fallback */
.contact-book { display: grid; gap: 16px; }
.cal-card { background: var(--white); color: var(--ink); border-radius: var(--r-card); overflow: hidden; }
.cal-inline { width: 100%; min-height: 560px; overflow: auto; }
.cal-fallback { padding: 0 20px 16px; font-size: .875rem; color: var(--muted); }
.cal-fallback a { color: var(--indigo); font-weight: 700; }
.message-option summary {
  cursor: pointer; width: fit-content; padding: 10px 2px;
  font-weight: 700; color: var(--white); text-decoration: underline; text-underline-offset: 4px;
}
.message-option summary:hover { color: var(--lamp); }
.message-option[open] summary { margin-bottom: 12px; }
.contact-points li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid rgba(255, 255, 255, .14); }
.contact-points li::before {
  content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--lamp); box-shadow: 0 0 12px var(--lamp);
}
.contact-form {
  display: grid; gap: 16px; align-content: start;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--r-card);
  background: var(--white); color: var(--ink);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: .875rem; font-weight: 700; padding: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 400 1rem var(--font); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--mist); border-radius: var(--r-field);
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); background: var(--white); box-shadow: 0 0 0 3px var(--indigo-wash); }
.field [aria-invalid="true"] { border-color: #C0392B; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.choices label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 14px; border: 1.5px solid var(--mist); border-radius: 999px; font-size: .9375rem;
}
.choices label:has(input:checked) { border-color: var(--indigo); background: var(--indigo-wash); }
.field .choices input { width: auto; min-height: 0; padding: 0; margin: 0; border: 0; accent-color: var(--indigo); }
.form-error { color: #B42318; font-size: .9375rem; font-weight: 500; }
.form-success { padding: 14px 16px; border-radius: var(--r-field); background: var(--sage-wash); color: var(--sage-ink); font-weight: 500; }

/* Footer */
.footer { padding: 40px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; color: var(--muted); font-size: .9375rem; }
.footer-inner .brand { color: var(--ink); font-size: 1.15rem; }
.footer-copy { margin-left: auto; }

/* Responsive */
@media (max-width: 1080px) {
  .hero-stage { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 130px var(--gutter) 8px; max-width: 680px; }
  .scene { min-height: 0; padding-bottom: 16px; }
  .scene canvas { position: relative; height: clamp(380px, 62vw, 560px); }
  .scene-hint { top: 16px; }
  .hud { position: relative; right: auto; bottom: auto; width: auto; margin: 0 16px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: var(--indigo-wash); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s, background-color .25s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav { border-radius: 26px; flex-wrap: wrap; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0 6px;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 14px; }
  .nav-cta { margin: 6px 0 0; }

  .services-grid, .contact-copy { grid-template-columns: 1fr; }
  .contact-points { grid-column: 1; grid-row: auto; margin-top: 28px; }
  .services-intro { position: static; }
  .result-stats { grid-template-columns: 1fr; }
  .result-stats div { padding: 24px 0; }
  .result-stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--mist); }
  .quotes, .plans { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
}

@media (max-width: 560px) {
  .hero { padding: 8px; }
  .hero-stage { border-radius: 24px; }
  .nav { top: 16px; }
  .hero-copy { padding-top: 112px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hud { margin: 0 8px; padding: 14px 14px 10px; }
  .hud-stats dd { font-size: 1.125rem; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 12px; }
  .footer-copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
