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

body.layout-marketing { background: var(--surface); }

/* ---- Header -------------------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(28, 27, 67, 0.4); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-3); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; min-height: var(--touch); border-radius: 12px; }
.brand img { width: auto; height: 36px; }
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav__list { display: flex; gap: clamp(var(--s-2), 3vw, var(--s-6)); 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-app);
  text-decoration: none;
}
.site-nav__link:hover { color: var(--brand-ink); }
.site-nav__link[aria-current="page"] { color: var(--brand-ink); font-weight: var(--fw-medium); }
.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__menu-btn { display: none; }

@media (max-width: 1023.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;
}
.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-heading); font-weight: var(--fw-medium); 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: clamp(2rem, 1.3rem + 2.6vw, 3rem); line-height: var(--lh-tight); font-weight: var(--fw-medium); color: var(--heading); max-width: 22ch; }
.page-hero__lead { margin-top: var(--s-2); max-width: 60ch; }

/* ---- Hero (landing) — live HTML headline over the text-free artwork ------------------------------ */
.hero { padding: var(--s-1) var(--s-2) 0; }
.hero__frame {
  position: relative;
  max-width: calc(var(--max-width) + 2 * var(--s-6));
  margin-inline: auto;
  border-radius: var(--radius-card);
  background: #f7f3fe;
  overflow: hidden;
  isolation: isolate;
}
.hero__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 12% 20%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(40% 60% at 70% 90%, rgba(114, 34, 255, 0.07), transparent 70%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  min-height: clamp(520px, 44vw, 620px);
  padding-inline: clamp(var(--s-3), 4vw, var(--s-6));
}
.hero__content { position: relative; z-index: 1; padding-block: var(--s-8); max-width: 540px; }
.hero__title {
  margin-top: var(--s-3);
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  font-weight: var(--fw-medium);
  color: var(--ink);
  letter-spacing: -0.005em;
}
.hero__title em { font-style: normal; color: var(--brand); }
.hero__lead { margin-top: var(--s-3); max-width: 44ch; color: var(--muted-strong); font-size: var(--fs-md); line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.hero__actions .btn--secondary { border-color: transparent; box-shadow: var(--shadow-xs); }
.hero__note { margin-top: var(--s-2); color: var(--muted); font-size: var(--fs-sm); }
.hero__art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(78%, 1100px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.hero__art img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%), linear-gradient(0deg, transparent 0, #000 12%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 18%), linear-gradient(0deg, transparent 0, #000 12%, #000 94%, transparent);
  mask-composite: intersect;
}
@media (max-width: 1023.98px) {
  .hero { padding: 0; }
  .hero__frame { border-radius: 0; }
  .hero__inner { display: block; min-height: 0; padding: 0; }
  .hero__content { max-width: none; padding: var(--s-5) var(--gutter) var(--s-2); }
  .hero__art { position: static; width: 100%; display: block; }
  .hero__art { overflow: hidden; }
  /* the artwork's left ~40% is empty lavender: shift it so the document + pen + check sit centred and
     larger; only empty background is trimmed, never the signing object */
  .hero__art img { -webkit-mask-image: none; mask-image: none; width: 136%; max-width: none; margin-inline-start: -34%; }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .hero__art img { width: 118%; margin-inline-start: -22%; }
}
@media (max-width: 479.98px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__lead { font-size: var(--fs-body); }
}

/* Page-load reveal (one orchestrated moment; disabled for reduced motion via tokens) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: mk-rise var(--dur-page) var(--ease-out) both; }
  .reveal-2 { animation-delay: 80ms; }
  .reveal-3 { animation-delay: 160ms; }
  .reveal-4 { animation-delay: 240ms; }
  .reveal-5 { animation-delay: 320ms; }
  .hero__art img { animation: mk-float-in 900ms var(--ease-out) 120ms both; }
}
@keyframes mk-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes mk-float-in { from { opacity: 0; transform: translateX(24px) scale(0.985); } }

/* ---- 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-md); font-weight: var(--fw-medium); }
.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-lg); font-weight: var(--fw-medium); }
.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-medium); }
.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.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.3; font-weight: var(--fw-medium); }
.cta-band__text { margin-top: var(--s-1); color: #cfcde3; }
.cta-band .btn--success { 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: 32ch; color: var(--muted); font-size: var(--fs-sm); }
.site-footer__title { color: var(--heading); font-size: var(--fs-sm); 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: 36px;
  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;
}
