/* Home page. Calm, editorial look: warm paper background, ink text, one blue accent. */
:root {
  --ink: #0f1b2d; --ink-2: #3b4658; --muted: #6b7484; --line: #e6e2d9; --paper: #fbfaf6; --card: #fff;
  --blue: #1f5fd6; --blue-ink: #174aa8; --blue-soft: #e9f0fd; --amber: #b5650d; --amber-soft: #fdf2e2; --red: #c43d2f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", "Noto Serif Hebrew", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Noto Sans Hebrew", "Noto Sans Arabic", sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid #7fb2ff; outline-offset: 2px; border-radius: 6px; }
.shell { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(251,250,246,.86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; }
.logo.small { font-size: 16px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
select.lang { appearance: none; border: 1px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%236b7484' stroke-width='2'/%3E%3C/svg%3E") no-repeat; background-size: 16px; background-position: right 10px center; padding: 8px 32px 8px 12px; border-radius: 10px; font: 14px var(--sans); color: var(--ink); max-width: 170px; }
[dir="rtl"] select.lang { background-position: left 10px center; padding: 8px 12px 8px 32px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; padding: 14px 22px; font: 600 16px/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 18px -6px rgba(31,95,214,.55); }
.btn-primary:hover { background: var(--blue-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1d2c44; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f3f0e8; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef2f8; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.link-arrow { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.link-arrow:hover { color: var(--ink); }

/* hero */
.hero { padding: 72px 0 56px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 13.5px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #2fa66a; box-shadow: 0 0 0 3px rgba(47,166,106,.18); }
.globe { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; vertical-align: -2px; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 22px; text-wrap: balance; }
.lede { font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); margin: 0 0 32px; max-width: 34em; text-wrap: pretty; }
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* product preview */
.mock { position: relative; padding: 10px 0 40px; }
.mock-win { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(15,27,45,.35), 0 2px 6px rgba(15,27,45,.05); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #efece5; background: #f7f5ef; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9d4c8; }
.mock-bar span { margin-inline-start: 10px; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid #ebe7de; padding: 2px 10px; border-radius: 6px; }
.mock-body { display: grid; grid-template-columns: 92px 1fr; min-height: 300px; }
.mock-side { border-inline-end: 1px solid #f0ede6; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-side b { display: block; height: 30px; border-radius: 10px; background: #e3ecfb; margin-bottom: 8px; }
.mock-side span { display: block; height: 9px; border-radius: 5px; background: #ece8df; }
.mock-side span.on { background: #cfdcf6; }
.mock-list { list-style: none; margin: 0; padding: 6px 0; }
.mock-list li { display: grid; grid-template-columns: 84px 26px 1fr; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid #f3f1ec; font-size: 13.5px; }
.mock-list .who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-list .tk { font-weight: 800; letter-spacing: -.22em; color: #a7adb8; transition: color .3s; }
.mock-list li.read .tk { color: var(--blue); }
.mock-list .sub { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-list .sub small { color: var(--muted); }
.mock-panel { position: absolute; inset-inline-end: -18px; bottom: 0; width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 24px 50px -20px rgba(15,27,45,.4); font-size: 13px; }
.mp-head { font-weight: 700; margin-bottom: 10px; }
.mp-head b { color: var(--blue); letter-spacing: -.2em; margin-inline-end: 4px; }
.mp-tabs { display: flex; gap: 5px; margin-bottom: 10px; flex-wrap: wrap; }
.mp-tabs span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; color: var(--ink-2); }
.mp-tabs span i { font-style: normal; }
.mp-tabs em { font-style: normal; font-size: 10.5px; background: #f1efe9; border-radius: 8px; padding: 0 5px; }
.mp-tabs .on { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-ink); }
.mp-tabs .on em { background: var(--blue); color: #fff; }
.mp-tabs .warn em { background: var(--amber-soft); color: var(--amber); }
.mp-row { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.mp-row b { color: var(--blue); letter-spacing: -.2em; font-weight: 800; min-width: 22px; }
.mp-row b.grey { color: #a7adb8; }
.mp-row i { font-style: normal; font-weight: 600; display: block; }
.mp-row small { color: var(--muted); }
.mp-row.hot { background: linear-gradient(90deg, rgba(196,61,47,.07), transparent 70%); }
[dir="rtl"] .mp-row.hot { background: linear-gradient(270deg, rgba(196,61,47,.07), transparent 70%); }
.mock-toast { position: absolute; inset-inline-start: -14px; top: 34px; max-width: 250px; background: var(--ink); color: #e9eef7; border-radius: 12px; padding: 10px 14px; font-size: 12.5px; box-shadow: 0 16px 30px -12px rgba(15,27,45,.5); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.mock-toast.show { opacity: 1; transform: none; }
.mock-toast b { display: block; color: #fff; margin-bottom: 2px; }

/* sections */
section { scroll-margin-top: 80px; }
.sec-title { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 36px; text-wrap: balance; }
.how { padding: 72px 0 40px; border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 28px 0 0; }
[dir="rtl"] .steps li { padding: 0 0 0 28px; }
.steps li + li { border-inline-start: 1px dashed var(--line); padding-inline-start: 28px; }
.steps .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 700; font-family: var(--serif); margin-bottom: 14px; }
.steps p { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.35; }

.features { padding: 64px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.feat { background: var(--card); padding: 26px 24px; }
.feat.big { grid-column: span 2; background: #fffdf8; }
.feat svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.feat h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.feat.big h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }

.compare { padding: 64px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.cmp th, .cmp td { padding: 16px 20px; border-bottom: 1px solid #f0ede6; text-align: center; }
.cmp tbody th { text-align: start; font-weight: 500; color: var(--ink); }
.cmp thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp .us { background: #f5f8fe; color: var(--blue-ink); font-weight: 700; }
.cmp thead .us { color: var(--blue-ink); }
.yes { color: #1e8a54; font-size: 20px; font-weight: 800; }
.no { color: #b9b3a6; font-size: 20px; }

.pricing { padding: 64px 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan h3 { margin: 0; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.plan .price { margin: 0; font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1; }
.plan .price small { font-family: var(--sans); font-size: 15px; color: var(--muted); font-weight: 500; margin-inline-start: 6px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; flex: 1; }
.plan li { padding-inline-start: 26px; position: relative; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: #1e8a54; font-weight: 800; }
.plan-sub { color: var(--ink-2); margin: 0; flex: 1; }
.plan.featured { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan.featured h3 { color: #9fb3d1; }
.plan.featured .price small, .plan.featured .plan-sub { color: #c6d2e5; }

.faq { padding: 64px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 12px 0 0; max-width: 46em; }

.final { padding: 20px 0 80px; }
.final-in { background: var(--ink); color: #fff; border-radius: 24px; padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background-image: radial-gradient(600px 200px at 85% 0%, rgba(127,178,255,.18), transparent 70%); }
.final h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); margin: 0; max-width: 18em; line-height: 1.15; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.spacer { flex: 1; }

/* responsive */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .mock { max-width: 560px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { padding: 0 18px; }
  .hero { padding: 40px 0 30px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li, [dir="rtl"] .steps li, .steps li + li { border: 0; padding: 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat.big { grid-column: auto; }
  .plans { grid-template-columns: 1fr; }
  .mock-panel { position: relative; inset-inline-end: auto; margin: -30px 12px 0 auto; }
  [dir="rtl"] .mock-panel { margin: -30px auto 0 12px; }
  .mock-toast { display: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .nav-end .btn { display: none; }
  .final-in { padding: 36px 26px; }
}
/* Latin names/subjects inside right-to-left pages keep their own direction */
.mock-list .who, .mock-list .sub b, .mp-row i, .mock-toast span { unicode-bidi: plaintext; }

.plan-alt { margin: -4px 0 0; color: #c6d2e5; font-size: 14px; }
