/* ==========================================================================
   Kompresso — landing + guides shared stylesheet
   Brand: #F5501E orange · mobile-first · light & dark theme aware
   ========================================================================== */

:root {
  --brand: #f5501e;
  --brand-600: #e8420f;
  --brand-700: #c8380c;
  --brand-tint: #fff1ec;
  --brand-tint-2: #ffe4d8;

  --ink: #17110d;
  --ink-2: #4a423c;
  --ink-3: #6f665f;
  --line: #ece7e2;
  --bg: #ffffff;
  --bg-soft: #faf7f4;
  --bg-card: #ffffff;
  --white: #ffffff;

  --shadow-sm: 0 1px 2px rgba(23, 17, 13, .06), 0 2px 8px rgba(23, 17, 13, .05);
  --shadow-md: 0 6px 24px rgba(23, 17, 13, .09);
  --shadow-lg: 0 20px 60px rgba(23, 17, 13, .14);
  --shadow-brand: 0 12px 30px rgba(245, 80, 30, .34);

  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f6f1ec;
    --ink-2: #cfc6bd;
    --ink-3: #9b938b;
    --line: #2b2621;
    --bg: #131010;
    --bg-soft: #191513;
    --bg-card: #1e1a17;
    --brand-tint: #2a1810;
    --brand-tint-2: #35200f;
    --white: #1e1a17;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 6px 24px rgba(0,0,0,.45);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.55);
  }
}
:root[data-theme="dark"] {
  --ink: #f6f1ec; --ink-2: #cfc6bd; --ink-3: #9b938b; --line: #2b2621;
  --bg: #131010; --bg-soft: #191513; --bg-card: #1e1a17;
  --brand-tint: #2a1810; --brand-tint-2: #35200f; --white: #1e1a17;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 6px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.55);
}
:root[data-theme="light"] {
  --ink: #17110d; --ink-2: #4a423c; --ink-3: #6f665f; --line: #ece7e2;
  --bg: #ffffff; --bg-soft: #faf7f4; --bg-card: #ffffff;
  --brand-tint: #fff1ec; --brand-tint-2: #ffe4d8; --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--ink-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: 14px;
}
.center { text-align: center; }
.muted { color: var(--ink-3); }
.lead { font-size: 1.18rem; color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-weight: 700; font-size: 1rem; padding: 14px 26px; border-radius: var(--radius-pill);
  cursor: pointer; border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-600); }

/* App Store badge (self-contained, no external image) */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; padding: 11px 20px 11px 18px; border-radius: 13px;
  box-shadow: var(--shadow-md); transition: transform .15s ease, box-shadow .15s ease;
}
.appstore-badge:hover { transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-lg); }
.appstore-badge svg { width: 28px; height: 28px; flex: none; }
.appstore-badge .ab-small { font-size: .72rem; line-height: 1; opacity: .85; display: block; margin-bottom: 3px; }
.appstore-badge .ab-big { font-size: 1.28rem; line-height: 1; font-weight: 600; letter-spacing: -.02em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--brand-600); text-decoration: none; }
.nav .btn { padding: 9px 18px; font-size: .9rem; }
@media (max-width: 820px) { .nav-links .nav-link { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 480px at 82% -8%, var(--brand-tint-2), transparent 60%),
    radial-gradient(760px 420px at 8% 0%, var(--brand-tint), transparent 55%);
  padding: 68px 0 40px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 span { color: var(--brand-600); }
.hero .lead { max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0 20px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; color: var(--ink-3); font-size: .92rem; }
.stars { color: #ffb100; letter-spacing: 2px; font-size: 1rem; }
.hero-media { position: relative; display: flex; justify-content: center; }
.hero-media img {
  width: min(340px, 82%); border-radius: 30px;
  filter: drop-shadow(0 30px 50px rgba(23,17,13,.28));
}
.hero-badge {
  position: absolute; background: var(--bg-card); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  border-radius: 15px; padding: 12px 16px; font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; gap: 10px;
}
.hero-badge .big { color: var(--brand-600); font-size: 1.35rem; font-weight: 800; }
.hero-badge.b1 { top: 14%; left: -2%; }
.hero-badge.b2 { bottom: 12%; right: -2%; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .hero-proof { justify-content: center; }
  .hero-media { order: -1; margin-bottom: 8px; }
  .hero-badge.b1 { left: 2%; } .hero-badge.b2 { right: 2%; }
}

/* ---------- stat strip ---------- */
.stats { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat .num { font-size: 1.9rem; font-weight: 800; color: var(--brand-600); letter-spacing: -.02em; }
.stat .lbl { font-size: .86rem; color: var(--ink-3); font-weight: 600; }
@media (max-width: 620px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }

/* ---------- feature cards ---------- */
.grid { display: grid; gap: 22px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-600); margin-bottom: 16px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: .96rem; }

/* ---------- screenshots gallery ---------- */
.shots { background: var(--bg-soft); }
.shot-scroll {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 20px 24px; margin: 0 -20px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shot-scroll::-webkit-scrollbar { height: 8px; }
.shot-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.shot {
  flex: 0 0 auto; width: 244px; scroll-snap-align: center;
  border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--bg-card); border: 1px solid var(--line);
}
.shot img { width: 100%; }

/* ---------- how it works ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 66px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 14px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 1.25rem;
  display: grid; place-items: center; box-shadow: var(--shadow-brand);
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; font-size: .96rem; }

/* ---------- guides grid ---------- */
.guide-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-tint-2); text-decoration: none; }
.guide-card .tag { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-600); }
.guide-card h3 { font-size: 1.12rem; margin: 0; color: var(--ink); }
.guide-card p { margin: 0; font-size: .93rem; color: var(--ink-3); }
.guide-card .go { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--brand-600); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card);
  margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 1.05rem;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--brand-600); flex: none; transition: transform .2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; }
.faq .faq-body p { margin: 0 0 12px; color: var(--ink-2); font-size: .98rem; }
.faq .faq-body a { font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  border-radius: var(--radius-lg); padding: 56px 32px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: .92; max-width: 34em; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--brand-700); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.cta-band .btn-primary:hover { background: #fff; }
.cta-band .appstore-badge { background: #0a0a0a; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--ink-2); font-size: .93rem; }
.footer-grid a:hover { color: var(--brand-600); }
.footer-brand p { font-size: .92rem; max-width: 30em; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-3); font-size: .85rem; }

/* ---------- article / guide body ---------- */
.breadcrumb { font-size: .85rem; color: var(--ink-3); padding: 22px 0 0; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand-600); }
.article { max-width: 760px; margin: 0 auto; padding: 20px 0 20px; }
.article h1 { margin-bottom: 14px; }
.article .lead { margin-bottom: 8px; }
.article h2 { margin-top: 44px; font-size: 1.6rem; }
.article h3 { margin-top: 30px; }
.article p, .article li { color: var(--ink-2); }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2rem; }
.article li { margin-bottom: 8px; }
.article img { border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 22px auto; }
.callout {
  background: var(--brand-tint); border: 1px solid var(--brand-tint-2); border-left: 4px solid var(--brand);
  border-radius: 14px; padding: 20px 22px; margin: 26px 0;
}
.callout strong { color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.tip { font-size: .95rem; }
.steplist { counter-reset: s; list-style: none; padding: 0; margin: 24px 0; }
.steplist li {
  position: relative; padding: 4px 0 18px 52px; margin: 0;
  border-left: 2px solid var(--brand-tint-2); margin-left: 16px;
}
.steplist li:last-child { border-left-color: transparent; }
.steplist li::before {
  counter-increment: s; content: counter(s); position: absolute; left: -17px; top: 0;
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff;
  font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-brand);
}
.steplist li strong { color: var(--ink); display: block; margin-bottom: 2px; }
.inline-cta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 26px; margin: 34px 0; box-shadow: var(--shadow-sm);
}
.inline-cta .ic-txt strong { font-size: 1.1rem; color: var(--ink); }
.inline-cta .ic-txt p { margin: 2px 0 0; font-size: .92rem; }
.inline-cta img { width: 54px; height: 54px; border-radius: 13px; }
.inline-cta .ic-left { display: flex; align-items: center; gap: 16px; }
.related { border-top: 1px solid var(--line); margin-top: 46px; padding-top: 30px; }
.related h2 { font-size: 1.3rem; }
.pill-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-links a {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 8px 16px; font-size: .9rem; font-weight: 600; color: var(--ink-2);
}
.pill-links a:hover { border-color: var(--brand); color: var(--brand-600); text-decoration: none; }

/* accessibility */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
