/* MEMOR — landing page styles */

:root {
  --ink:            #0d1b2a;
  --ink-soft:       #3d4f63;
  --muted:          #66788c;
  --line:           #e2e8f0;
  --bg:             #ffffff;
  --bg-alt:         #f6f8fb;
  --brand:          #0f5ef7;
  --brand-dark:     #0a3fb0;
  --brand-tint:     #e8f0ff;
  --accent:         #00b884;
  --accent-tint:    #e2f8f1;
  --warn-tint:      #fff4e0;
  --radius:         14px;
  --shadow:         0 1px 2px rgba(13, 27, 42, .06), 0 8px 24px rgba(13, 27, 42, .06);
  --shadow-lg:      0 24px 60px rgba(13, 27, 42, .12);
  --wrap:           1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 32px;
  height: 68px; position: relative;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: .14em; font-size: .95rem;
  color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #6f4ff5);
  color: #fff; display: grid; place-items: center;
  font-size: .9rem; letter-spacing: 0;
}
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--ink-soft); font-size: .92rem; font-weight: 550;
}
.nav a:hover { color: var(--brand); text-decoration: none; }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-weight: 650; font-size: .95rem; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(15, 94, 247, .28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 14px 30px; font-size: 1rem; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% -12%, #dfe9ff 0%, rgba(255,255,255,0) 62%),
    radial-gradient(700px 380px at 8% 8%, #e6fbf4 0%, rgba(255,255,255,0) 60%);
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-tint); color: var(--brand-dark);
  padding: 6px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 650; letter-spacing: .02em;
  margin-bottom: 20px;
}
.hero .lede { font-size: 1.15rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: .87rem; color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Hero panel — module map */
.hero-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 24px;
}
.hero-panel h4 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin-bottom: 16px;
}
.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 13px; font-size: .89rem; font-weight: 600;
  color: var(--ink); background: var(--bg-alt);
  text-decoration: none;
}
.chip:hover { border-color: var(--brand); text-decoration: none; }
.chip .n {
  width: 22px; height: 22px; flex: none; border-radius: 7px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}

/* ---------- Sections ---------- */

section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}
.section-head p { font-size: 1.05rem; margin-bottom: 0; }

/* ---------- Audience cards ---------- */

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card .icon {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 1.15rem;
  background: var(--brand-tint);
}
.card p:last-child { margin-bottom: 0; }

/* ---------- Modules ---------- */

.module { border-top: 1px solid var(--line); padding: 56px 0; }
.module:first-of-type { border-top: 0; padding-top: 0; }
.module-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.module-num {
  font-size: .72rem; font-weight: 800; letter-spacing: .16em;
  color: var(--brand); text-transform: uppercase;
  background: var(--brand-tint); padding: 5px 11px; border-radius: 999px;
  flex: none;
}
.module-head h3 { font-size: 1.6rem; font-weight: 750; margin: 0; }
.module-lede { max-width: 66ch; margin-bottom: 26px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--warn-tint); border: 1px solid #f0dcb4;
  border-radius: 10px; padding: 12px 16px; margin-bottom: 26px;
  font-size: .9rem; color: #6b4d12; max-width: 70ch;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid.two { grid-template-columns: repeat(2, 1fr); }
.feature {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.feature:hover { border-color: #c9d8f5; transform: translateY(-2px); box-shadow: var(--shadow); }
.feature h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: .93rem; margin: 0; }

.pay-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pay-strip span {
  background: var(--accent-tint); color: #06614a;
  border: 1px solid #b9ecdc; border-radius: 999px;
  padding: 7px 16px; font-size: .87rem; font-weight: 650;
}

/* ---------- Notifications ---------- */

.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 34px; }
.notif-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.notif {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.notif .bell {
  width: 32px; height: 32px; flex: none; border-radius: 9px;
  background: var(--brand-tint); display: grid; place-items: center; font-size: .9rem;
}
.notif strong { display: block; font-size: .95rem; }
.notif small { color: var(--muted); font-size: .85rem; }

/* ---------- Promise ---------- */

.promise {
  background: linear-gradient(135deg, #0d1b2a, #14315c);
  color: #fff; border-radius: 20px; padding: 40px;
}
.promise h3 { color: #fff; font-size: 1.4rem; }
.promise > p { color: #cddcf0; margin-bottom: 0; }
.promise ul {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px;
}
.promise li {
  display: flex; gap: 11px; align-items: flex-start;
  color: #cddcf0; font-size: .94rem;
}
.promise li::before { content: "\2713"; color: var(--accent); font-weight: 800; flex: none; }

/* ---------- Roles ---------- */

.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.role {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.role > header { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.role.is-admin { border-color: var(--brand); }
.role.is-admin > header { background: var(--brand-tint); }
.role h3 { margin: 0 0 4px; font-size: 1.15rem; }
.role .can { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.role ul { list-style: none; margin: 0; padding: 18px 22px 24px; }
.role li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: .9rem; color: var(--ink-soft); padding: 5px 0;
}
.role li::before { content: "\2713"; color: var(--accent); font-weight: 800; flex: none; }
.role li.inherit { font-weight: 650; color: var(--ink); }
.roles-note { text-align: center; margin-top: 26px; font-size: .9rem; color: var(--muted); }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { padding-top: 12px; }
.step .num {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand), #6f4ff5); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(15, 94, 247, .25);
}
.step h4 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .9rem; margin: 0; }

/* ---------- CTA ---------- */

.cta {
  background: linear-gradient(135deg, var(--brand), #6f4ff5);
  color: #fff; text-align: center; padding: 78px 0;
}
.cta h2 { color: #fff; }
.cta p { color: #dfe7ff; font-size: 1.08rem; max-width: 52ch; margin-inline: auto; }
.cta .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.cta .btn-primary:hover { background: #f2f5ff; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #9fb1c6; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .tag { color: #7d92aa; font-size: .92rem; font-style: italic; }
.site-footer h5 {
  color: #fff; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase;
  margin: 0 0 14px; font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; font-size: .92rem; }
.site-footer a { color: #9fb1c6; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e3350; margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .86rem; color: #6f86a0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-3, .feature-grid, .feature-grid.two, .channels { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 60px 0; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px; box-shadow: var(--shadow);
  }
  .nav.open a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav.open .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .nav-toggle {
    display: block; margin-left: auto; background: #fff;
    border: 1px solid var(--line); border-radius: 9px;
    width: 40px; height: 38px; font-size: 1.05rem; cursor: pointer; color: var(--ink);
  }
  .cards-3, .feature-grid, .feature-grid.two, .channels,
  .notif-list, .roles, .steps, .footer-grid,
  .chip-grid, .promise ul { grid-template-columns: 1fr; }
  .promise { padding: 28px 24px; }
  .module-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}
