/* Marketing layout (moacere.ge): header, mobile menu, hero, sections, CTA band, footer.
   Author: Smarketer. */

body.layout-marketing { background: var(--surface); }
/* Brief §3: marketing body 16px on phones → 17–18px / 1.65 on desktop (fluid token; cascades to every
   consumer of --fs-body / --lh-body inside the marketing layout). Prose measure 60–70ch. */
body.layout-marketing { --fs-body: var(--fs-body-marketing); --lh-body: var(--lh-body-marketing); }
.layout-marketing .section-sub, .layout-marketing .page-hero__lead, .layout-marketing .lead { max-width: var(--measure); }

/* ---- Header -------------------------------------------------------------------------------------- */
/* Brief §2.1: 72–80px sticky header; solid at the top of the page, light translucent (blurred) once the
   page has scrolled (.is-scrolled from the ds sticky-header module). */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-slow) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -18px rgba(28, 27, 67, 0.4);
}
/* nothing off-canvas (closed drawer, hero layers) can ever widen the page or paint outside it */
body.layout-marketing { overflow-x: clip; }
.site-header__inner { display: flex; align-items: center; gap: var(--s-2-5); min-height: var(--header-h); }
/* R3.2: five menu items in BPG LE Studio (capital-style letterforms, ~0.78 em per Mkhedruli letter) need the
   brief's wider 1320px frame in the header only; the content column stays at --max-width. */
.site-header .container { max-width: calc(1320px + 2 * var(--gutter)); }
.brand { display: inline-flex; align-items: center; flex: none; min-height: var(--touch); border-radius: 12px; }
.brand img { width: auto; height: 34px; }
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav__list { display: flex; gap: clamp(var(--s-2), 1.8vw, var(--s-4)); list-style: none; padding: 0; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav__link:hover { color: var(--brand-ink); }
.site-nav__link[aria-current="page"] { color: var(--brand-ink); }
.site-nav__link[aria-current="page"]::after { content: ""; position: absolute; inset: auto 0 6px; height: 2px; border-radius: 2px; background: var(--brand); }
.site-header__actions { display: flex; align-items: center; gap: var(--s-1); flex: none; }
.site-header__login { padding-inline: 14px; }
.site-header__actions .btn { font-size: var(--fs-sm); }
.site-header__menu-btn { display: none; }

@media (max-width: 1279.98px) {
  .site-nav, .site-header__login { display: none; }
  .site-header__actions { margin-inline-start: auto; }
  .site-header__menu-btn { display: inline-flex; }
}
@media (max-width: 479.98px) {
  .site-header__cta { display: none; }
  .brand img { height: 32px; }
}

/* ---- Mobile menu (drawer) ------------------------------------------------------------------------ */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: flex;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden; /* the closed panel sits at translateX(100%): clip it so it never widens the page */
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(360px, 88vw);
  height: 100%;
  margin-inline-start: auto;
  padding: var(--s-2) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
}
.drawer--start .drawer__panel { margin-inline-start: 0; margin-inline-end: auto; transform: translateX(-100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: var(--s-2); }
.mobile-nav { display: grid; gap: 2px; list-style: none; padding: 0; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 var(--s-2);
  border-radius: var(--radius-input);
  color: var(--heading);
  font-size: var(--fs-md);
  text-decoration: none;
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--lavender); color: var(--brand-ink); }
.drawer__footer { display: grid; gap: var(--s-1-5); margin-top: auto; padding-top: var(--s-3); }

/* ---- Sections ------------------------------------------------------------------------------------ */
.section { padding-block: clamp(var(--s-6), 7vw, var(--s-12)); }
.section--tight { padding-block: clamp(var(--s-4), 5vw, var(--s-8)); }
.section--lavender { background: var(--lavender); }
.section + .section:not(.section--lavender) { padding-top: 0; }
.section-title { font-size: var(--fs-section); line-height: var(--lh-caps); font-weight: var(--fw-heading); color: var(--heading); }
.section-sub { margin-top: var(--s-1); color: var(--muted); font-size: var(--fs-body); }
.page-hero { padding-block: clamp(var(--s-6), 8vw, var(--s-10)) clamp(var(--s-4), 5vw, var(--s-8)); background: linear-gradient(180deg, var(--lavender), #fff); }
.page-hero__title { font-size: var(--fs-page-hero); line-height: var(--lh-caps); font-weight: var(--fw-heading); color: var(--heading); max-width: 15em; }
.page-hero__lead { margin-top: var(--s-2); max-width: 37.5em; }

/* The landing hero (Revision 3) lives in apps/marketing/static/marketing/site.css (.mk-hero*). */

/* ---- Steps ---------------------------------------------------------------------------------------- */
.steps { display: grid; gap: var(--s-2-5); grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; list-style: none; padding: 0; }
.step {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--s-1-5);
  border-radius: 12px;
  background: var(--lavender);
  color: var(--brand-ink);
  font-weight: var(--fw-medium);
}
.step__title { color: var(--heading); font-size: var(--fs-lg); line-height: var(--lh-title); font-weight: var(--fw-title); }
.step__text { color: var(--muted); font-size: var(--fs-app); }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: calc(-1 * var(--s-2-5) + 2px);
  width: calc(var(--s-2-5) - 4px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-300) 0 4px, transparent 4px 8px);
}
@media (max-width: 767.98px) {
  .steps { grid-template-columns: 1fr; gap: var(--s-1-5); }
  .step:not(:last-child)::after { display: none; }
}

/* ---- Feature cards ----------------------------------------------------------------------------- */
.features { display: grid; gap: var(--s-2-5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023.98px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .features { grid-template-columns: 1fr; } }
.feature {
  display: grid;
  gap: var(--s-1);
  align-content: start;
  padding: var(--s-3);
  border-radius: var(--radius-card);
  background: var(--lavender);
  transition: background-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.feature:hover { background: var(--brand-100); }
.feature .icon-tile { margin-bottom: var(--s-1-5); }
.feature__title { color: var(--heading); font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--fw-title); }
.feature__text { color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; }

/* ---- Use-case cards ----------------------------------------------------------------------------- */
.usecases { display: grid; gap: var(--s-2); grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1099.98px) { .usecases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .usecases { grid-template-columns: 1fr 1fr; } }
.usecase {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-2-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease-out);
}
.usecase:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.usecase__title { color: var(--heading); font-weight: var(--fw-title); line-height: var(--lh-title); }
.usecase__text { color: var(--muted); font-size: var(--fs-xs); }

/* ---- Product demo frame ------------------------------------------------------------------------ */
.demo-frame {
  position: relative;
  padding: var(--s-2);
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, var(--brand-100), var(--lavender) 40%, #fff);
  border: 1px solid var(--border);
}
.demo-frame__label {
  position: absolute;
  top: var(--s-2);
  inset-inline-end: var(--s-2);
  z-index: 2;
}

.demo-field {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1.5px solid var(--r1-border);
  border-radius: 10px;
  background: var(--r1-bg);
  color: var(--r1-ink);
}
.demo-field__title { display: flex; align-items: center; gap: 8px; font-weight: var(--fw-medium); }
.demo-field__title .icon-tile--solid { width: 26px; height: 26px; border-radius: 7px; }
.demo-field__meta { font-size: var(--fs-xs); }
.demo-field--r2 { border-color: var(--r2-border); background: var(--r2-bg); color: var(--r2-ink); }

/* ---- Closing CTA band (dark) ------------------------------------------------------------------ */
.cta-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: clamp(var(--s-4), 5vw, var(--s-7)) clamp(var(--s-3), 5vw, var(--s-6));
  border-radius: var(--radius-card);
  background: var(--surface-dark);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 34, 255, 0.45), transparent 65%);
}
.cta-band__title { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: var(--lh-caps); font-weight: var(--fw-heading); }
.cta-band__text { margin-top: var(--s-1); color: #cfcde3; }
.cta-band .btn { min-width: 200px; }
@media (max-width: 639.98px) { .cta-band { border-radius: var(--radius-lg); } .cta-band .btn { width: 100%; } }

/* ---- Footer ---------------------------------------------------------------------------------------- */
.site-footer { padding-block: var(--s-8) var(--s-4); border-top: 1px solid var(--border); background: var(--surface); }
.site-footer__grid { display: grid; gap: var(--s-4); grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023.98px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
.site-footer__brand p { margin-top: var(--s-2); max-width: 20em; color: var(--muted); font-size: var(--fs-sm); }
.site-footer__title { color: var(--heading); font-size: var(--fs-xs); font-weight: var(--fw-semibold); margin-bottom: var(--s-1); }
.site-footer__list { display: grid; list-style: none; padding: 0; }
.site-footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--muted-strong);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.site-footer__list a:hover { color: var(--brand-ink); text-decoration: underline; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-1-5);
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--fs-xs);
}
.site-footer__bottom a { color: inherit; }
.draft-banner {
  padding: 10px var(--gutter);
  background: var(--warning-bg);
  color: var(--warning-ink);
  font-size: var(--fs-sm);
  text-align: center;
}
