/* The landing page at the root. Its look and its words come from the horeca dashboard
   brochure (navy and blue on warm paper, Outfit, lowercase headings); the screens are
   the demo brasserie in the portal itself. */
:root {
  --navy: #1f3d4f;
  --navy-deep: #17303f;
  --navy-line: #35556a;
  --blue: #2f8fc4;
  --blue-soft: #6fb2da;
  --blue-pale: #d7e8f3;
  --paper: #fbfaf7;
  --ink: #1f3d4f;
  --muted: #5d6f7b;
  --line: #e4e7e8;
  --up: #3f8a3a;
  --down: #c2412f;
  --amber: #e2a64a;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

body.l2 {
  margin: 0;
  font-family: "Outfit", -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.l2 ::selection { background: var(--blue-pale); color: var(--navy); }

/* :where keeps these resets as light as a single class. */
.l2 :where(h1, h2, h3) { margin: 0; line-height: 1.15; font-weight: 600; text-wrap: balance; }
.l2 :where(p, ul, ol, figure) { margin: 0; }
.l2 :where(ul, ol) { padding: 0; list-style: none; }
.l2 a { color: inherit; }
.l2 a:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1.5rem; }

@media (max-width: 40rem) { .wrap { padding: 0 1rem; } }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.label { color: var(--blue); font-weight: 500; font-size: .95rem; margin-bottom: .5rem; }
.label-light { color: var(--blue-soft); }

.title { font-size: clamp(1.9rem, 3.8vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 2.25rem; }

/* --- buttons ------------------------------------------------------------ */

.btn { display: inline-block; font-weight: 500; font-size: 1rem; line-height: 1; padding: 1rem 1.5rem; border-radius: 8px; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.l2 .btn-primary { background: var(--blue); color: #fff; }
.l2 .btn-primary:hover { background: #2780b1; }
.l2 .btn-light { background: #fff; color: var(--navy); }
.l2 .btn-light:hover { background: #eef5fa; }
.l2 .btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .45); padding: .7rem 1.1rem; }
.l2 .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* --- top bar ------------------------------------------------------------ */

.bar { background: var(--navy); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.bar-logo img { display: block; height: 31px; width: auto; }
@media (max-width: 26rem) { .bar-logo img { height: 24px; } }

/* --- hero --------------------------------------------------------------- */

.hero { color: #fff; background: var(--navy); padding: 3rem 0 4rem; }

.hero-copy { max-width: 46rem; }

.hero h1 { font-weight: 800; font-size: clamp(2.8rem, 7.2vw, 5.6rem); line-height: .98; letter-spacing: -.03em; }

.hero-lead { font-size: 1.2rem; color: rgba(255, 255, 255, .82); margin-top: 1.5rem; max-width: 40rem; }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; margin-top: 2rem; }
.hero-cta p { color: rgba(255, 255, 255, .72); }

/* Sources, wires, window: three columns that become a stack on narrow screens. */
.flow {
  display: grid;
  grid-template-columns: 13.5rem 5rem minmax(0, 1fr);
  align-items: center;
  margin-top: 3.5rem;
}

/* Sources and wires share one fixed height, so the wires end on the middle of each
   source: 2.25rem, 9rem and 15.75rem down an 18rem column. */
.sources { display: grid; grid-template-rows: repeat(3, 4.5rem); align-content: space-between; height: 18rem; }

.sources li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  color: var(--blue-soft);
}

.sources span { display: grid; font-size: .85rem; line-height: 1.3; color: rgba(255, 255, 255, .65); }
.sources strong { font-weight: 600; font-size: 1rem; color: #fff; }

.wires { width: 100%; height: 18rem; overflow: visible; }

.wires path {
  fill: none;
  stroke: var(--blue-soft);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: draw 1s var(--ease-out) .2s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.window {
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10, 25, 35, .6), 0 0 0 1px rgba(255, 255, 255, .06);
}

.window-top { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: #f2f4f5; border-bottom: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #d3d9dc; }
.window-title { margin-left: .75rem; font-size: .82rem; color: var(--muted); }

.window img { display: block; width: 100%; height: auto; }

.flow figcaption { grid-column: 3; margin-top: .85rem; font-size: .8rem; color: rgba(255, 255, 255, .6); }
.flow figcaption span { color: var(--blue-soft); font-weight: 500; margin-right: .5rem; }

@media (max-width: 60rem) {
  .hero { padding-bottom: 3rem; }
  .flow { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .sources { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; height: auto; gap: .6rem; margin-bottom: 1.25rem; }
  .sources li { flex-direction: column; align-items: flex-start; gap: .4rem; padding: .7rem .75rem; }
  .sources span { font-size: .75rem; }
  .sources strong { font-size: .88rem; hyphens: manual; }
  .wires { display: none; }
  .flow figcaption { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .wires path { animation: none; stroke-dashoffset: 0; }
}

/* --- compare ------------------------------------------------------------ */

/* Keeping it in Excel beside the dashboard, row for row. */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 56rem; }
.compare-col { border-radius: 16px; padding: 1.75rem 2rem; }
.compare-old { border: 1px solid var(--line); }
.compare-new { background: #fff; box-shadow: inset 0 0 0 2px var(--navy), 0 10px 30px -24px rgba(31, 61, 79, .5); }
.compare h3 { font-size: 1.2rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.compare ul { list-style: none; }
.compare li { display: flex; gap: .65rem; align-items: flex-start; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.compare li:last-child { border-bottom: 0; padding-bottom: 0; }
.compare .icon { flex: none; width: 20px; height: 20px; margin-top: .15rem; }
.compare-old li { color: var(--muted); }
.compare-old .icon { color: var(--down); }
.compare-new .icon { color: var(--up); }
@media (max-width: 48rem) { .compare { grid-template-columns: 1fr; } .compare-col { padding: 1.5rem 1.25rem; } }

/* --- blocks ------------------------------------------------------------- */

.block { padding-top: 6rem; }
@media (max-width: 48rem) { .block { padding-top: 4rem; } }

/* The three problems, each beside the screen in the dashboard that answers it. */
.pains { display: grid; gap: 1.25rem; }

.pain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 2rem 3.5rem;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 10px 30px -24px rgba(31, 61, 79, .5);
}

/* Every other screen on the left, so the column of text zigzags down the page. */
.pain:nth-child(even) .shot { order: -1; }

.pain-no { display: block; font-weight: 800; font-size: 2.25rem; line-height: 1; color: var(--blue); margin-bottom: 1rem; }
.pain-label { font-size: .85rem; font-weight: 500; color: var(--blue); margin-bottom: .2rem; }
.pain h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.pain-q { color: var(--muted); margin-bottom: 1.25rem; }
.pain-text p + p:not(.pain-label) { margin-top: .4rem; }
.pain .key { font-weight: 500; }

/* A screen from the portal, on the portal's own warm grey. */
.shot { background: #f4f1ee; border-radius: 12px; padding: .75rem; box-shadow: inset 0 0 0 1px #ebe6e1; }
.shot img { display: block; width: 100%; height: auto; border-radius: 6px; }
.shot figcaption { font-size: .82rem; color: var(--muted); padding: .6rem .25rem 0; }

/* Screens cut off mid-table fade out instead of stopping on a hard edge. */
.shot-fade img { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

@media (max-width: 56rem) {
  .pain { grid-template-columns: 1fr; padding: 1.5rem; }
  .pain:nth-child(even) .shot { order: 0; }
}

@media (max-width: 30rem) {
  .pain { padding: 1.25rem 1rem; }
  .shot { padding: .5rem; }
}

/* The six pages, each with a screen of the page itself. */
.pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pages li { background: #fff; border-radius: 14px; padding: .75rem .75rem 1.5rem; }
.thumb { display: block; width: 100%; height: auto; aspect-ratio: 1176 / 760; object-fit: cover; object-position: top left; border-radius: 8px; box-shadow: inset 0 0 0 1px #ebe6e1; margin-bottom: 1.1rem; }
.pages h3 { font-size: 1.15rem; margin-bottom: .3rem; padding: 0 .75rem; }
.pages p { color: var(--muted); padding: 0 .75rem; }
@media (max-width: 56rem) { .pages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .pages { grid-template-columns: 1fr; } }

/* Why: the photo of an adviser at the table, the reasons beside it. */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 3.5rem; align-items: start; }
.why-photo { grid-row: span 2; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; }
.why-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.why .title { margin-bottom: 1rem; }
.why-lead { font-size: 1.15rem; }
.reasons { display: grid; gap: 1.5rem; }
.reasons li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
.reasons .icon { grid-row: span 2; color: var(--blue); width: 28px; height: 28px; margin-top: .1rem; }
.reasons h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.reasons p { color: var(--muted); }

@media (max-width: 56rem) {
  .why { grid-template-columns: 1fr; }
  .why-photo { grid-row: auto; aspect-ratio: 16 / 10; }
}

/* --- statement ---------------------------------------------------------- */

.statement { background: var(--navy); color: #fff; margin-top: 6rem; padding: 4.5rem 0; }
.statement-main { font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; max-width: 22ch; }
.statement-sub { color: var(--blue-soft); margin-top: 1rem; font-size: 1.1rem; }

/* --- steps: a real sequence, joined by a line --------------------------- */

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.25rem; }
.steps li { position: relative; }
.step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--blue); color: #fff; margin-bottom: 1rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.75rem; left: 3.5rem; right: -1.5rem; border-top: 2px solid var(--blue-pale); }
.step-no { display: block; font-weight: 800; font-size: 1.1rem; color: var(--blue); }
.steps h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: .98rem; }

@media (max-width: 52rem) {
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .steps li { padding-left: 4.5rem; min-height: 3.5rem; }
  .step-dot { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li:not(:last-child)::after { top: 3.5rem; bottom: -1.25rem; left: 1.69rem; right: auto; border-top: 0; border-left: 2px solid var(--blue-pale); }
}

/* --- closing ------------------------------------------------------------ */

.closing { padding-top: 6rem; padding-bottom: 5rem; }
.closing-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; background: var(--blue); color: #fff; border-radius: 16px; padding: 2.5rem 2.75rem; }
.closing-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: .4rem; }
.closing-band p { color: rgba(255, 255, 255, .9); }
@media (max-width: 40rem) { .closing-band { padding: 1.75rem 1.25rem; } }

/* --- footer ------------------------------------------------------------- */

.foot { background: var(--navy); color: rgba(255, 255, 255, .72); font-size: .9rem; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-credit { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; font-size: .8rem; }
.foot-credit img { height: 14px; width: auto; opacity: .85; }
@media (max-width: 40rem) { .foot-credit { margin-left: 0; } }

/* --- the page screenshots, large ---------------------------------------- */

.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; }
.zoom .thumb { transition: transform .2s var(--ease-out), box-shadow .2s; }
.zoom:hover .thumb { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #ebe6e1, 0 12px 24px -16px rgba(31, 61, 79, .45); }
.zoom:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.viewer {
  width: min(92vw, 80rem);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--paper);
  overflow: visible;
}

.viewer::backdrop { background: rgba(14, 30, 40, .82); }

.viewer figure { margin: 0; padding: 1rem; }
.viewer img { display: block; width: 100%; height: auto; max-height: calc(92vh - 4.5rem); object-fit: contain; border-radius: 8px; }
.viewer figcaption { padding: .75rem .25rem 0; font-weight: 600; font-size: 1.05rem; }

.viewer-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45);
}
.viewer-btn:hover { background: #eef5fa; }
.viewer-btn:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }

.viewer-close { top: -1.1rem; right: -1.1rem; }
.viewer-prev, .viewer-next { top: 50%; transform: translateY(-50%); }
.viewer-prev { left: -1.4rem; }
.viewer-next { right: -1.4rem; }

/* On a phone the buttons move into a row under the picture, clear of the screen. */
@media (max-width: 40rem) {
  .viewer { width: 96vw; }
  .viewer figure { padding: .5rem .5rem 4rem; }
  .viewer-close { top: auto; right: auto; bottom: .6rem; left: 50%; transform: translateX(-50%); }
  .viewer-prev, .viewer-next { top: auto; bottom: .6rem; transform: none; }
  .viewer-prev { left: .75rem; }
  .viewer-next { right: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .zoom .thumb { transition: none; }
}
