/* Clearway Systems
   Palette: variant B (navy + steel). Mark: variant C (open C with a dot).
   Compact, plain, company voice. */

:root {
  --ink: #0B1F33;
  --page: #F4F6F8;
  --surface: #FFFFFF;
  --steel: #2F6FB0;
  --muted: #5A6B7D;
  --rule: #C5CED8;
  --rule-soft: #DCE2E9;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 6px;
  --container: 1040px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--page);
  border-radius: var(--radius);
  z-index: 10;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--page);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--ink);
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: #17324F; border-color: #17324F; }
.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-quiet:hover { background: var(--surface); border-color: var(--muted); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule-soft); }
.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 17px;
  line-height: 1;
}
.brand-mark { width: 20px; height: 20px; color: var(--ink); flex: none; }
.brand-name { font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { color: var(--muted); margin-left: -2px; }

/* "Proudly Canadian" next to the logo. The leaf is the only red on the site. */
.made-in {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: -12px;
  padding-left: 14px;
  border-left: 1px solid var(--rule-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--muted);
  white-space: nowrap;
}
.made-in-leaf { width: 13px; height: 13px; flex: none; }
/* Narrower screens: only the leaf stays visible; the words are still read by screen readers. */
@media (max-width: 1080px) {
  .made-in { padding-left: 12px; }
  .made-in-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }

/* EN / FR switch */
.lang-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  background: var(--page);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule-soft);
}
.lang-switch + .btn { margin-left: -12px; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  max-width: 16em;
}
.lead {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
  max-width: 38em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* Sections */
.section { padding: 56px 0; }
.section h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.section-lead {
  margin-top: 8px;
  color: var(--muted);
  max-width: 30em;
}
.section-line { border-top: 1px solid var(--rule-soft); }

/* The three steps are a real sequence, so they get numbers and a connecting line. */
.route {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  counter-reset: step;
  position: relative;
}
.route::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 14px;
  right: calc((100% - 64px) / 3);
  height: 2px;
  background: var(--rule);
}
.route li { counter-increment: step; position: relative; }
.route li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--page);
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  position: relative;
  margin-bottom: 16px;
}
.route li:last-child::before {
  background: var(--steel);
  border-color: var(--steel);
  color: #fff;
}
.route h3 { font-size: 17px; line-height: 1.35; }
.route p { margin-top: 6px; color: var(--muted); font-size: 15px; max-width: 30em; }

/* How it works: an illustration above each step, then the number, then the text.
   The story loops: step 1, then step 2, then step 3, while the route line fills and
   the numbers light up; then a short hold on the full picture, a quick fade, and again.
   With JS, motion.js keeps it paused at the first frame until the list scrolls into
   view, and pauses it again off screen. Without JS it simply loops from page load.
   With reduced motion the final frame is shown and nothing moves. */
.route { --ill-h: 150px; --ill-gap: 20px; --motion: 12s; }
.route li { display: flex; flex-direction: column; z-index: 1; }
.ill {
  order: -1;
  height: var(--ill-h);
  margin-bottom: var(--ill-gap);
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  overflow: hidden;
}
.ill svg { display: block; width: 100%; height: 100%; }
.route::before { top: calc(var(--ill-h) + var(--ill-gap) + 13px); }

/* Final frame (also what reduced motion shows): all numbers lit, route line filled. */
.route li::before { background: var(--steel); border-color: var(--steel); color: #fff; }
.route::after {
  content: "";
  position: absolute;
  top: calc(var(--ill-h) + var(--ill-gap) + 13px);
  left: 14px;
  right: calc((100% - 64px) / 3);
  height: 2px;
  background: var(--steel);
  transform-origin: left center;
}
.route li::after {
  content: "";
  position: absolute;
  top: calc(var(--ill-h) + var(--ill-gap));
  left: 0;
  width: 28px;
  height: 28px;
  border: 2px solid var(--steel);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
/* Side by side: number 1 at the start of its card, number 2 in the middle of its card,
   number 3 at the end of its card. The route runs from number 1 to number 3;
   number 2 sits exactly halfway, so the blue line still reaches it at scaleX(.5). */
@media (min-width: 721px) {
  .route::before,
  .route::after { right: 14px; }
  .route li:nth-child(2)::before { align-self: center; }
  .route li:nth-child(3)::before { align-self: flex-end; }
  .route li:nth-child(2)::after { left: calc(50% - 14px); }
  .route li:nth-child(3)::after { left: auto; right: 0; }
}
.ill .m { transform-box: fill-box; transform-origin: center; }
.ill .a3-hand { transform-box: view-box; transform-origin: 74px 105px; }
.ill .a1-cursor, .ill .a1-tap, .ill .a1-tap2, .ill .a2-ring { opacity: 0; }
.ill .a3-check { stroke-dasharray: 1; }

/* Motion. One shared 12 s timeline, looping. */
.ill .m {
  animation-duration: var(--motion);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(.22, .8, .3, 1);
}
.route::after { animation: c-line var(--motion) infinite both cubic-bezier(.45, 0, .25, 1); }
.route li::before { animation: var(--motion) infinite both ease-out; }
.route li::after { animation: var(--motion) infinite both ease-out; }
.route li:nth-child(1)::before { animation-name: c-dot-1; }
.route li:nth-child(2)::before { animation-name: c-dot-2; }
.route li:nth-child(3)::before { animation-name: c-dot-3; }
.route li:nth-child(1)::after { animation-name: c-ring-1; }
.route li:nth-child(2)::after { animation-name: c-ring-2; }
.route li:nth-child(3)::after { animation-name: c-ring-3; }
.a1-cursor { animation-name: a1-cursor; }
.a1-tap    { animation-name: a1-tap; }
.a1-tap2   { animation-name: a1-tap2; }
.a1-pick   { animation-name: a1-pick; }
.a1-btn    { animation-name: a1-btn; }
.a2-drop   { animation-name: a2-drop; }
.a2-ring   { animation-name: a2-ring; }
.a3-c1     { animation-name: a3-c1; }
.a3-check  { animation-name: a3-check; }
.a3-c2     { animation-name: a3-c2; }
.a3-hand   { animation-name: a3-hand; }
/* Waiting for motion.js to start it when the list is on screen. */
.js-motion .ill .m,
.js-motion .route::after,
.js-motion .route li::before,
.js-motion .route li::after { animation-play-state: paused; }

/* Timeline: step 1 at 0–20%, step 2 at 24–44%, step 3 at 48–71%,
   hold on the full picture to 93%, fade out by 97%, start again. */
@keyframes c-line  { 0%, 4% { transform: scaleX(0); opacity: 1; } 26%, 30% { transform: scaleX(.5); } 50%, 93% { transform: scaleX(1); opacity: 1; } 97% { transform: scaleX(1); opacity: 0; } 100% { transform: scaleX(0); opacity: 0; } }
@keyframes c-dot-1 { 0%, 2%  { background: var(--page); border-color: var(--ink); color: var(--ink); } 4%, 93%  { background: var(--steel); border-color: var(--steel); color: #fff; } 97%, 100% { background: var(--page); border-color: var(--ink); color: var(--ink); } }
@keyframes c-dot-2 { 0%, 24% { background: var(--page); border-color: var(--ink); color: var(--ink); } 27%, 93% { background: var(--steel); border-color: var(--steel); color: #fff; } 97%, 100% { background: var(--page); border-color: var(--ink); color: var(--ink); } }
@keyframes c-dot-3 { 0%, 48% { background: var(--page); border-color: var(--ink); color: var(--ink); } 51%, 93% { background: var(--steel); border-color: var(--steel); color: #fff; } 97%, 100% { background: var(--page); border-color: var(--ink); color: var(--ink); } }
@keyframes c-ring-1 { 0%, 2%  { opacity: 0; transform: scale(1); } 4%  { opacity: .7; } 11%, 100% { opacity: 0; transform: scale(1.9); } }
@keyframes c-ring-2 { 0%, 25% { opacity: 0; transform: scale(1); } 27% { opacity: .7; } 34%, 100% { opacity: 0; transform: scale(1.9); } }
@keyframes c-ring-3 { 0%, 49% { opacity: 0; transform: scale(1); } 51% { opacity: .7; } 58%, 100% { opacity: 0; transform: scale(1.9); } }

/* Step 1: the cursor picks a time on the phone, then presses the button. */
@keyframes a1-cursor {
  0%   { opacity: 0; transform: translate(222px, 140px); }
  2%   { opacity: 1; transform: translate(222px, 140px); }
  7%   { transform: translate(167px, 77px); }
  8%   { transform: translate(167px, 77px) scale(.88); }
  9.5% { transform: translate(167px, 77px) scale(1); }
  13%  { transform: translate(151px, 118px); }
  14%  { transform: translate(151px, 118px) scale(.88); }
  16%  { opacity: 1; transform: translate(151px, 118px) scale(1); }
  20%, 100% { opacity: 0; transform: translate(151px, 118px); }
}
@keyframes a1-tap  { 0%, 7.5% { opacity: 0; transform: scale(.4); } 9% { opacity: 1; transform: scale(1); } 13.5%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes a1-tap2 { 0%, 13.5% { opacity: 0; transform: scale(.4); } 15% { opacity: 1; transform: scale(1); } 20%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes a1-pick { 0%, 8% { opacity: 0; } 10%, 93% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes a1-btn  { 0%, 14% { opacity: 0; } 16.5%, 93% { opacity: 1; } 97%, 100% { opacity: 0; } }

/* Step 2: the booking drops into a free slot in the calendar. */
@keyframes a2-drop { 0%, 28.5% { opacity: 0; transform: translateY(-28px); } 35%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes a2-ring { 0%, 34% { opacity: 0; transform: scale(1); } 36.5% { opacity: .9; transform: scale(1); } 44%, 100% { opacity: 0; transform: scale(1.3); } }

/* Step 3: the confirmation, then the reminder. */
@keyframes a3-c1    { 0%, 50.5% { opacity: 0; transform: translateX(20px); } 56%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes a3-check { 0%, 54.5% { stroke-dashoffset: 1; } 59%, 100% { stroke-dashoffset: 0; } }
@keyframes a3-c2    { 0%, 60% { opacity: 0; transform: translateX(20px); } 65.5%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes a3-hand  { 0%, 64% { transform: rotate(-150deg); } 71%, 100% { transform: rotate(0deg); } }

@media (prefers-reduced-motion: reduce) {
  .ill .m,
  .route::after,
  .route li::before,
  .route li::after { animation: none !important; }
}

/* Who it's for: traits, not industries. Industries are only examples. */
.traits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--rule);
}
.trait { padding: 16px 24px 0 0; }
.trait + .trait { padding-left: 24px; border-left: 1px solid var(--rule-soft); }
.trait h3 { font-size: 17px; line-height: 1.35; }
.trait p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.examples { margin-top: 24px; color: var(--muted); font-size: 15px; max-width: 46em; }

.setup {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: start;
}
.setup h3 { font-size: 17px; line-height: 1.35; padding-top: 6px; }
.setup ul { margin: 0; padding: 0; list-style: none; }
.setup li {
  padding: 6px 0 6px 20px;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  font-size: 15px;
}
.setup li:last-child { border-bottom: 0; }
.setup li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 8px;
  height: 2px;
  background: var(--steel);
}

/* See it working: the live booking across the full width (the Cal.com calendar needs
   about 770px for its side-by-side layout; narrower it stacks and gets ~1700px tall),
   what the customer gets below it in a row, then what the owner gets.
   Same palette and type as the rest of the site. */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-top: 28px;
}
.booking-slot {
  display: flex;
  min-height: 560px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
}
.booking-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.booking-placeholder p:last-child { max-width: 26em; }
.booking-placeholder-title { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.demo-note { margin-top: 10px; color: var(--muted); font-size: 13px; max-width: 40em; }

.demo-side h3 { font-size: 17px; line-height: 1.35; }
.demo-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  counter-reset: dstep;
  border-top: 1px solid var(--rule);
}
.demo-steps li {
  counter-increment: dstep;
  position: relative;
  padding: 12px 0 12px 36px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
  color: var(--muted);
}
.demo-steps li:last-child { border-bottom: 0; }
@media (min-width: 861px) {
  .demo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
  .demo-steps li { border-bottom: 0; }
}
.demo-steps li::before {
  content: counter(dstep);
  position: absolute;
  left: 0;
  top: 13px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  color: var(--ink);
}

/* What you get: only with JS (the owner's calendar is drawn by demo.js). */
.owner-view { display: none; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule-soft); }
.js-demo .owner-view { display: block; }
.owner-view h3 { font-size: 17px; line-height: 1.35; }
.owner-lead { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* Live demo (demo.js, html.js-demo). Without JS: the placeholder with a link to the
   Cal.com booking page, and no "What you get". */
.cal-inline { display: none; }
.js-demo .cal-inline { display: block; flex: 1; min-width: 0; color-scheme: light; }
.js-demo .booking-slot:not(.is-failed) .booking-placeholder { display: none; }
.js-demo .booking-slot.is-failed .cal-inline { display: none; }
.booking-placeholder a { color: var(--steel); overflow-wrap: anywhere; }
.demo-credit { margin-top: 8px; font-size: 13px; color: var(--muted); }
.demo-credit a { color: inherit; }
.demo-credit + .demo-note { margin-top: 2px; }
.booking-next { margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
.booking-next a { color: var(--steel); }
.booking-next[hidden] { display: none; }

/* The owner's calendar: a week, Monday to Saturday, 9:00 to 17:00. */
.owner-cal { display: none; }
.js-demo .owner-cal {
  --oc-row: 22px;          /* one half-hour */
  --oc-head: 48px;
  display: block;
  margin-top: 20px;
  padding: 16px 16px 14px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
}
.owner-cal-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 12px; }
.owner-cal-title { font-weight: 600; color: var(--ink); font-size: 15px; }
.owner-cal-range { color: var(--ink); font-size: 15px; }
.owner-cal-tz { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.owner-cal-grid {
  display: grid;
  grid-template-columns: 52px repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--rule-soft);
}
.oc-times { display: grid; grid-template-rows: var(--oc-head) repeat(8, calc(var(--oc-row) * 2)); }
.oc-hour {
  padding-right: 8px;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  transform: translateY(-5px);
  white-space: nowrap;
}
.oc-day { min-width: 0; border-left: 1px solid var(--rule-soft); }
.oc-day-head {
  height: var(--oc-head);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-bottom: 1px solid var(--rule-soft);
}
.oc-wd { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.oc-dn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}
.is-today .oc-dn { background: var(--ink); color: var(--surface); }
.oc-day-body {
  position: relative;
  height: calc(var(--oc-row) * 16);
  /* A line every hour. */
  background: repeating-linear-gradient(to bottom,
    transparent 0, transparent calc(var(--oc-row) * 2 - 1px),
    var(--rule-soft) calc(var(--oc-row) * 2 - 1px), var(--rule-soft) calc(var(--oc-row) * 2));
}
.oc-closed { position: absolute; left: 0; right: 0; background: var(--page); }
.oc-event {
  position: absolute;
  left: 3px;
  right: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  overflow: hidden;
  background: var(--steel);
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--surface);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
.oc-ev-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.oc-ev-time { display: none; order: -1; font-family: var(--mono); font-size: 11px; opacity: .9; }   /* the line under the grid has the time */
.oc-ev-service { display: none; }
.oc-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--steel);
  background: var(--page);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  color: var(--ink);
}
.oc-detail strong { font-weight: 600; }
.oc-detail span { color: var(--muted); }
.owner-cal-hint { margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .owner-cal.is-new .oc-event,
  .owner-cal.is-new .oc-detail { animation: oc-in .5s cubic-bezier(.2, .7, .2, 1) both; }
  .owner-cal.is-new .oc-detail { animation-delay: .15s; }
}
@keyframes oc-in {
  from { opacity: 0; transform: translateY(6px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

/* Contact: a light panel of its own, so it does not merge with the dark footer. */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 48px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
}
.contact-details {
  margin: 24px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font-size: 15px;
}
.contact-details dt { font-weight: 600; }
.contact-details dd { margin: 2px 0 0; color: var(--muted); }

.contact-form { display: grid; gap: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input { min-height: 44px; }
.field textarea { min-height: 168px; resize: vertical; line-height: 1.5; }
.field input:hover,
.field textarea:hover { border-color: var(--muted); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(47, 111, 176, 0.18);
}
.field-hint { margin-top: 6px; color: var(--muted); font-size: 13px; }
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.form-note { color: var(--muted); font-size: 13px; max-width: 30em; }
.form-note a { color: var(--steel); text-underline-offset: 3px; }
button.btn { font-family: inherit; cursor: pointer; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #8496A9;
  font-size: 13px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px 48px;
  padding-top: 36px;
  padding-bottom: 28px;
}
.footer-about { max-width: 34em; font-size: 14px; color: #B9C5D2; }
.footer-title { color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 16px;
  padding-bottom: 18px;
  border-top: 1px solid #1C344D;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  justify-self: end;
  font-size: 14px;
}
.footer-nav a { color: #B9C5D2; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-nav a[aria-current="page"] { color: #fff; }
.site-footer :focus-visible { outline-color: #8DB7E6; }

/* Legal pages */
.legal { padding: 48px 0 64px; }
.legal-body { max-width: 720px; }
.legal h1 {
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.legal .updated { margin-top: 8px; color: var(--muted); font-size: 14px; }
.legal h2 {
  margin-top: 36px;
  font-size: 19px;
  line-height: 1.3;
}
.legal p, .legal ul { margin-top: 10px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.legal address { font-style: normal; margin-top: 10px; }
.legal a { color: var(--steel); text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 860px) {
  /* Four menu links no longer fit next to the logo, language switch and button. */
  .site-nav { display: none; }
  .lang-switch { margin-left: auto; }
  .setup { grid-template-columns: 1fr; gap: 16px; }
  .setup h3 { padding-top: 0; }
  .traits { grid-template-columns: 1fr; }
  .trait { padding: 14px 0 0; }
  .trait + .trait { padding-left: 0; border-left: 0; margin-top: 14px; border-top: 1px solid var(--rule-soft); }
  .contact-panel { grid-template-columns: 1fr; gap: 28px; }
  .booking-slot { min-height: 480px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { justify-self: start; }
}

@media (max-width: 720px) {
  .header-row { gap: 16px; }
  .lang-switch + .btn { margin-left: -6px; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 44px 0; }
  .route { grid-template-columns: 1fr; gap: 24px; --ill-h: 140px; }
  .route::before { top: calc(var(--ill-h) + var(--ill-gap) + 14px); bottom: 14px; left: 13px; right: auto; width: 2px; height: auto; }
  .route li { padding-left: 46px; }
  .route li::before { position: absolute; left: 0; top: calc(var(--ill-h) + var(--ill-gap) - 2px); margin: 0; }
  .route li::after { top: calc(var(--ill-h) + var(--ill-gap) - 2px); }
  /* On a phone the steps are stacked, so the line is vertical and each step plays
     when it scrolls into view. The filled line is left out; the numbers still light up. */
  .route::after { display: none; }
  .setup { padding: 18px; }
  .booking-slot { padding: 10px; }
  /* Phone: only the day of the booking (or today) in the owner's calendar. */
  .js-demo .owner-cal { padding: 12px 12px 10px; --oc-row: 24px; }
  .owner-cal-grid { grid-template-columns: 48px minmax(0, 1fr); }
  .oc-day:not(.is-focus) { display: none; }
  .oc-ev-service { display: inline; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
  .oc-ev-time { display: inline; }
  .contact-panel { padding: 22px 18px; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .header-row .btn-small { display: none; }
  .lead { font-size: 17px; }
}

.nowrap { white-space: nowrap; }

/* Spam trap: hidden from people, bots fill it in. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* =====================================================================
   Scroll-driven animations (CSS only: animation-timeline view()).
   Everything here follows the scroll like a timeline: scroll back and it
   plays back. No scroll-jacking, no snapping, no JS.
   - Only inside @supports: browsers without scroll timelines (e.g. Firefox)
     get the site exactly as without this block.
   - Only with prefers-reduced-motion: no-preference: with reduced motion
     nothing here applies and all content is simply visible.
   - Hidden start states exist only in here, so nothing can disappear without support.
   - Contact and footer are never animated.
   ===================================================================== */
@supports (animation-timeline: view()) {
@media (prefers-reduced-motion: no-preference) {

  /* ---------- 1. Hero leaves when scrolling down ---------- */
  #top.hero {
    view-timeline: --hero block;
    transform-origin: center top;
    animation: sd-hero-out linear both;
    animation-timeline: --hero;
    animation-range: exit 0% exit 100%;
  }
  /* Parallax: the heading moves a little slower than the text and buttons. */
  #top.hero h1 {
    animation: sd-hero-slow linear both;
    animation-timeline: --hero;
    animation-range: exit 0% exit 100%;
  }
  #top.hero .lead,
  #top.hero .actions {
    animation: sd-hero-fast linear both;
    animation-timeline: --hero;
    animation-range: exit 0% exit 100%;
  }

  /* How it works has no scroll animation (removed 2026-11-10):
     the step cards and the route keep their time-based loop. */

  /* ---------- 2. Who it's for, See it working: open from the blue dot ---------- */
  /* The dot sits left of the heading's first line, like the dot of the logo's C.
     It sits on the section (outside the mask), the mask is on the .container, so
     the section's top border is never masked. The opening ends when the top of the
     section is at 40% of the screen height (range end: 60vh after it entered). */
  #who, #demo {
    position: relative;
    view-timeline: --reveal block;
    --dot-x: 10px;          /* in the container: 14px left of the heading */
    --dot-y: 17px;          /* middle of the heading's first line */
    --sec-pad: 56px;        /* same as .section padding-top */
  }
  #who > .container,
  #demo > .container {
    animation: sd-reveal linear both;
    animation-timeline: --reveal;
    animation-range: cover 12vh cover 60vh;
  }
  #who::before,
  #demo::before {
    content: "";
    position: absolute;
    top: calc(var(--sec-pad) + var(--dot-y) - 7px);
    left: calc(max(0px, (100% - var(--container)) / 2) + var(--dot-x) - 7px);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--steel);
    pointer-events: none;
    animation: sd-dot linear both;
    animation-timeline: --reveal;
    animation-range: cover 12vh cover 60vh;
  }

  /* After the opening, a light staircase inside the section. */
  #who .trait,
  #who .examples,
  #who .setup {
    animation: sd-rise linear both;
    animation-timeline: --reveal;
  }
  #who .trait:nth-child(1) { animation-range: cover 40vh cover 55vh; }
  #who .trait:nth-child(2) { animation-range: cover 45vh cover 60vh; }
  #who .trait:nth-child(3) { animation-range: cover 50vh cover 65vh; }
  #who .examples           { animation-range: cover 55vh cover 70vh; }
  #who .setup              { animation-range: cover 60vh cover 75vh; }
  /* In #demo the steps are far below the heading (under the calendar),
     so they follow their own position. */
  #demo .demo-steps li {
    animation: sd-rise linear both;
    animation-timeline: view();
  }
  #demo .demo-steps li:nth-child(1) { animation-range: cover 5% cover 25%; }
  #demo .demo-steps li:nth-child(2) { animation-range: cover 11% cover 31%; }
  #demo .demo-steps li:nth-child(3) { animation-range: cover 17% cover 37%; }

  /* One column: each item rises when it reaches the screen.
     (:nth-child(n) keeps the specificity equal to the per-item rules above.) */
  @media (max-width: 860px) {
    #who .trait:nth-child(n),
    #who .examples,
    #who .setup,
    #demo .demo-steps li:nth-child(n) {
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }

  /* Phone: the section padding and the heading are smaller. */
  @media (max-width: 720px) {
    #who, #demo { --dot-x: 9px; --dot-y: 15px; --sec-pad: 44px; }
  }
  @media (max-width: 420px) {
    #who, #demo { --dot-x: 7px; }
  }

  @keyframes sd-hero-out {
    0%   { opacity: 1; transform: none; }
    85%  { opacity: 0; }
    100% { opacity: 0; transform: scale(.9); }
  }
  @keyframes sd-hero-slow { from { transform: none; } to { transform: translateY(24px); } }
  @keyframes sd-hero-fast { from { transform: none; } to { transform: translateY(-8px); } }

  @keyframes sd-reveal {
    0%, 20% { clip-path: circle(0px at var(--dot-x) var(--dot-y)); }
    100%    { clip-path: circle(150% at var(--dot-x) var(--dot-y)); }
  }
  @keyframes sd-dot {
    0%   { opacity: 0; transform: scale(.3); }
    10%  { opacity: 1; transform: scale(1); }
    50%  { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0); }
  }
  @keyframes sd-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
}
