/* Shared skin for the trial rail: index (start), ended (exit), signup, verify.
   Extracted from index.html's inline block when the funnel grew past one page —
   four pages a prospect walks in sequence must not drift apart visually. */
/* Dark by default (owner decision 2026-08-13) — these are the DASHBOARD's dark
   tokens verbatim (frontend/src/tokens.css :root[data-theme="dark"]) so the
   prospect walks trial page -> sandbox with no visual jolt. There is no light
   variant here on purpose: the funnel is one fixed look, unlike the app. */
:root { --brand:#0f172a; --accent:#2dd4bf; --ink:#e6e9ed; --mut:#8b96a3;
        --card:#18212a; --bg:#10161b; --line:#2b3844; --bad:#f87171; }
* { box-sizing:border-box; margin:0; }
body { font:16px/1.55 -apple-system,"Segoe UI",Roboto,"Noto Sans Arabic",sans-serif;
       background:var(--bg); color:var(--ink); min-height:100vh; }
header { background:var(--brand); color:#fff; padding:18px 24px;
         display:flex; align-items:center; justify-content:space-between; }
.wordmark { font-weight:800; letter-spacing:.12em; }
.wordmark small { display:block; color:var(--accent); font-size:10px; letter-spacing:.28em; }
.lang-btn { background:transparent; border:1px solid var(--accent); color:var(--accent);
            border-radius:8px; padding:4px 12px; cursor:pointer; font-size:13px; }
main { max-width:660px; margin:0 auto; padding:40px 20px 80px; }
h1 { font-size:30px; line-height:1.25; margin-bottom:10px; }
h1 em { color:var(--accent); font-style:normal; }
/* The browser's default link blue (#0000EE) is unreadable on the dark page —
   every page in the funnel carries links, so this is not optional. .go and
   .result button set their own colors and are unaffected. */
a { color:var(--accent); }
a:hover { text-decoration:none; }
.sub { color:var(--mut); margin-bottom:28px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px;
        padding:22px; margin-bottom:16px; box-shadow:0 1px 3px rgba(15,23,42,.05); }
label { font-size:13px; font-weight:600; color:var(--mut); display:block; margin-bottom:6px; }
/* Explicit background/color: an unstyled input renders WHITE on every browser,
   which on the dark card reads as a hole punched in the page. Matched by
   EXCLUSION (any input that is not a button/checkbox/radio) rather than by
   listing types — the signup flow added type=tel the same day this went dark,
   and a new field must not be able to punch a white hole by default. */
input:not([type=button]):not([type=submit]):not([type=checkbox]):not([type=radio]) {
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:10px;
  font-size:16px; background:var(--bg); color:var(--ink); }
input::placeholder { color:var(--mut); }
/* Chrome paints its own near-white background on any field it autofilled and
   ignores `background`. On the dark card that field alone comes back white —
   and on THIS page it is the business-name box, i.e. the first thing a paid
   visitor types into. The inset shadow is the only way to repaint it; the
   absurd transition delay stops Chrome re-asserting the colour on blur. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color:var(--ink);
  -webkit-box-shadow:0 0 0 1000px var(--bg) inset;
  box-shadow:0 0 0 1000px var(--bg) inset;
  caret-color:var(--ink);
  transition:background-color 9999s ease-out 0s; }
/* The honeypot must stay invisible — it is off-screen, but give it no size
   either, so widening the rule above can never make it a visible field. */
.hp { width:0 !important; padding:0 !important; border:0 !important; }
input:focus { outline:2px solid var(--accent); border-color:transparent; }
.row { display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
/* Teal, not brand-navy: on the dark page a navy button is a hole, not a
   call to action. Matches .go and .result button, which were already teal. */
button.primary { background:var(--accent); color:#042f2e; border:0; border-radius:10px;
  padding:12px 22px; font-size:16px; font-weight:700; cursor:pointer; }
button.primary:hover { filter:brightness(1.1); }
button.primary:disabled { opacity:.5; cursor:default; }
button.ghost, a.ghost { background:transparent; border:1px solid var(--line); color:var(--ink);
  border-radius:10px; padding:12px 22px; font-size:16px; font-weight:600; cursor:pointer; }
button.ghost:hover, a.ghost:hover { border-color:var(--mut); }
button.ghost:disabled { opacity:.5; cursor:default; }
/* Log in | Sign up. Two doors of equal weight, because a returning customer
   and a first-timer arrive on the same URL and neither should have to read
   prose to work out which half of the page is theirs. */
.tabs { display:flex; gap:8px; margin-bottom:18px; }
.tabs button { flex:1; background:transparent; border:1px solid var(--line);
  color:var(--mut); border-radius:10px; padding:11px 14px; font-size:15px;
  font-weight:700; cursor:pointer; }
.tabs button:hover { border-color:var(--mut); }
.tabs button[aria-selected=true] { background:var(--accent); color:#042f2e;
  border-color:var(--accent); }
.result { display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:12px 4px; border-bottom:1px solid var(--line); }
.result:last-child { border-bottom:0; }
.result .meta { font-size:13px; color:var(--mut); }
.result button { background:var(--accent); border:0; border-radius:8px; padding:8px 14px;
  font-weight:700; color:#042f2e; cursor:pointer; white-space:nowrap; }
details { margin-top:14px; font-size:14px; color:var(--mut); }
details input { margin-top:8px; }
.note { font-size:12px; color:var(--mut); margin-top:8px; }
.err { color:var(--bad); font-size:14px; margin-top:10px; white-space:pre-wrap; }
.spinner { display:inline-block; width:16px; height:16px; border:2px solid var(--line);
  border-top-color:var(--accent); border-radius:50%; animation:sp 0.8s linear infinite;
  vertical-align:-3px; margin-inline-end:8px; }
@keyframes sp { to { transform:rotate(360deg); } }
.go, .success a.go { display:inline-block; background:var(--accent); color:#042f2e;
  font-weight:800; border-radius:10px; padding:12px 22px; text-decoration:none; margin-top:12px; }
.steps { color:var(--mut); font-size:14px; }
ul.steps { margin:10px 0 0; padding-inline-start:20px; }
ul.steps li { margin-bottom:8px; }
.hp { position:absolute; left:-9999px; top:-9999px; }
[dir=rtl] .hp { right:-9999px; left:auto; }
footer { text-align:center; color:var(--mut); font-size:12px; padding:20px; }

/* ══ PHONES ══════════════════════════════════════════════════════════════
   This page is an AD LANDING PAGE — the click is paid for, and the visitor
   arrives on a 390px screen with one job to do. At desktop sizing the hero
   ate 416px before the first card, which put the sign-in button at ~901px:
   below the fold on a large phone, and well below it on an SE. Someone who
   has to scroll a screen and a half of prose to find the field is someone
   who already left.

   Everything here is type and spacing only — no markup assumptions — so it
   holds for the current page and for the sign-in flow landing on top of it. */
@media (max-width: 560px) {
  main { padding:20px 16px 48px; }
  h1 { font-size:23px; line-height:1.2; margin-bottom:8px; }
  .sub { font-size:14px; margin-bottom:16px; }
  .card { padding:16px; margin-bottom:12px; border-radius:12px; }
  header { padding:14px 16px; }
  /* 16px on inputs is load-bearing: any smaller and iOS Safari zooms the page
     on focus, which on a form this long leaves the visitor scrolled sideways
     into a field they cannot see the end of. */
  input[type=text], input[type=email], input[type=tel], input { font-size:16px; padding:11px 12px; }
  button.primary, button.ghost { width:100%; padding:13px 18px; }
  .row { gap:8px; }
  .row > button { flex:1 1 100%; }
  .result { flex-wrap:wrap; }
  footer { padding:16px; }
}
