/* isena.ge — editorial, quiet: serif display, paper background, one accent per section. */
:root {
  --paper: #FBFAF7; --paper-2: #F3F1EB; --card: #FFFFFF; --ink: #17151F; --ink-2: #4A4757; --ink-3: #8A8697; --rule: #E4E1D9;
  --accent: #4A3AD9; --accent-ink: #FFFFFF;
  --wine: #6E1531; --wine-2: #4A0D20; --gold: #E9C77B;
  --serif: "Noto Serif", "Noto Serif Georgian", Georgia, serif;
  --sans: "Inter", "Noto Sans Georgian", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #111017; --paper-2: #18161F; --card: #1C1A24; --ink: #F2F0F7; --ink-2: #BDB9C9; --ink-3: #8A8697; --rule: #2C2935; --accent: #9C90FF; --accent-ink: #120F24; color-scheme: dark; }
}
html:lang(ka) { --serif: "Noto Serif Georgian", "Noto Serif", Georgia, serif; --sans: "Noto Sans Georgian", "Inter", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.el { font-family: "Noto Serif", Georgia, serif; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.01em; font-family: "Inter", system-ui, sans-serif; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 24px; margin-right: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.langs { display: flex; gap: 2px; font-size: 14px; }
.langs button { font: inherit; border: 0; background: none; color: var(--ink-3); padding: 6px 8px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.langs button.on { color: var(--ink); font-weight: 700; background: var(--paper-2); }

/* Buttons */
.store { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px; border-radius: 14px; background: #0B0A10; color: #fff; text-decoration: none; transition: transform .15s; }
.store:hover { transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store small { display: block; font-size: 11px; opacity: .75; line-height: 1.1; letter-spacing: .02em; }
.store b { display: block; font-size: 19px; font-weight: 600; line-height: 1.2; font-family: "Inter", system-ui, sans-serif; }
@media (prefers-color-scheme: dark) { .store { background: #fff; color: #0B0A10; } }
.textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--accent); }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }

/* Type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
html:lang(ka) .eyebrow { text-transform: none; letter-spacing: .02em; font-size: 14px; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.06; margin: 18px 0 22px; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.12; margin: 14px 0 18px; }
html:lang(ka) h1 { line-height: 1.22; letter-spacing: 0; font-size: clamp(34px, 4.8vw, 56px); }
html:lang(ka) h2 { line-height: 1.3; letter-spacing: 0; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 32em; }
.body { color: var(--ink-2); font-size: 18px; max-width: 36em; }

/* Device frame: the screenshot keeps its own proportions (390 × 844). */
.device { width: 300px; border-radius: 46px; padding: 10px; background: #0B0A10; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 40px 80px -20px rgba(23,21,31,.35), 0 18px 36px -18px rgba(23,21,31,.3); }
.device img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 36px; background: #F6F5FB; }
.device.sm { width: 250px; border-radius: 40px; padding: 9px; }
.device.sm img { border-radius: 31px; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .visual { display: flex; justify-content: center; position: relative; isolation: isolate; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: 44px; border-top: 1px solid var(--rule); }
.facts div { padding: 18px 28px 0 0; }
.facts div + div { border-left: 1px solid var(--rule); padding-left: 28px; }
.facts b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.facts span { font-size: 14px; color: var(--ink-3); }

/* Church */
.church { background: radial-gradient(90% 120% at 85% 0%, #8C1E40 0%, var(--wine) 45%, var(--wine-2) 100%); color: #F6EDE8; padding: 104px 0; }
.church .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.church .eyebrow { color: var(--gold); }
.church h2 { color: #fff; }
.church .body { color: rgba(246,237,232,.82); }
.prayer { margin: 34px 0 30px; padding-left: 22px; border-left: 2px solid var(--gold); }
.prayer .el { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; color: #fff; font-style: italic; }
.prayer .tr { margin-top: 8px; font-size: 16px; color: rgba(246,237,232,.7); }
.units { list-style: none; border-top: 1px solid rgba(255,255,255,.16); }
.units li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.units .n { font-family: var(--serif); color: var(--gold); font-size: 15px; padding-top: 2px; }
.units b { font-weight: 600; color: #fff; }
.units span { display: block; font-size: 15px; color: rgba(246,237,232,.7); }
.church .visual { display: flex; justify-content: center; }
.church .device { box-shadow: 0 50px 90px -30px rgba(0,0,0,.6); }

/* Method */
.section { padding: 104px 0; }
.method { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 52px; border-top: 1px solid var(--rule); }
.method > div { padding: 30px 32px 0 0; }
.method > div + div { padding-left: 32px; border-left: 1px solid var(--rule); }
.method .n { font-family: var(--serif); font-size: 15px; color: var(--accent); }
.method h3 { font-size: 21px; font-weight: 600; margin: 10px 0 8px; font-family: var(--serif); }
.method p { color: var(--ink-2); font-size: 16px; }
.pair { display: flex; justify-content: center; gap: 48px; margin-top: 72px; flex-wrap: wrap; }
.pair figure { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pair figcaption { font-size: 14px; color: var(--ink-3); max-width: 250px; text-align: center; }

/* Honest progress */
.honest { background: var(--paper-2); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.rules { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.rules > div { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--rule); }
.rules > div:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--rule); }
.rules b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.rules p { color: var(--ink-2); font-size: 15.5px; }

/* Closing */
.closing { text-align: center; padding: 112px 0; }
.closing .body { margin: 0 auto; }
.closing .actions { justify-content: center; }
footer { border-top: 1px solid var(--rule); padding: 32px 0 44px; font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer .grow { margin-right: auto; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover { color: var(--ink); }

/* Privacy */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 50px); margin: 14px 0 10px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink-2); margin-bottom: 12px; }
.doc ul { padding-left: 20px; }
.doc .meta { color: var(--ink-3); font-size: 15px; margin-bottom: 28px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; table-layout: fixed; }
.doc th, .doc td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: break-word; }
.doc th { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.doc td:first-child { font-weight: 600; color: var(--ink); }

/* Languages: all three are in the page; only the chosen one shows (Georgian without JS). */
[data-l] { display: none !important; }
html[lang="ka"] [data-l="ka"], html[lang="ru"] [data-l="ru"], html[lang="en"] [data-l="en"] { display: revert !important; }

@media (max-width: 960px) {
  .nav { display: none; }
  .top .wrap { justify-content: space-between; }
  .hero .wrap, .church .wrap, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .method { grid-template-columns: 1fr; }
  .method > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 26px; }
  .church, .section { padding: 76px 0; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .device { width: 260px; border-radius: 40px; padding: 9px; }
  .device img { border-radius: 31px; }
  .device.sm { width: 220px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts div { padding: 16px 12px 0 0; }
  .facts div + div { padding-left: 14px; }
  .facts b { font-size: 22px; }
  .facts span { font-size: 13px; line-height: 1.35; display: block; }
  .rules { grid-template-columns: 1fr; }
  .rules > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .pair { gap: 40px; }
  .lead { font-size: 18px; }
}
