/* Homepage styles. Bootstrap provides the grid reset, navbar collapse, modal and forms. */
:root {
    --ink: #0f1e3c;
    --ink-soft: #4a5875;
    --line: #dde4ef;
    --paper: #fff;
    --tint: #f3f7fd;
    --blue: #1a66d9;
    --blue-dark: #1452b0;
    --blue-brand: #3f8efc;
    --blue-wash: #dcebff;
    --font: "Inter", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

h1, h2, h3 { color: var(--ink); font-family: var(--font); font-weight: 700; }
h1 { font-size: clamp(2.05rem, 1.35rem + 2.8vw, 3.35rem); line-height: 1.12; letter-spacing: -.025em; margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.6vw, 2.5rem); line-height: 1.18; letter-spacing: -.02em; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; line-height: 1.35; letter-spacing: -.01em; margin-bottom: .5rem; font-weight: 600; }
/* Georgian glyphs run wider and have no capitals to anchor tight tracking. */
html:lang(ka) h1 { font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.6rem); letter-spacing: 0; line-height: 1.22; }
html:lang(ka) h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.05rem); letter-spacing: 0; line-height: 1.28; }
html:lang(ka) h3 { letter-spacing: 0; }
p { margin-bottom: 1rem; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; vertical-align: -.2em; }
:focus-visible { outline: 3px solid var(--blue-brand); outline-offset: 2px; }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 6px; z-index: 2000; }
.skip-link:focus { top: 8px; color: #fff; }

.btn { font-weight: 600; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-lg { font-size: 1rem; padding: .8rem 1.5rem; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-outline-primary { color: var(--blue); border-color: var(--blue); }
.btn-outline-primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.link-button { background: none; border: 0; padding: 0; color: var(--blue-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.site-nav { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: .7rem 0; }
.navbar-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.site-nav .nav-link { color: var(--ink-soft); font-size: .95rem; font-weight: 500; padding: .5rem .8rem; }
.site-nav .nav-link:hover { color: var(--blue); }
.navbar-toggler { border: 1px solid var(--line); color: var(--ink); font-size: 1.1rem; }
.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: 1rem; }
.lang-switch { display: flex; margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-switch button { background: none; border: 0; padding: .3rem .55rem; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.lang-switch button:hover { color: var(--blue); }
.lang-switch button[aria-current] { background: var(--blue-wash); color: var(--blue-dark); }

.hero { background: linear-gradient(180deg, var(--tint), var(--paper)); padding: clamp(2.5rem, 6vw, 5rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 38em; }
.hero-note { font-size: .92rem; color: var(--ink-soft); margin: 1.1rem 0 0; }
.hero-note strong { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero img { display: block; width: 100%; }

.eyebrow { font-size: .85rem; font-weight: 600; color: var(--blue); margin-bottom: .75rem; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.lead-text { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.75rem; }

/* The month strip: the service's rhythm, drawn as a calendar. */
.month { margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.month-strip { display: grid; grid-template-columns: repeat(31, minmax(0, 1fr)); gap: 3px; }
.month-strip span { aspect-ratio: 1 / 1.25; display: grid; place-items: center; font-size: .78rem; font-weight: 500; color: var(--ink-soft); background: var(--tint); border-radius: 4px; font-variant-numeric: tabular-nums; }
.month-strip .is-you { background: var(--blue-wash); color: var(--blue-dark); font-weight: 600; }
.month-strip .is-gpx { background: var(--blue); color: #fff; font-weight: 600; }
.month-strip .is-both { background: linear-gradient(to top, var(--blue) 6px, var(--blue-wash) 6px); color: var(--blue-dark); font-weight: 600; }
.month-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1rem; font-size: .95rem; color: var(--ink-soft); }
.key { display: inline-flex; align-items: center; gap: .5rem; }
.key::before { content: ""; width: 14px; height: 14px; border-radius: 3px; flex: none; }
.key-you::before { background: var(--blue-wash); }
.key-gpx::before { background: var(--blue); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.steps img { display: block; height: 190px; width: auto; max-width: 100%; object-fit: contain; object-position: left bottom; margin-bottom: 1.5rem; }
.steps p:last-child { color: var(--ink-soft); margin: 0; }
.step-when { font-size: .85rem; font-weight: 600; color: var(--blue); margin-bottom: .4rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 2.5rem); }
.feature-grid li { border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; }
.feature-grid .icon { font-size: 1.15rem; color: var(--blue); margin-bottom: .85rem; display: block; }
.feature-grid p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.screenshot { margin: 0; }
.screenshot img { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(15, 30, 60, .35); }
.screenshot figcaption { margin-top: .85rem; font-size: .92rem; color: var(--ink-soft); }

.price-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem; align-items: stretch; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.5rem); }
.price-card-alt { background: transparent; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.price-card-alt p { color: var(--ink-soft); }
.price { margin-bottom: 1.5rem; color: var(--ink-soft); }
.price strong { font-size: clamp(2.75rem, 2rem + 3vw, 4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.check-list { margin-bottom: 1.75rem; }
.check-list li { display: flex; gap: .65rem; padding: .45rem 0; }
.check-list .icon { color: var(--blue); margin-top: .22em; }
.fine-print { font-size: .88rem; color: var(--ink-soft); margin: 1rem 0 0; }

.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.faq-layout > div:first-child { position: sticky; top: 96px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--ink-soft); transition: transform .2s; margin-top: .2em; }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p { color: var(--ink-soft); margin: 0 2rem 1.25rem 0; }

.section-ink { background: var(--ink); color: #fff; }
.section-ink h2 { color: #fff; margin: 0; }
.section-ink .btn-primary { background: var(--blue-brand); border-color: var(--blue-brand); color: var(--ink); }
.section-ink .btn-primary:hover { background: #6ba8fd; border-color: #6ba8fd; color: var(--ink); }
.contact-list li { display: flex; gap: .75rem; padding: .5rem 0; color: #d7e0f0; }
.contact-list a { color: #fff; }
.contact-list .icon { margin-top: .2em; color: var(--blue-brand); }

.site-footer { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.5rem 0; font-size: .88rem; color: #b6c2d8; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer a { color: #b6c2d8; }
.site-footer a:hover { color: #fff; }

.telegram-fab { position: fixed; bottom: 24px; right: 24px; z-index: 1020; width: 54px; height: 54px; border-radius: 50%; background: #0088cc; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: 0 6px 16px rgba(15, 30, 60, .3); transition: background .2s; }
.site-footer .telegram-fab { color: #fff; }
.telegram-fab:hover { background: #0077b3; }

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { padding-top: .75rem; }
    .nav-actions { margin: .5rem 0 .25rem; flex-wrap: wrap; }
    .hero-grid, .split, .price-grid, .faq-layout { grid-template-columns: minmax(0, 1fr); }
    .faq-layout > div:first-child { position: static; }
    .hero-visual { max-width: 420px; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    body { font-size: 16px; }
    .steps, .feature-grid { grid-template-columns: minmax(0, 1fr); }
    .month-strip { gap: 2px; }
    .month-strip span { aspect-ratio: auto; height: 34px; font-size: 0; }
    .month-strip span:nth-child(1), .month-strip span:nth-child(10), .month-strip span:nth-child(15), .month-strip span:nth-child(31) { font-size: .6rem; }
    .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
