/* TGGroups product website — static. Pepplo Web Technologies · DOMAINSROCK PRIVATE LIMITED */
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PlexMono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-tint: #eaf3fb;
  --surface: #ffffff;
  --text: #14202c;
  --muted: #566577;
  --line: #dfe6ee;
  --primary: #1a6fb0;
  --primary-dark: #155a91;
  --primary-ink: #ffffff;
  --accent: #2b8fd8;
  --ok: #1f8a5b;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 8px 24px rgba(16, 32, 48, .06);
  --shadow-lg: 0 24px 60px rgba(10, 30, 50, .18);
  --radius: 14px;
  --hero: linear-gradient(160deg, #f2f8fd 0%, #ffffff 60%);
  --band: linear-gradient(135deg, #0f3d63 0%, #1a6fb0 60%, #2b8fd8 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e151d; --bg-soft: #131c26; --bg-tint: #15283a; --surface: #16202b;
    --text: #e6edf4; --muted: #9aabbc; --line: #253341;
    --primary: #4ea3e6; --primary-dark: #74b8ee; --primary-ink: #08131d; --accent: #4ea3e6; --ok: #4cc38a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    --hero: linear-gradient(160deg, #122130 0%, #0e151d 60%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e151d; --bg-soft: #131c26; --bg-tint: #15283a; --surface: #16202b;
  --text: #e6edf4; --muted: #9aabbc; --line: #253341;
  --primary: #4ea3e6; --primary-dark: #74b8ee; --primary-ink: #08131d; --accent: #4ea3e6; --ok: #4cc38a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --hero: linear-gradient(160deg, #122130 0%, #0e151d 60%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 "Plex", system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font-family: "PlexMono", ui-monospace, monospace; font-size: .9em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
pre { font-family: "PlexMono", ui-monospace, monospace; font-size: 14px; background: #0f1a24; color: #dbe7f2; border-radius: 10px; padding: 16px 18px; overflow-x: auto; line-height: 1.55; }
pre code { background: none; border: 0; padding: 0; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 700px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; font: 600 15px/1 "Plex", sans-serif; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: #0f3d63; }
.btn-light:hover { background: #e9f3fb; }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; text-decoration: none !important; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.theme-toggle { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.theme-toggle:hover { color: var(--text); }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn-primary { height: 38px; padding: 0 14px; font-size: 14px; }
  .site-header.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .site-header.open .nav-links a { padding: 12px; font-size: 16px; }
}
@media (max-width: 400px) { .nav-cta .btn-primary span { display: none; } }

/* Hero */
.hero { background: var(--hero); padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1.1fr; } }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .icon { color: var(--ok); }
.page-hero { background: var(--hero); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }

/* Browser frame */
.frame { border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.frame-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.frame-bar span { margin-left: 12px; font-size: 12.5px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 3px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Chips / link types */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.type { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.type .ic { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-tint); color: var(--primary); flex: none; }
.type strong { display: block; font-size: 15px; }
.type small { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card .ic { width: 44px; height: 44px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-tint); color: var(--primary); margin-bottom: 16px; }
.card .ic .icon { width: 22px; height: 22px; }
.card ul { margin: 12px 0 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ticks li .icon { color: var(--ok); margin-top: 3px; width: 18px; height: 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--bg-tint); color: var(--primary); }
.badge-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.15fr; gap: 64px; } .split.rev > :first-child { order: 2; } }
.split p.lead { color: var(--muted); font-size: 18px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.shot { margin: 0; }
.shot button { all: unset; cursor: zoom-in; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.shot button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; transition: transform .25s; }
.shot button:hover img { transform: scale(1.02); }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.shot figcaption strong { color: var(--text); display: block; font-size: 15px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 96vw); max-height: 94vh; }
.lightbox::backdrop { background: rgba(5, 12, 20, .85); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox p { color: #e6edf4; text-align: center; margin: 10px 0 0; font-size: 15px; }
.lightbox .close { position: fixed; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 24px; cursor: pointer; }
.lightbox .nav-btn { position: fixed; top: 50%; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; cursor: pointer; transform: translateY(-50%); }
.lightbox .prev { left: 14px; } .lightbox .next { right: 14px; }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.plan .ribbon { position: absolute; top: -12px; left: 24px; background: var(--primary); color: var(--primary-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.plan h3 { font-size: 17px; margin-bottom: 6px; }
.price { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-usd { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.plan .ticks { margin-bottom: 20px; flex: 1; }
.plan .ticks li { font-size: 14px; }
.per-month { font-size: 13px; color: var(--ok); font-weight: 600; margin-bottom: 12px; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: var(--bg-tint); color: var(--text); font-size: 15px; }
.note .icon { color: var(--primary); margin-top: 3px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Docs */
.docs { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 960px) { .docs { grid-template-columns: 240px 1fr; } }
.toc { position: sticky; top: 92px; align-self: start; font-size: 15px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.toc a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
@media (max-width: 959px) { .toc { position: static; } .toc ol { display: flex; flex-wrap: wrap; gap: 6px; } .toc a { border: 1px solid var(--line); } }
.prose { max-width: 780px; min-width: 0; }
.prose h2 { font-size: 26px; margin-top: 48px; padding-top: 8px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* Changelog */
.release { display: grid; grid-template-columns: 1fr; gap: 8px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .release { grid-template-columns: 180px 1fr; } }
.release:last-child { border-bottom: 0; }
.release h2 { font-size: 24px; margin: 0; }
.release .date { color: var(--muted); font-size: 14px; }
.release ul { margin: 0; padding-left: 20px; }
.release li { margin-bottom: 6px; }

/* CTA band */
.band { background: var(--band); color: #fff; border-radius: 20px; padding: 48px 32px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .band { grid-template-columns: 1fr auto; padding: 56px; } }
.band h2 { color: #fff; margin-bottom: 8px; }
.band p { color: #d6e7f6; margin: 0; font-size: 18px; }
.band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 28px; font-size: 15px; margin-top: 72px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: grid; gap: 6px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 40px; }
.stat { padding: 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-size: 28px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.phone-shot { max-width: 300px; margin: 0 auto; border-radius: 28px; overflow: hidden; border: 8px solid #1a2532; box-shadow: var(--shadow-lg); }
.plans-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 960px; margin: 0 auto; }
.plan.lifetime { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .plan.lifetime { display: grid; grid-template-columns: 1fr 1.4fr 220px; gap: 8px 40px; align-items: center; }
  .plan.lifetime .ticks { margin: 0; grid-row: 1 / span 4; grid-column: 2; }
  .plan.lifetime > .btn { grid-column: 3; grid-row: 1 / span 4; }
  .plan.lifetime .per-month, .plan.lifetime .price-usd { margin-bottom: 0; }
}
.plans-3 .plan.lifetime { grid-column: auto; display: flex; flex-direction: column; align-items: stretch; }
.plans-3 .plan.lifetime .ticks { margin-bottom: 20px; }
.plans-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plans-4 .plan.lifetime, .plans-3 .plan.lifetime { grid-column: auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.plans-4 .plan.lifetime .price-usd { margin: 4px 0 14px; }
.plans-4 .plan.lifetime .per-month { margin-bottom: 12px; }
.plans-4 .plan.lifetime .ticks { margin-bottom: 20px; }
