/* anom.app landing — / (English, DM Sans) and /ar (Arabic, Tajawal): the
   sections of the page. The colours, base, header and footer are in
   /assets/site.css, loaded first. Mobile first. */

/* ── Type ─────────────────────────────────────────────────────────────── */
.label {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
h2 { font-size: clamp(30px, 6.4vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-2); margin-top: 16px; max-width: 620px; text-wrap: pretty; }
.muted { color: var(--text-2); }
.section { padding-block: 88px; border-top: 1px solid var(--border); }
.section-head { margin-bottom: 44px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
[dir="rtl"] .label { text-transform: none; font-size: 15px; }
[dir="rtl"] h2 { line-height: 1.55; }
[dir="rtl"] h3, [dir="rtl"] .spot-copy h3 { line-height: 1.7; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { display: grid; gap: 56px; padding-block: 28px 88px; text-align: center; }
.hero-copy { animation: fadeUp 0.9s var(--easing) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.status-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 100px; background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 26px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18); animation: anom-pulse 1.4s linear infinite; flex-shrink: 0; }   /* the logo's pulse (site.css) */
.tagline { font-size: clamp(42px, 11vw, 68px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.tagline .accent { color: var(--accent); display: block; }
[dir="rtl"] .tagline { line-height: 1.55; }
.subhead { font-size: clamp(18px, 4.6vw, 21px); color: var(--text-2); line-height: 1.5; margin: 22px auto 34px; max-width: 520px; text-wrap: balance; }
.hero-visual { display: flex; justify-content: center; }

/* launch states: only the line that is true shows (html classes set in <head>) */
.state { display: none; }
.state-none { display: inline; }
html.any-live .state-none { display: none; }
html.play-live:not(.appstore-live) .state-play,
html.appstore-live:not(.play-live) .state-appstore,
html.play-live.appstore-live .state-both { display: inline; }

/* ── Waitlist form (same endpoint and behaviour as before) ─────────────── */
.waitlist { max-width: 460px; margin: 0 auto; }
html.play-live.appstore-live .waitlist { display: none; }   /* the form stays until BOTH stores are live */
.form-row {
  display: flex; flex-direction: column; gap: 6px; padding: 7px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px;
  transition: border-color 0.2s var(--easing), box-shadow 0.2s var(--easing);
}
.form-row:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-input {
  flex: 1; min-width: 0; padding: 14px; border: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--text); outline: none;
}
.form-input::placeholder { color: var(--text-3); }
.form-button {
  padding: 14px 22px; border: 0; border-radius: 11px; background: var(--accent); color: #FFFFFF;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background 0.18s var(--easing), transform 0.18s var(--easing), opacity 0.18s var(--easing);
}
.form-button:hover:not(:disabled) { background: var(--accent-hover); }
.form-button:active:not(:disabled) { transform: scale(0.97); }
.form-button:disabled { opacity: 0.65; cursor: not-allowed; }
.form-helper { margin-top: 14px; font-size: 14px; color: var(--text-2); }
.form-error { display: none; margin-top: 12px; font-size: 14px; color: var(--error); }
.form-error.is-visible { display: block; }
.success { display: none; max-width: 460px; margin: 0 auto; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; text-align: start; }
.success.is-visible { display: block; animation: fadeUp 0.45s var(--easing) both; }
.success-header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.success-check { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.success-title { font-size: 16px; font-weight: 600; }
.success-text { font-size: 15px; color: var(--text-2); padding-inline-start: 40px; }

/* ── Store badges (official artwork; shown only when a store is live) ───── */
.store-badges { display: none; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
html.any-live .store-badges { display: flex; margin-bottom: 22px; }   /* above the form while it shows */
html.play-live.appstore-live .store-badges { margin-bottom: 0; }
.badge { display: none; line-height: 0; border-radius: 10px; }
html.play-live .badge-play, html.appstore-live .badge-appstore { display: inline-block; }
.badge img { height: 52px; width: auto; }

/* ── Phone screenshots: a hairline bezel, no shadow ────────────────────── */
.phone {
  width: min(78vw, 280px); padding: 7px; border-radius: 46px;
  background: var(--surface); border: 1px solid var(--border-strong);
}
.phone picture { display: block; }
.phone img { width: 100%; aspect-ratio: 640 / 1391; border-radius: 39px; }
/* Dark site: every picture is the app's own dark screen (<picture>, see the
   <head>), so none is dimmed. The Samsung pictures (1440×2800, a little less
   tall) are fitted to this frame in the files themselves: 640 wide, the missing
   height added above as the screen's own background, where the iPhone ones
   have the status bar. */

/* ── How it works ─────────────────────────────────────────────────────── */
.steps { display: grid; gap: 16px; list-style: none; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px 28px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent-line); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; margin-bottom: 18px;
}
.step p { color: var(--text-2); margin-top: 8px; }
.quote {
  margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2);
  font-size: 15.5px; line-height: 1.55; color: var(--text); display: flex; gap: 10px; align-items: flex-start;
}
.quote svg { flex-shrink: 0; margin-top: 3px; color: var(--accent-ink); }
.mini-card { margin-top: 16px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; font-size: 15px; }
.mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.mini-row:last-child { border-bottom: 0; }
.mini-row dt { color: var(--text-3); flex-shrink: 0; }
.mini-row dd { font-weight: 500; text-align: end; }
.mini-row dd .tick { color: var(--accent-ink); margin-inline-start: 6px; }

/* ── Who it's for ─────────────────────────────────────────────────────── */
.audience { list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.audience li { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.audience li:last-child { border-bottom: 0; }
.audience-groups { display: grid; gap: 30px; }
.group-title { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
[dir="rtl"] .group-title { text-transform: none; font-size: 15px; }
.audience strong { display: block; font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.audience span { color: var(--text-2); font-size: 15.5px; }

/* ── Features ─────────────────────────────────────────────────────────── */
.spots { display: grid; gap: 88px; }
.spot { display: grid; gap: 36px; align-items: center; }
.spot-copy { max-width: 480px; }
.spot-copy p { color: var(--text-2); margin-top: 12px; font-size: 17.5px; line-height: 1.6; }
.spot-copy h3 { font-size: clamp(24px, 5vw, 32px); letter-spacing: -0.02em; line-height: 1.15; }
.spot-media { display: flex; justify-content: center; }
.tiles { display: grid; gap: 12px; margin-top: 88px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 24px; }
.tile-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.tile h3 { font-size: 18px; }
.tile p { color: var(--text-2); margin-top: 6px; font-size: 15.5px; }

/* ── Private by design ────────────────────────────────────────────────── */
.promises { display: grid; gap: 12px; list-style: none; }
.promises li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.promises .check { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.promises strong { display: block; font-weight: 700; }
.promises span.muted { font-size: 15.5px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Plans ────────────────────────────────────────────────────────────── */
.plans { display: grid; gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px 26px 30px; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--accent-line); }
.plan-name { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.plan-tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: 100px; padding: 4px 11px; margin-inline-start: 10px; vertical-align: 3px; }
.plan-price { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-top: 14px; }
.plan-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.plan-list svg { flex-shrink: 0; margin-top: 5px; color: var(--accent-ink); }
.price-live { display: none; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
html.any-live .price-live { display: block; }
.price-live .prices { font-size: 18px; font-weight: 600; }
.price-live small { display: block; margin-top: 4px; font-size: 14px; color: var(--text-2); }

/* ── About ────────────────────────────────────────────────────────────── */
.about { max-width: 680px; }
.about p { font-size: 19px; line-height: 1.7; margin-top: 20px; text-wrap: pretty; }
.about .signature { margin-top: 28px; font-weight: 700; font-size: 19px; }

/* ── Contact ──────────────────────────────────────────────────────────── */
.mail { display: inline-block; margin-top: 18px; font-size: clamp(24px, 6vw, 34px); font-weight: 700; letter-spacing: -0.02em; color: var(--accent-ink); text-decoration: none; }
.mail:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ── Tablet ───────────────────────────────────────────────────────────── */
@media (min-width: 700px) {
  .form-row { flex-direction: row; padding: 6px; }
  .form-button { padding: 13px 22px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: 112px; }
}

/* ── Desktop ──────────────────────────────────────────────────────────── */
@media (min-width: 980px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; text-align: start; padding-block: 40px 120px; gap: 48px; }
  .hero .subhead { margin-inline: 0; }
  .hero .waitlist { margin-inline: 0; }
  .hero .store-badges { justify-content: flex-start; }
  .phone { width: 300px; }
  .steps { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
  .split .section-head { margin-bottom: 0; position: sticky; top: 40px; }
  .spot { grid-template-columns: 1fr 1fr; gap: 64px; }
  .spot:nth-child(even) .spot-media { order: -1; }
  .spot-copy { justify-self: center; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .section { padding-block: 128px; }
}
