/* ChronoTick public site. No inline styles anywhere: every visual rule lives here. */

@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/SpaceGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; src: url("/assets/fonts/NotoSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Noto Sans Arabic"; src: url("/assets/fonts/NotoSansArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

:root {
  --bg: #0f1115;
  --bg-2: #12151b;
  --surface: #1a1d24;
  --surface-2: #22262f;
  --line: #262a33;
  --line-strong: #343b47;
  --text: #e6e9ef;
  --text-2: #b9c0ce;
  --text-3: #8f95a0;
  --accent: #3b8ed0;
  --accent-bg: #243b55;
  --accent-fg: #9fcbec;
  --ok: #2fa572;
  --ok-bg: #1f3a2a;
  --warn: #d89a2b;
  --warn-bg: #4a3a1f;
  --purple: #a07ad9;
  --purple-bg: #2e2440;
  --teal: #4fb0c4;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1180px;
  --font: "Space Grotesk", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[lang="ar"] { --font: "Noto Sans Arabic", "Space Grotesk", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}
[lang="ar"] body { font-size: 17px; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-fg); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #c4e0f5; }
:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 10px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 17, 21, .86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: "Space Grotesk", var(--font); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav a { color: var(--text-2); text-decoration: none; padding: 8px 11px; border-radius: 8px; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--surface); }
.top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang:hover { color: var(--text); border-color: var(--text-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.3;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #4a9be0; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 640px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(59, 142, 208, .22), rgba(59, 142, 208, 0) 70%);
}
.hero .wrap { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-fg); background: var(--accent-bg); border-radius: 999px; padding: 5px 13px; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); max-width: 21ch; margin-bottom: 18px; }
[lang="ar"] .hero h1 { max-width: 22ch; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.hero-shot { margin: 48px 0 0; }
.hero-text { text-align: center; }
.hero-text h1, .hero-text .lede { margin-inline: auto; }
.hero-text .cta-row { justify-content: center; }
figure { margin: 0; }

.frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong);
  background: var(--surface); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02);
}
.frame-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); direction: ltr; }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.frame img { width: 100%; }
.caption { color: var(--text-3); font-size: 14px; margin-top: 10px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text-2); font-size: 15px; }
.facts strong { display: block; color: var(--text); font-size: 16px; }

/* ---------- sections ---------- */
section.block { padding: 84px 0; border-top: 1px solid var(--line); }
section.alt { background: var(--bg-2); }
.head { max-width: 720px; margin-bottom: 38px; }
.head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.head p { color: var(--text-2); font-size: 18px; }
.kicker { color: var(--teal); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
[lang="ar"] .kicker { text-transform: none; letter-spacing: 0; font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; min-width: 0; }
.card h3 { font-size: 19px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.card p { color: var(--text-2); margin: 0; font-size: 15.5px; }
.card ul { list-style: none; margin-top: 12px; }
.card li { color: var(--text-2); font-size: 15px; padding-inline-start: 18px; position: relative; margin-top: 6px; }
.card li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent-fg); margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; line-height: 1.6; letter-spacing: .02em; white-space: nowrap; }
.tag-basic { background: var(--ok-bg); color: #7fd6ac; }
.tag-pro { background: var(--accent-bg); color: var(--accent-fg); }
.tag-addon { background: var(--purple-bg); color: #cbb3f0; }

/* showcase rows */
.show { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: center; }
.show.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.show + .show { margin-top: 72px; }
.show.flip .show-text { order: 2; }
.show h3 { font-size: clamp(22px, 2.4vw, 28px); }
.show p { color: var(--text-2); }
.show ul { list-style: none; }
.show li { color: var(--text-2); padding-inline-start: 22px; position: relative; margin-top: 8px; }
.show li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--teal); }

/* ---------- pricing ---------- */
.price-note { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 18px 20px; color: var(--text-2); margin-bottom: 22px; }
.price-note a { font-weight: 700; }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; min-width: 0; }
.tier.pro { border-color: #33577a; background: linear-gradient(180deg, rgba(59, 142, 208, .10), rgba(59, 142, 208, 0) 55%), var(--surface); }
.tier h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tier-sub { color: var(--text-2); margin-bottom: 16px; }
.amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 4px 0 6px; }
.amount .big { font-family: "Space Grotesk", var(--font); font-size: 46px; font-weight: 700; line-height: 1; }
.amount .per { color: var(--text-2); }
.pcs { color: var(--teal); font-weight: 700; margin-bottom: 14px; }
.tier ul { list-style: none; border-top: 1px solid var(--line); padding-top: 14px; }
.tier li { color: var(--text-2); padding-inline-start: 26px; position: relative; margin-top: 7px; font-size: 15.5px; }
.tier li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
[lang="ar"] .tier li::before { top: .6em; }
.tier li.plus { color: var(--text); font-weight: 700; }
.tier li.plus::before { display: none; }
.tier li.plus { padding-inline-start: 0; }

.extras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; min-width: 0; }
.panel h3 { font-size: 19px; }
.panel .muted { color: var(--text-3); font-size: 14.5px; }
.rows { list-style: none; }
.rows li { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; padding-top: 4px; }
.rows .what { min-width: 0; }
.rows .what strong { display: block; }
.rows .what small { display: block; color: var(--text-3); font-size: 14px; line-height: 1.5; margin-top: 2px; }
.rows .val { font-weight: 700; white-space: nowrap; color: var(--text); }
.rows .val .per { color: var(--text-3); font-weight: 400; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 8px; }
.chips li { background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 14px; }
.chips li strong { display: block; font-size: 15px; }
.chips li span { color: var(--ok); font-weight: 700; font-size: 14px; }

/* estimator */
.est { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.est-form { padding: 24px; display: grid; gap: 18px; min-width: 0; }
.est-form h3 { font-size: 20px; margin: 0; }
.est fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.est legend, .est .lbl { font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; display: block; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label, .checks label {
  display: inline-flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 8px 13px; cursor: pointer; font-size: 15px; color: var(--text-2);
}
.seg label:has(input:checked), .checks label:has(input:checked) { border-color: var(--accent); color: var(--text); background: var(--accent-bg); }
.checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.checks label.off { opacity: .45; cursor: not-allowed; }
.checks small { color: var(--text-3); }
.est input[type="radio"], .est input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex: none; }
.pcs-input { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.est input[type="number"] {
  width: 110px; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 9px 12px; font: inherit; font-size: 16px; direction: ltr;
}
.est-out { background: linear-gradient(180deg, rgba(59, 142, 208, .14), rgba(59, 142, 208, .04)); border-inline-start: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.est-out .line { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); font-size: 15px; }
.est-out .line b { color: var(--text); white-space: nowrap; }
.est-out .total { border-top: 1px solid var(--line-strong); padding-top: 14px; margin-top: 6px; }
.est-out .total .lbl { color: var(--text-2); margin: 0; }
.est-out .total .big { font-family: "Space Grotesk", var(--font); font-size: 42px; font-weight: 700; line-height: 1.1; }
.est-out .fine { color: var(--text-3); font-size: 13.5px; margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-fg); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--text-2); padding-bottom: 16px; margin: 0; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 10px; }
.contact-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: flex; gap: 14px; align-items: center; min-width: 0; }
.contact-list .k { color: var(--text-3); font-size: 14px; min-width: 92px; flex: none; }
.contact-list .v { min-width: 0; font-weight: 700; }
.contact-list .v a { color: var(--text); text-decoration: none; }
.contact-list .v a:hover { color: var(--accent-fg); text-decoration: underline; }
.contact-empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 12px; padding: 18px 20px; color: var(--text-2); margin: 0; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--text-3); font-size: 14.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot a { color: var(--text-2); }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.nf .code { font-family: "Space Grotesk", var(--font); font-size: 96px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.nf-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; max-width: 780px; margin: 0 auto; }
.nf-pair > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .show, .show.flip, .contact, .extras, .est, .tiers { grid-template-columns: minmax(0, 1fr); }
  .show { gap: 22px; }
  .show.flip .show-text { order: 0; }
  .est-out { border-inline-start: 0; border-top: 1px solid var(--line); }
  section.block { padding: 64px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid, .facts, .nf-pair { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 44px 0 28px; }
  .hero-shot { margin-top: 32px; }
  .top .wrap { gap: 10px; min-height: 58px; }
  .brand { font-size: 17px; }
  .brand img { width: 28px; height: 28px; }
  .top-end .btn { display: none; }
  .tier { padding: 22px 18px; }
  .amount .big { font-size: 40px; }
  .panel, .est-form, .est-out { padding: 20px 18px; }
  .contact-list li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
