@font-face {
  font-family: 'Thmanyah';
  src: url('/site-font/thmanyah-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: 'Thmanyah';
  src: url('/site-font/thmanyah-bold.woff2') format('woff2');
  font-weight: 600 700;
  font-display: block;
}
/* Public pages (landing, login, sign-up, account links). Design system: Flowmapp style reference (DESIGN_8) — white canvas, Ink type,
   one Signal Blue, 1px Pencil Gray borders, pill controls, 12px inputs, shadow only on floating mockups. Arabic RTL; Inter for Latin. */
:root {
  --signal-blue: #0080ff;
  --voltage-violet: #0050ff;
  --sky-wash: #c5e0fb;
  --pencil-gray: #8c9baa;
  --graphite: #636f7b;
  --ink: #000;
  --carbon: #222;
  --paper: #fff;
  --font:
    'Thmanyah', 'Inter', 'Noto Sans Arabic', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Tahoma', sans-serif;
  --radius-pill: 1600px;
  --radius-card: 20px;
  --radius-feature: 32px;
  --radius-image: 24px;
  --radius-input: 12px;
  --shadow: rgba(0, 0, 0, 0.06) 0 0 18px 0;
  --yellow: #fff3c4;
  --mint: #c8f0d8;
  --pink: #ffd6e0;
  --lavender: #e0d4ff;
  --peach: #ffe0c4;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  letter-spacing: -0.015px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
:focus-visible {
  outline: 2px solid var(--signal-blue);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.brand b {
  color: var(--signal-blue);
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-inline-start: 24px;
}
.nav-links a {
  color: var(--carbon);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--signal-blue);
}
.nav-actions {
  margin-inline-start: auto;
  display: flex;
  gap: 8px;
}

/* buttons: every control is a pill */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font: 500 14px/1.4 var(--font);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn.outline {
  border-color: var(--pencil-gray);
  background: transparent;
  color: var(--carbon);
}
.btn.outline:hover {
  border-color: var(--ink);
}
.btn.dark {
  background: var(--ink);
  color: #fff;
}
.btn.dark:hover {
  background: var(--carbon);
}
.btn.lg {
  padding: 12px 28px;
  font-size: 16px;
}
.btn.block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn svg {
  width: 12px;
  height: 12px;
}
html[dir='rtl'] .btn .arrow {
  transform: scaleX(-1);
}
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--signal-blue);
  color: #fff;
  font: 600 20px/1.2 var(--font);
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 18px 0 rgba(197, 224, 251, 0.6);
}
.cta:hover {
  background: var(--voltage-violet);
}
/* hero */
.hero {
  padding: 72px 0 24px;
  text-align: center;
}
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pencil-gray);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
}
.pill-tag i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mint);
  display: inline-block;
  position: relative;
}
.pill-tag i::after {
  content: '';
  position: absolute;
  inset: 3px 4px 4px 4px;
  border: solid var(--ink);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) scale(0.7);
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}
.display {
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 24px auto 0;
}
.hero p.lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--graphite);
  max-width: 620px;
  margin: 24px auto 0;
}
.hero-cta {
  margin: 40px 0 0;
  display: flex;
  gap: 64px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 13px;
  color: var(--pencil-gray);
  margin-top: 16px;
}
.hero-art {
  margin: 48px auto 0;
  max-width: 1100px;
}
.hero-art img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-image);
}

/* trust bar */
.trust {
  padding: 48px 0;
  text-align: center;
}
.trust p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--pencil-gray);
}
.chips {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pencil-gray);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--carbon);
}
.dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 0;
}
.dot svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dot.yellow {
  background: var(--yellow);
}
.dot.mint {
  background: var(--mint);
}
.dot.pink {
  background: var(--pink);
}
.dot.lavender {
  background: var(--lavender);
}
.dot.peach {
  background: var(--peach);
}

/* sections */
section.block {
  padding: 48px 0;
}
.section-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 56px;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pencil-gray);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.step-badge b {
  font-weight: 600;
}
.step-badge span {
  color: var(--pencil-gray);
  font-weight: 400;
}
.h-lg {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-top: 20px;
}
.section-head p {
  color: var(--graphite);
  font-size: 18px;
  margin: 16px auto 0;
  max-width: 640px;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--pencil-gray);
  border-radius: var(--radius-card);
  padding: 24px;
}
.card h3 {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-top: 16px;
}
.card p {
  margin: 8px 0 0;
  color: var(--graphite);
  font-size: 15px;
}

/* two-column feature blocks */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  border: 1px solid var(--pencil-gray);
  border-radius: var(--radius-feature);
  padding: 48px;
  margin-bottom: 24px;
}
.feature.flip .feature-art {
  order: -1;
}
.feature h3 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-top: 16px;
}
.feature p {
  color: var(--graphite);
  font-size: 16px;
  margin: 16px 0 0;
}
.feature ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.feature li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}
.feature-art img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow);
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--pencil-gray);
  border-radius: var(--radius-feature);
  padding: 32px;
  background: var(--paper);
}
.plan.featured {
  border-color: var(--signal-blue);
  box-shadow: 0 0 18px 0 rgba(197, 224, 251, 0.6);
}
.plan h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.plan .price {
  margin: 16px 0 0;
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-feature-settings: 'tnum';
}
.plan .price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--graphite);
  letter-spacing: 0;
  margin-inline-start: 6px;
}
.plan .badge {
  align-self: flex-start;
  margin-top: 12px;
  border: 1px solid var(--pencil-gray);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
}
.plan ul {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--carbon);
}
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.plan li::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--mint);
}
.plan .grow {
  flex: 1;
}
table.tiers {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-feature-settings: 'tnum';
  margin: 0 0 24px;
}
table.tiers th,
table.tiers td {
  padding: 8px 0;
  border-bottom: 1px solid #e3e8ed;
  text-align: start;
  font-weight: 400;
}
table.tiers th {
  color: var(--graphite);
}
table.tiers td:last-child,
table.tiers th:last-child {
  text-align: end;
  font-weight: 600;
}
.plans-note {
  text-align: center;
  color: var(--graphite);
  font-size: 14px;
  margin-top: 24px;
}
.skeleton {
  height: 320px;
  border-radius: var(--radius-feature);
  background: linear-gradient(90deg, #f3f6f9, #fff, #f3f6f9);
  background-size: 200% 100%;
  animation: sk 1.4s infinite;
}
@keyframes sk {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--pencil-gray);
  border-radius: var(--radius-card);
  padding: 0 24px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--pencil-gray);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  margin: 0 0 20px;
  color: var(--graphite);
}

/* final CTA + footer */
.final {
  text-align: center;
  padding: 96px 0;
}
.final .display {
  font-size: clamp(36px, 6vw, 72px);
  margin-top: 0;
}
footer {
  border-top: 1px solid #e3e8ed;
  padding: 40px 0;
  color: var(--graphite);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  min-inline-size: 0;
  max-inline-size: 100%;
}

/* auth pages */
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px 24px 48px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--pencil-gray);
  border-radius: var(--radius-feature);
  padding: 40px;
  background: var(--paper);
}
.auth-card h1 {
  font-size: 32px;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-top: 20px;
}
.auth-card p.sub {
  color: var(--graphite);
  margin: 8px 0 0;
  font-size: 15px;
}
form.stack {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--carbon);
}
.field input,
.field select {
  width: 100%;
  border: 1px solid var(--pencil-gray);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  font: 400 16px/1.4 var(--font);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus,
.field select:focus {
  outline: 2px solid var(--signal-blue);
  outline-offset: 1px;
  border-color: var(--signal-blue);
}
.field small {
  color: var(--graphite);
  font-size: 13px;
}
.notice {
  border-radius: var(--radius-input);
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid var(--pencil-gray);
  background: #f6f9fc;
  color: var(--carbon);
  margin-top: 16px;
}
.notice.error {
  border-color: #d92d20;
  background: #fff4f2;
  color: #8a1c14;
}
.notice.ok {
  border-color: #2f9e63;
  background: #eefaf3;
  color: #17603b;
}
.auth-links {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--graphite);
}
.auth-links a {
  color: #0068d0;
  text-decoration: none;
  font-weight: 500;
}
.auth-links a:hover {
  text-decoration: underline;
}
.mini-nav {
  position: absolute;
  top: 0;
  inset-inline: 0;
}

/* Signup is a single form with two explicit methods. Its first state is rendered by the server. */
.signup-page {
  background: #f8fafc;
}
.signup-page .auth {
  min-height: 100svh;
  padding: 100px 20px 40px;
}
.signup-card {
  max-width: 456px;
  padding: 32px;
  border-color: #dbe2e8;
  border-radius: 24px;
}
.signup-card h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: 0;
}
.signup-card p.sub {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #526170;
}
.signup-card form.stack {
  gap: 20px;
  margin-top: 26px;
}
.signup-methods,
.signup-email-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}
.signup-methods legend {
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 10px;
}
.signup-method-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.signup-method {
  position: relative;
  cursor: pointer;
  min-width: 0;
}
.signup-method > input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}
.signup-method-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid #c9d2dc;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  background: #fff;
}
.signup-method-content svg {
  flex: none;
}
.signup-method > input:checked + .signup-method-content {
  border-color: #17212b;
  box-shadow: inset 0 0 0 1px #17212b;
  background: #f3f6f9;
}
.signup-method > input:focus-visible + .signup-method-content {
  outline: 2px solid #0068d0;
  outline-offset: 3px;
}
.signup-methods:disabled .signup-method {
  cursor: wait;
  opacity: 0.65;
}
.signup-card .signup-method-hint {
  margin: -8px 0 0;
  color: #526170;
  font-size: 13px;
  line-height: 1.8;
}
.signup-email-fields {
  display: grid;
  gap: 20px;
}
.signup-card .field input {
  min-height: 48px;
  border-color: #bac6d2;
  border-radius: 10px;
  font-family: var(--font);
}
.signup-card .field label {
  font-weight: 600;
}
.signup-card .field small {
  font-size: 12px;
}
.signup-card .signup-terms {
  font-size: 12px;
  line-height: 1.9;
  gap: 10px;
}
.signup-terms input {
  accent-color: #17212b;
}
.signup-terms a {
  text-underline-offset: 3px;
}
.signup-card #signupSubmit {
  min-height: 50px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}
.signup-card .auth-links {
  justify-content: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e8edf2;
  font-size: 13px;
  gap: 6px;
}
@media (max-width: 480px) {
  .signup-page .auth {
    min-height: calc(100svh - 82px);
    padding: 88px 16px 28px;
  }
  .signup-page .signup-card {
    padding: 24px;
    border-radius: 20px;
  }
  .signup-card h1 {
    font-size: 25px;
  }
  .signup-page .sb-fab {
    position: relative;
    inset: auto;
    display: block;
    margin: 0 auto 24px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .feature {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
  }
  .feature.flip .feature-art {
    order: 0;
  }
  .hero {
    padding-top: 40px;
  }
  .cta {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  .auth-card {
    padding: 28px;
  }
  .nav .wrap {
    gap: 8px;
    flex-wrap: wrap;
    height: auto;
    min-height: 72px;
    padding-block: 12px;
  }
  .nav-actions {
    gap: 6px;
    flex-wrap: wrap;
    max-inline-size: 100%;
  }
  .nav-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}
.brand {
  direction: ltr;
}
table.tiers td:first-child,
table.tiers td:last-child {
  unicode-bidi: plaintext;
}
table.tiers td {
  direction: ltr;
}
table.tiers th:first-child {
  text-align: right;
}
table.tiers td:first-child {
  text-align: right;
}

/* motion (off for people who ask for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0s);
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
  .hero-art img {
    animation: float 7s ease-in-out infinite;
  }
  @keyframes float {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-12px);
    }
  }
  .hero .display,
  .hero .lead,
  .hero-cta,
  .hero .pill-tag,
  .hero-note,
  .hero-link {
    animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero .pill-tag {
    animation-delay: 0s;
  }
  .hero .display {
    animation-delay: 0.04s;
  }
  .hero .lead {
    animation-delay: 0.08s;
  }
  .hero-cta {
    animation-delay: 0.12s;
  }
  .hero-link,
  .hero-note {
    animation-delay: 0.16s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .card,
  .plan,
  .chip,
  .faq details {
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease,
      border-color 0.25s ease;
  }
  .card:hover,
  .plan:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
  }
  .chip:hover {
    transform: translateY(-2px);
    border-color: var(--ink);
  }
  .dot {
    transition: transform 0.25s ease;
  }
  .feature li:hover .dot {
    transform: scale(1.15) rotate(-6deg);
  }
  .feature-art img {
    transition: transform 0.5s ease;
  }
  .feature:hover .feature-art img {
    transform: scale(1.02) rotate(-0.6deg);
  }
  .btn,
  .cta {
    transition:
      transform 0.2s ease,
      background 0.15s,
      border-color 0.15s;
  }
  .btn:hover,
  .cta:hover {
    transform: translateY(-2px);
  }
}

.final .hero-cta {
  gap: 24px;
}
@media (max-width: 640px) {
  .hero-cta {
    gap: 40px;
    flex-direction: column;
  }
  .hero-cta {
    gap: 16px;
  }
}
.doc {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 72px;
}
.doc h1 {
  margin-bottom: 24px;
}
.doc h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 32px 0 8px;
}
.doc p {
  color: var(--graphite);
  margin: 0 0 12px;
}
.doc b {
  color: var(--ink);
}
.muted {
  color: var(--graphite);
  font-size: 13px;
}
.muted a {
  color: var(--signal-blue);
}
.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  display: block;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--carbon);
  cursor: pointer;
}
.check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: none;
}
.readonly-email {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--pencil-gray);
  border-radius: var(--radius-input);
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.4 var(--font);
  word-break: break-all;
  user-select: all;
}

.hero-cta {
  margin-top: 28px;
  gap: 16px;
}
.hero p.lead b {
  color: var(--ink);
}
.hero-link {
  margin: 14px 0 0;
  font-size: 14px;
}
.hero-link a {
  color: var(--graphite);
}
.hero-art {
  margin-top: 32px;
}
.sticky-cta {
  display: none;
}
@media (max-width: 700px) {
  .hero {
    padding-top: 28px;
  }
  .display {
    font-size: clamp(40px, 12vw, 56px);
  }
  .hero .lead {
    font-size: 17px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    padding-inline: 8px;
  }
  .hero-cta .btn,
  .hero-cta .cta {
    width: 100%;
    justify-content: center;
  }
  .sticky-cta {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--pencil-gray);
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }
  .sticky-cta.show {
    transform: none;
  }
  .sticky-cta .cta {
    flex: 1;
    font-size: 16px;
    min-height: 44px;
  }
  .sticky-cta .btn {
    min-height: 44px;
  }
  footer {
    padding-bottom: 72px;
  }
}

.pill-tag {
  font-size: clamp(17px, 2.6vw, 22px);
  font-weight: 600;
  padding: 10px 22px;
  gap: 12px;
  background: rgba(0, 122, 255, 0.08);
  border-color: transparent;
  color: var(--ink);
  line-height: 1.3;
}
.pill-tag i {
  width: 22px;
  height: 22px;
}
.pill-tag i::after {
  inset: 4px 6px 6px 6px;
  border-width: 0 2px 2px 0;
}
.hero .display {
  margin-top: 28px;
}
.pill-tag {
  text-align: center;
  max-width: 100%;
}

.tg-page {
  min-height: 100svh;
  background: radial-gradient(120% 70% at 50% 0%, #eaf5ff 0%, #fff 62%);
}
.tg-wrap {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px 20px 150px;
  position: relative;
}
.tg-powered {
  position: absolute;
  bottom: 72px;
  inset-inline: 0;
  margin-inline: auto;
  width: max-content;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.tg-powered:hover {
  opacity: 0.85;
}
.tg-powered span {
  font:
    500 12px/1 'Inter',
    var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5b6572;
  direction: ltr;
}
.tg-powered img {
  display: block;
  height: auto;
}
.tg-card {
  width: 100%;
  max-width: 380px;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 34px 24px 28px;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 122, 255, 0.1);
}
.tg-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: #27a7e7;
  display: grid;
  place-items: center;
}
.tg-icon svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}
.tg-card h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  word-break: break-all;
}
.tg-card .cta {
  width: 100%;
  justify-content: center;
  font-size: 19px;
}
.tg-card .tg-open {
  position: relative;
  overflow: hidden;
}
.tg-card .tg-open::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.75);
  transform-origin: right;
  animation: tgbar 0.9s linear forwards;
}
@keyframes tgbar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.tbl {
  overflow-x: auto;
  margin: 8px 0 16px;
}
.tbl table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.tbl th,
.tbl td {
  border: 1px solid var(--pencil-gray);
  padding: 8px 10px;
  text-align: start;
  vertical-align: top;
}
.tbl th {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
}
.docs {
  max-width: 860px;
}
.doc h3,
.docs h3 {
  font-size: 17px;
  margin: 18px 0 4px;
}
.docs code {
  direction: ltr;
  unicode-bidi: embed;
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 6px;
  border-radius: 6px;
}
.docs ul,
.docs ol {
  color: var(--graphite);
  padding-inline-start: 22px;
  margin: 0 0 12px;
}
.docs li {
  margin: 4px 0;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}
.toc a {
  padding: 6px 12px;
  border: 1px solid var(--pencil-gray);
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
}

.or-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--steel, #6b7280);
  font-size: 13px;
}
.or-line:before,
.or-line:after {
  content: '';
  height: 1px;
  background: var(--pencil-gray, #d4d4d4);
  flex: 1;
}

/* Phones: the first screen is one block whose parts are spread over its height (no empty strip under the content); the illustration starts below it. */
@media (max-width: 700px) {
  .hero-main {
    min-height: calc(100svh - 112px);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
  }
  .hero-main .hero-cta {
    align-self: stretch;
  }
  .hero-main .display,
  .hero-main .hero-cta,
  .hero-main .hero-link {
    margin-top: 0;
    margin-bottom: 0;
  }
}
