/* Public site: landing, docs, sign in ------------------------------------ */

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

/* Header */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(238, 242, 248, 0.62);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 0 rgba(16, 42, 76, 0.04);
}
.masthead .shell {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .glyph {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 7px 7px 7px 2px;   /* a speech bubble tail */
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
}
.masthead nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.masthead nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.93rem; }
.masthead nav a:hover { color: var(--jade-deep); }
.masthead nav .btn { color: #fff; }
@media (max-width: 720px) { .masthead nav .hide-sm { display: none; } }

/* Hero */
.hero {
  position: relative;
  padding: 70px 0 64px;
  overflow: hidden;
  background: linear-gradient(160deg, #dde9fc 0%, #eef2f8 60%, #eef2f8 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  right: -180px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0) 68%);
  pointer-events: none;
}
.hero .shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: start;
}
.hero-right { display: flex; flex-direction: column; gap: 20px; }

/* Floating envelopes — decorative, echoes the "message" product */
.hero-envelopes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-envelope {
  position: absolute;
  color: var(--jade);
  opacity: 0.14;
  animation: envelope-float 7s ease-in-out infinite;
}
.hero-envelope svg { width: 100%; height: 100%; }
.hero-envelope.e1 { top: 2%;   left: 32%;  width: 34px; animation-delay: 0s;    }
.hero-envelope.e2 { top: 62%;  left: 3%;   width: 32px; animation-delay: 1.4s;  }
.hero-envelope.e3 { top: 20%;  left: 46%;  width: 26px; animation-delay: 2.6s;  }
.hero-envelope.e4 { top: 74%;  left: 42%;  width: 38px; animation-delay: 0.8s;  }
.hero-envelope.e5 { top: 6%;   left: 92%;  width: 30px; animation-delay: 3.4s;  }
@keyframes envelope-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(-6deg); }
}
@media (max-width: 880px) {
  .hero-envelope.e3, .hero-envelope.e4 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-envelope { animation: none; }
}
.hero h1 { max-width: 13ch; }
.hero .lede {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.assurances {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  justify-content: start;
}
.assurances div { max-width: 18ch; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.assurances b {
  display: block;
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Hero composer — the one loud element on the page, in frosted glass */
.demo {
  background: rgba(8, 26, 48, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-panel);
  padding: 22px;
  color: #cfdcf2;
  box-shadow: 0 20px 44px -26px rgba(8, 26, 48, 0.6);
}
.demo header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.demo header span { font-size: 0.85rem; color: #8ea8cc; }
.demo header strong { font-size: 0.95rem; color: #fff; font-weight: 500; }

.demo textarea {
  width: 100%;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-control) var(--r-control) 0 0;
  background: rgba(8, 26, 48, 0.4);
  color: #eaf1fb;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.6;
  resize: vertical;
}
.demo textarea:focus { outline: none; border-color: var(--jade); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28); }

.demo .readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 0;
  border-radius: 0 0 var(--r-control) var(--r-control);
  overflow: hidden;
}
.demo .readout div { padding: 11px 14px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.demo .readout div:first-child { border-left: 0; }
.demo .readout dt { font-size: 0.76rem; color: #8ea8cc; margin-bottom: 2px; }
.demo .readout dd {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.02rem;
  color: #fff;
  margin: 0;
}
.demo .note { margin-top: 12px; font-size: 0.81rem; color: #8ea8cc; line-height: 1.5; }
.demo .note.warn { color: #f0c277; }

/* Segment usage bar — visual echo of the credits-each readout */
.segment-bar { display: flex; align-items: center; gap: 4px; margin-top: 14px; min-height: 10px; }
.seg-block {
  flex: 1 1 0;
  max-width: 36px;
  height: 8px;
  border-radius: 4px;
  background: rgba(8, 26, 48, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.seg-block.filled { background: var(--jade); border-color: var(--jade); }
.seg-block.filled.warn { background: #f0c277; border-color: #f0c277; }
.seg-more { font-family: var(--mono); font-size: 0.72rem; color: #8ea8cc; white-space: nowrap; margin-left: 2px; }

@media (max-width: 880px) {
  .hero .shell { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 44px 0; }
  .assurances { grid-template-columns: repeat(2, auto); gap: 20px; }
}

/* Network operator strip — a fixed row of same-sized logo tiles under the hero */
.operators {
  padding: 30px 0 34px;
  background: linear-gradient(180deg, #dde9fc 0%, #eef2f8 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.operators-label {
  text-align: center;
  margin: 0 auto 18px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.operators-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.op-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 64px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 8px 24px -12px rgba(16, 42, 76, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.op-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(16, 42, 76, 0.32); }
.op-badge.op-logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Generic section */
.band { padding: 62px 0; border-top: 1px solid var(--line); background: var(--surface); }
.band.alt { background: var(--paper); }
.band > .shell > h2 { max-width: 20ch; }
.band .sub { margin-top: 12px; max-width: 56ch; color: var(--muted); }
#rates { background: linear-gradient(160deg, #e9f1fd 0%, #f6f9fd 60%); }
#developers { background: linear-gradient(200deg, #e9f1fd 0%, #ffffff 55%); }

/* Capability list — glass cards over a soft gradient wash */
#what { background: linear-gradient(160deg, #e9f1fd 0%, #ffffff 55%); }
.capabilities {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.capabilities > div {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--r-card);
  padding: 24px 22px 26px;
  box-shadow: 0 8px 24px -14px rgba(16, 42, 76, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.capabilities > div:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -14px rgba(16, 42, 76, 0.26); }
.cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--jade-wash);
  color: var(--jade-deep);
  margin-bottom: 14px;
}
.cap-icon svg { width: 20px; height: 20px; }

/* Accent variants — a bit of colour variety across icon chips */
.cap-icon.c-indigo, .journey-icon.c-indigo { background: #e0e7ff; color: #4338ca; }
.cap-icon.c-green,  .journey-icon.c-green  { background: #d1fae5; color: #059669; }
.cap-icon.c-amber,  .journey-icon.c-amber  { background: #fef3c7; color: #b45309; }
.cap-icon.c-rose,   .journey-icon.c-rose   { background: #ffe4e6; color: #e11d48; }
.cap-icon.c-purple, .journey-icon.c-purple { background: #f3e8ff; color: #7e22ce; }
.cap-icon.c-gold,   .journey-icon.c-gold   { background: #fef9c3; color: #a16207; }
.capabilities h3 { margin-bottom: 7px; }
.capabilities p { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 860px) { .capabilities { grid-template-columns: 1fr; } }

/* Message journey — connected step visual */
.journey {
  position: relative;
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.journey::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.journey-step { position: relative; z-index: 1; }
.journey-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--jade-wash);
  color: var(--jade-deep);
  margin-bottom: 16px;
}
.journey-icon svg { width: 21px; height: 21px; }
.journey-step h3 { margin-bottom: 6px; }
.journey-step p { font-size: 0.9rem; color: var(--muted); max-width: 30ch; }
@media (max-width: 860px) {
  .journey { grid-template-columns: 1fr; gap: 30px; }
  .journey::before { display: none; }
}

/* Flat pay-as-you-go price card — frosted glass over the section wash */
.price-card {
  margin-top: 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  background: linear-gradient(135deg, rgba(16, 42, 76, 0.82) 0%, rgba(31, 77, 128, 0.78) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cfdcf2;
  border-radius: var(--r-panel);
  padding: 40px 44px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute;
  top: -140px;
  left: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
}
.price-card-figure { position: relative; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.price-card-currency { font-size: 1.4rem; color: #8ea8cc; font-weight: 500; }
.price-card-amount {
  font-family: var(--mono);
  font-size: 3.4rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}
.price-card-unit { font-size: 0.95rem; color: #8ea8cc; align-self: flex-end; margin-bottom: 7px; }
.price-card-list { position: relative; list-style: none; display: grid; gap: 10px; font-size: 0.94rem; }
.price-card-list li { display: flex; gap: 10px; align-items: baseline; }
.price-card-list li::before { content: '✓'; color: var(--jade); font-weight: 700; }
.price-card .btn { position: relative; white-space: nowrap; }
@media (max-width: 780px) {
  .price-card { grid-template-columns: 1fr; text-align: left; gap: 22px; padding: 32px 26px; }
  .price-card .btn { width: 100%; }
}

/* Compact variant nested in the hero, under the cost composer — figure only */
.price-card-hero {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}
.price-card-hero .price-card-amount { font-size: 2.5rem; }

/* Developer panel */
.devgrid { margin-top: 36px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.devgrid ul { margin: 18px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.93rem; }
.devgrid li { margin-bottom: 8px; }
.code {
  background: rgba(8, 26, 48, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-panel);
  padding: 20px 22px;
  overflow-x: auto;
  color: #d7e3f5;
  font-family: var(--mono);
  font-size: 0.855rem;
  line-height: 1.7;
}
.code .c { color: #7f9ac2; }
.code .s { color: #8fd6bf; }
.code .k { color: #f0c277; }
@media (max-width: 860px) { .devgrid { grid-template-columns: 1fr; gap: 24px; } }

/* Closing call to action */
.closer {
  position: relative;
  padding: 64px 0;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: #cfdcf2;
  text-align: center;
  overflow: hidden;
}
.closer::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 320px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3), rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
}
.closer .shell { position: relative; z-index: 1; }
.closer h2 { color: #fff; margin-bottom: 12px; }
.closer p { max-width: 48ch; margin: 0 auto 26px; }

/* Footer */
.foot { background: var(--ink-deep); color: #7f9ac2; padding: 56px 0 0; font-size: 0.87rem; }
.foot a { color: #a9c3e8; text-decoration: none; }
.foot a:hover { color: #fff; }

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-brand strong { display: block; color: #fff; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.foot-brand p { margin: 12px 0 16px; max-width: 32ch; line-height: 1.55; }
.foot-brand a { font-size: 0.88rem; }
.foot-col h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 0;
  font-size: 0.85rem;
}
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Auth screen ----------------------------------------------------------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-aside {
  position: relative;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: #cfdcf2;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-aside::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
}
.auth-aside h2 { position: relative; color: #fff; max-width: 16ch; margin-top: 60px; }
.auth-aside p { position: relative; margin-top: 16px; max-width: 40ch; }
.auth-aside .receipt {
  position: relative;
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-panel);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.84rem;
}
.auth-aside .receipt div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.auth-aside .receipt div:last-child { border-bottom: 0; background: rgba(37, 99, 235, 0.22); }
.auth-aside .receipt span:last-child { color: #fff; font-variant-numeric: tabular-nums; }

.auth-main { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 396px; }
.auth-card h1 { font-size: 1.75rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; font-size: 0.94rem; }
.auth-switch { margin-top: 20px; font-size: 0.92rem; color: var(--muted); text-align: center; }
.form-error {
  margin-bottom: 16px;
  padding: 10px 13px;
  border-left: 3px solid var(--clay);
  background: var(--clay-wash);
  color: #7d281f;
  font-size: 0.9rem;
  border-radius: 0 var(--r-control) var(--r-control) 0;
}
.form-error[hidden] { display: none; }

@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.notfound p { color: var(--muted); margin: 10px 0 22px; }

/* FAQ accordion */
.faq-list { margin-top: 32px; max-width: 720px; display: flex; flex-direction: column; gap: 10px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 16px 20px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; float: right; color: var(--muted); }
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list details p { margin-top: 10px; color: var(--muted); font-size: 0.94rem; }

/* Pricing page: page head and data tables ------------------------------ */
.page-head { padding: 64px 0 52px; background: var(--paper); }
.page-head .crumbs { font-size: 0.86rem; color: var(--muted); margin-bottom: 14px; }
.page-head .crumbs a { color: var(--muted); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-top: 16px; max-width: 62ch; color: var(--ink-soft); font-size: 1.06rem; }
.page-head .lede strong { color: var(--ink); font-weight: 600; }
.page-head .actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

.table-title { margin-top: 40px; }
.table-note { margin-top: 14px; }
.table-note a { color: var(--jade); }
.table-wrap {
  margin-top: 26px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.data-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.95rem; }
.data-table th, .data-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.data-table thead th { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.data-table tbody th { font-weight: 500; color: var(--ink); }
.data-table tbody td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
