/* ---- Module pages: page hero in the module's colour, what you get, fit and trial, other modules ----
   The closing block comes from start.css, the header, fields, notifications and footer from base.css. */

/* The website page has no time of day: it stays on the ground colour */
.field-ground { background: var(--ground); color: var(--ink); --field-2: var(--ink-2); --card-glow: rgba(15,42,48,.45); }
.field-ground .header .logo { color: var(--teal); }
.mhero.field-ground .mhero-text { padding-top: 36px; } /* no colour block to frame the title: more room under the header */

/* ---- Page hero ---- */
.mhero { border-radius: 0 0 22px 22px; padding-bottom: 16px; }
.mhero-text { padding: 20px 16px 36px; }
.mhero-text h1 { margin-bottom: 12px; }
.mhero .lead { color: var(--field-2); }
.mhero-price { margin: 16px 0 22px; font-size: 15px; line-height: 1.5; color: var(--field-2); }
/* One yellow action per screen; on the yellow field the action turns ink so it still reads as the one action */
.field-sunny .btn-primary { background: var(--ink); color: #fff; }
.field-sunny .btn-primary:hover { background: var(--teal-deep); }
.mhero .shot { margin-bottom: 0; }
.notif-top .notif { top: 10px; bottom: auto; }
.mhero .assure { color: var(--field-2); }

/* The website page's visual: three client websites (with permission; see src/data/client-sites.ts) */
.msites { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.msites::-webkit-scrollbar { display: none; }
.msite { flex: 0 0 150px; scroll-snap-align: start; display: grid; gap: 8px; text-decoration: none; }
.msite-frame {
  display: block; aspect-ratio: 160 / 310; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 16px 36px -18px rgba(15,42,48,.45), 0 1px 2px rgba(15,42,48,.08), inset 0 0 0 1px rgba(15,42,48,.1);
}
.msite-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.msite-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.005em; line-height: 1.3; }
.msite-city { display: block; font-family: var(--font-text); font-size: 13px; font-weight: 400; color: var(--ink-3); }

/* ---- What you get ---- */
.mfeatures { padding: 72px 16px 24px; }
.mfeatures h2 { margin-bottom: 20px; }
.mfeature-list { list-style: none; padding: 0; display: grid; }
.mfeature-list li { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.mfeature-list h3 { margin-bottom: 6px; }
.mfeature-list p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* ---- Key points: a moment in the restaurant (photo) with the product redrawn on it (vignette) ----
   The card overlaps the lower part of the photo and runs past it, so both read: the place, and what OKO does there. */
.kps { padding: 72px 0 8px; }
.kp { padding: 0 16px; margin-bottom: 88px; }
.kp h2 { margin-bottom: 12px; }
.kp-text p { color: var(--ink-2); text-wrap: pretty; }
.kp-visual { margin-top: 24px; }
.kp-photo { height: 260px; border-radius: 18px; overflow: hidden; background: var(--line); }
.kp-photo img { width: 100%; height: 100%; object-fit: cover; }
.kp-card { position: relative; width: min(340px, calc(100% - 28px)); margin: -120px auto 0; }
.kp-nophoto { padding: 28px 20px; border-radius: 18px; background: color-mix(in srgb, var(--vg-accent) 10%, var(--ground)); }
.kp-nophoto .kp-card { margin-top: 0; }

/* ---- Everything in the module: every live feature, grouped ---- */
.mall { padding: 24px 16px 40px; }
.mall-head { margin-bottom: 28px; }
.mall-head h2 { margin-bottom: 12px; }
.mall-head p { color: var(--ink-2); }
.mall-group { padding-top: 16px; border-top: 1px solid var(--line); margin-bottom: 28px; break-inside: avoid; }
.mall-group summary { list-style: none; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; cursor: pointer; }
.mall-group summary::-webkit-details-marker { display: none; }
.mall-group summary h3 { margin: 0; }
.mall-count { font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 1px 8px; border-radius: 99px; background: var(--line); }
.mall-group summary svg { margin-left: auto; width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .32s cubic-bezier(.25, .1, .3, 1); }
.mall-group[open] summary svg { transform: rotate(180deg); }
.mall-group:not([open]) { margin-bottom: 0; padding-bottom: 4px; }
.mall-group:not([open]) summary { margin-bottom: 12px; }
.mall-group ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.mall-group li { font-size: 15px; line-height: 1.45; }
.mall-group li b { display: block; font-weight: 600; }
.mall-group li span { display: block; color: var(--ink-2); }

/* ---- How it fits, and the trial ---- */
.mfit { padding: 40px 16px 72px; display: grid; gap: 48px; }
.mfit h2, .mextra h2 { font-size: 28px; margin-bottom: 14px; }
.mfit-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.mfit-list li, .mfit p, .mextra p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.mfit-list b { color: var(--ink); font-weight: 600; }
.mextra { margin: 0 16px 72px; padding: 24px 20px; border-radius: 18px; background: var(--teal-soft); }

/* ---- The other modules ---- */
.mmodules { padding: 56px 16px 72px; }
.mmodules h2 { font-family: var(--font-text); font-size: 17px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.mmodules ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

@media (min-width: 900px) {
  .mhero {
    margin: 12px 12px 0; border-radius: 22px; padding: 0 max(28px, calc((100% - var(--wrap)) / 2 - 12px)) 88px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "header header" "text shot";
    column-gap: 80px; align-items: center;
  }
  .mhero .header { grid-area: header; height: 96px; padding: 0; }
  .mhero .header .logo .mark { width: 92px; }
  .mhero .header .nav-inline { margin-left: auto; }
  .mhero .header-actions { display: none; }
  .mhero-text { grid-area: text; padding: 0; }
  .mhero-text h1 { margin-bottom: 20px; }
  .mhero .lead { font-size: 21px; line-height: 1.43; max-width: 30em; }
  .mhero-price { margin: 22px 0 32px; max-width: 34em; }
  .mhero .shot { grid-area: shot; margin: 0; }
  .mhero .shot .photo { height: 480px; }
  .notif-top .notif { top: 18px; }
  .mhero.field-ground { align-items: start; }
  .mhero.field-ground .mhero-text, .mhero.field-ground .msites { margin-top: 80px; }
  .mhero.field-ground .mhero-text { padding-top: 0; }
  .msites { grid-area: shot; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; overflow: visible; padding: 0; }

  .mfeatures, .mfit, .mmodules, .kps, .mall { width: min(var(--wrap), calc(100% - 80px)); margin-inline: auto; }
  .kps { padding: 136px 0 24px; }
  .kp { padding: 0; margin-bottom: 136px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 88px; align-items: center; }
  .kp-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .kp-flip .kp-text { order: 2; }
  .kp-text p { font-size: 19px; line-height: 1.47; max-width: 30em; }
  .kp-visual { margin: 0; }
  .kp-photo { height: 400px; }
  .kp-card { width: 360px; margin-top: -150px; }
  .kp-nophoto { padding: 56px 40px; }
  .mall { padding: 40px 0 72px; }
  .mall-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 80px; align-items: end; margin-bottom: 40px; }
  .mall-head h2 { margin: 0; }
  .mall-head p { font-size: 19px; }
  .mall-groups { columns: 3; column-gap: 48px; }
  .mall-group summary { pointer-events: none; }
  .mall-count, .mall-group summary svg { display: none; }
  .mfeatures { padding: 128px 0 40px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 80px; align-items: start; }
  .mfeatures h2 { margin: 0; }
  .mfeature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .mfit { padding: 64px 0 120px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 80px; }
  .mfit h2, .mextra h2 { font-size: 34px; }
  .mextra { width: min(var(--wrap), calc(100% - 80px)); margin: 0 auto 120px; padding: 40px 48px; }
  .mmodules { padding: 72px 0 96px; }
}
