/* Public landing page (templates/landing.html). Separate from style.css on
   purpose: the app's 5 500 lines have nothing to do here, and vice versa. */

:root {
  --bg:        #f6f9f7;
  --surface:   #ffffff;
  --tint:      #eaf3ec;
  --text:      #14201a;
  --muted:     #4d5d54;
  --border:    #dbe6de;
  --accent:    #2e7d32;
  --accent-h:  #256528;
  --accent-2:  #5cd180;
  --dark:      #14201a;
  --dark-2:    #1c2a22;
  --on-dark:   #e8f1ea;
  --on-dark-m: #a9bcb0;
  --radius:    16px;
  --shadow:    0 1px 2px rgba(20,32,26,.06), 0 8px 24px rgba(20,32,26,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #0f1813;
    --surface: #17231c;
    --tint:    #132019;
    --text:    #e8f1ea;
    --muted:   #a9bcb0;
    --border:  #26382d;
    --accent:  #3f9a4a;
    --accent-h:#4fae5a;
    --dark:    #0b120e;
    --dark-2:  #142019;
    --shadow:  0 1px 2px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }
a  { color: inherit; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
      stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
  touch-action: manipulation;
}
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); }
.btn-outline { border-color: var(--border); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost:hover { color: var(--accent); }
.btn-light { background: #fff; color: #14201a; }
.btn-light:hover { background: var(--tint); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: #fff; }

/* ── Header ── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.top-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.top-nav { display: flex; gap: 4px; margin-left: 16px; }
.top-nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 500; }
.top-nav a:hover { color: var(--text); background: var(--tint); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang {
  min-height: 44px; padding: 0 8px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600;
}

/* ── Hero ── */
.hero { padding: 72px 0 56px; background:
  radial-gradient(900px 400px at 85% 0%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.hero h1 span { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hero-visual { position: relative; margin: 0; }
.hero-visual .frame { box-shadow: 0 24px 60px rgba(20,32,26,.25); }

/* A screenshot or the video, in a light browser chrome */
.frame {
  border-radius: 14px; overflow: hidden; background: #e9efeb;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.frame-bar { display: flex; gap: 6px; padding: 9px 12px; background: #e9efeb; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c5d2c9; }
.frame img, .frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; font-size: .9rem; font-weight: 600;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow); border: 1px solid var(--border);
}
.chip-a { left: -16px; bottom: 28px; }
.chip-b { right: -12px; top: 22px; }
.chip-b .dot { width: 10px; height: 10px; border-radius: 50%; background: #367c2b; box-shadow: 0 0 0 3px #ffde00; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 65ch; margin-bottom: 36px; }

.ic-box { width: 44px; height: 44px; padding: 10px; border-radius: 12px; margin-bottom: 14px;
          background: var(--tint); color: var(--accent); }
.section-tint .ic-box { background: var(--surface); }

/* ── Tour: text beside a real screen, alternating sides ── */
.tour { display: grid; gap: 72px; }
.tour-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; }
.tour-row:nth-child(even) { grid-template-columns: 1.6fr 1fr; }
.tour-row:nth-child(even) .tour-text { order: 2; }
.tour-text h3 { font-size: 1.45rem; }
.tour-text p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ── Mobile ── */
.mobile-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.phones { position: relative; display: flex; justify-content: center; min-height: 520px; }
.phone {
  width: 240px; height: auto; border-radius: 34px; border: 8px solid #14201a;
  box-shadow: 0 24px 50px rgba(20,32,26,.3); position: relative; z-index: 1;
}
.phone-back { position: absolute; z-index: 0; transform: translate(62%, 28px) rotate(6deg); opacity: .95; }
.mob-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.mob-list li { display: flex; gap: 16px; align-items: flex-start; }
.mob-list .ic-box { margin: 0; }
.mob-list h3 { margin-bottom: .25em; }
.mob-list p { color: var(--muted); margin: 0 0 .4em; }
.mob-list .install {
  color: var(--text); font-size: .95rem; margin-top: 8px; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.steps p { color: var(--muted); margin: 0; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
       background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 12px; }

/* ── Connections (the dark featured band) ── */
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .section-lead { color: var(--on-dark-m); }
.conn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.conn { background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 22px; }
.conn-wide { grid-column: span 3; background: linear-gradient(135deg, #1f3a28, var(--dark-2) 60%); border-color: rgba(92,209,128,.3); }
.conn h3 { display: flex; align-items: center; gap: 10px; color: #fff; }
.conn h3 .ic { color: var(--accent-2); }
.conn p { color: var(--on-dark-m); font-size: .95rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: var(--on-dark);
}
.chip small { color: var(--on-dark-m); font-weight: 500; }
.chip b { font-size: .7rem; padding: 1px 6px; border-radius: 6px; background: rgba(92,209,128,.18); color: var(--accent-2); }
.chip-star { background: #367c2b; border-color: #ffde00; color: #fff; }

/* ── Countries ── */
.countries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.countries li {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-weight: 600; font-size: 1.05rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.flag { width: 42px; height: 28px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); flex: none; }

/* ── CTA + footer ── */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, #2e7d32, #1f5a23);
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .cta-row { margin-top: 0; }
.foot { border-top: 1px solid var(--border); padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .9rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .top-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .conn-grid { grid-template-columns: repeat(2, 1fr); }
  .conn-wide { grid-column: span 2; }
  .countries { grid-template-columns: repeat(2, 1fr); }
  .tour { gap: 56px; }
  .tour-row, .tour-row:nth-child(even), .mobile-grid { grid-template-columns: 1fr; gap: 24px; }
  .tour-row:nth-child(even) .tour-text { order: 0; }
  .phones { min-height: 0; justify-content: flex-start; padding-right: 120px; margin-bottom: 56px; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0; }
  .section { padding: 56px 0; }
  .conn-grid, .steps, .countries { grid-template-columns: 1fr; }
  .phone { width: 180px; border-width: 6px; border-radius: 26px; }
  .conn-wide { grid-column: auto; }
  .chip-a { left: 8px; bottom: 8px; }
  .chip-b { right: 8px; top: 8px; }
  .float-chip { font-size: .8rem; padding: 8px 10px; }
  .cta-band { padding: 28px 20px; }
  .cta-row .btn { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  .hide-xs { display: none; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
