/* ==========================================================================
   NotifyGrid marketing site — shared design system (2026-10 redesign)
   One source of truth for index.html, large-lists.html, why-notifygrid.html.
   Token names (--paper, --ink, --brand, --font-*) are kept from the previous
   page because the generated industries footer fragment relies on them.
   Rules: Host Grotesk only; headline weight 600; one accent; one dark band.
   ========================================================================== */

:root {
  --brand: #44aafb;
  --brand-deep: #1E7FD4;
  --brand-dark: #0B4A85;
  --brand-soft: #D6EDFE;
  --brand-cream: #F0F8FF;

  --ink: #0A0E1A;
  --ink-2: #161B2E;
  --ink-60: rgba(10, 14, 26, 0.64);
  --ink-45: rgba(10, 14, 26, 0.46);
  --paper: #FBFAF6;        /* warm off-white page surface */
  --paper-2: #F3F1EA;      /* soft tile surface */
  --paper-3: #FFFFFF;      /* product frames, cards that must read as "screen" */
  --cream: #F3F1EA;
  --line: rgba(10, 14, 26, 0.10);
  --line-strong: rgba(10, 14, 26, 0.5);
  --accent: #FFD447;
  --ok: #1B8A4C;

  --font-display: "Host Grotesk", system-ui, -apple-system, sans-serif;
  --font-serif: "Host Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Host Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --gutter: 24px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 18px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
[hidden] { display: none !important; }
strong { font-weight: 600; }
::selection { background: var(--brand-soft); }

/* ---------- type scale ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; letter-spacing: -0.015em; }
h4 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-60); max-width: 640px; }
.muted { color: var(--ink-60); }
.small { font-size: 15px; line-height: 1.5; }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0; }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 14px; }
.section-head .lede { margin: 0; }
.center { text-align: center; }
.center .section-head, .center .lede { margin-left: auto; margin-right: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-deep); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--paper-2); }
.btn-quiet { background: var(--paper-2); color: var(--ink); }
.btn-quiet:hover { background: #ebe8df; }
.btn-sm { padding: 10px 16px; font-size: 15px; border-radius: 10px; }
.btn-lg { padding: 17px 28px; font-size: 17px; }
.link { color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { color: var(--brand-deep); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: 72px; display: flex; align-items: center; gap: 28px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.logo-mark { width: 32px; height: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 15.5px; font-weight: 500; color: var(--ink-60); padding: 6px 0; }
.nav a:hover, .nav a.active { color: var(--ink); }
.topbar .cta-row { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- product frames (static renders of the real app) ---------- */
.frame {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(10,14,26,.04), 0 24px 60px -30px rgba(10,14,26,.22);
  overflow: hidden;
}
.frame-bar {
  height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px;
  border-bottom: 1px solid var(--line); background: #fff;
}
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #E4E2DB; display: block; }
.frame-bar .url {
  margin-left: 12px; flex: 1; max-width: 360px; height: 26px; border-radius: 8px;
  background: var(--paper-2); font-family: var(--font-mono); font-size: 12px; color: var(--ink-45);
  display: flex; align-items: center; padding: 0 12px;
}
.app { display: grid; grid-template-columns: 220px 1fr; min-height: 520px; }
.app-side { border-right: 1px solid var(--line); padding: 18px 14px; background: #fff; }
.app-side .org { font-weight: 600; font-size: 14px; padding: 8px 10px 16px; }
.app-side a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14.5px; color: var(--ink-60); }
.app-side a.on { background: var(--brand-cream); color: var(--brand-dark); font-weight: 600; }
.app-side a svg { width: 16px; height: 16px; }
.app-main { padding: 26px 28px; background: #FCFCFB; }
.app-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.app-title h4 { font-size: 20px; font-weight: 600; }
.app-title span { font-size: 13px; color: var(--ink-45); }
.field { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px 14px; font-size: 14.5px; }
.field label { display: block; font-size: 12px; color: var(--ink-45); margin-bottom: 6px; }
.field .value { color: var(--ink); line-height: 1.5; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--paper-2); font-size: 12.5px; color: var(--ink-60); }
.pill.ok { background: #E6F4EC; color: var(--ok); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kv .field .value { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.app-footer-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; font-size: 14px; }
.table .tr { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); }
.table .tr:first-child { border-top: 0; color: var(--ink-45); font-size: 12.5px; }
.table .tr span:last-child { text-align: right; }

/* ---------- message renders ---------- */
.thread { display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.bubble { padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; max-width: 86%; }
.bubble.in { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.out { background: var(--brand-deep); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.bubble .meta { display: block; font-size: 11.5px; color: var(--ink-45); margin-top: 4px; }
.email {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 420px; font-size: 14.5px;
}
.email .hd { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.email .hd b { font-weight: 600; }
.email .hd span { color: var(--ink-45); font-size: 13px; }
.email .bd { padding: 16px; line-height: 1.5; }

/* ---------- tiles / cards ---------- */
.tile {
  background: var(--paper-2); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 14px;
}
.tile h3 { margin-top: 4px; }
.tile p { color: var(--ink-60); }
.tile .art { margin-top: auto; padding-top: 18px; }
.card { background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.feature-list li { display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.feature-list h4 { font-weight: 600; }
.feature-list p { color: var(--ink-60); font-size: 16.5px; }

/* ---------- proof ---------- */
.proof { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.proof img { border-radius: var(--radius-lg); width: 100%; height: auto; }
.proof blockquote { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.32; font-weight: 500; letter-spacing: -0.015em; }
.proof figcaption { margin-top: 20px; color: var(--ink-60); font-size: 16px; }
.proof figcaption b { color: var(--ink); font-weight: 600; display: block; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border-color: var(--ink); }
.plan.custom { background: var(--paper-2); border-color: transparent; }
.plan .name { font-weight: 600; font-size: 18px; }
.plan .desc { color: var(--ink-60); font-size: 15.5px; min-height: 48px; }
.plan .price { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-top: 6px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--ink-60); letter-spacing: 0; margin-left: 4px; }
.plan .per { color: var(--ink-60); font-size: 14.5px; }
.plan ul { display: grid; gap: 8px; margin: 14px 0 20px; font-size: 15.5px; }
.plan ul li { padding-left: 22px; position: relative; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--brand-deep); border-bottom: 2px solid var(--brand-deep); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; width: 100%; }
.plans-note { margin-top: 20px; color: var(--ink-60); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; color: var(--ink-45); transition: transform .2s; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 24px; color: var(--ink-60); max-width: 700px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 4px var(--brand-soft); }
.form textarea { min-height: 120px; resize: vertical; }
.form .choices { display: flex; gap: 10px; flex-wrap: wrap; }
.form .choice { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 500; font-size: 15px; cursor: pointer; background: #fff; }
.form .choice:has(input:checked) { border-color: var(--brand-deep); background: var(--brand-cream); }
.form .choice input { accent-color: var(--brand-deep); }
.form .fine { font-size: 14px; color: var(--ink-45); }

/* ---------- dark closing band ---------- */
.band-dark { background: var(--ink); color: #fff; padding: clamp(80px, 10vw, 140px) 0; text-align: center; }
.band-dark h2 { color: #fff; }
.band-dark .lede { color: rgba(255,255,255,.7); margin: 18px auto 32px; }
.band-dark .btn-secondary { color: #fff; border-color: rgba(255,255,255,.35); }
.band-dark .btn-secondary:hover { background: rgba(255,255,255,.08); }

/* ---------- footer ---------- */
footer { background: var(--ink); color: var(--paper); padding: 64px var(--gutter) 32px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-col h5 { font-size: 13px; font-weight: 600; letter-spacing: .02em; opacity: .55; margin-bottom: 14px; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 15px; opacity: .85; }
.footer-col a:hover { opacity: 1; color: var(--brand); }
.footer-brand .tagline { font-size: 17px; margin-top: 14px; max-width: 340px; opacity: .75; }
.footer-bottom { max-width: var(--container); margin: 28px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; opacity: .6; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .appstore-badge img { height: 40px; width: auto; }

/* ---------- motion (one quiet page load) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(10px); animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .26s; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 72px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 18px; gap: 4px; }
  .nav.open a { padding: 10px 0; font-size: 17px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .topbar .cta-row .btn-secondary { display: none; }
  .grid-2, .grid-3, .grid-4, .plans, .feature-list, .proof, .form .two { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr 1fr; }
  .table .tr { grid-template-columns: 2fr 1fr 1fr; }
  .table .tr span:nth-child(3) { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .btn { white-space: normal; }
  h1 { font-size: 36px; }
}
