/* Farahmi website styles. Brand board 2026-11-22.
   Firm rule from the owner: nothing moves or jumps. No entrance animations, no hover lift or scale,
   no transitions; hover changes colour, border or shadow only, and press darkens the colour. */

:root {
  --navy: #0A1F44;          /* primary: hero, footer, dark sections, headings on light */
  --blue: #2563FF;          /* secondary: main buttons, active states, highlights */
  --blue-press: #1A44C2;
  --sky: #38BDF8;           /* accent: small accents, icons on navy. Never text on white. */
  --ground: #F1F5FF;        /* page background */
  --ink: #0F172A;           /* body text */
  --link: #1D4ED8;          /* text links, button hover */
  --soft: #E8EFFF;          /* icon tiles, soft badges */
  --muted: #4F5D78;         /* secondary text on the ground (never lighter) */
  --border: #DDE4F2;
  --card: #FFFFFF;
  --on-navy: #E6ECF8;
  --on-navy-muted: #9DB0D3;
  --error: #B42318;
  --shadow: 0 10px 28px -14px rgba(10, 31, 68, .16);
  --radius: 16px;
  --radius-btn: 12px;
  --head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.6 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.on-navy :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .menu-panel :focus-visible { outline-color: var(--sky); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; letter-spacing: -0.02em; color: var(--navy); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(34px, 6.2vw, 54px); }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 76px 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 12px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow { font: 600 13px/1.3 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--link); margin-bottom: 12px; }
.muted { color: var(--muted); }
.ur-line { font-style: italic; color: var(--navy); font-weight: 600; }

/* Navy areas */
.on-navy { background: var(--navy); color: var(--on-navy); }
.on-navy h1, .on-navy h2, .on-navy h3 { color: #fff; }
.on-navy .eyebrow { color: var(--sky); }
.on-navy .muted, .on-navy .lede { color: var(--on-navy-muted); }
.on-navy a:not(.btn) { color: var(--on-navy); }
.sky { color: var(--sky); }

/* Buttons: colour changes only */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: var(--radius-btn);
  font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--link); color: #fff; }
.btn-primary:active { background: var(--blue-press); }
.btn-light { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-light:hover { border-color: var(--blue); color: var(--link); }
.btn-light:active { background: var(--soft); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(230, 236, 248, .38); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); color: #fff; }
.btn-ghost:active { background: rgba(255, 255, 255, .12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: 15px; }

/* Cards and tiles */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card h3 { margin-top: 16px; }
.card p { color: var(--muted); margin-top: 8px; }
.tile { width: 46px; height: 46px; border-radius: 12px; background: var(--soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.tile svg { width: 23px; height: 23px; }
.on-navy .tile { background: rgba(56, 189, 248, .12); color: var(--sky); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--navy); font: 600 13px/1.3 var(--body); }
.sample { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--navy); font: 600 12px/1.3 var(--body); letter-spacing: .03em; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.ticks li svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }
.on-navy .ticks li { color: var(--on-navy); }
.on-navy .ticks li svg { color: var(--sky); }

/* Lockup: mark about 1.3x the word's cap height, gap about 0.4 of the mark's width */
.lockup { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--navy); }
.lockup svg { height: 23px; width: auto; }
.lockup span { font: 700 24px/1 var(--head); letter-spacing: -0.02em; }
.lockup.dark { color: #fff; }

/* Header */
.site-header { background: var(--navy); color: var(--on-navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--on-navy); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; border-bottom-color: rgba(230, 236, 248, .4); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--sky); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid rgba(230, 236, 248, .3); background: transparent; color: #fff; cursor: pointer; place-items: center; }
.menu-btn svg { width: 24px; height: 24px; }
.menu-panel { position: fixed; inset: 0; z-index: 60; background: var(--navy); color: var(--on-navy); padding: 16px 20px 32px; display: flex; flex-direction: column; overflow-y: auto; }
.menu-panel[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.menu-links { display: grid; gap: 4px; margin: 28px 0; }
.menu-links a { color: #fff; text-decoration: none; font: 700 26px/1.3 var(--head); letter-spacing: -0.02em; padding: 10px 0; border-bottom: 1px solid rgba(230, 236, 248, .12); }
.menu-links a[aria-current="page"] { color: var(--sky); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
body.menu-open { overflow: hidden; }

/* Hero with waves */
.hero { position: relative; overflow: hidden; }
.hero .waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 340px; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: 19px; margin: 20px 0 30px; max-width: 46ch; color: var(--on-navy); }
.hero-simple { padding-top: 64px; padding-bottom: 128px; position: relative; }
/* Text-only heroes: lower, flatter waves so the lines stay under the text */
.hero:has(.hero-simple) .waves { height: 220px; }
.hero-simple .lede { font-size: 19px; margin-top: 18px; max-width: 58ch; color: var(--on-navy); }
.hero-simple .btn-row { margin-top: 28px; }

/* Phone mock-up (fixed size, so nothing shifts) */
.phone { width: 300px; height: 580px; margin: 0 auto; border-radius: 40px; background: #0E2552; border: 10px solid #16326B; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); overflow: hidden; display: flex; flex-direction: column; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; background: #102B5E; border-bottom: 1px solid rgba(230, 236, 248, .08); }
.phone-top .pmark { width: 38px; height: 38px; border-radius: 11px; background: var(--navy); display: grid; place-items: center; }
.phone-top .pmark svg { width: 30px; height: 30px; }
.phone-top strong { display: block; color: #fff; font: 600 14px/1.25 var(--body); }
.phone-top small { color: var(--on-navy-muted); font-size: 12px; }
.chat { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: #0D2148; }
.bubble { max-width: 84%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.bubble.in { align-self: flex-start; background: #17346F; color: var(--on-navy); border-bottom-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.bubble b { font-weight: 600; }
.phone-label { text-align: center; color: var(--on-navy); font-size: 12.5px; margin-top: 12px; }

/* Dashboard mock-up (coded, sample data) */
.dash { display: grid; grid-template-columns: 200px minmax(0, 1fr); background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.dash-side { background: var(--navy); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.dash-side .lockup { margin: 2px 8px 18px; }
.dash-side .lockup svg { height: 18px; }
.dash-side .lockup span { font-size: 18px; }
.dash-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 999px; color: var(--on-navy-muted); font-size: 14px; font-weight: 500; }
.dash-item svg { width: 18px; height: 18px; }
.dash-item.active { background: var(--blue); color: #fff; }
.dash-main { padding: 20px; display: grid; gap: 16px; min-width: 0; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash-head h3 { font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.stat small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat strong { display: block; font: 700 24px/1.2 var(--head); color: var(--navy); margin-top: 4px; letter-spacing: -0.02em; }
.dash-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.panel { border: 1px solid var(--border); border-radius: 14px; padding: 14px; min-width: 0; }
.panel h4 { font: 600 14px/1.3 var(--body); color: var(--navy); letter-spacing: 0; margin-bottom: 10px; }
.chart { width: 100%; height: auto; aspect-ratio: 320 / 140; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--ink); }
.switch-row:first-of-type { border-top: 0; }
.toggle { width: 36px; height: 20px; border-radius: 999px; background: var(--border); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.toggle.on { background: var(--blue); }
.toggle.on::after { left: 19px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.steps .num { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font: 700 16px/1 var(--head); }
.steps h3 { margin-top: 14px; }
.steps p { color: var(--muted); margin-top: 8px; }

/* Feature blocks */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature h3 { margin-top: 0; font-size: 18px; }
.feature p { color: var(--muted); margin-top: 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }

/* FAQ: native details/summary, so mouse and keyboard work without scripts */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font: 600 17px/1.4 var(--body); color: var(--navy); border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--blue); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq summary:hover { color: var(--link); }
.faq details > p { padding: 0 20px 18px; color: var(--muted); }

/* Call to action band */
.cta-band { border-radius: 22px; padding: 48px 40px; position: relative; overflow: hidden; }
.cta-band .waves { position: absolute; right: 0; bottom: 0; width: 70%; height: 100%; pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band p { margin-top: 12px; max-width: 52ch; }
.cta-band .btn-row { margin-top: 26px; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--navy); font-size: 15px; }
.field .hint { color: var(--muted); font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #7A88A3; border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 16px/1.4 var(--body);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .error { color: var(--error); font-size: 14px; font-weight: 500; }
.form-note { padding: 12px 14px; border-radius: 12px; background: var(--soft); color: var(--navy); font-size: 15px; }
/* The note stays in the page (empty) so screen readers announce it when text appears */
.form-note:empty { position: absolute; padding: 0; }
.form-note.warn { background: #FEF3F2; color: var(--error); }

/* Placeholder marker for details the owner has not given yet */
.placeholder { background: #FFF4CC; color: #5C4400; padding: 0 6px; border-radius: 6px; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy); padding: 56px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font: 600 15px/1.3 var(--body); color: #fff; letter-spacing: 0; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.tagline { margin-top: 14px; color: var(--on-navy-muted); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(230, 236, 248, .08); color: var(--on-navy); border: 1px solid rgba(230, 236, 248, .14); }
.social a:hover { background: var(--blue); color: #fff; border-color: var(--blue); text-decoration: none; }
.social svg { width: 20px; height: 20px; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(230, 236, 248, .12); color: var(--on-navy-muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 80px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .dash-row { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .dash-side .lockup { width: 100%; margin: 2px 6px 8px; }
  .dash-item { padding: 7px 11px; font-size: 13px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .cta-band { padding: 36px 22px; }
  .hero .lede, .hero-simple .lede { font-size: 17px; }
  .hero-simple { padding-bottom: 136px; }
  .hero:has(.hero-simple) .waves { height: 150px; }
  .phone { width: 270px; height: 540px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .btn-row .btn { width: 100%; }
  .hero h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
