/* ================================================================
 * landing.css — Counters Studio public landing page
 * Self-contained: no dependency on the app's styles.css.
 * ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0e1117;
  --bg-alt:      #11161e;
  --surface:     #161b22;
  --surface2:    #1c2230;
  --border:      #2a3140;
  --border-soft: #21262d;
  --accent:      #58a6ff;
  --accent-2:    #79c0ff;
  --accent-dim:  rgba(88, 166, 255, 0.10);
  --text:        #e6edf3;
  --text-muted:  #8b949e;
  --success:     #3fb950;
  --error:       #f85149;
  --warn:        #e3b341;
  --radius:      10px;
  --radius-lg:   14px;
  --max-w:       1180px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a { color: var(--accent); text-decoration: none; transition: color .12s; }
a:hover { color: var(--accent-2); }

/* ── Top nav ─────────────────────────────────────────────────────── */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(14, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
}
.lp-brand:hover { color: var(--text); }
.lp-brand img { width: 28px; height: 28px; display: block; }
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.lp-nav-links a:not(.lp-btn) {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.lp-nav-links a:not(.lp-btn):hover { color: var(--text); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .12s, border-color .12s, color .12s, transform .08s, box-shadow .12s;
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
}
.lp-btn-primary {
  background: var(--accent);
  color: #07131f;
  border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 4px 14px rgba(88,166,255,.25);
}
.lp-btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #07131f;
  transform: translateY(-1px);
}
.lp-btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.lp-btn-ghost:hover {
  background: var(--surface2);
  border-color: var(--accent);
  color: var(--accent);
}
.lp-btn-lg {
  padding: 12px 22px;
  font-size: 15px;
}
.lp-btn-block {
  display: flex;
  width: 100%;
}
.lp-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.lp-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 32px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.lp-hero-title {
  font-size: 46px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.lp-hero-title .accent {
  background: linear-gradient(135deg, var(--accent-2), #1f6feb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-hero-sub {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 540px;
}
.lp-hero-ctas {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.lp-hero-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.lp-hero-visual {
  width: 100%;
}
.lp-hero-visual svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.5));
}

/* ── Hero image carousel ────────────────────────────────────────── */
.lp-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;             /* matches typical app screenshots */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f141c;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  isolation: isolate;
}
.lp-slides {
  position: absolute;
  inset: 0;
}
.lp-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;              /* show the full screenshot, no crop */
  opacity: 0;
  transition: opacity .35s ease-in-out;
  pointer-events: none;
}
.lp-slide.active { opacity: 1; }

/* Prev / Next arrows — hidden until you hover the slider */
.lp-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s ease, background .25s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-slider-arrow:hover { background: rgba(0,0,0,.7); }
.lp-slider:hover .lp-slider-arrow { opacity: 1; }
.lp-slider-prev { left: 10px; }
.lp-slider-next { right: 10px; }

/* Dot pagination */
.lp-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 2;
}
.lp-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.lp-slider-dot:hover { background: rgba(255,255,255,.7); }
.lp-slider-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ── Generic section ────────────────────────────────────────────── */
.lp-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 88px 32px;
}
.lp-section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  text-align: center;
}
.lp-section-sub {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Features grid ──────────────────────────────────────────────── */
.lp-feature-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.lp-feature {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.lp-feature:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.lp-feature-ico {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.lp-feature-ico svg { width: 20px; height: 20px; }
.lp-feature h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.lp-feature p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── Pricing ────────────────────────────────────────────────────── */
.lp-pricing-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.lp-pricing-section > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}
.lp-pricing-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.lp-price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
}
.lp-price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 12px 38px rgba(88,166,255,0.18);
  transform: scale(1.03);
}
.lp-price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #07131f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.lp-price-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.lp-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.lp-price-currency {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.lp-price-amt {
  font-size: 44px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.lp-price-unit {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 4px;
}
.lp-price-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  min-height: 36px;
}
.lp-price-feats {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex: 1;
}
.lp-price-feats li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px dashed var(--border-soft);
}
.lp-price-feats li:last-child { border-bottom: 0; }
.lp-price-feats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 40%, var(--success) 0 50%, transparent 51%);
}
.lp-pricing-note {
  text-align: center;
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ── Trial signup ───────────────────────────────────────────────── */
.lp-trial-section {
  padding: 88px 32px;
}
.lp-trial-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
}
.lp-trial-card .lp-section-title { font-size: 26px; }
.lp-trial-card .lp-section-sub { font-size: 14px; }
.lp-form { margin-top: 26px; }
.lp-form-row { margin-bottom: 14px; }
.lp-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.lp-label-hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: .65;
}
.lp-form input[type="text"],
.lp-form input[type="email"],
.lp-form input[type="password"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .12s;
  font-family: inherit;
}
.lp-form input:focus { border-color: var(--accent); }
.lp-form-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 18px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.lp-form-check input { margin-top: 2px; accent-color: var(--accent); }
.lp-form-check a { color: var(--accent); }
.lp-form-foot {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.lp-form-msg {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.45;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
}
.lp-form-msg-success {
  background: rgba(63,185,80,0.10);
  border-color: rgba(63,185,80,0.45);
  color: var(--success);
}
.lp-form-msg-error {
  background: rgba(248,81,73,0.10);
  border-color: rgba(248,81,73,0.45);
  color: var(--error);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.lp-footer {
  border-top: 1px solid var(--border-soft);
  padding: 32px;
  background: var(--bg-alt);
}
.lp-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  align-items: center;
}
.lp-footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}
.lp-footer-brand img { width: 24px; height: 24px; }
.lp-footer-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.lp-footer-links a {
  color: var(--text-muted);
  font-size: 13px;
}
.lp-footer-links a:hover { color: var(--text); }
.lp-footer-legal {
  text-align: right;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ── Mobile hamburger button (hidden on desktop) ──────────────── */
.lp-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.lp-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.lp-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ─────────────────────────────────────────────────── */

/* Tablet (≤960px): hero stacks, grids drop to 2 columns */
@media (max-width: 960px) {
  .lp-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 48px;
  }
  .lp-hero-title { font-size: 36px; }
  .lp-feature-grid,
  .lp-pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lp-price-card-featured { transform: none; }
  .lp-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .lp-footer-links { justify-content: center; }
  .lp-footer-legal { text-align: center; }
  .lp-footer-brand { justify-content: center; }
}

/* Phone (≤640px): single column everywhere, hamburger nav,
   bigger touch targets, condensed paddings */
@media (max-width: 640px) {
  /* ── Nav ─────────────────────────────────────────────────── */
  .lp-nav {
    padding: 12px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .lp-brand { font-size: 14px; }
  .lp-brand img { width: 24px; height: 24px; }
  .lp-nav-toggle { display: flex; }
  .lp-nav-links {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 0 6px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .lp-nav-links.open {
    max-height: 480px;
  }
  .lp-nav-links a:not(.lp-btn) {
    padding: 10px 6px;
    border-top: 1px solid var(--border-soft);
    font-size: 15px;
    color: var(--text);
  }
  .lp-nav-links .lp-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 15px;
  }
  .lp-lang-picker {
    justify-content: center;
    margin-top: 6px;
  }

  /* ── Hero ────────────────────────────────────────────────── */
  .lp-hero {
    padding: 28px 18px 36px;
    gap: 26px;
  }
  .lp-hero-title { font-size: 28px; line-height: 1.15; }
  .lp-hero-sub   { font-size: 15px; }
  .lp-hero-ctas  {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .lp-hero-ctas .lp-btn { width: 100%; justify-content: center; }
  .lp-hero-note  { font-size: 12px; }

  /* ── Slider tweaks for thumbs ────────────────────────────── */
  .lp-slider-arrow {
    display: none;          /* arrows are too small for fingers — dots only */
  }
  .lp-slider-dot {
    width: 10px;
    height: 10px;
  }
  .lp-slider-dots {
    bottom: 8px;
    gap: 9px;
  }

  /* ── Sections ────────────────────────────────────────────── */
  .lp-section { padding: 48px 18px; }
  .lp-section-title { font-size: 24px; }
  .lp-section-sub   { font-size: 14px; }

  /* ── Features / pricing → single column ──────────────────── */
  .lp-feature-grid,
  .lp-pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lp-feature { padding: 22px 20px; }
  .lp-feature h3 { font-size: 16px; }
  .lp-price-card { padding: 28px 22px; }
  .lp-price-amt  { font-size: 44px; }

  /* ── Trial form ──────────────────────────────────────────── */
  .lp-trial-card { padding: 24px 18px; border-radius: 10px; }
  .lp-trial-card .lp-section-title { font-size: 22px; }
}

/* Extra-small (≤380px): super tight paddings, smaller hero title */
@media (max-width: 380px) {
  .lp-hero-title   { font-size: 24px; }
  .lp-section      { padding: 40px 14px; }
  .lp-hero         { padding: 22px 14px 28px; }
  .lp-feature      { padding: 18px 16px; }
  .lp-trial-card   { padding: 20px 14px; }
  .lp-price-amt    { font-size: 38px; }
}

/* 2-column variant of the feature grid — used by the new
   "Send & Approve" section where only two cards are needed. */
.lp-feature-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) {
  .lp-feature-grid--2 { grid-template-columns: 1fr; }
}
