/* Get Call Home — tokens + base */

/* ── Pelak (Farsi) — locally hosted ────────────────────────────── */
@font-face {
  font-family: "Pelak";
  src: url("fonts/PelakFA-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pelak";
  src: url("fonts/PelakFA-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pelak";
  src: url("fonts/PelakFA-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pelak";
  src: url("fonts/PelakFA-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pelak";
  src: url("fonts/PelakFA-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pelak";
  src: url("fonts/PelakFA-ExtraBold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pelak";
  src: url("fonts/PelakFA-Black.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --paper: oklch(0.985 0.008 75);
  --cream: oklch(0.968 0.014 75);
  --sand:  oklch(0.935 0.018 75);
  --linen: oklch(0.90 0.020 70);
  --ink:        oklch(0.22 0.018 55);
  --ink-soft:   oklch(0.42 0.022 55);
  --ink-mute:   oklch(0.60 0.020 60);
  --ink-faint:  oklch(0.78 0.018 70);
  --hairline:   oklch(0.22 0.018 55 / 0.10);
  --hairline-2: oklch(0.22 0.018 55 / 0.06);
  --rose:    oklch(0.62 0.13 25);
  --rose-2:  oklch(0.55 0.14 25);
  --rose-soft: oklch(0.93 0.04 25);
  --saffron: oklch(0.78 0.14 75);
  --saffron-soft: oklch(0.95 0.06 80);
  --ember:   oklch(0.58 0.17 28);
  --ember-soft: oklch(0.94 0.05 30);
  --success: oklch(0.55 0.10 150);
  --success-soft: oklch(0.94 0.04 150);
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Manrope", system-ui, sans-serif;
  --font-ui:      -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Manrope", system-ui, sans-serif;
  --font-fa:      "Pelak", -apple-system, "SF Pro Display", "Inter", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[dir="rtl"] { font-family: var(--font-fa); }
/* When in Farsi mode, force Pelak on EVERY element — overrides .display, .brand, status bar, etc. */
[dir="rtl"] *,
[dir="rtl"] *::before,
[dir="rtl"] *::after,
[dir="rtl"] .display,
[dir="rtl"] .brand,
[dir="rtl"] input,
[dir="rtl"] button,
[dir="rtl"] .mono,
[dir="rtl"] .num {
  font-family: var(--font-fa) !important;
}
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.022em; }
.num, .mono { font-variant-numeric: tabular-nums; }
button { font-family: inherit; }

.device {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  display: flex; flex-direction: column;
  position: relative; isolation: isolate;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.device:has(.screen) { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: 44px; overflow: hidden; }
.scrollarea { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--ink-faint) transparent; }
.scrollarea::-webkit-scrollbar { width: 6px; }
.scrollarea::-webkit-scrollbar-thumb { background: var(--ink-faint); border-radius: 999px; }

/* ── topbar ────────────────────────────────────────────────── */
.topbar {
  flex: none; padding: 12px 18px 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; background: var(--paper);
  position: relative;
}
.topbar::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 0.5px; background: var(--hairline-2); }
.brand { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; color: var(--ink); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.brand .glyph {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--rose) 0%, var(--saffron) 100%);
  color: var(--paper); display: grid; place-items: center;
  font-family: var(--font-display); font-size: 13px; line-height: 1; font-weight: 600;
}

/* topbar variants */
.tb-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 4px 5px 12px;
  border-radius: var(--r-pill);
  background: var(--cream);
  border: 0.5px solid var(--hairline);
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
  flex-wrap: nowrap;
}
.tb-chip .mins { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.tb-chip .exp { color: var(--ink-mute); font-size: 11.5px; white-space: nowrap; flex: none; }
.tb-chip .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--ink-faint); flex: none; }
.tb-chip .add { width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 13px; line-height: 1; border: none; cursor: pointer; flex: none; }
.tb-chip.low, .tb-chip.empty { background: var(--ember-soft); border-color: oklch(0.58 0.17 28 / 0.22); color: var(--ember); }
.tb-chip.low .exp, .tb-chip.empty .exp { color: oklch(0.58 0.17 28 / 0.75); }
.tb-chip.low .add, .tb-chip.empty .add { background: var(--ember); }
.tb-chip.low .dot, .tb-chip.empty .dot { background: oklch(0.58 0.17 28 / 0.35); }

.tb-pill { display: inline-flex; align-items: stretch; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); overflow: hidden; }
.tb-pill .minsblock { padding: 6px 12px; display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.tb-pill .minsblock .label { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.5; font-weight: 600; }
.tb-pill .minsblock .mins { font-weight: 600; font-variant-numeric: tabular-nums; }
.tb-pill .sep { width: 1px; background: oklch(1 0 0 / 0.18); }
.tb-pill .exp { padding: 0 12px; font-size: 11.5px; opacity: 0.7; display: flex; align-items: center; }
.tb-pill .add { padding: 0 12px; background: var(--rose); color: var(--paper); display: flex; align-items: center; font-size: 14px; border: none; cursor: pointer; }
.tb-pill.low { background: var(--ember); }

.tb-ring { display: inline-flex; align-items: center; gap: 10px; padding: 2px 0; }
.tb-ring .ring { width: 36px; height: 36px; position: relative; }
.tb-ring .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tb-ring .ring .track { fill: none; stroke: var(--hairline); stroke-width: 2.5; }
.tb-ring .ring .meter { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.tb-ring .stack { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.tb-ring .stack .mins { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.tb-ring .stack .exp { font-size: 11px; color: var(--ink-mute); margin-top: 2px; }
.tb-ring.low .ring .meter { stroke: var(--ember); }
.tb-ring.low .stack .mins { color: var(--ember); }
.tb-ring .add { border: 0.5px solid var(--hairline); background: var(--cream); color: var(--ink); width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-size: 14px; cursor: pointer; }
.tb-ring.low .add { background: var(--ember); color: var(--paper); border-color: transparent; }
[dir="rtl"] .tb-ring .stack { align-items: flex-start; }

/* ── tab bar ───────────────────────────────────────────────── */
.tabbar { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 14px 22px; gap: 4px; background: var(--paper); position: relative; }
.tabbar::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 0.5px; background: var(--hairline-2); }
.tab { appearance: none; border: none; background: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 4px; border-radius: 12px; font-family: inherit; font-size: 10.5px; color: var(--ink-mute); cursor: pointer; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.tab .icon { width: 22px; height: 22px; }
.tab.active { color: var(--ink); }

/* ── buttons & inputs ──────────────────────────────────────── */
.btn { appearance: none; border: none; cursor: pointer; font-family: inherit; font-weight: 600; border-radius: var(--r-pill); padding: 14px 22px; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .06s ease, background .2s, color .2s; }
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-rose { background: var(--rose); color: var(--paper); }
.btn-ghost { background: var(--cream); color: var(--ink); border: 0.5px solid var(--hairline); }
.btn-link { background: none; color: var(--ink-soft); padding: 8px 12px; font-weight: 500; font-size: 14px; }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 24px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.06em; font-weight: 600; text-transform: uppercase; }
.field input { appearance: none; border: 0.5px solid var(--hairline); background: var(--cream); border-radius: var(--r-md); padding: 14px 14px; font-size: 15px; font-family: inherit; color: var(--ink); width: 100%; outline: none; transition: border .15s, background .15s; }
.field input:focus { border-color: var(--ink); background: var(--paper); }
.field .hint { font-size: 11.5px; color: var(--ink-mute); }

/* ── list/contact ──────────────────────────────────────────── */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 12px 18px; cursor: pointer; position: relative; transition: background .12s; }
.list-item:hover { background: var(--cream); }
.list-item::after { content: ""; position: absolute; left: 64px; right: 18px; bottom: 0; height: 0.5px; background: var(--hairline-2); }
.list-item:last-child::after { display: none; }
[dir="rtl"] .list-item::after { left: 18px; right: 64px; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--ink); background: var(--sand); }
.avatar.rose { background: oklch(0.93 0.06 25); color: var(--rose-2); }
.avatar.saffron { background: var(--saffron-soft); color: oklch(0.50 0.14 75); }
.avatar.green { background: oklch(0.93 0.04 150); color: var(--success); }
.avatar.turq { background: oklch(0.93 0.04 195); color: oklch(0.45 0.10 195); }
.list-item .body { min-width: 0; }
.list-item .name { font-weight: 500; font-size: 15px; color: var(--ink); }
.list-item .meta { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.list-item .right { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; color: var(--ink-mute); font-size: 12px; }
.list-item .call-btn { width: 32px; height: 32px; border-radius: 999px; background: var(--ink); color: var(--paper); display: grid; place-items: center; border: none; cursor: pointer; }

.section-h { padding: 18px 18px 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }

/* ── keypad ────────────────────────────────────────────────── */
.kp-screen { display: flex; flex-direction: column; height: 100%; padding: 0 24px 8px; }
.kp-display { flex: none; text-align: center; padding: 28px 0 18px; position: relative; direction: ltr; }
.kp-input {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Manrope", system-ui, sans-serif;
  font-weight: 300;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  min-height: 44px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  width: 100%;
  border: none;
  background: none;
  outline: none;
  padding: 0;
  caret-color: var(--rose);
}
.kp-input::placeholder { color: var(--ink-faint); }
.kp-input.err { color: var(--ember); }
.kp-hint { margin-top: 4px; font-size: 12px; color: var(--ink-mute); min-height: 16px; transition: color .15s; }
.kp-hint.kp-hint-ok { color: var(--success); }
.kp-hint.kp-hint-err { color: var(--ember); }
.kp-hint.kp-hint-soft { color: var(--ink-mute); }
[dir="rtl"] .kp-input { font-family: var(--font-fa) !important; font-weight: 700; }
.kp-methods { flex:1; min-height:0; display:flex; flex-direction:column; justify-content:center; gap:11px; padding:4px 0; }
.kp-method { appearance:none; cursor:pointer; font:inherit; font-size:16px; font-weight:600; width:100%; display:flex; align-items:center; justify-content:center; gap:11px; padding:17px 18px; border-radius:var(--r-lg, 14px); background:var(--cream); border:0.5px solid var(--hairline, #e5e0d8); color:var(--ink); transition:background .15s, transform .06s, box-shadow .15s; }
.kp-method:hover:not(:disabled) { background:var(--sand, #e8e3da); }
.kp-method:active:not(:disabled) { transform:scale(0.99); }
.kp-method:disabled { opacity:0.45; cursor:not-allowed; }
.kp-method .mi { display:inline-flex; color:var(--rose-2, var(--rose)); }
.kp-method.primary { background:var(--ink); color:var(--paper); border-color:transparent; box-shadow:0 10px 26px -14px oklch(0.22 0.018 55 / 0.55); }
.kp-method.primary .mi { color:var(--paper); }
.kp-clip-msg { text-align:center; font-size:12.5px; color:var(--ember); min-height:18px; line-height:1.35; padding:0 8px; }
.kp-actions { flex: none; padding: 6px 0 8px; display: flex; justify-content: center; gap: 24px; align-items: center; }
.kp-call { width: 64px; height: 64px; border-radius: 999px; background: var(--rose); color: var(--paper); border: none; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px -8px oklch(0.62 0.13 25 / 0.6), 0 0 0 6px oklch(0.93 0.04 25 / 0.4); }
.kp-call:active { transform: scale(0.97); }
.kp-actions .side { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink-mute); background: none; border: none; cursor: pointer; border-radius: 999px; transition: background .12s, color .12s; }
.kp-actions .side:hover:not(:disabled) { background: var(--cream); }

/* recents */
.rec-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; position: relative; cursor: pointer; }
.rec-item:hover { background: var(--cream); }
.rec-item::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 0.5px; background: var(--hairline-2); }
.rec-item:last-child::after { display: none; }
.rec-item .ico { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink-mute); flex: none; }
.rec-item.missed .ico, .rec-item.missed .name { color: var(--ember); }
.rec-item .body { min-width: 0; flex: 1; }
.rec-item .name { font-weight: 500; font-size: 14.5px; color: var(--ink); }
.rec-item .name.muted { color: var(--ink-mute); font-weight: 400; }
.rec-item .meta { font-size: 12px; color: var(--ink-mute); margin-top: 1px; display: flex; gap: 6px; align-items: center; }
.rec-item .time { font-size: 12px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.rec-item .pill { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: var(--saffron-soft); color: oklch(0.42 0.10 70); font-weight: 600; letter-spacing: 0.02em; }
.rec-item .pill.queued { background: var(--saffron-soft); color: oklch(0.45 0.10 70); }
.rec-item .pill.in-progress, .rec-item .pill.connecting { background: oklch(0.93 0.04 195); color: oklch(0.40 0.10 195); }
.rec-item .pill.completed { background: var(--success-soft); color: var(--success); }
.rec-item .pill.missed, .rec-item .pill.cancelled { background: var(--ember-soft); color: var(--ember); }

/* status bar */
.statusbar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 44px; padding: 14px 26px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  z-index: 50;
  pointer-events: none;
}
.statusbar .right { display: flex; align-items: center; gap: 6px; }

/* call screen */
.call-screen { position: absolute; inset: 0; background: linear-gradient(180deg, oklch(0.94 0.04 25) 0%, var(--paper) 60%); display: flex; flex-direction: column; padding-top: 60px; z-index: 200; }
.call-screen .who { text-align: center; padding: 20px 24px; }
.call-screen .who .name { font-family: var(--font-display); font-size: 32px; color: var(--ink); letter-spacing: -0.01em; }
.call-screen .who .num { color: var(--ink-mute); font-size: 14px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.call-screen .status { text-align: center; padding: 8px 24px 0; font-size: 13.5px; color: var(--ink-soft); display: flex; gap: 6px; justify-content: center; align-items: center; }
.call-screen .status .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--saffron); animation: pulse 1.4s ease-in-out infinite; }
.call-screen .status.connected .dot { background: var(--success); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 0.4; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }
.call-bridge { flex: 1; display: grid; place-items: center; padding: 24px; }
.bridge { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; }
.bridge .leg { position: absolute; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bridge .leg.left { left: 0; }
.bridge .leg.right { right: 0; }
.bridge .leg .photo { width: 96px; height: 96px; border-radius: 999px; background: var(--sand); display: grid; place-items: center; font-family: var(--font-display); font-size: 36px; color: var(--ink); border: 2px solid var(--paper); box-shadow: 0 8px 24px -10px oklch(0.22 0.018 55 / 0.3); }
.bridge .leg.left .photo { background: oklch(0.93 0.04 195); color: oklch(0.40 0.10 195); }
.bridge .leg.right .photo { background: oklch(0.93 0.06 25); color: var(--rose-2); }
.bridge .leg .label { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.bridge .line { position: absolute; top: 50%; left: 96px; right: 96px; height: 2px; transform: translateY(-50%); }
.bridge .line svg { width: 100%; height: 24px; transform: translateY(-12px); overflow: visible; }
.bridge .timer { position: absolute; top: 50%; left: 50%; transform: translate(-50%, calc(-50% - 36px)); font-family: var(--font-display); font-size: 28px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bridge .timer .lbl { display: block; font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.1em; color: var(--ink-mute); text-transform: uppercase; font-weight: 600; margin-top: 2px; }

.call-actions { flex: none; padding: 16px 24px 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.call-actions .ca { aspect-ratio: 1.4; border-radius: var(--r-lg); background: var(--cream); border: 0.5px solid var(--hairline-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink); cursor: pointer; font-size: 11.5px; }
.call-actions .ca.on { background: var(--ink); color: var(--paper); }
.call-end-row { padding: 0 24px 28px; }
.call-end { width: 100%; height: 56px; border-radius: 999px; background: var(--ember); color: var(--paper); border: none; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }

/* landing */
.landing { display: flex; flex-direction: column; height: 100%; padding: 60px 28px 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); position: relative; }
.landing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 300px at 80% 10%, oklch(0.94 0.05 25 / 0.7), transparent 60%), radial-gradient(500px 320px at 0% 100%, var(--saffron-soft) 0%, transparent 60%); z-index: 0; overflow: hidden; }
.landing > * { position: relative; z-index: 1; }
.landing .top { display: flex; align-items: center; justify-content: space-between; }
.landing .top .mark { font-family: var(--font-display); font-size: 22px; color: var(--ink); letter-spacing: -0.015em; display: flex; align-items: center; gap: 8px; }
.landing .top .mark .glyph { width: 24px; height: 24px; border-radius: 6px; background: linear-gradient(135deg, var(--rose), var(--saffron)); display: grid; place-items: center; color: var(--paper); font-family: var(--font-display); font-size: 14px; line-height: 1; }
.landing .lang-toggle { display: flex; align-items: center; gap: 6px; padding: 4px 10px; background: oklch(1 0 0 / 0.5); border: 0.5px solid var(--hairline); border-radius: 999px; font-size: 12px; color: var(--ink-soft); cursor: pointer; }
.landing .hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.landing h1 { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); margin: 0; text-wrap: balance; }
[dir="rtl"] .landing h1 { font-family: var(--font-fa) !important; font-weight: 900; letter-spacing: -0.01em; font-size: 40px; line-height: 1.2; }
.landing h1 em { font-style: normal; font-weight: 700; color: var(--rose-2); }
[dir="rtl"] .landing h1 em { font-style: normal; }
.landing .sub { margin-top: 16px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); max-width: 320px; text-wrap: pretty; }
.landing .how { margin-top: 28px; display: flex; flex-direction: column; gap: 0; }
.landing .step { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; border-top: 0.5px solid var(--hairline-2); }
.landing .step:first-child { border-top: none; }
.landing .step .n { font-family: var(--font-display); color: var(--rose-2); font-size: 16px; font-variant-numeric: tabular-nums; width: 20px; flex: none; }
.landing .step .t { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
.landing .step .t b { color: var(--ink); font-weight: 600; }
.landing .cta { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.landing .foot { padding-top: 18px; font-size: 11.5px; color: var(--ink-mute); text-align: center; margin-top: auto; }

/* signup */
.signup { padding: calc(54px + env(safe-area-inset-top, 0px)) 26px 26px; display: flex; flex-direction: column; height: 100%; }
.signup .head { padding-top: 12px; }
.signup .head h2 { font-family: var(--font-display); font-size: 30px; font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; margin: 0; color: var(--ink); }
.signup .head .sub { margin-top: 8px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.signup .fields { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.signup .fields .group { display: flex; flex-direction: column; gap: 4px; }
.signup .fields .group .badge { font-size: 10px; color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.signup .actions { flex: none; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.signup .legal { font-size: 11.5px; color: var(--ink-mute); text-align: center; line-height: 1.5; padding: 8px 8px 0; }

/* trial banner */
.trial { margin: 16px 18px 0; padding: 14px 16px; background: var(--saffron-soft); border-radius: var(--r-lg); display: flex; gap: 12px; align-items: center; border: 0.5px solid oklch(0.78 0.14 75 / 0.3); }
.trial .gift { width: 36px; height: 36px; border-radius: 999px; background: oklch(0.92 0.10 75); color: oklch(0.40 0.12 75); display: grid; place-items: center; flex: none; }
.trial .body { font-size: 12.5px; color: oklch(0.38 0.06 65); line-height: 1.4; }
.trial .body b { font-weight: 700; color: oklch(0.30 0.08 65); }

/* first-call empty state */
.empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 28px; text-align: center; gap: 16px; }
.empty-state .illus { width: 80px; height: 80px; display: grid; place-items: center; color: var(--ink-faint); }
.empty-state h3 { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
.empty-state p { font-size: 14px; color: var(--ink-soft); margin: 0; max-width: 260px; line-height: 1.5; }

/* buy time */
.buy { padding: 18px 24px 28px; display: flex; flex-direction: column; height: 100%; }
.buy .head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; }
.buy .head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin: 0; letter-spacing: -0.01em; }
.buy .head .close { background: none; border: none; color: var(--ink-mute); cursor: pointer; padding: 4px; }
.buy .lead { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 22px; text-wrap: pretty; }
.buy .lead b { color: var(--ink); font-weight: 600; }
.buy .pkgs { display: flex; flex-direction: column; gap: 10px; }
.buy .pkg { padding: 18px 18px; border-radius: var(--r-lg); background: var(--cream); border: 1px solid var(--hairline-2); cursor: pointer; display: flex; align-items: center; gap: 16px; position: relative; transition: border .15s, background .15s; }
.buy .pkg:hover { border-color: var(--hairline); }
.buy .pkg.selected { background: var(--paper); border-color: var(--ink); }
.buy .pkg .radio { width: 18px; height: 18px; border-radius: 999px; border: 1.5px solid var(--ink-faint); flex: none; display: grid; place-items: center; }
.buy .pkg.selected .radio { border-color: var(--ink); }
.buy .pkg.selected .radio::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--ink); }
.buy .pkg .body { flex: 1; }
.buy .pkg .body .mins { font-family: var(--font-display); font-size: 17px; color: var(--ink); line-height: 1.2; }
.buy .pkg .body .sub { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.buy .pkg .price { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.buy .pkg .price .free { color: var(--success); }
.buy .pkg.best { border-color: var(--saffron); background: oklch(0.97 0.02 80); }
.buy .pkg.best.selected { border-color: var(--ink); background: var(--paper); }
.buy .pkg .tag { position: absolute; top: -10px; left: 16px; background: var(--saffron); color: var(--paper); font-size: 10px; padding: 3px 8px; border-radius: 999px; font-weight: 600; letter-spacing: 0.04em; }
[dir="rtl"] .buy .pkg .tag { left: auto; right: 16px; }
.buy .total { margin-top: 18px; padding: 16px 4px; display: flex; justify-content: space-between; align-items: baseline; border-top: 0.5px solid var(--hairline-2); }
.buy .total .lbl { color: var(--ink-mute); font-size: 13px; }
.buy .total .v { font-family: var(--font-display); font-size: 24px; color: var(--ink); }
.buy .actions { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.buy .secure { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-mute); }

/* contact form */
.cform { padding: 22px 24px 24px; height: 100%; display: flex; flex-direction: column; }
.cform .head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; }
.cform .head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin: 0; letter-spacing: -0.01em; }
.cform .head button { background: none; border: none; color: var(--ink-mute); cursor: pointer; padding: 4px; }
.cform .photo { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 22px; }
.cform .photo .av { width: 84px; height: 84px; border-radius: 999px; background: oklch(0.93 0.06 25); color: var(--rose-2); display: grid; place-items: center; font-family: var(--font-display); font-size: 36px; font-weight: 500; }
.cform .photo .add-photo { font-size: 12px; color: var(--ink-mute); }
.cform .fields { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.cform .save-row { padding-top: 16px; }

/* low banner */
.low-banner { margin: 14px 18px 0; padding: 12px 14px; background: var(--ember-soft); border-radius: var(--r-md); display: flex; gap: 10px; align-items: center; border: 0.5px solid oklch(0.58 0.17 28 / 0.2); }
.low-banner .ico { color: var(--ember); flex: none; }
.low-banner .text { font-size: 12.5px; color: oklch(0.42 0.12 28); line-height: 1.4; flex: 1; }
.low-banner .text b { color: var(--ember); font-weight: 700; }
.low-banner button { background: var(--ember); color: var(--paper); border: none; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }

/* search */
.searchwrap { padding: 8px 18px 4px; }
.searchwrap .search { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--cream); border-radius: var(--r-pill); border: 0.5px solid var(--hairline-2); color: var(--ink-mute); font-size: 13.5px; }

/* ── Status pill (notification banner) ───────────────────── */
.status-pill {
  display: flex; align-items: center; gap: 12px;
  margin: 8px 14px 6px;
  padding: 10px 12px;
  border-radius: var(--r-lg);
  background: var(--cream);
  border: 0.5px solid var(--hairline-2);
  animation: slideUp .25s ease;
}
.status-pill .pill-ico {
  flex: none;
  width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 0.5px solid var(--hairline-2);
}
.status-pill .pill-body { flex: 1; min-width: 0; line-height: 1.3; }
.status-pill .pill-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.status-pill .pill-sub { font-size: 12px; color: var(--ink-mute); margin-top: 2px; text-wrap: pretty; }
.status-pill .pill-actions { flex: none; display: flex; gap: 6px; align-items: center; }
.status-pill .pill-act {
  appearance: none; border: none; background: transparent;
  font: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--ink); padding: 6px 10px; border-radius: 999px;
  cursor: pointer; transition: background .15s;
}
.status-pill .pill-act:hover { background: var(--paper); }
.status-pill .pill-act.primary { background: var(--ink); color: var(--paper); }
.status-pill .pill-act.primary:hover { background: oklch(0.18 0.018 55); }
.status-pill .pill-act.ghost { color: var(--ink-mute); }

/* accent variants */
.status-pill.pill-rose { background: var(--rose-soft); border-color: oklch(0.62 0.13 25 / 0.18); }
.status-pill.pill-rose .pill-ico { background: var(--rose); color: var(--paper); border-color: transparent; }
.status-pill.pill-rose .pill-title { color: var(--rose-2); }
.status-pill.pill-rose .pill-sub { color: oklch(0.50 0.10 25); }
.status-pill.pill-rose .pill-act { color: var(--rose-2); }

.status-pill.pill-saffron { background: var(--saffron-soft); border-color: oklch(0.78 0.14 75 / 0.25); }
.status-pill.pill-saffron .pill-ico { background: oklch(0.92 0.10 75); color: oklch(0.42 0.12 75); border-color: transparent; }
.status-pill.pill-saffron .pill-title { color: oklch(0.36 0.08 70); }
.status-pill.pill-saffron .pill-sub   { color: oklch(0.48 0.08 70); }
.status-pill.pill-saffron .pill-act   { color: oklch(0.36 0.08 70); }

.status-pill.pill-ink { background: var(--cream); border-color: var(--hairline); }
.status-pill.pill-ink .pill-ico { background: var(--ink); color: var(--paper); border-color: transparent; }
.status-pill.pill-ink .pill-title { color: var(--ink); }
.status-pill.pill-ink .pill-sub { color: var(--ink-mute); }
.status-pill.pill-ink .pill-act { color: var(--ink); }

.status-pill.pill-success { background: var(--success-soft); border-color: oklch(0.55 0.10 150 / 0.20); }
.status-pill.pill-success .pill-ico { background: var(--success); color: var(--paper); border-color: transparent; }
.status-pill.pill-success .pill-title { color: oklch(0.40 0.10 150); }
.status-pill.pill-success .pill-sub { color: oklch(0.50 0.07 150); }

.status-pill.pill-ember { background: var(--ember-soft); border-color: oklch(0.58 0.17 28 / 0.20); }
.status-pill.pill-ember .pill-ico { background: var(--ember); color: var(--paper); border-color: transparent; }
.status-pill.pill-ember .pill-title { color: var(--ember); }
.status-pill.pill-ember .pill-sub { color: oklch(0.48 0.12 28); }
.status-pill.pill-ember .pill-act.primary { background: var(--ember); color: var(--paper); }

/* ── Action sheet (small bottom popup) ─────────────────────── */
.action-sheet-backdrop {
  position: absolute; inset: 0; z-index: 80;
  background: oklch(0.20 0.015 55 / 0.45);
  display: flex; align-items: flex-end;
  animation: slideUp .15s ease;
}
.action-sheet {
  width: 100%;
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  padding: 8px 14px max(18px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px;
  animation: slideUp .25s ease;
}
.action-sheet-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 8px 6px;
}
.action-sheet-name { min-width: 0; flex: 1; }
.action-sheet-name .name { font-size: 17px; font-weight: 600; color: var(--ink); }
.action-sheet-name .num { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.action-sheet-rows { display: flex; flex-direction: column; gap: 4px; }
.ash-row {
  appearance: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--cream); border-radius: var(--r-lg);
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  text-align: start;
  transition: background .15s;
}
.ash-row:hover { background: var(--sand); }
.ash-row.primary { background: var(--ink); color: var(--paper); }
.ash-row.primary:hover { background: oklch(0.18 0.018 55); }
.ash-cancel {
  appearance: none; border: none; cursor: pointer;
  padding: 16px; background: var(--cream); border-radius: var(--r-lg);
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-soft);
  margin-top: 6px;
}

/* ── Schedule sheet ────────────────────────────────────────── */
.sched-section { margin-top: 22px; }
.sched-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--ink-mute); text-transform: uppercase; margin-bottom: 10px;
}
.sched-contact-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.sched-contact-row, .sched-contact-picked {
  appearance: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--cream); border-radius: var(--r-lg);
  font: inherit; text-align: start;
  border: 0.5px solid var(--hairline-2);
  transition: background .15s;
  width: 100%;
}
.sched-contact-row:hover { background: var(--sand); }
.sched-contact-picked { background: var(--paper); border-color: var(--ink); }
.sched-contact-row .who, .sched-contact-picked .who { flex: 1; min-width: 0; }
.sched-contact-row .name, .sched-contact-picked .name { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.sched-contact-row .num, .sched-contact-picked .num { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }

.sched-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.sched-chip {
  appearance: none; border: 0.5px solid var(--hairline);
  cursor: pointer; background: var(--cream); color: var(--ink);
  font: inherit; font-size: 12.5px; font-weight: 500;
  padding: 10px 6px; border-radius: 12px;
  transition: all .12s;
  text-wrap: balance;
  text-align: center;
  line-height: 1.2;
}
.sched-chip:hover:not(:disabled) { background: var(--sand); }
.sched-chip:disabled { opacity: 0.35; cursor: not-allowed; }

/* alarm-clock picker */
.time-picker {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 20px;
  background: var(--cream);
  border: 0.5px solid var(--hairline-2);
  border-radius: var(--r-lg);
  padding: 16px 24px 12px;
  margin-bottom: 12px;
}
.tp-col {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 70px;
}
.tp-arrow {
  appearance: none; border: none; cursor: pointer;
  width: 32px; height: 26px;
  display: grid; place-items: center;
  color: var(--ink-mute);
  background: transparent;
  border-radius: 8px;
  transition: background .12s, color .12s;
}
.tp-arrow:hover { background: var(--paper); color: var(--ink); }
.tp-arrow:first-of-type { transform: rotate(180deg); }
.tp-val {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--paper);
  border: 0.5px solid var(--hairline-2);
  min-width: 68px;
  text-align: center;
}
.tp-lbl {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-top: 4px;
}
.tp-sep {
  font-family: var(--font-display); font-size: 36px; font-weight: 400;
  color: var(--ink-mute); line-height: 1; padding-top: 28px;
}
[dir="rtl"] .time-picker { direction: ltr; }
[dir="rtl"] .tp-val { font-family: var(--font-fa) !important; font-weight: 700; }

.sched-picked-time {
  margin-top: 12px;
  font-size: 13px; color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.sched-picked-time b { color: var(--ink); font-weight: 600; }
.sched-picked-time .sched-limit { font-size: 11px; color: var(--ink-mute); }

.sched-radio-row { display: flex; gap: 8px; }
.sched-radio {
  appearance: none; cursor: pointer;
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px;
  background: var(--cream); border: 0.5px solid var(--hairline);
  border-radius: var(--r-md);
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink);
  transition: all .12s;
}
.sched-radio:hover { background: var(--sand); }
.sched-radio.on { background: var(--paper); border-color: var(--ink); font-weight: 600; }
.sched-radio .dot {
  width: 14px; height: 14px; border-radius: 999px;
  border: 1.5px solid var(--ink-faint);
  flex: none; display: grid; place-items: center;
}
.sched-radio.on .dot { border-color: var(--ink); }
.sched-radio.on .dot::after { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--ink); }

/* ── Upcoming section in Recents ──────────────────────────── */
.upcoming { padding-bottom: 8px; }
.upcoming-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
}
.upcoming-row .body { flex: 1; min-width: 0; }
.upcoming-row .name { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.upcoming-row .meta { font-size: 12px; color: var(--ink-mute); margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.upcoming-row .meta .rt { font-weight: 600; color: oklch(0.40 0.12 75); }
.upcoming-row .upcoming-cancel {
  appearance: none; border: 0.5px solid var(--hairline);
  background: var(--paper); color: var(--ink-soft);
  font: inherit; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.upcoming-row .upcoming-cancel:hover { color: var(--ember); border-color: oklch(0.58 0.17 28 / 0.3); }

/* visually hidden */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
