/* Webroba's website. One family (Vazirmatn, self-hosted: Iranian visitors may not reach Google Fonts), the brand's
   orange and ink, logical properties throughout so Persian and Arabic mirror English without a second stylesheet. */

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/vazirmatn-arabic-wght-normal.84a382e46c.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/vazirmatn-latin-ext-wght-normal.21529facfd.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/vazirmatn-latin-wght-normal.d29c041cd4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1b2631;
  --ink-2: #3e4a59;
  --muted: #5b6676;
  --paper: #ffffff;
  --mist: #f3f5f8;
  --line: #dde2e8;
  --line-strong: #c3cbd5;
  --orange: #ff6a00;
  --orange-hover: #f05f00;
  --orange-text: #b84a00;
  --silver: #b7c0cb;
  --night: #1b2631;
  --night-2: #243243;
  --night-line: rgba(255, 255, 255, 0.13);
  --on-night: #eef1f4;
  --on-night-2: #b3bdc9;
  --danger: #b42318;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
}
html:lang(en) body {
  line-height: 1.65;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--orange-text);
  text-underline-offset: 0.22em;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.4;
  text-wrap: balance;
}
html:lang(en) h1,
html:lang(en) h2 {
  line-height: 1.12;
  letter-spacing: -0.02em;
}
html:lang(en) h3 {
  line-height: 1.3;
}
p {
  margin: 0;
}
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.05em 0.35em;
  white-space: nowrap;
}
strong {
  font-weight: 700;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
/* An author's display rule must never beat the hidden attribute (the tab list before scripts, the form's result). */
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.85em 1.5em;
  border-radius: 10px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
/* Ink on orange: white on #FF6A00 is 2.9:1, ink is 5.3:1. */
.btn-primary {
  background: var(--orange);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--orange-hover);
}
.btn-quiet {
  color: var(--ink);
  border-color: var(--line-strong);
  background: transparent;
}
.btn-quiet:hover {
  border-color: var(--ink);
}
.btn-small {
  padding: 0.5em 1em;
  font-size: 0.95rem;
}
.btn[disabled],
fieldset[disabled] .btn {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.mark {
  display: block;
  block-size: 22px;
  inline-size: auto;
}
.m-l {
  fill: var(--orange);
}
.m-r {
  fill: var(--ink);
}
.m-p {
  fill: var(--silver);
}
.wordmark {
  font-weight: 900;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0;
}
.w1 {
  color: var(--orange);
}
.w2 {
  color: var(--ink);
}
.site-nav {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover {
  color: var(--ink);
}
.langs {
  display: flex;
  gap: 14px;
  font-size: 0.92rem;
}
.langs a {
  color: var(--ink-2);
  text-decoration: none;
}
.langs a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.langs .short {
  display: none;
}
@media (max-width: 1040px) {
  .site-nav {
    display: none;
  }
  .langs {
    margin-inline-start: auto;
  }
}
@media (max-width: 560px) {
  .header-row {
    gap: 14px;
  }
  .wordmark {
    font-size: 1.25rem;
  }
  .langs {
    gap: 10px;
  }
  .langs .long {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .langs .short {
    display: inline;
  }
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px);
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.15rem, 1.2rem + 3.3vw, 3.85rem);
  font-weight: 900;
  line-height: 1.35;
}
html:lang(en) .hero h1 {
  line-height: 1.06;
}
.hero .lead {
  margin-top: 22px;
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem);
  color: var(--ink-2);
  max-width: 34em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 34em;
}
.shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist);
  box-shadow: 0 1px 2px rgba(27, 38, 49, 0.06), 0 28px 56px -24px rgba(27, 38, 49, 0.28);
}
/* The hero's screenshot runs off the page's far edge, as if the console were open beside the text. */
.hero-shot {
  margin-inline-end: calc(-1 * (max(0px, (100vw - var(--wrap)) / 2) + var(--gutter)));
  border-start-end-radius: 0;
  border-end-end-radius: 0;
  border-inline-end: 0;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-shot {
    margin-inline-end: calc(-1 * var(--gutter));
  }
}

/* ---------- proof ---------- */

.proof {
  background: var(--mist);
  border-block: 1px solid var(--line);
  padding-block: 34px 40px;
}
.proof-caption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.proof-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
.proof-list > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding-inline: 24px;
  border-inline-start: 1px solid var(--line-strong);
}
.proof-list > div:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}
.proof-list dd {
  margin: 0;
  font-size: clamp(1.85rem, 1.25rem + 1.7vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}
/* Two poles of the magnet: the brand's mark in miniature over each figure. */
.proof-list dd::before {
  content: '';
  display: block;
  inline-size: 26px;
  block-size: 4px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange) 0 62%, transparent 62% 70%, var(--silver) 70%);
}
[dir='rtl'] .proof-list dd::before {
  transform: scaleX(-1);
}
.proof-list dt {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.7;
}
@media (max-width: 900px) {
  .proof-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 0;
  }
  .proof-list > div:nth-child(odd) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(64px, 9vw, 120px);
}
.tinted {
  background: var(--mist);
}
.ruled {
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.7rem);
  font-weight: 850;
}
.lead {
  margin-top: 16px;
  font-size: 1.15rem;
  color: var(--ink-2);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-inline-start: 24px;
}
.ticks li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.85em;
  top: calc(0.5lh - 2px);
  inline-size: 12px;
  block-size: 4px;
  border-radius: 2px;
  background: var(--orange);
}

/* ---------- product tabs ---------- */

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}
.tablist [role='tab'] {
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  color: var(--ink-2);
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: 10px 14px 12px;
  cursor: pointer;
}
.tablist [role='tab']:hover {
  color: var(--ink);
}
.tablist [aria-selected='true'] {
  color: var(--ink);
  border-bottom-color: var(--orange);
}
.panel {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.panel + .panel {
  margin-top: 80px;
}
.is-enhanced .panel + .panel {
  margin-top: 0;
}
.panel[hidden] {
  display: none;
}
.is-enhanced .panel-kicker {
  display: none;
}
.panel-kicker {
  font-weight: 700;
  color: var(--orange-text);
  margin-bottom: 6px;
}
.panel h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 800;
}
.panel-text > p:not(.panel-kicker) {
  margin-top: 14px;
  color: var(--ink-2);
}
.shots-note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .tablist {
    border-bottom: 0;
    gap: 8px;
    margin-bottom: 32px;
  }
  .tablist [role='tab'] {
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    margin: 0;
    padding: 6px 14px;
    font-size: 0.95rem;
  }
  .tablist [aria-selected='true'] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
  }
}

/* ---------- the journey, drawn ---------- */

.journey-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.journey-text {
  position: sticky;
  top: 104px;
}
.flow-figure {
  margin: 0;
}
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  grid-template-areas: 'via .' 'node exit';
  column-gap: 52px;
  padding-bottom: 30px;
}
.flow-step:last-child {
  padding-bottom: 0;
}
/* The spine runs behind the nodes and shows in the gaps between them. */
.flow-step::before {
  content: '';
  position: absolute;
  inset-inline-start: 27px;
  top: 0;
  bottom: 0;
  border-inline-start: 2px solid var(--line-strong);
}
.flow-via {
  grid-area: via;
  padding-inline-start: 44px;
  padding-block: 0 10px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--muted);
}
.flow-node {
  grid-area: node;
  position: relative;
  display: grid;
  gap: 2px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 18px 16px;
}
.flow-kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.flow-kind::before {
  content: '';
  inline-size: 8px;
  block-size: 8px;
  border-radius: 2px;
  background: var(--silver);
}
.tone-start .flow-node {
  border-color: var(--orange);
}
.tone-start .flow-kind::before,
.tone-send .flow-kind::before {
  background: var(--orange);
}
.tone-goal .flow-node {
  border-style: dashed;
  border-color: var(--ink);
  background: var(--mist);
}
.tone-goal .flow-kind::before {
  background: var(--ink);
}
.flow-title {
  font-size: 1.08rem;
  font-weight: 750;
}
.flow-detail {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.75;
}
.flow-exit {
  grid-area: exit;
  align-self: center;
  position: relative;
  display: grid;
  justify-items: start;
  gap: 4px;
}
.flow-exit::before {
  content: '';
  position: absolute;
  inset-inline-start: -52px;
  inline-size: 46px;
  top: 50%;
  border-top: 2px dashed var(--line-strong);
}
.flow-exit-label {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--muted);
}
.flow-end {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 650;
}
@media (max-width: 900px) {
  .journey-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .journey-text {
    position: static;
  }
}
@media (max-width: 600px) {
  .flow-step {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'via' 'node' 'exit';
  }
  .flow-exit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-inline-start: 56px;
    margin-top: 12px;
  }
  .flow-exit::before {
    inset-inline-start: -29px;
    top: -12px;
    inline-size: 22px;
    block-size: calc(50% + 12px);
    border-top: 0;
    border-inline-start: 2px dashed var(--line-strong);
    border-bottom: 2px dashed var(--line-strong);
    border-end-start-radius: 8px;
  }
}

/* ---------- channels ---------- */

.channels-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.channel-table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.channel-table th,
.channel-table td {
  text-align: start;
  vertical-align: top;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}
.channel-table th:first-child {
  padding-inline-start: 0;
}
.channel-table thead th {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: 0;
  border-bottom-color: var(--line-strong);
}
.channel-table tbody th {
  font-weight: 750;
  white-space: nowrap;
}
.channel-table td {
  line-height: 1.7;
}
.channel-table td:last-child {
  color: var(--ink-2);
}
.channel-side > * + * {
  margin-top: 40px;
}
.channel-side h3 {
  font-size: 1.2rem;
  font-weight: 800;
}
.fallback {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.fallback p {
  color: var(--ink-2);
  font-size: 0.97rem;
}
.chain {
  list-style: none;
  margin: 34px 0 20px;
  padding: 0;
  display: flex;
  align-items: center;
}
.chain li {
  position: relative;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.chain li + li {
  margin-inline-start: 50px;
}
/* An arrow toward the next channel, mirrored by the logical border in right-to-left pages. */
.chain li + li::before {
  content: '';
  position: absolute;
  inset-inline-start: -46px;
  top: 50%;
  inline-size: 36px;
  border-top: 2px solid var(--line-strong);
}
.chain li + li::after {
  content: '';
  position: absolute;
  inset-inline-start: -11px;
  top: calc(50% - 5px);
  border-block: 6px solid transparent;
  border-inline-start: 7px solid var(--line-strong);
}
.chain-wait {
  position: absolute;
  inset-inline-end: calc(100% + 8px);
  bottom: calc(100% + 2px);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
@media (max-width: 900px) {
  .channels-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .channel-table thead {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .channel-table,
  .channel-table tbody,
  .channel-table tr,
  .channel-table th,
  .channel-table td {
    display: block;
  }
  .channel-table tr {
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
  }
  .channel-table th,
  .channel-table td {
    border: 0;
    padding: 0;
  }
  .channel-table td:nth-child(2) {
    font-weight: 600;
    margin-top: 2px;
  }
  .chain li + li {
    margin-inline-start: 40px;
  }
  .chain li + li::before {
    inset-inline-start: -36px;
    inline-size: 26px;
  }
}

/* ---------- scale (dark) ---------- */

.dark {
  background: var(--night);
  color: var(--on-night);
}
.dark h2,
.dark h3 {
  color: #fff;
}
.dark .lead {
  color: var(--on-night-2);
}
.dark :focus-visible {
  outline-color: var(--orange);
}
.scale-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.measure {
  inline-size: 100%;
  border-collapse: collapse;
}
.measure caption {
  caption-side: top;
  text-align: start;
  font-size: 0.9rem;
  color: var(--on-night-2);
  padding-bottom: 12px;
}
.measure th,
.measure td {
  text-align: start;
  vertical-align: top;
  padding: 16px 0;
  border-bottom: 1px solid var(--night-line);
}
.measure thead th {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--on-night-2);
  padding-top: 0;
}
.measure tbody th {
  inline-size: 36%;
  padding-inline-end: 24px;
  font-weight: 600;
  color: var(--on-night-2);
}
.measure td {
  color: #fff;
  font-weight: 550;
  line-height: 1.75;
}
.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 30px;
}
.points li {
  border-top: 2px solid var(--orange);
  padding-top: 14px;
}
.points h3 {
  font-size: 1.1rem;
  font-weight: 750;
}
.points p {
  margin-top: 6px;
  color: var(--on-night-2);
  font-size: 0.97rem;
}
.arch {
  margin: clamp(56px, 7vw, 96px) 0 0;
}
.arch-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 26px;
}
.arch-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 44px minmax(0, 6fr) 44px minmax(0, 1.35fr);
  align-items: center;
}
.arch-node {
  display: grid;
  gap: 2px;
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: 10px;
  padding: 12px 14px;
}
.arch-node strong {
  color: #fff;
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1.5;
}
.arch-node span {
  color: var(--on-night-2);
  font-size: 0.82rem;
  line-height: 1.6;
}
.arch-boundary {
  position: relative;
  border: 1.5px dashed var(--orange);
  border-radius: 16px;
  padding: 30px 18px 18px;
}
.arch-boundary-label {
  position: absolute;
  top: -0.9em;
  inset-inline-start: 16px;
  padding-inline: 8px;
  background: var(--night);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.7;
}
.arch-pipe {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.arch-pipe li {
  position: relative;
}
.arch-pipe li + li::before {
  content: '';
  position: absolute;
  inset-inline-start: -27px;
  top: 50%;
  inline-size: 20px;
  border-top: 2px solid var(--on-night-2);
}
.arch-pipe li + li::after {
  content: '';
  position: absolute;
  inset-inline-start: -9px;
  top: calc(50% - 5px);
  border-block: 6px solid transparent;
  border-inline-start: 7px solid var(--on-night-2);
}
.arch-stores {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--night-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.arch-store {
  background: transparent;
}
.arch-ext {
  background: transparent;
  border-style: solid;
  border-color: var(--on-night-2);
}
.arrow {
  position: relative;
  justify-self: center;
  inline-size: 28px;
  block-size: 2px;
  background: var(--on-night-2);
}
.arrow::after {
  content: '';
  position: absolute;
  inset-inline-end: -2px;
  top: -5px;
  border-block: 6px solid transparent;
  border-inline-start: 7px solid var(--on-night-2);
}
.arch figcaption {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--on-night-2);
  max-width: 56em;
}
@media (max-width: 1100px) {
  .arch-flow {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }
  /* Off to the far side, clear of the boundary's label at the start. */
  .arrow {
    justify-self: end;
    inline-size: 2px;
    block-size: 26px;
    margin-block: 6px 10px;
    margin-inline-end: 48px;
  }
  .arrow::after {
    inset-inline-end: auto;
    inset-inline-start: -5px;
    top: auto;
    bottom: -2px;
    border-block: 0;
    border-inline: 6px solid transparent;
    border-top: 7px solid var(--on-night-2);
  }
}
@media (max-width: 900px) {
  .scale-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .arch-pipe {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .arch-pipe li + li::before {
    inset-inline-start: 24px;
    top: -22px;
    inline-size: 0;
    block-size: 16px;
    border-top: 0;
    border-inline-start: 2px solid var(--on-night-2);
  }
  .arch-pipe li + li::after {
    inset-inline-start: 19px;
    top: -9px;
    border-block: 0;
    border-inline: 6px solid transparent;
    border-top: 7px solid var(--on-night-2);
  }
  .arch-stores {
    grid-template-columns: minmax(0, 1fr);
  }
  .measure tbody th {
    inline-size: 42%;
  }
}

/* ---------- migration ---------- */

.migration-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 64px;
  padding-bottom: 34px;
}
.steps li:last-child {
  padding-bottom: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  inline-size: 40px;
  block-size: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  line-height: 1;
}
html:lang(fa) .steps li::before {
  content: counter(step, persian);
}
.steps li::after {
  content: '';
  position: absolute;
  inset-inline-start: 19px;
  top: 48px;
  bottom: 8px;
  border-inline-start: 2px solid var(--line);
}
.steps li:last-child::after {
  display: none;
}
.steps h3 {
  font-size: 1.2rem;
  font-weight: 800;
  padding-top: 4px;
}
.steps p {
  margin-top: 6px;
  color: var(--ink-2);
}
.data-card {
  background: var(--mist);
  border-radius: 16px;
  padding: 28px;
}
.data-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
}
.data-card .ticks {
  font-size: 0.97rem;
}
.migration-close {
  margin-top: 40px;
  font-weight: 700;
  font-size: 1.05rem;
}
@media (max-width: 900px) {
  .migration-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- security ---------- */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
}
.facts li {
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}
.facts h3 {
  font-size: 1.08rem;
  font-weight: 750;
}
.facts p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.98rem;
}
@media (max-width: 900px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* ---------- industries ---------- */

.industries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.industry h3 {
  font-size: 1.3rem;
  font-weight: 800;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.industry .ticks {
  gap: 14px;
}
@media (max-width: 900px) {
  .industries {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* ---------- developers ---------- */

.dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.code {
  margin: 0;
  background: var(--night);
  border-radius: 14px;
  overflow: hidden;
}
.code figcaption {
  padding: 14px 20px;
  border-bottom: 1px solid var(--night-line);
  color: var(--on-night);
  font-weight: 600;
  font-size: 0.95rem;
}
.code pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.75;
  color: #e6eaee;
  text-align: left;
}
.code pre code {
  font-size: inherit;
  background: none;
  border: 0;
  padding: 0;
  white-space: pre;
}
.code .s {
  color: #ffb27a;
}
.code-caption {
  padding: 0 20px 18px;
  color: var(--on-night-2);
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .dev-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .code pre {
    font-size: 0.78rem;
    padding: 16px;
  }
}

/* ---------- deploy ---------- */

.compare {
  inline-size: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.compare th,
.compare td {
  text-align: start;
  vertical-align: top;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  line-height: 1.75;
}
.compare tbody tr:last-child > * {
  border-bottom: 0;
}
.compare thead th {
  font-size: 1.08rem;
  font-weight: 800;
  border-bottom: 2px solid var(--ink);
}
.compare tbody th {
  inline-size: 20%;
  font-weight: 700;
}
.compare td {
  color: var(--ink-2);
}
@media (max-width: 760px) {
  .compare thead {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    inline-size: auto;
  }
  .compare tr {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }
  .compare tbody tr:last-child {
    border-bottom: 0;
  }
  .compare th,
  .compare td {
    border: 0;
    padding: 0;
  }
  .compare tbody th {
    inline-size: auto;
    padding-bottom: 6px;
  }
  .compare td + td {
    margin-top: 8px;
  }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
  }
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child {
  border-top: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.07rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '+';
  flex-shrink: 0;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--orange-text);
}
.faq-list details[open] summary::after {
  content: '−';
}
.faq-list details p {
  padding-bottom: 22px;
  color: var(--ink-2);
  max-width: 46em;
}
@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- demo ---------- */

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.demo h2 {
  font-size: clamp(2rem, 1.3rem + 2.3vw, 3.1rem);
  font-weight: 900;
}
.demo-text h3 {
  margin-top: 40px;
  font-size: 1.05rem;
  font-weight: 750;
}
.demo-text .ticks {
  color: var(--on-night);
}
.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
}
.form-card :focus-visible {
  outline-color: var(--ink);
}
.dark .form-card h3 {
  color: var(--ink);
}
.form-card fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
.field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-inline-size: 0;
}
.field.full,
.form-actions {
  grid-column: 1 / -1;
}
.field label {
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.6;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  inline-size: 100%;
  min-block-size: 48px;
}
.field textarea {
  resize: vertical;
  min-block-size: 96px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #8a94a2;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
  border-radius: 10px;
}
.field [aria-invalid='true'] {
  border-color: var(--danger);
}
/* Phone and email are typed left to right, but sit on the page's side. */
[dir='rtl'] .field input[dir='ltr'] {
  text-align: right;
}
.hint {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.err {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--danger);
  line-height: 1.6;
}
/* A field people never see, for bots to fill in. */
.hp {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-actions {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.form-actions .btn {
  inline-size: 100%;
  font-size: 1.05rem;
}
.form-summary {
  color: var(--danger);
  font-weight: 650;
}
.privacy,
.noscript {
  font-size: 0.85rem;
  color: var(--muted);
}
.form-result {
  display: grid;
  gap: 10px;
}
#demo-form:not([hidden]) + .form-result {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.form-result:focus {
  outline: none;
}
.form-result h3 {
  font-size: 1.5rem;
  font-weight: 850;
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-result h3::before {
  content: '';
  flex-shrink: 0;
  inline-size: 14px;
  block-size: 14px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 106, 0, 0.18);
}
.form-result p {
  color: var(--ink-2);
}
.form-result .btn {
  justify-self: start;
}
.form-result a:not(.btn) {
  direction: ltr;
  unicode-bidi: isolate;
}
@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .form-card fieldset {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- footer ---------- */

.site-footer {
  background: #141c25;
  color: var(--on-night-2);
  padding-block: 48px 36px;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 48px;
  align-items: start;
}
.site-footer .brand {
  color: #fff;
}
.site-footer .m-r,
.site-footer .w2 {
  fill: #e6eaee;
  color: #e6eaee;
}
.site-footer .m-p {
  fill: #8b96a4;
}
.footer-brand p {
  margin-top: 14px;
}
.footer-langs h2 {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--on-night-2);
}
.footer-langs ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.site-footer a {
  color: var(--on-night);
}
.footer-langs a[aria-current='page'] {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.site-footer :focus-visible {
  outline-color: var(--orange);
}
.rights {
  grid-column: 1 / -1;
  border-top: 1px solid var(--night-line);
  padding-top: 20px;
  font-size: 0.85rem;
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 404 ---------- */

.nf {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(48px, 10vw, 120px) var(--gutter);
  display: grid;
  gap: 40px;
}
.nf section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.nf h1 {
  font-size: 1.8rem;
  font-weight: 850;
}
.nf p {
  margin-top: 8px;
  color: var(--ink-2);
}
.nf .btn {
  margin-top: 18px;
}
