/* Fanni – landing page styles */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --accent: #2446A8;
  --accent-dark: #1A3480;
  --accent-soft: #E2E8F8;
  --ink: #16202E;
  --ink-2: #3D4859;
  --muted: #5A6576;
  --line: #DCE1E8;
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --chip: #E9EDF3;
  --saffron: #8A5310;
  --saffron-soft: #F7E9D4;
  --ok: #1F6B44;
  --ok-soft: #DCEFE4;
  --night: #16202E;
  --night-text: #C9D2E0;
  --chat-bg: #E6E0D4;
  --bubble-out: #D9E3F9;
  --sans: "IBM Plex Sans", "IBM Plex Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
  --arabic: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[lang="ar"] { font-family: var(--arabic); letter-spacing: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.section { padding-block: 80px; }
.section.white { background: var(--surface); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 40em; }
.h2 { font-size: clamp(28px, 4vw, 38px); }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 15px 24px; border-radius: 12px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-ghost { background: var(--chip); color: var(--ink); }
.btn-ghost:hover { background: #DDE2EA; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.logo { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav .btn { padding: 10px 18px; font-size: 15px; color: #FFFFFF; }
@media (max-width: 720px) { .nav .link { display: none; } }

/* Hero */
.hero { background: var(--surface); padding-block: 72px 88px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { align-self: flex-start; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--saffron); background: var(--saffron-soft); padding: 6px 12px; border-radius: 99px; }
.hero h1 { font-size: clamp(40px, 6vw, 62px); line-height: 1.04; letter-spacing: -0.03em; }
.hero .ar { font-size: 26px; font-weight: 600; color: var(--ink-2); }
.hero .sub { font-size: 20px; color: var(--ink-2); max-width: 34em; }
.small { font-size: 14px; color: var(--muted); }

.hero-visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.visual { position: relative; width: 100%; max-width: 440px; padding-bottom: 44px; }
.phone { background: #1C2430; border-radius: 36px; padding: 10px; max-width: 340px; }
.screen { background: var(--chat-bg); border-radius: 28px; overflow: hidden; }
.chat-head { background: var(--surface); padding: 14px 16px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 14px; flex: none; }
.chat-head b { display: block; font-size: 14px; }
.chat-head span { font-size: 12px; color: var(--muted); }
.chat { padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.bubble { background: var(--surface); border-radius: 4px 12px 12px 12px; padding: 10px 12px; max-width: 85%; align-self: flex-start; }
.bubble.out { background: var(--bubble-out); border-radius: 12px 4px 12px 12px; align-self: flex-end; }
.bubble.pre { white-space: pre-line; }
.quick { align-self: flex-start; width: 70%; background: var(--surface); color: var(--accent); font-weight: 600; text-align: center; padding: 8px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--accent); }
.photo { align-self: flex-end; background: var(--bubble-out); border-radius: 12px; padding: 6px; width: 62%; }
.photo div { height: 84px; border-radius: 8px; background: linear-gradient(160deg, #D5DBE3 0 55%, #C2CAD5 55%); }
.photo span { display: block; font-size: 12px; color: var(--ink-2); padding: 4px 4px 0; }
.job-card { position: absolute; right: 0; bottom: 0; width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 12px 32px rgba(22,32,46,0.14); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.job-card .row { display: flex; justify-content: space-between; align-items: center; }
.mono { font-family: var(--mono); }
.pill { background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 99px; }
.job-card b { font-size: 15px; }
.job-card .meta { color: var(--muted); }
.job-card .amount { font-family: var(--mono); font-weight: 600; font-size: 15px; }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card { flex: 1 1 280px; min-width: 0; background: var(--surface); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 19px; letter-spacing: -0.01em; }
.card p { color: var(--ink-2); }
.feature { flex-basis: 340px; flex-direction: row; gap: 16px; }
.feature svg { flex: none; }
.feature div { display: flex; flex-direction: column; gap: 6px; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 16px; counter-reset: step; }
.steps li { flex: 1 1 240px; min-width: 0; border-top: 3px solid var(--accent); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--mono); font-weight: 600; color: var(--accent); }
.steps h3 { font-size: 19px; letter-spacing: -0.01em; }
.steps p { color: var(--ink-2); }

/* Pricing */
.plans { display: flex; flex-wrap: wrap; gap: 16px; }
.plan { flex: 1 1 320px; min-width: 0; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.plan.main { border: 2px solid var(--accent); }
.plan h3 { font-size: 20px; letter-spacing: -0.01em; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.price strong { font-size: 44px; letter-spacing: -0.02em; line-height: 1.1; }
.price span { color: var(--muted); }
.plan ul { margin: 0; padding-inline-start: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.plan .btn { align-self: flex-start; padding: 12px 20px; }

/* Pilot */
.pilot { background: var(--night); color: #FFFFFF; }
.pilot .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.pilot-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pilot h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
.pilot-copy p { color: var(--night-text); font-size: 19px; }
.form { flex: 1 1 420px; min-width: 0; background: var(--surface); color: var(--ink); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.field input { font: inherit; padding: 12px 14px; border: 1px solid #C9D0DA; border-radius: 10px; background: #FFFFFF; color: var(--ink); min-width: 0; }
.field input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.form .error { color: #A32D1E; font-size: 14px; font-weight: 600; }

/* FAQ */
.faq { max-width: 820px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq-list summary { font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-weight: 600; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--ink-2); margin-top: 8px; }

/* Footer */
.site-footer { padding-block: 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

@media (max-width: 520px) {
  .visual { padding-bottom: 0; }
  .job-card { position: static; width: auto; max-width: 340px; margin-top: 12px; }
}
