/* DIDAS homepage V2: everything below the hero.
   Principles: marketing content on calm white and mist; the product shown once, large and complete,
   on a defocused frame of the hero's own footage; one deep section for the implementation drawing;
   one photograph of real service work. No card kits, no icon grids, no repeated fragments. */
:root {
  --bg: #ffffff;
  --mist: #f3f4f6;
  --ink: #0c1424;
  --ink-2: #4b5466;
  --ink-3: #8790a0;
  --line: rgba(12, 20, 36, 0.09);
  --deep: #0a1120;
  --accent: #0e1a36;
  --gut: clamp(20px, 4.4vw, 72px);
  --sc-accent: var(--accent);
  --sc-accent-ink: #fff;
}
body { background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.process :focus-visible, .foot :focus-visible { outline-color: #fff; }
::selection { background: var(--accent); color: #fff; }
[id] { scroll-margin-top: 76px; }
.wrap { width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; }

.h2 { margin: 0; font-weight: 400; font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.h2 span { color: var(--ink-3); }
.h2--d { color: #fff; }
.lead { max-width: 52ch; margin: 20px 0 0; font-size: clamp(1.02rem, 0.96rem + 0.25vw, 1.15rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.lead--d { color: rgba(255, 255, 255, 0.66); }
.link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.link svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms; }
.link:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------ product */
.product { position: relative; padding: clamp(96px, 10vw, 150px) 0 clamp(72px, 8vw, 110px); background: var(--mist); }
.product__head { text-align: center; }
.product__head .h2 { font-size: clamp(2.4rem, 1.4rem + 2.8vw, 4rem); }
.product__head .lead { margin-inline: auto; }
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 clamp(12px, 2vw, 28px); margin: clamp(48px, 5vw, 72px) 0 clamp(28px, 3vw, 40px); }
.pillars button { position: relative; display: flex; flex-direction: column; justify-content: flex-start; padding: 0 0 18px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink-3); transition: color 300ms; }
.pillars b { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.pil-ic { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.pillars span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; }
.pillars i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(12, 20, 36, 0.1); border-radius: 2px; overflow: hidden; }
.pillars i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.pillars button[aria-selected="true"] { color: var(--ink); }
.pillars button[aria-selected="true"] span { color: var(--ink-2); }
.pillars button[aria-selected="true"] i::after { animation: fill var(--dur, 9000ms) linear forwards; }
.pillars button.is-done i::after { transform: scaleX(1); }
.product.is-paused .pillars i::after, .product.is-idle .pillars i::after { animation-play-state: paused; }
.pillars button:hover { color: var(--ink); }
@keyframes fill { to { transform: scaleX(1); } }

.stage { position: relative; width: min(1320px, 100% - 2 * var(--gut) + 40px); margin-inline: auto; padding: clamp(28px, 4vw, 64px); border-radius: 28px; overflow: hidden; isolation: isolate; }
.stage__plate { position: absolute; inset: 0; z-index: -1; background: url(assets/photos/backplate.jpg) center / cover; transform: scale(1.08); }
.stage__plate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(10, 17, 32, 0.12)); }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.product__note { margin: 0; max-width: 64ch; font-size: 13px; color: var(--ink-3); }
.product__ctl { display: flex; align-items: center; gap: 14px; flex: none; }
.product__count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ctl { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13.5px; cursor: pointer; }
.ctl:hover { border-color: rgba(12, 20, 36, 0.24); }
.ctl svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ctl .i-play { fill: currentColor; stroke: none; display: none; }
.ctl[aria-pressed="false"] .i-play { display: block; }
.ctl[aria-pressed="false"] .i-pause { display: none; }

/* ------------------------------------------------------------ faq */
.faq { padding: clamp(100px, 11vw, 160px) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.faq__head { position: sticky; top: 120px; }
.faq__head .lead { max-width: 30ch; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { position: relative; display: block; padding: 24px 48px 24px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.012em; cursor: pointer; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); transition: transform 300ms ease, margin 300ms ease; }
.faq__list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__list summary:hover::after { border-color: var(--ink); }
.faq__list details p { max-width: 64ch; margin: -6px 0 0; padding: 0 48px 26px 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }

/* ------------------------------------------------------------ booking */
.book { padding: clamp(100px, 11vw, 160px) 0; background: var(--mist); }
.book__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.book__copy { position: sticky; top: 120px; }
.book__expect { margin: 36px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.book__expect li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.book__expect li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg); }

.sched { display: grid; gap: 26px; padding: clamp(24px, 3vw, 40px); border-radius: 22px; background: #fff; box-shadow: 0 1px 0 rgba(12, 20, 36, 0.04), 0 30px 70px -40px rgba(12, 20, 36, 0.35); }
.sched__h { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.sched__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; margin-top: -10px; }
.sched__fields .wide { grid-column: 1 / -1; }
.sched label { display: grid; gap: 6px; }
.sched label > span { font-size: 13px; color: var(--ink-2); }
.sched input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid rgba(12, 20, 36, 0.14); border-radius: 10px; background: #fff; font-size: 15px; color: var(--ink); transition: border-color 200ms, box-shadow 200ms; }
.sched input::placeholder { color: #a3aab6; }
.sched input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 26, 54, 0.1); }
.sched input[aria-invalid="true"] { border-color: #b4553c; }
.sched__time { padding-top: 24px; border-top: 1px solid var(--line); }
.sched__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sched__row { flex-wrap: wrap; }
.sched__tz { margin: 0 auto 0 0; font-size: 12.5px; color: var(--ink-3); }
.sched__nav { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sched__nav button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(12, 20, 36, 0.12); background: #fff; font-size: 17px; line-height: 1; color: var(--ink); cursor: pointer; }
.sched__nav button:disabled { opacity: 0.35; cursor: default; }
.sched__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; }
.sched__day { display: grid; justify-items: center; gap: 2px; padding: 10px 0; border: 1px solid rgba(12, 20, 36, 0.1); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; transition: border-color 200ms, background 200ms, color 200ms; }
.sched__day small { font-size: 11.5px; color: var(--ink-3); }
.sched__day b { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sched__day:hover { border-color: rgba(12, 20, 36, 0.3); }
.sched__day[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.sched__day[aria-checked="true"] small { color: rgba(255, 255, 255, 0.7); }
.sched__day:disabled { cursor: default; opacity: 0.4; }
.sched__slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; min-height: 92px; }
.sched__slot { height: 42px; border: 1px solid rgba(12, 20, 36, 0.12); border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
.sched__slot:hover { border-color: var(--accent); }
.sched__slot[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.sched__empty { grid-column: 1 / -1; display: grid; align-content: center; gap: 4px; padding: 18px 20px; border-radius: 12px; background: var(--mist); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.sched__empty b { font-weight: 500; color: var(--ink); }
.sched__preview { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; color: #9a5b14; }
.cta--block { width: 100%; background: var(--accent); color: #fff; box-shadow: none; }
.cta--block:hover { background: #18284d; }
.cta--block:disabled { background: #c9ced8; color: #fff; cursor: not-allowed; }
.cta--block:disabled svg { stroke: #fff; }
.sched__msg { margin: -10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); min-height: 1.5em; }
.sched__msg.is-warn { color: #8a4a22; }
.sched__msg.is-ok { color: #1f6a4a; }

/* ------------------------------------------------------------ footer */
.foot { background: var(--deep); color: #fff; padding: 56px 0 48px; }
.foot__in { display: grid; grid-template-columns: auto 1fr; gap: 28px 40px; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.26em; color: rgba(255, 255, 255, 0.82); }
.foot__brand img { height: 24px; width: auto; }
.foot__nav, .foot__legal-links { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-self: end; }
.foot__nav a, .foot__legal-links a { color: rgba(255, 255, 255, 0.72); font-size: 14px; text-decoration: none; }
.foot__nav a:hover, .foot__legal-links a:hover { color: #fff; }
.foot__legal { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.foot__legal-links a { font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  .pillars::-webkit-scrollbar { display: none; }
  .faq__grid, .book__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__head { position: static; }
  .book__copy { position: static; }
}
@media (max-width: 760px) {
  [id] { scroll-margin-top: 64px; }
  .product__foot { flex-direction: column; align-items: flex-start; }
  .stage { width: auto; margin-inline: 12px; padding: 14px; border-radius: 22px; }
  .sched__fields { grid-template-columns: 1fr; }
  .sched { padding: 20px 16px; }
  .sched__days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .sched__day { padding: 8px 0; border-radius: 10px; }
  .sched__day b { font-size: 15px; }
  .sched__slots { grid-template-columns: repeat(3, 1fr); }
  .faq__list summary { font-size: 16.5px; padding: 20px 40px 20px 0; }
  .faq__list details p { padding-right: 0; font-size: 15px; }
  .foot__in { grid-template-columns: 1fr; }
  .foot__nav, .foot__legal-links { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .pillars i::after { animation: none !important; }
  .pillars button[aria-selected="true"] i::after { transform: scaleX(1); }
}
