/* Manrope - local, self-hosted (Greek + Latin subsets), weights 400/500/600,
   matching the GasApp cloud app so the marketing site and the product feel
   like one brand. Font-weight 700 (headings) is synthesized by the browser
   from the 600 face, same as in the app. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/manrope-greek-400-normal.woff2') format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/manrope-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/manrope-greek-500-normal.woff2') format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/manrope-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/manrope-greek-600-normal.woff2') format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/manrope-latin-600-normal.woff2') format('woff2');
}

:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --text: #1d1d1f;
  --text-soft: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-soft: #eef2ff;
  --success: #15803d;
  --success-soft: #dcfce7;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --card-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

html[data-theme='dark'] {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --text: #f2f3f5;
  --text-soft: #9aa1ac;
  --border: #262a33;
  --accent: #5b8def;
  --accent-soft: #17233d;
  --success: #4ade80;
  --success-soft: #14301f;
  --warning: #fbbf24;
  --warning-soft: #3a2a0f;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.15s ease, color 0.15s ease;
}

a { color: inherit; }
img, svg { max-width: 100%; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  flex-shrink: 0;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }

nav.main-nav { display: flex; align-items: center; gap: 28px; margin: 0 auto 0 40px; }

nav.main-nav a.nav-link {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

nav.main-nav a.nav-link:hover,
nav.main-nav a.nav-link.active { color: var(--text); }

.controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.icon-btn {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn svg { width: 18px; height: 18px; }

.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }

.lang-switch a { padding: 8px 12px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--text-soft); }
.lang-switch a.active { background: var(--accent-soft); color: var(--accent); }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--bg-soft); color: var(--text); border-color: var(--border); }

.btn-login {
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
}

/* Hero */
.hero { padding: 80px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 20px; font-weight: 700; letter-spacing: -0.02em; }
.hero p.lead { font-size: 17px; color: var(--text-soft); margin: 0 0 32px; line-height: 1.6; max-width: 480px; }

.hero.center { text-align: center; }
.hero.center p.lead { max-width: 620px; margin-left: auto; margin-right: auto; }
.hero.center .cta-row { justify-content: center; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* App mockup */
.mockup-frame {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

/* Sections */
section { padding: 56px 0; }

section h2 { font-size: 26px; text-align: center; margin: 0 0 12px; letter-spacing: -0.01em; }
section p.section-sub { text-align: center; color: var(--text-soft); max-width: 560px; margin: 0 auto 44px; font-size: 15px; line-height: 1.6; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px 24px;
  box-shadow: var(--card-shadow);
}

.card .illus {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}

.card .illus svg { width: 84%; height: 84%; }
.card h3 { font-size: 16px; margin: 0 0 8px; }
.card p { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin: 0; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  position: relative;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.16);
}

.plan .plan-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.plan .plan-name { font-size: 15px; font-weight: 600; color: var(--text-soft); margin: 0 0 12px; }
.plan .plan-price { font-size: 36px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 2px; }
.plan .plan-price span { font-size: 14px; font-weight: 500; color: var(--text-soft); }
.plan .plan-period { font-size: 13px; color: var(--text-soft); margin: 0 0 24px; }

.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex-grow: 1; }
.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  padding: 9px 0;
  border-top: 1px solid var(--border);
}
.plan li:first-child { border-top: none; }
.plan li svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }

.plan .btn { width: 100%; text-align: center; }

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 32px;
}

/* Demo page */
.demo-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-top: 32px;
}

.demo-creds {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0 24px;
}

.demo-cred {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  min-width: 140px;
}

.demo-cred .label { font-size: 11px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.demo-cred .value { font-size: 16px; font-weight: 700; font-family: 'SF Mono', 'Menlo', monospace; }

.divider { height: 1px; background: var(--border); border: none; margin: 0; }

.cta-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 56px 0;
}

.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--text-soft); margin: 0 0 28px; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: 30px; margin: 0 0 8px; }
.legal .updated { color: var(--text-soft); font-size: 13px; margin-bottom: 40px; }
.legal h2 { font-size: 18px; margin: 36px 0 12px; }
.legal p, .legal li { font-size: 15px; line-height: 1.75; color: var(--text-soft); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); text-decoration: none; }
.legal .notice {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Contact form */
.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea { resize: vertical; min-height: 110px; }

.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.turnstile-wrap { margin: 6px 0 22px; }

.form-msg {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 18px;
  display: none;
}

.form-msg.success { background: var(--success-soft); color: var(--success); display: block; }
.form-msg.error { background: var(--warning-soft); color: var(--warning); display: block; }

.contact-form button[type="submit"] {
  border: none;
  font-family: inherit;
}

.contact-form button[type="submit"]:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Footer */
footer.site { padding: 40px 0 32px; border-top: 1px solid var(--border); }

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

footer.site .footer-line { font-size: 13px; color: var(--text-soft); line-height: 1.8; }
footer.site a.dev-link { color: var(--accent); text-decoration: none; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16,24,40,0.14);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 50;
}

.cookie-banner p { font-size: 13px; color: var(--text-soft); margin: 0; line-height: 1.5; }
.cookie-banner a { color: var(--accent); text-decoration: none; }
.cookie-banner button {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero-grid { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
  .hero { padding: 48px 0 40px; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
}
