/* binkly Auth API page (/auth-api.html, /ar/auth-api): the API that lets any business ask its own users' phones
   to approve a sign-in or an action, instead of sending an SMS code. Loaded after landing.css, site.css and auth.css:
   the dark tokens, the hero, the live demo, the steps, the FAQ and the closing come from auth.css, so this file only
   adds what the binkly Auth page does not have. Layout of this file:
     1. Shared section frame         4. Price: tiers, estimate, comparison
     2. Hero additions               5. Code and security
     3. The problem with SMS         6. Arabic, motion, smaller screens
   Everything reads without JavaScript: the estimate is hidden until js/auth-api.js wires it, and the comparison
   table below it carries the same numbers. */

/* ===== 1. Shared section frame ===== */
.ap-sec { padding: 128px 0; border-top: 1px solid var(--line); }
.ap-sec .ac-head { margin-bottom: 56px; }
.ap .sp { padding-top: 128px; border-top: 1px solid var(--line); }
.ap .sp-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 64px; align-items: end; }
.ap .sp-head p { font-size: 18px; line-height: 1.6; color: var(--fg-2); }
.ap .sp-list p code, .ap-card p code, .ap-note code, .ap-tier small code { font: 0.88em var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--ah-3); color: var(--fg); }

/* Cards: the one surface used by the SMS problems and the security points. */
.ap-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ap-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 20px; background: var(--ah-1); box-shadow: inset 0 0 0 1px var(--line); }
.ap-card h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.ap-card p { font-size: 15.5px; line-height: 1.65; color: var(--fg-2); }
.ap-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--lil-wash); color: var(--lil); }
.ap-ic svg { width: 24px; height: 24px; }
.ap-ic.bad { background: var(--no-wash); color: var(--no-c); }
.ap-card ul { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.ap-card ul li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--fg-2); }
.ap-note { margin-top: 28px; font-size: 14.5px; line-height: 1.6; color: var(--fg-3); max-width: 62em; }

/* ===== 2. Hero additions ===== */
.ap .hx-act .btn { min-height: 56px; border-radius: 14px; padding: 0 26px; }
.ap .hx h1 { max-width: 13em; }
/* For those who already have an account: a quiet line under the buttons, so signing in is one tap from the top. */
.ap-signin { font-size: 15px; color: var(--fg-3); }
.ap-signin a { font-weight: 600; color: var(--fg); text-decoration: underline; text-decoration-color: var(--lil-2); text-underline-offset: 4px; }
.ap-signin a:hover { color: var(--lil); }
.ap .hx-brand small .lat { color: inherit; }
/* The demo's page belongs to an example store, so it carries a plain store glyph, never the binkly mark. */
.ap .ap-logo { width: 44px; height: 44px; color: var(--lil); }

/* ===== 3. The problem with SMS ===== */
.ap-sms .ap-card { background: var(--ah-1); }

/* ===== 4. Price: tiers, estimate, comparison ===== */
.ap-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ap-tier { display: grid; align-content: start; gap: 8px; padding: 30px 32px; border-radius: 20px; background: var(--ah-1); box-shadow: inset 0 0 0 1px var(--line); }
.ap-tier.on { background: var(--ah-1); box-shadow: inset 0 0 0 1.5px var(--lil); }
.ap-tier h3 { font-size: 14.5px; font-weight: 600; color: var(--fg-3); }
.ap-tier .ap-p { font-size: 44px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.ap-tier .ap-p small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--fg-2); }
.ap-tier > small { font-size: 14px; line-height: 1.55; color: var(--fg-3); }
.ap-terms { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14.5px; color: var(--fg-2); }
.ap-terms li { display: inline-flex; align-items: center; gap: 8px; }
.ap-terms svg { width: 15px; height: 15px; flex: none; color: var(--ok-c); }

.ap-calc { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 56px; align-items: center; padding: 36px 40px; border-radius: 20px; background: var(--ah-1); box-shadow: inset 0 0 0 1px var(--line); }
.ap-calc[hidden] { display: none; }
.ap-calc h3 { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.ap-calc > div:first-child > p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--fg-3); }
.ap-field { margin-top: 24px; display: grid; gap: 10px; }
.ap-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; color: var(--fg-2); }
.ap-field output { font: 600 17px/1.2 var(--font); color: var(--fg); font-variant-numeric: tabular-nums; }
.ap-field input { width: 100%; margin: 0; accent-color: var(--lil); cursor: pointer; }
.ap-res { display: grid; gap: 14px; }
.ap-bar { display: grid; gap: 8px; }
.ap-bar p { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--fg-2); }
.ap-bar b { font: 600 26px/1.1 var(--font); letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.ap-track { height: 12px; border-radius: 999px; background: var(--ah-3); overflow: hidden; }
.ap-track i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--lil); transform-origin: left center; transition: transform .5s var(--ease-q); }
.ap-bar.sms .ap-track i { background: #6E6E7C; }
.ap-save { padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--fg-2); }
.ap-save b { color: var(--ok-c); font-weight: 600; }

.ap-cmp-wrap { margin-top: 56px; overflow-x: auto; }
.ap-cmp { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.ap-cmp caption { caption-side: top; text-align: start; padding-bottom: 16px; font-size: 20px; font-weight: 600; color: var(--fg); }
.ap-cmp th, .ap-cmp td { padding: 16px 12px; text-align: end; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ap-cmp th:first-child, .ap-cmp td:first-child { text-align: start; padding-inline-start: 0; }
.ap-cmp th:last-child, .ap-cmp td:last-child { padding-inline-end: 0; }
.ap-cmp thead th { font-size: 13.5px; font-weight: 600; color: var(--fg-3); border-bottom-color: var(--line-2); vertical-align: bottom; }
.ap-cmp tbody th { font-weight: 600; color: var(--fg); }
.ap-cmp td { color: var(--fg-2); }
.ap-cmp td.ap-us { color: var(--lil); font-weight: 600; }

/* ===== 5. Code and security ===== */
.ap-code-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.ap-code-in .ac-head { display: block; margin-bottom: 0; }
.ap-code-in .ac-head p { margin-top: 20px; }
.ap-code-in .checks li { color: var(--fg-2); font-size: 15.5px; }
.ap-code-in .checks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--lil); }
.ap .code { background: #15151C; border-color: var(--line-2); }
.ap .code pre { max-height: 560px; }
.ap-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== 6. Arabic, motion, smaller screens ===== */
html[dir="rtl"] .ap-card h3, html[dir="rtl"] .ap-calc h3, html[dir="rtl"] .ap-tier .ap-p, html[dir="rtl"] .ap-bar b { letter-spacing: 0; }
html[dir="rtl"] .ap .sp-head h2 { line-height: 1.25; letter-spacing: 0; }
html[dir="rtl"] .ap-track i { transform-origin: right center; }
html[dir="rtl"] .ap-cmp caption { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .ap-track i { transition: none; }
}

@media (max-width: 1000px) {
  .ap-sec, .ap .sp { padding-top: 96px; padding-bottom: 96px; }
  .ap-cards, .ap-tiers { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ap .sp-head, .ap-code-in, .ap-calc { grid-template-columns: minmax(0, 1fr); }
  .ap-code-in { gap: 40px; }
}
@media (max-width: 700px) {
  .ap-sec, .ap .sp { padding-top: 72px; padding-bottom: 72px; }
  .ap-sec .ac-head { margin-bottom: 40px; }
  .ap-card, .ap-tier { padding: 24px; }
  .ap-calc { padding: 24px; margin-top: 40px; }
  .ap-tier .ap-p { font-size: 38px; }
  .ap .hx-act .btn { width: 100%; }
  .ap-cmp { font-size: 14px; }
  .ap-cmp th, .ap-cmp td { padding: 14px 8px; }
  .ap-cmp-wrap { margin-top: 40px; }
  .ap-links > * { width: 100%; justify-content: center; }
}
