/* Sahl POS — public marketing site, styled after the approved Sahl design.
   Brand: teal #1B7A6E · amber #E8A33D · ink #1F2933. RTL/LTR via <html dir>. */

:root {
  --teal: #1B7A6E;
  --teal-dark: #14584F;
  --teal-chip: #EAF4F2;
  --teal-mist: #BFE3DD;
  --teal-pale: #7FD6B4;
  --amber: #E8A33D;
  --rust: #C25E3F;
  --green: #2FA36B;
  --green-ink: #1E7A4F;
  --toast: #EAF7F0;
  --ink: #1F2933;
  --muted: #52606D;
  --faint: #7B8794;
  --line: #E2E6EA;
  --line-soft: #EEF1F4;
  --input: #CBD2D9;
  --alt: #F4F6F7;
  --mockbg: #FBFCFC;
  --barfill: #D7E9E6;
  --font-ar: 'Tajawal', system-ui, sans-serif;
  --font-he: 'Rubik', system-ui, sans-serif;
  --font-en: 'Poppins', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-ar);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html[lang="en"] body { font-family: var(--font-en); }
html[lang="he"] body { font-family: var(--font-he); }

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 64px; }
.container.narrow { max-width: 860px; }
.narrow-wide { max-width: 1000px; margin-inline: auto; }
.center { text-align: center; }

h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  border-radius: 12px;
  font-size: 17px;
  padding: 14px 32px;
}
.btn-sm { font-size: 14px; padding: 10px 22px; border-radius: 10px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-white { background: #fff; color: var(--teal); font-weight: 800; }
.btn-white:hover { color: var(--teal-dark); }

/* ── Brand lockup ────────────────────────────────────── */
.logo-lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 0; }
.logo-word { font-family: var(--font-ar); font-weight: 700; font-size: 26px; color: var(--teal); line-height: 1; }
.logo-cta .logo-word { font-size: 44px; color: #fff; line-height: 1.1; }
.logo-latin { font-family: var(--font-en); font-weight: 300; font-size: 13px; letter-spacing: 0.35em; color: #fff; margin-inline-end: -0.35em; }
.logo-mark {
  width: 20px; height: 20px; background: var(--teal); border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; }
.main-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.main-nav > a { color: var(--muted); font-weight: 500; font-size: 15px; }
.main-nav > a:hover { color: var(--teal); }
/* The CTA button keeps white text — .main-nav > a is more specific than .btn-primary. */
.main-nav > a.nav-cta { color: #fff; font-weight: 700; }
.main-nav > a.nav-cta:hover { color: #fff; background: var(--teal-dark); }
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.lang-switch a { padding: 2px 10px; border-radius: 7px; font-size: 13px; color: var(--faint); }
.lang-switch a.active { background: var(--teal-chip); color: var(--teal-dark); font-weight: 700; }
.nav-toggle, .nav-burger { display: none; }

/* ── Hero ────────────────────────────────────────────── */
.hero { padding-block: 72px; }
.hero-inner { display: flex; align-items: center; gap: 64px; }
.hero-copy { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-chip); color: var(--teal);
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 99px;
  width: fit-content;
}
.hero h1 { font-size: 52px; line-height: 1.25; }
.hero-sub { font-size: 19px; line-height: 1.8; color: var(--muted); max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; align-items: center; }
.hero-link { color: var(--teal); font-weight: 700; font-size: 17px; padding: 14px 20px; }
.hero-checks { list-style: none; display: flex; gap: 24px; padding: 0; margin: 6px 0 0; font-size: 14px; color: var(--faint); flex-wrap: wrap; }

/* Cashier mock */
.hero-visual { flex: 1; display: flex; justify-content: center; }
.mock-pos {
  width: 460px; max-width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: 0 24px 60px rgba(31, 41, 51, .10);
}
.mock-pos-top { background: var(--teal); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.mock-pos-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 14px; }
.mock-logo-chip {
  width: 26px; height: 26px; background: #fff; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.mock-logo-chip.sm { width: 22px; height: 22px; border-radius: 7px; background: var(--teal); }
.mock-pos-shop { color: var(--teal-mist); font-size: 11px; }
.mock-pos-body { display: flex; }
.mock-pos-grid {
  flex: 1.4; padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  border-inline-end: 1px solid var(--line-soft);
}
.mock-tile { background: var(--alt); border-radius: 9px; padding: 10px 8px; display: flex; flex-direction: column; gap: 3px; }
.mock-tile span { font-size: 12px; font-weight: 700; }
.mock-tile i { font-style: normal; font-size: 11px; color: var(--faint); }
.mock-pos-bill { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--mockbg); }
.mock-bill-title { font-size: 12px; font-weight: 700; color: var(--faint); }
.mock-bill-line { display: flex; justify-content: space-between; font-size: 12px; }
.mock-bill-sep { border-top: 1px dashed var(--input); margin-block: 4px; }
.mock-bill-total { display: flex; justify-content: space-between; font-size: 14px; font-weight: 800; }
.mock-bill-total span:last-child { color: var(--teal); }
.mock-bill-pay { background: var(--green); color: #fff; text-align: center; font-weight: 700; font-size: 13px; padding: 9px; border-radius: 9px; margin-top: 4px; }
.mock-pos-toast { background: var(--toast); padding: 9px 16px; display: flex; align-items: center; gap: 8px; }
.mock-pos-toast span { font-size: 12px; color: var(--green-ink); font-weight: 700; }

/* ── Sections ────────────────────────────────────────── */
.section { padding-block: 72px; }
.section-alt { background: var(--alt); }
.section-head { display: flex; flex-direction: column; gap: 8px; text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 36px; }
.section-head p { font-size: 17px; color: var(--muted); }

.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 20px; }
.card p { font-size: 15px; line-height: 1.8; color: var(--muted); }
.feature-icon {
  width: 52px; height: 52px; background: var(--teal); border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Screens */
.screen-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.screen-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.screen-bar { background: var(--teal); padding: 9px 14px; color: #fff; font-weight: 700; font-size: 13px; }
.screen-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.screen-body.center-body { align-items: center; }
.screen-row { display: flex; justify-content: space-between; align-items: baseline; }
.screen-row.small { font-size: 12px; color: var(--muted); }
.screen-row .muted { font-size: 13px; color: var(--faint); }
.screen-row .big { font-size: 24px; font-weight: 800; }
.teal { color: var(--teal); }
.green { color: var(--green); font-weight: 700; }
.screen-chart { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.screen-chart i { flex: 1; background: var(--barfill); border-radius: 4px 4px 0 0; }
.screen-chart i.on { background: var(--teal); }
.screen-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--alt); border-radius: 8px; padding: 9px 12px;
  font-size: 13px; font-weight: 700;
}
.screen-item .muted { font-size: 12px; font-weight: 400; color: var(--muted); }
.screen-add {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--input); border-radius: 8px; padding: 8px;
  color: var(--teal); font-size: 13px; font-weight: 700;
}
.mock-receipt {
  width: 150px; background: #fff; border: 1px solid #E5E7EB; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 5px; align-items: center;
}
.mock-receipt b { font-family: var(--font-ar); font-weight: 700; font-size: 18px; }
.mock-receipt .rule { width: 100%; border-top: 1px dashed var(--input); }
.mock-receipt .r-line { width: 100%; display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.mock-receipt .r-total { font-size: 11px; font-weight: 700; color: var(--ink); }
.mock-receipt .r-thanks { color: var(--green); font-size: 10px; font-weight: 700; }
.screen-fig figcaption { font-size: 14px; font-weight: 700; text-align: center; }

/* Comparison */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card { border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.compare-card h3 { font-size: 19px; }
.compare-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.compare-card li { display: flex; gap: 10px; }
.compare-old { background: #fff; border: 1px solid var(--line); }
.compare-old h3 { color: var(--faint); }
.compare-old ul { color: var(--muted); }
.compare-old .x { color: var(--rust); font-weight: 800; }
.compare-new { background: var(--teal); }
.compare-new h3 { color: #fff; }
.compare-new ul { color: var(--teal-chip); }
.compare-new .v { color: var(--teal-pale); font-weight: 800; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.step-circle {
  width: 44px; height: 44px; border-radius: 50%; background: var(--teal-chip);
  color: var(--teal); font-weight: 800; font-size: 19px;
  display: inline-flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 19px; }
.step p { font-size: 15px; line-height: 1.8; color: var(--muted); }

/* Mobile app */
.app-inner { display: flex; align-items: center; gap: 64px; max-width: 1100px; }
.app-visual { flex: 1; display: flex; justify-content: center; }
.mock-phone { width: 230px; background: var(--ink); border-radius: 32px; padding: 10px; }
.mock-phone-screen { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.mock-notch { display: flex; justify-content: center; padding: 7px 0 3px; }
.mock-notch i { width: 64px; height: 16px; background: var(--ink); border-radius: 99px; }
.mock-phone-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.mock-phone-brand { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; }
.mock-phone-stat { background: var(--teal); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 3px; }
.mock-phone-stat .lbl { font-size: 11px; color: var(--teal-mist); }
.mock-phone-stat .val { font-size: 24px; font-weight: 800; color: #fff; }
.mock-phone-stat .dif { font-size: 11px; color: var(--teal-pale); }
.mock-phone-ops { display: flex; flex-direction: column; gap: 7px; }
.mock-phone-ops .lbl { font-size: 11px; font-weight: 700; color: var(--faint); }
.mock-phone-ops .op { display: flex; justify-content: space-between; font-size: 11px; }
.app-copy { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.app-copy h2 { font-size: 36px; }
.app-copy p { font-size: 17px; line-height: 1.9; color: var(--muted); }
.store-badges { display: flex; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; border-radius: 10px;
  padding: 9px 18px; font-size: 13px; font-weight: 700;
  font-family: var(--font-en);
}
a.store-badge:hover { background: #000; color: #fff; }

/* Devices */
.device-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.device-card h3 { font-size: 18px; }
.device-card p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.device-art { display: flex; flex-direction: column; align-items: center; min-height: 66px; justify-content: center; }
.dv-monitor { width: 84px; height: 52px; border: 3px solid var(--teal); border-radius: 6px 6px 0 0; display: flex; align-items: center; justify-content: center; }
.dv-base { width: 100px; height: 7px; background: var(--teal); border-radius: 0 0 6px 6px; }
.dv-tablet { width: 84px; height: 60px; border: 3px solid var(--teal); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.dv-phone { width: 38px; height: 64px; border: 3px solid var(--teal); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.dv-paper { width: 34px; height: 22px; background: #fff; border: 2px solid var(--input); border-bottom: none; }
.dv-printer { width: 64px; height: 34px; background: var(--teal); border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.dv-printer i { width: 36px; height: 5px; background: var(--amber); border-radius: 99px; }

.feature-more { font-size: 14px; font-weight: 700; color: var(--teal); margin-top: auto; }
.feature-more:hover { color: var(--teal-dark); }

/* Industries strip */
.industries-strip { padding-block: 28px; border-block: 1px solid var(--line-soft); }
.industries-strip .container {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center;
}
.industries-title { font-size: 15px; font-weight: 700; color: var(--faint); }
.industries-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.industries-links a {
  background: var(--teal-chip); color: var(--teal-dark);
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 99px;
}
.industries-links a:hover { background: var(--teal-mist); }

/* WhatsApp */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.wa-float:hover { background: #1EBE5A; }
.wa-alt { display: block; text-align: center; font-size: 14px; font-weight: 700; margin-top: 2px; }

/* Pricing */
.pricing-wrap { max-width: 900px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plans-block { margin: 20px 0 32px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: #94a3b8; padding: 10px 0 0; }
.plans-tax-note { font-size: 13px; color: var(--faint); margin-top: 4px; }
.plans-block .billing-toggle { margin: 0 0 22px; }
.page-body .plans-block .plan { padding: 24px; }
.page-body .plans-block .plan .price b { font-size: 34px; }
.plan-sub { color: #64748b; font-size: 14px; margin: -6px 0 10px; }
.billing-toggle { display: inline-flex; margin-top: 14px; border: 1px solid #cbd5e1; border-radius: 999px; padding: 3px; background: #fff; }
.bt-btn { border: none; background: transparent; padding: 7px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; color: #334155; }
.bt-btn.active { background: #1B7A6E; color: #fff; }
.bt-btn small { font-size: 11px; opacity: .85; margin-inline-start: 4px; }
.plan { border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; position: relative; background: #fff; border: 1px solid var(--line); }
.plan h3 { font-size: 20px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-size: 40px; font-weight: 800; color: var(--teal); }
.plan .price span { font-size: 15px; color: var(--faint); }
.plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted); }
.plan-cta {
  border: 2px solid var(--teal); color: var(--teal); text-align: center;
  font-weight: 700; font-size: 15px; padding: 11px; border-radius: 10px; margin-top: auto;
}
.plan-popular { background: var(--teal); border: none; }
.plan-popular h3 { color: #fff; }
.plan-popular .price b { color: #fff; }
.plan-popular .price span { color: var(--teal-mist); }
.plan-popular .plan-list { color: var(--teal-chip); }
.plan-badge {
  position: absolute; top: 20px; inset-inline-end: 20px;
  background: var(--amber); color: var(--ink);
  font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 99px;
}
.plan-cta-solid { background: #fff; color: var(--teal); border: none; font-weight: 800; }
.pricing-more { margin-top: 24px; font-weight: 700; }

/* FAQ */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-list details { border-bottom: 1px solid var(--line); padding-block: 4px; }
.faq-list summary {
  cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none;
  position: relative; padding-inline-end: 30px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; inset-inline-end: 4px; top: 50%;
  transform: translateY(-50%); color: var(--teal); font-size: 1.3rem; font-family: var(--font-en);
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { color: var(--muted); margin: 0 0 16px; line-height: 1.8; }

/* CTA */
.cta-final { background: var(--teal); padding-block: 72px; }
.cta-inner { max-width: 800px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.cta-inner h2 { font-size: 32px; color: #fff; }
.cta-inner p { font-size: 16px; color: var(--teal-mist); line-height: 1.8; }

/* Contact */
.contact-inner { max-width: 960px; display: flex; gap: 56px; align-items: center; }
.contact-copy { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.contact-copy h2 { font-size: 34px; }
.contact-copy > p { font-size: 16px; line-height: 1.9; color: var(--muted); }
.contact-checks { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--faint); }
.next-steps {
  background: var(--alt); border-radius: 14px; padding: 18px 20px; margin-top: 6px;
}
.next-steps h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; color: var(--teal-dark); }
.next-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.7; color: var(--muted); }
.ns-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.contact-wa {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green-ink); font-weight: 700; font-size: 14px; margin-top: 2px;
}
.contact-wa:hover { color: var(--green); }
.contact-card { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.contact-card form { display: flex; flex-direction: column; gap: 14px; }
.contact-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.contact-card input, .contact-card select {
  border: 1px solid var(--input); border-radius: 9px; padding: 11px 14px;
  font-size: 14px; font-family: inherit; outline: none; background: #fff; color: var(--ink);
}
.contact-card input:focus, .contact-card select:focus { border-color: var(--teal); }
.contact-card .btn { font-size: 16px; padding: 13px; border-radius: 10px; font-weight: 800; }
/* Shop-type picker: icon radio cards instead of a plain select. */
.type-picker { border: none; margin: 0; padding: 0; }
.type-picker legend { font-size: 13px; font-weight: 700; padding: 0; margin-bottom: 6px; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.type-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.type-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid var(--input); border-radius: 10px; padding: 12px 6px;
  color: var(--muted); cursor: pointer; text-align: center; min-height: 74px;
  transition: border-color .12s, background .12s, color .12s;
}
.type-box span { font-size: 12px; font-weight: 700; line-height: 1.3; }
.type-box svg { color: var(--faint); transition: color .12s; }
.type-opt:hover .type-box { border-color: var(--teal-mist); }
.type-opt input:checked + .type-box {
  border-color: var(--teal); background: var(--teal-chip); color: var(--teal-dark);
}
.type-opt input:checked + .type-box svg { color: var(--teal); }
.type-opt input:focus-visible + .type-box { outline: 2px solid var(--amber); outline-offset: 2px; }

.hp { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.contact-card input.invalid, .contact-card select.invalid { border-color: var(--rust); }
.field-error { color: var(--rust); font-size: 12px; font-weight: 600; }
.form-errors { background: #FBEAE5; color: var(--rust); border-radius: 9px; padding: 10px 14px; font-weight: 600; font-size: 14px; margin: 0; }
.lead-success-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px 8px; }
.lead-success-icon {
  width: 62px; height: 62px; border-radius: 50%; background: var(--toast);
  display: inline-flex; align-items: center; justify-content: center;
}
.lead-success-card h3 { font-size: 22px; color: var(--green-ink); }
.lead-success-card p { color: var(--muted); line-height: 1.8; }

/* Anchor targets clear the sticky header. */
section[id], [id="contact"], [id="features"], [id="screens"], [id="how"], [id="pricing"], [id="faq"] { scroll-margin-top: 84px; }

/* ── Internal pages ──────────────────────────────────── */
.page { padding-block: 56px; }
.breadcrumbs { font-size: .9rem; color: var(--faint); margin-bottom: 24px; display: flex; gap: 8px; }
.page h1 { font-size: 40px; line-height: 1.3; margin-bottom: 12px; }
.page-intro { font-size: 1.15rem; color: var(--muted); line-height: 1.8; margin-bottom: 8px; }
.page-body { line-height: 1.8; }
.page-body h2 { margin-top: 1.6em; margin-bottom: .4em; font-size: 26px; }
.page-body h3 { margin-top: 1.2em; margin-bottom: .3em; font-size: 20px; }
.page-body p { margin-bottom: 1em; }
.page-body ul { padding-inline-start: 22px; color: var(--muted); }
.page-body li { margin-bottom: 6px; }
.page-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.page-body th, .page-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: start; }
.page-body thead th { background: var(--teal-chip); color: var(--teal-dark); }
.page-faq { margin-top: 48px; }
.page-faq h2 { text-align: center; font-size: 28px; margin-bottom: 16px; }
.page-cta {
  margin-top: 48px; background: var(--teal-chip); border: 1px solid var(--teal-mist);
  border-radius: 16px; padding: 32px; text-align: center;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.page-cta h2 { font-size: 26px; }
.page-cta p { color: var(--muted); }

/* ── Blog ────────────────────────────────────────────── */
.blog-index .section-head h1 { font-size: 40px; font-weight: 800; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.post-card h2 { font-size: 19px; line-height: 1.5; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--teal); }
.post-card p { font-size: 14px; line-height: 1.8; color: var(--muted); flex: 1; }
.post-cat {
  align-self: flex-start; background: var(--teal-chip); color: var(--teal-dark);
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 99px;
}
.post-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--faint); }
.post-meta-top { justify-content: flex-start; gap: 14px; margin-bottom: 14px; }
.text-strong { font-weight: 700; }
.related-posts {
  margin-top: 40px; background: var(--alt); border-radius: 16px; padding: 24px 28px;
}
.related-posts h2 { font-size: 20px; margin-bottom: 10px; }
.related-posts ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } .blog-index .section-head h1 { font-size: 30px; } }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line-soft); }
.footer-links-row {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 16px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a, .footer-contact a { color: var(--faint); font-size: 13px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--teal); }
.footer-contact { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 20px; font-size: 13px; color: var(--faint);
}
.footer-brand-mark { display: inline-flex; align-items: center; gap: 6px; }
.footer-latin { font-family: var(--font-en); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding-inline: 32px; }
  .hero h1 { font-size: 42px; }
}
@media (max-width: 900px) {
  .hero-inner, .app-inner, .contact-inner { flex-direction: column; gap: 40px; }
  .hero-visual { order: -1; }
  .mock-pos { width: 100%; max-width: 460px; }
  .cards-3, .steps-grid { grid-template-columns: 1fr 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .compare-grid, .plans { grid-template-columns: 1fr; }
  .billing-toggle { width: 100%; justify-content: center; }
  .contact-card { width: 100%; }
}
@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .hero { padding-block: 44px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 17px; }
  .section, .cta-final { padding-block: 48px; }
  .section-head h2 { font-size: 27px; }
  .cards-3, .cards-4, .steps-grid { grid-template-columns: 1fr; }
  .hero-checks { gap: 12px; }
  .page h1 { font-size: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .nav-burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }
  .main-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 16px 20px; gap: 14px;
  }
  .main-nav > a { font-size: 16px; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .nav-cta { text-align: center; }
}

/* ── signup ── */
.signup-page .signup-block { border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; margin: 0 0 18px; background: #fff; }
.signup-page legend { font-weight: 700; padding: 0 8px; }
.signup-page .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.signup-page .form-grid label, .signup-page .otp-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #334155; }
.signup-page .form-grid .span-2 { grid-column: span 2; }
.signup-page input[type=text], .signup-page input[type=email], .signup-page input[type=tel], .signup-page input[type=password], .signup-page select { border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; font: inherit; }
.signup-page .subdomain-input { display: flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 10px; overflow: hidden; }
.signup-page .subdomain-input input { border: none; flex: 1; min-width: 0; }
.signup-page .subdomain-input span { padding: 0 10px; color: #64748b; background: #f1f5f9; align-self: stretch; display: flex; align-items: center; }
.signup-page small.ok { color: #15803d; } .signup-page small.err { color: #b91c1c; } .signup-page .muted { color: #64748b; }
.signup-page .plans-compact .plan { cursor: pointer; position: relative; }
.signup-page .plans-compact .plan input { position: absolute; inset-inline-start: 12px; top: 12px; }
.signup-page .plans-compact .plan-selected { outline: 3px solid #1B7A6E; }
.signup-page .check { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; }
.signup-page .btn-block { width: 100%; }
.signup-narrow { max-width: 520px; }
.signup-page .otp-input { font-size: 28px; letter-spacing: 10px; text-align: center; }
.signup-page .cred-card { border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; background: #f8fafc; margin-bottom: 20px; }
.signup-page .cred-card .btn { margin: 6px 4px 0 0; }
.signup-page .alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; } .signup-page .alert-danger { background: #fef2f2; color: #991b1b; } .signup-page .alert-success { background: #f0fdf4; color: #166534; }
.signup-page .spinner { width: 36px; height: 36px; border: 4px solid #cbd5e1; border-top-color: #1B7A6E; border-radius: 50%; display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .signup-page .form-grid { grid-template-columns: 1fr; } .signup-page .form-grid .span-2 { grid-column: auto; } }
