/* home.css — მთავარი გვერდის სექციები. ფერები მხოლოდ var(--) base.css-იდან. */

/* ═══ ჰერო ═══ */
.hero {
    background:
        radial-gradient(1100px 480px at 50% -140px, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%),
        var(--paper);
    padding-top: var(--s6);
    border-bottom: 1px solid var(--line);
}
.hero-inner { text-align: center; max-width: 860px; margin-inline: auto; }
.hero-h1 { margin: var(--s3) 0 var(--s2); }
.hero-lead { font-size: 17.5px; color: var(--muted); max-width: 66ch; margin-inline: auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--s4); }

.facts {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: var(--s2); margin-top: var(--s6); padding-top: var(--s4);
    border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); gap: var(--s3); } }

/* ═══ კომპონენტების ბადე — ერთნაირი სიმაღლე ═══ */
#platform .card { display: flex; flex-direction: column; height: 100%; }
#platform .card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }

/* ═══ როგორ მუშაობს — timeline ═══ */
.flow { display: grid; gap: var(--s2); position: relative; }
@media (min-width: 768px) { .flow { grid-template-columns: repeat(2, 1fr); gap: var(--s3); } }
@media (min-width: 1024px) { .flow { grid-template-columns: repeat(3, 1fr); } }

.flow-step {
    display: flex; gap: var(--s2); align-items: flex-start;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r-card); padding: 20px;
    position: relative;
}
.section-alt .flow-step { background: var(--paper); }
.flow-n {
    flex-shrink: 0;
    font-family: 'Noto Serif Georgian', Georgia, serif;
    font-size: 15px; font-weight: 700; color: var(--brand);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    width: 40px; height: 40px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
}
.flow-h { font-size: 16px; margin-bottom: 5px; }
.flow-t { font-size: 14px; color: var(--muted); margin: 0; }

/* ═══ SVG სქემა ═══ */
.diagram {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--on-ink-line);
    border-radius: var(--r-card);
    padding: var(--s3);
    overflow-x: auto;
    margin-bottom: var(--s4);
}
.diagram-svg { display: block; width: 100%; min-width: 620px; height: auto; }

.dg-node rect { fill: rgba(255, 255, 255, .06); stroke: var(--on-ink-line); stroke-width: 1.2; }
.dg-inner rect { fill: rgba(0, 168, 121, .12); stroke: color-mix(in srgb, var(--brand) 55%, transparent); }
.dg-group rect { fill: none; stroke: var(--on-ink-line); stroke-width: 1.2; stroke-dasharray: 5 5; }
.dg-t {
    fill: var(--on-ink); font-family: 'Noto Sans Georgian', sans-serif;
    font-size: 14.5px; text-anchor: middle; dominant-baseline: middle;
}
.dg-sm { fill: var(--on-ink-muted); font-size: 13px; }
.dg-legend { text-anchor: start; dominant-baseline: auto; }
.dg-title {
    fill: var(--brand); font-family: 'Noto Serif Georgian', Georgia, serif;
    font-size: 15.5px; font-weight: 700; text-anchor: middle;
}
.dg-arrow path { stroke: var(--on-ink-muted); stroke-width: 1.4; fill: none; color: var(--on-ink-muted); }
.dg-back path { stroke-dasharray: 5 4; stroke: var(--brand); color: var(--brand); }
.dg-lbl {
    fill: var(--on-ink-muted); font-family: 'Noto Sans Georgian', sans-serif;
    font-size: 13px; text-anchor: middle;
}
.dg-back .dg-lbl { fill: var(--brand); }

.notes li {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 0; border-top: 1px solid var(--on-ink-line);
    font-size: 14.5px; color: var(--on-ink-muted);
}
.notes li .ic { flex-shrink: 0; margin-top: 3px; color: var(--brand); }

/* ═══ კატეგორიები ═══ */
.cat { border-left: 4px solid var(--line); display: flex; flex-direction: column; height: 100%; }
.cat-tag {
    display: inline-block; align-self: flex-start;
    padding: 5px 13px; border-radius: 999px;
    font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
/* ფერი + ტექსტი (მარტო ფერით არა — თითოს თავისი წარწერა აქვს) */
.cat-transactional  { border-left-color: var(--brand); }
.cat-transactional .cat-tag { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-d); }
.cat-informational  { border-left-color: #3B6EA5; }
.cat-informational .cat-tag { background: rgba(59, 110, 165, .14); color: #2C5580; }
.cat-marketing      { border-left-color: var(--amber); }
.cat-marketing .cat-tag { background: color-mix(in srgb, var(--amber) 16%, transparent); color: #6B4A05; }

.note-line {
    font-size: 14px; color: var(--muted); margin-top: var(--s3);
    padding-left: 14px; border-left: 3px solid var(--line);
}

/* ═══ გათიშვა ═══ */
.optout-grid { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 900px) { .optout-grid { grid-template-columns: 1fr 1fr; } }
.optout-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s3); }
.section-alt .optout-box { background: var(--paper); }
.box-h { display: flex; align-items: center; gap: 9px; font-size: 17px; margin-bottom: var(--s2); }
.box-h .ic { color: var(--brand); }

.highlight {
    display: grid; gap: var(--s2); grid-template-columns: 1fr;
    margin-top: var(--s3);
}
@media (min-width: 640px) { .highlight { grid-template-columns: 1fr 1fr; } }
.highlight-item {
    display: flex; flex-direction: column; gap: 4px;
    padding: 18px 22px; border-radius: var(--r-card);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
}
.highlight-item strong {
    font-family: 'Noto Serif Georgian', Georgia, serif;
    font-size: 21px; color: var(--brand-d);
}
.highlight-item span { font-size: 14px; color: var(--muted); }

/* ═══ უსაფრთხოება ═══ */
.geo {
    display: flex; gap: var(--s3); align-items: flex-start;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r-card); padding: var(--s3);
}
.geo-flag {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
}
#security .card-sm { display: flex; flex-direction: column; height: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    padding: 9px 15px; border-radius: 999px;
    background: var(--paper); border: 1px solid var(--line);
    font-size: 13.5px; color: var(--text);
}

/* ═══ ფასები ═══ */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; height: 100%; position: relative; }
.plan.is-featured {
    border-color: var(--brand);
    box-shadow: var(--shadow-lg);
}
.plan-flag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: var(--white);
    font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
    white-space: nowrap;
}
.plan-name { font-size: 21px; margin-bottom: 4px; }
.plan-for { font-size: 13.5px; color: var(--muted); margin-bottom: var(--s3); min-height: 40px; }

/* ფასი — null და რიცხვი ერთსა და იმავე სიმაღლეს იკავებს */
.plan-price {
    display: flex; align-items: baseline; gap: 8px;
    min-height: 56px; padding-bottom: var(--s2);
    border-bottom: 1px solid var(--line); margin-bottom: var(--s3);
}
.plan-soon { font-size: 19px; font-weight: 700; color: var(--muted); font-family: 'Noto Serif Georgian', Georgia, serif; }
.plan-num  { font-size: 38px; font-weight: 700; color: var(--text); font-family: 'Noto Serif Georgian', Georgia, serif; line-height: 1; }
.plan-unit { font-size: 14px; color: var(--muted); }
.plan-features { flex: 1; margin-bottom: var(--s3); }
.plan-cta { width: 100%; margin-top: auto; }

/* ═══ FAQ ═══ */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.faq-h { margin: 0; font-family: inherit; font-size: inherit; }
.faq-q {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
    width: 100%; min-height: 60px; padding: 16px 20px;
    background: none; border: 0; cursor: pointer; text-align: right;
    font-family: 'Noto Serif Georgian', Georgia, serif;
    font-size: 16px; font-weight: 700; color: var(--text);
    text-align: start;
}
.faq-q:hover { color: var(--brand); }
.faq-ic { flex-shrink: 0; color: var(--muted); transition: transform .22s; display: inline-flex; }
.faq-item.is-open .faq-ic { transform: rotate(180deg); color: var(--brand); }
.faq-a { display: none; padding: 0 20px 18px; }
.faq-item.is-open .faq-a { display: block; }
.faq-a p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ═══ კონტაქტი ═══ */
.contact-wrap { display: grid; gap: var(--s3); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact-wrap { grid-template-columns: 1.55fr 1fr; gap: var(--s4); } }

.contact-form { background: var(--white); }
.f-row { display: grid; gap: var(--s2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .f-row { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: var(--s2); }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 46px; padding: 11px 14px;
    font: inherit; font-size: 15px; color: var(--text);
    background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--r-btn);
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.req { color: #C4453F; }
.field-err { display: block; margin-top: 6px; font-size: 13px; color: #C4453F; font-weight: 600; }
.field input[aria-invalid="true"] { border-color: #C4453F; }

.field-check { margin-top: var(--s1); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; min-height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--brand); }
.check span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-side {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--on-ink-line);
    border-radius: var(--r-card); padding: var(--s3);
}
.req-list li {
    display: flex; gap: 9px; align-items: flex-start;
    margin-bottom: 11px; font-size: 14.5px; color: var(--on-ink-muted);
}
.req-list li strong { color: var(--on-ink); }
.req-list .ic { flex-shrink: 0; margin-top: 3px; color: var(--brand); }
.side-note {
    margin: var(--s3) 0 0; padding-top: var(--s2);
    border-top: 1px solid var(--on-ink-line);
    font-size: 13.5px; color: var(--on-ink-muted);
}

/* ═══════════════════════════════════════════════════════════
   v2 — გასწორებები (დავალებები 11–17)
   ═══════════════════════════════════════════════════════════ */

/* ── #11 მუქ სექციაში ფორმის ტექსტი ────────────────────────
   base.css-ის `.section-dark .card` (0,2,0) ჯაბნიდა `.contact-form`-ს (0,1,0),
   ამიტომ ფორმა მუქი ხდებოდა, წარწერები კი მუქი რჩებოდა → უხილავი. */
.section-dark .field label      { color: var(--on-ink); }
.section-dark .check span       { color: var(--on-ink-muted); }
.section-dark .field-err        { color: var(--on-ink-err, #FF9B93); }
.section-dark .req              { color: var(--on-ink-err, #FF9B93); }
.section-dark .contact-form .form-note,
.section-dark .contact-form small,
.section-dark .contact-form p   { color: var(--on-ink-muted); }
.section-dark .field input,
.section-dark .field select,
.section-dark .field textarea   { border-color: var(--on-ink-line); }
.section-dark .field input[aria-invalid="true"] { border-color: var(--on-ink-err, #FF9B93); }
/* ველების შიგნით ტექსტი ღია ფონზე რჩება — კონტრასტი მაქსიმალურია */
.section-dark .field input::placeholder,
.section-dark .field textarea::placeholder { color: var(--muted); }

/* ── #14 ჰერო: ტექსტი + ინტერფეისის ილუსტრაცია ─────────────── */
.hero-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1.05fr .95fr; gap: var(--s5); }
    .hero-grid .hero-inner { text-align: start; margin-inline: 0; max-width: none; }
    .hero-grid .hero-lead  { margin-inline: 0; }
    .hero-grid .hero-cta   { justify-content: flex-start; }
}

.hero-mock {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r-card); box-shadow: var(--shadow-lg);
    padding: 18px; max-width: 440px; margin-inline: auto; width: 100%;
}
.hm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.hm-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--text); }
.hm-chip { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.hm-sender { display: flex; gap: 8px; align-items: baseline; margin-top: 14px; font-size: 13px; color: var(--muted); }
.hm-sender b { color: var(--text); font-size: 13.5px; letter-spacing: .02em; }
.hm-msg {
    margin-top: 8px; padding: 11px 13px; border-radius: 12px;
    background: var(--paper); border: 1px solid var(--line);
    font-size: 13.5px; line-height: 1.55; color: var(--text);
}
.hm-bar-wrap { margin-top: 16px; }
.hm-bar-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.hm-bar-top b { color: var(--text); font-size: 13px; }
.hm-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.hm-bar span { display: block; height: 100%; width: 78%; border-radius: 999px; background: var(--brand); }
.hm-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.hm-li { text-align: center; padding: 9px 4px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.hm-li i { display: block; width: 7px; height: 7px; border-radius: 50%; margin: 0 auto 5px; }
.hm-li b { display: block; font-size: 14px; color: var(--text); font-family: 'Noto Serif Georgian', Georgia, serif; }
.hm-li span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.hm-ok  i { background: var(--brand); }
.hm-snt i { background: #3B6EA5; }
.hm-rej i { background: var(--amber); }
.hm-note { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; }

/* ── #16 ექვსი ნაბიჯი = ნაკადი (დამაკავშირებელი ხაზი) ──────── */
@media (min-width: 768px) {
    .flow-step::after {
        content: ''; position: absolute; top: 40px; inset-inline-end: calc(var(--s3) * -1);
        width: var(--s3); height: 2px; background: var(--line);
    }
    .flow-step:nth-child(2n)::after { display: none; }
    .flow-step:last-child::after { display: none; }
}
@media (min-width: 1024px) {
    .flow-step:nth-child(2n)::after { display: block; }
    .flow-step:nth-child(3n)::after { display: none; }
    .flow-step:last-child::after { display: none; }
}
.flow-step { transition: border-color .18s, box-shadow .18s; }
.flow-step:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow-sm); }

/* ── #15 SMPP სქემა: მობილურზე ვერტიკალური ვარიანტი ─────────── */
.diagram-svg { min-width: 0; }              /* გვერდულ სქროლს ვხსნით */
.diagram-mobile { display: none; }
@media (max-width: 639px) {
    .diagram { overflow: visible; padding: var(--s2); }
    .diagram-svg { display: none; }
    .diagram-mobile { display: grid; gap: 0; }
}
.dgm-step {
    background: rgba(255, 255, 255, .06); border: 1px solid var(--on-ink-line);
    border-radius: 12px; padding: 13px 15px;
}
.dgm-step b { display: block; font-size: 14.5px; color: var(--on-ink); margin-bottom: 3px; }
.dgm-step span { display: block; font-size: 13px; color: var(--on-ink-muted); line-height: 1.5; }
.dgm-step.is-core { background: rgba(0, 168, 121, .13); border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.dgm-arrow {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 7px 0; color: var(--on-ink-muted); font-size: 12px;
}
.dgm-arrow em { font-style: normal; font-size: 12px; color: var(--on-ink-muted); }
.dgm-back { color: var(--brand); }
.dgm-back em { color: var(--brand); }
