/* ─── Kahroba landing · shared ecosystem tokens come from theme/tokens.css (navy / amber / cream) ───
   The names below are this stylesheet's older vocabulary, aliased onto the shared tokens. */
:root {
  --olive: var(--navy); --olive-2: var(--navy-2);
  --sage: var(--ink-2); --sage-soft: var(--paper-2);
  --analysis: #5b6b8c; --learning: var(--amber); --health: var(--navy);
  --sans: var(--font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); line-height: 1.75; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { font-family: var(--sans); }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] .wordmark b { font-family: var(--serif); letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--amber-soft); color: var(--amber-2); }
::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: var(--cream); } ::-webkit-scrollbar-thumb { background: #C9C4B6; border-radius: 4px; }

/* motion */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* buttons, chips, links */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: .95rem;
  background: var(--amber); color: #fff; box-shadow: 0 8px 20px -10px var(--amber-glow); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); background: var(--amber-2); box-shadow: 0 14px 28px -12px var(--amber-glow); }
.btn svg { width: 18px; height: 18px; }
.btn.lg { padding: 14px 28px; font-size: 1.02rem; }
.btn.sm { padding: 8px 16px; font-size: .88rem; }
.btn.light { background: var(--cream); color: var(--olive); box-shadow: none; }
.btn.light:hover { background: #fff; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--amber); transition: gap .2s; }
.link:hover { gap: 10px; }
.arr { font-style: normal; display: inline-block; transform: scaleX(-1); }
html[dir="ltr"] .arr { transform: none; }
.chip { background: rgba(255, 255, 255, .8); border: 1px solid var(--hair); border-radius: 999px; padding: 7px 16px; font-size: .9rem; transition: all .2s; }
.chip:hover { border-color: var(--hair-2); background: #fff; }
.chip.is-active { background: var(--olive); border-color: var(--olive); color: #fff; }

/* ─── nav ─────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 14px 32px; margin: 0 auto;
  background: rgba(246, 243, 236, .85); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--hair); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; stroke: none; flex: none; filter: drop-shadow(0 4px 8px rgba(181, 115, 47, .3)); }
.wordmark { display: grid; line-height: 1.1; }
.wordmark b { font-size: 1.35rem; font-weight: 900; letter-spacing: -.01em; }
.wordmark small { font-family: var(--serif); font-size: .72rem; letter-spacing: .28em; color: var(--muted); text-transform: uppercase; direction: ltr; text-align: start; }
.links { display: flex; gap: 6px; }  /* menu sits next to the brand at the reading start (right in Persian) */
.links a { padding: 8px 14px; border-radius: 999px; font-weight: 500; white-space: nowrap; color: var(--ink-2); transition: background .2s, color .2s; }
.links a:hover { background: var(--amber-soft); color: var(--amber-2); }
/* planned sections (shop, clinic): shown, tagged "soon", not clickable yet */
.soon { color: var(--muted); pointer-events: none; }
.soon::after { content: attr(data-soon); margin-inline-start: 6px; font-size: .64rem; font-weight: 700; letter-spacing: .04em; color: var(--amber-2); background: var(--amber-soft); border-radius: 999px; padding: 1px 7px; vertical-align: middle; }
.nav-end { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.nav .btn { white-space: nowrap; }
.nav .search { flex: none; width: 190px; min-width: 0; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--hair); }
.nav .search svg { width: 18px; height: 18px; }
.nav .search input { font-size: .9rem; }
.lang { display: flex; background: rgba(43, 47, 40, .06); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.lang button.is-active { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }

main { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.botanical.corner { position: absolute; width: 260px; height: 400px; color: var(--sage); opacity: .18; pointer-events: none; z-index: 0; }

/* ─── hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 56px 0 30px; }
.hero > .botanical { inset-inline-end: -40px; top: -20px; transform: rotate(14deg); }
.hero-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 5.2vw, 4.2rem); line-height: 1.25; font-weight: 900; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--amber); }
html[lang="en"] .hero h1 em { font-style: italic; font-weight: 600; }
.sub { margin: 18px 0 0; max-width: 520px; font-size: 1.08rem; color: var(--ink-2); }
.cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 30px 0 0; }
.hero-copy .reveal:nth-child(2) { transition-delay: .08s; } .hero-copy .reveal:nth-child(3) { transition-delay: .16s; } .hero-copy .reveal:nth-child(4) { transition-delay: .22s; }

/* hero photo with one large rounded corner (the arch of the design) and a floating badge */
.hero-art { position: relative; transition-delay: .25s; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; border-start-start-radius: 180px; box-shadow: var(--sh); }
.badge-card { position: absolute; inset-inline-end: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); box-shadow: var(--sh); font-weight: 700; font-size: .92rem; line-height: 1.5; color: var(--olive); }
.badge-card svg { width: 30px; height: 30px; flex: none; color: var(--sage); fill: var(--sage); stroke: none; }

/* three trust points under the hero */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 26px 0 0; padding: 26px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.trust > div { display: flex; align-items: center; gap: 14px; }
.trust .ico { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage); }
.trust .ico svg { width: 26px; height: 26px; }
.trust dt { font-weight: 800; font-size: 1.02rem; }
.trust dd { margin: 0; color: var(--muted); font-size: .9rem; }

/* ─── section heads ───────────────────────────────────────────────────── */
.sec-head { display: grid; justify-items: center; text-align: center; gap: 8px; margin-bottom: 34px; }
.sec-head h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 900; letter-spacing: -.02em; }
.sec-head p { margin: 0; color: var(--ink-2); max-width: 640px; font-size: 1.02rem; }
.sec-head .rule { width: 34px; height: 3px; border-radius: 3px; background: var(--amber); margin-bottom: 6px; }

/* ─── three paths (service cards) ─────────────────────────────────────── */
.paths { position: relative; padding: 80px 0 20px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 34px 26px 26px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-lg); box-shadow: var(--sh-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.card .ico { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage); margin-bottom: 8px; }
.card .ico svg { width: 38px; height: 38px; stroke-width: 1.5; }
.card h3 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; max-width: 300px; }
.card .more { margin-top: 8px; color: var(--amber); font-weight: 700; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }

/* ─── finder / domains ────────────────────────────────────────────────── */
.finder { padding: 70px 0 20px; }
.cmd { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--hair); box-shadow: var(--sh-sm); margin-bottom: 26px; }
.search { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 260px; padding: 6px 16px; }
.search svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; color: inherit; min-width: 0; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.groups { display: grid; grid-template-columns: 1fr 1fr 1.55fr; gap: 20px; }
.group { position: relative; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-sm); overflow: hidden; }
.group::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--c), transparent); }
.group[data-group="analysis"] { --c: var(--analysis); } .group[data-group="learning"] { --c: var(--learning); } .group[data-group="health"] { --c: var(--health); }
.group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.group-head .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent); }
.group-head .ico svg { width: 28px; height: 28px; }
.group-head h3 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.group-head small { display: block; font-family: var(--serif); letter-spacing: .18em; font-size: .72rem; color: var(--muted); text-transform: uppercase; direction: ltr; text-align: start; }
.group > p { margin: 6px 0 18px; color: var(--muted); font-size: .95rem; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.item { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--cream); border: 1px solid transparent; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.item:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: color-mix(in srgb, var(--c) 45%, transparent); background: #fff; }
.item .ico { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.item .ico svg { width: 20px; height: 20px; }
.item b { display: block; font-size: .96rem; line-height: 1.4; font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: .72rem; color: var(--muted); background: #fff; border-radius: 999px; padding: 2px 9px; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.item.is-open { background: #fff; border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.item.is-open .status { background: var(--c); color: #fff; }
.item.is-open .status::before { background: #fff; opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, #fff 40%, transparent); }
.item.is-open::after { content: '←'; position: absolute; inset-inline-end: 12px; top: 12px; color: var(--c); font-weight: 700; opacity: 0; transform: translateX(4px); transition: all .25s; }
html[dir="ltr"] .item.is-open::after { content: '→'; transform: translateX(-4px); }
.item.is-open:hover::after { opacity: 1; transform: none; }
.item.is-hidden, .group.is-hidden { display: none; }
.note { margin: 30px 0 0; padding: 18px 22px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .95rem; border: 1px dashed var(--hair-2); border-radius: var(--r); }
.note svg { width: 24px; height: 24px; color: var(--sage); }

/* ─── steps band ──────────────────────────────────────────────────────── */
.steps-band { position: relative; margin: 70px -32px 0; padding: 64px 32px 56px; background: var(--sage-soft); overflow: hidden; }
.steps-band > .botanical { inset-inline-start: -30px; bottom: -120px; transform: rotate(-20deg); }
.steps-band .sec-head { position: relative; }
.steps { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 1240px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { position: relative; display: flex; align-items: flex-start; gap: 14px; }
.steps .n { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #fff; font-weight: 800; }
.steps b { display: block; font-size: 1.08rem; font-weight: 800; }
.steps p { margin: 4px 0 0; color: var(--ink-2); font-size: .93rem; }
.steps .ico { width: 46px; height: 46px; flex: none; margin-inline-start: auto; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--sage); border: 1px solid var(--hair); }
.steps .ico svg { width: 22px; height: 22px; }
.steps li + li::before { content: '‹'; position: absolute; inset-inline-start: -22px; top: 6px; color: var(--muted); font-size: 1.4rem; }
html[dir="ltr"] .steps li + li::before { content: '›'; }

/* ─── dark call to action ─────────────────────────────────────────────── */
.cta-band { position: relative; margin: 40px 0 0; padding: 48px 56px; border-radius: 30px; background: var(--olive); color: #F3F1EA; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; box-shadow: var(--sh-lg); }
.cta-band > .botanical { inset-inline-start: -60px; bottom: -160px; color: #fff; opacity: .12; transform: rotate(-25deg); }
.cta-band > div { position: relative; }
.cta-band h2 { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 900; letter-spacing: -.02em; }
.cta-band p { margin: 8px 0 0; color: rgba(243, 241, 234, .75); font-size: 1.02rem; }
.cta-band .btn { position: relative; flex: none; }

/* ─── footer (light) ──────────────────────────────────────────────────── */
.foot { position: relative; margin-top: 70px; border-top: 1px solid var(--hair); color: var(--ink); }
.foot-grid { max-width: 1240px; margin: 0 auto; padding: 50px 32px 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.foot-contact a { display: flex; align-items: center; gap: 10px; }
.foot-contact svg { width: 18px; height: 18px; flex: none; color: var(--sage); }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand .brand-mark { width: 48px; height: 48px; }
.foot-brand b { font-size: 1.5rem; font-weight: 900; }
.foot-brand p { margin: 6px 0 0; color: var(--muted); max-width: 320px; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h4 { margin: 0 0 6px; font-size: .95rem; font-weight: 800; color: var(--olive); }
.foot-col a { color: var(--ink-2); transition: color .2s; }
.foot-col a:hover { color: var(--amber); }
.foot-end { max-width: 1240px; margin: 0 auto; padding: 18px 32px 26px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--muted); }
.fine { font-family: var(--serif); letter-spacing: .12em; direction: ltr; }

/* ─── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) { .groups { grid-template-columns: 1fr 1fr; } .group[data-group="health"] { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero > .botanical { display: none; }
  .trust, .cards, .steps { grid-template-columns: 1fr; }
  .steps li + li::before { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 34px 28px; }
}
@media (max-width: 720px) {
  .nav { padding: 12px 16px; gap: 12px; }
  .links, .nav-end .btn { display: none; }
  .nav .search { width: 140px; }
  .nav-end { margin-inline-start: auto; }
  main { padding: 0 16px; }
  .steps-band { margin-inline: -16px; padding-inline: 16px; }
  .groups { grid-template-columns: 1fr; }
  .hero-photo img { border-start-start-radius: 90px; }
  .badge-card { inset-inline-end: 12px; bottom: 12px; padding: 10px 14px; font-size: .84rem; }
  .foot-grid { grid-template-columns: 1fr; padding: 40px 16px 24px; }
  .foot-end { flex-direction: column; padding: 18px 16px 26px; }
  .cmd { border-radius: var(--r-lg); }
}
