/* IONotify static landing — local only, no CDN */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1a2b3c;
  --muted: #5a6b7d;
  --accent: #0d6e6e;
  --accent-hover: #0a5858;
  --border: #d8e0ea;
  --shadow: 0 2px 12px rgba(26, 43, 60, 0.06);
  --radius: 8px;
  --success: #1a7f4b;
  --warning: #b45309;
  --danger: #b42318;
  --info: #1d5aa8;
  --max: 1120px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.logo-link img {
  height: 32px;
  width: auto;
}

.nav-desktop {
  display: none;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-desktop a {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--accent);
  background: rgba(13, 110, 110, 0.08);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.5rem 0 1rem;
  border-top: 1px solid var(--border);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.65rem 0.5rem;
  text-decoration: none;
  color: var(--text);
  border-radius: 6px;
}

.nav-mobile a:hover {
  background: rgba(13, 110, 110, 0.08);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
  .nav-desktop {
    display: flex;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* Typography */
h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42rem;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem;
  }
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.hero-bullets li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

/* Hero visual */
.diagram-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  min-width: 0;
}

.hero-visual {
  padding: 1rem;
  background: var(--surface);
}

.hero-visual__header {
  margin-bottom: 0.9rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.hero-visual__header span,
.hero-visual__label {
  display: inline-flex;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual__header p {
  margin: 0.25rem 0 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.hero-visual__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  align-items: stretch;
}

.hero-visual__card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 0.85rem;
}

.hero-visual__card--gateway {
  border-color: #9ed0d0;
  background: #f2fbfa;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 110, 0.06);
}

.hero-visual__card strong {
  display: block;
  margin: 0.25rem 0 0.55rem;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.25;
}

.hero-visual__card ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
  padding: 0;
}

.hero-visual__card li {
  min-width: 0;
  padding: 0.34rem 0.5rem;
  border: 1px solid #e8edf3;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.hero-visual__card--gateway li {
  border-color: #c5e4e4;
  color: var(--accent);
}

.hero-visual__arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  transform: rotate(90deg);
}

.hero-visual__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.hero-visual__status span {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: lowercase;
}

@media (min-width: 760px) {
  .hero-visual__grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.12fr) auto minmax(0, 1fr);
    gap: 0.55rem;
  }

  .hero-visual__arrow {
    transform: none;
  }
}

@media (min-width: 900px) {
  .hero-visual {
    padding: 1.1rem;
  }

  .hero-visual__card {
    padding: 0.8rem;
  }

  .hero-visual__card li {
    font-size: 0.78rem;
  }
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  text-transform: none;
  line-height: 1.35;
  white-space: nowrap;
}

.badge-ok {
  background: #d4edda;
  color: var(--success);
}

.badge-webhook {
  background: #dbeafe;
  color: var(--info);
}

.badge-roadmap {
  background: #fef3c7;
  color: var(--warning);
}

.badge-soon {
  background: #f1f5f9;
  color: var(--muted);
}

/* Tabs */
.tabs {
  margin-top: 1rem;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.tab-btn {
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-btn[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.tab-panel ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

/* Row list (problem section) */
.row-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.row-list__item {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.row-list__item:last-child {
  border-bottom: none;
}

.row-list__label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.98rem;
}

.row-list__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .row-list__item {
    grid-template-columns: 11rem 1fr;
    gap: 1rem;
    align-items: start;
  }
}

/* Callout panels */
.callout {
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
}

.callout--accent {
  background: #f0f9f9;
  border-color: #b8d9d9;
}

.callout--soft {
  margin-top: 2rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.callout h2 {
  margin-top: 0;
}

.callout p {
  color: var(--muted);
}

.callout__lead {
  margin-bottom: 0;
  color: var(--text);
}

/* Feature rows */
.feature-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row::before {
  content: "";
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
  align-self: stretch;
}

.feature-row h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .feature-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .feature-row {
    border-bottom: 1px solid var(--border);
  }

  .feature-row:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .feature-row:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

/* Event types grid */
.event-types {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .event-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .event-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.event-type {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  border-left: 3px solid var(--accent);
}

.event-type h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}

.event-type p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Channel rows */
.channel-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.channel-row {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.channel-row__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
}

.channel-row__top h3 {
  margin: 0;
  font-size: 1rem;
}

.channel-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.note-strip {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: #f4f7fa;
  border: 1px dashed var(--border);
}

.note-strip h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.note-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Split blocks */
.split-block {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .split-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-block__item--wide {
    grid-column: 1 / -1;
  }
}

.split-block__item {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.split-block__item--wide {
  background: #f0f9f9;
  border-color: #b8d9d9;
}

.split-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.split-block__head h3 {
  margin: 0;
  font-size: 1rem;
}

.split-block__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Split layout (diagnostics) */
.split-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .split-layout--diag {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
  }
}

.metric-strip {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.metric-strip__item {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.metric-strip__label {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.metric-strip__desc {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Audience grid */
.audience-grid {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.audience-tile {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
}

.audience-tile h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.audience-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
}

.timeline--panel {
  margin: 0;
  padding: 1rem 1rem 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  border-left: 3px solid var(--accent);
}

.timeline li {
  position: relative;
  padding-bottom: 1rem;
  color: var(--muted);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline strong {
  color: var(--text);
  display: block;
}

/* Story block */
.story-block {
  background: #f0f9f9;
  border: 1px solid #b8d9d9;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.story-block h3 {
  margin-top: 1.25rem;
}

.story-block h3:first-child {
  margin-top: 0;
}

.highlight-quote {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  font-weight: 600;
  color: var(--text);
}

/* Features list */
.feature-groups {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .feature-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-group h3 {
  color: var(--accent);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.feature-group ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Docs accordion */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.doc-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.doc-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.doc-trigger:hover {
  background: rgba(13, 110, 110, 0.05);
}

.doc-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.doc-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease;
}

.doc-item.is-open .doc-icon {
  transform: rotate(180deg);
}

.doc-panel {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.doc-item.is-open .doc-panel {
  display: block;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq-trigger {
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.faq-panel {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--muted);
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* CTA footer */
.cta-final {
  text-align: center;
  padding: 4rem 0;
  background: var(--text);
  color: #e8eef4;
}

.cta-final h2 {
  color: #fff;
}

.cta-final p {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  color: #b8c5d4;
}

.site-footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.term {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  background: #eef2f6;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* No-JS: show all panels */
html:not(.js) .tab-panel,
html:not(.js) .doc-panel,
html:not(.js) .faq-panel {
  display: block;
}

html:not(.js) .tab-list,
html:not(.js) .doc-icon {
  display: none;
}
