/* ============================================================
   ALPS Marketing Site — Option One: "Summit Light"
   Clean, white, classic SaaS. Brand-aligned with the ALPS app:
   Inter, primary blue #007bff, 4px button radius.
   ============================================================ */

:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --ink: #1a202c;
  --ink-soft: #4a5568;
  --ink-faint: #718096;
  --line: #dee2e6;
  --bg-soft: #f8f9fa;
  --bg-tint: #eef5fd;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 3px rgba(26, 32, 44, 0.08), 0 8px 24px rgba(26, 32, 44, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #ffffff;
}

img { max-width: 100%; height: auto; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1em; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-faint); }
.btn-login { background: var(--primary); color: #fff; padding: 8px 20px; }
.btn-login:hover { background: var(--primary-dark); }
.btn-large { padding: 14px 32px; font-size: 17px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand-name { font-size: 1.4rem; font-weight: 700; color: var(--ink); letter-spacing: 0.04em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.active { color: var(--primary); }
.site-nav a.btn-login, .site-nav a.btn-login:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 0;
  background-image: url('../images/mountains.svg');
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
}
.hero-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { font-size: 1.25rem; color: var(--ink-soft); margin-bottom: 1.8em; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 0.9rem; color: var(--ink-faint); }
.hero-shot { max-width: 920px; margin: 48px auto -2px; padding: 0 24px; }
.hero-shot img {
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card .card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  background: var(--bg-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .card-icon svg { width: 24px; height: 24px; stroke: var(--primary); }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }

/* ---------- Alternating feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
}
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-media { order: 1; }
.feature-copy h2 { font-size: 1.7rem; }
.feature-copy p { color: var(--ink-soft); }
.feature-copy ul { color: var(--ink-soft); padding-left: 20px; margin: 0 0 1em; }
.feature-copy li { margin-bottom: 8px; }
.feature-media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Browser frame (kept minimal in this design) */
.browser-frame { border-radius: var(--radius-lg); }
.browser-frame .frame-bar { display: none; }

/* ---------- Pricing ---------- */
.price-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.price-figure { font-size: 4rem; font-weight: 800; letter-spacing: -0.03em; }
.price-figure .per { font-size: 1.2rem; font-weight: 500; color: var(--ink-faint); }
.price-sub { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 28px; }
.price-includes { list-style: none; padding: 0; margin: 0 0 32px; text-align: left; }
.price-includes li { padding: 9px 0 9px 32px; border-bottom: 1px solid var(--bg-soft); position: relative; color: var(--ink-soft); }
.price-includes li::before { content: '✓'; position: absolute; left: 6px; color: #28a745; font-weight: 700; }
.price-teaser { text-align: center; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; max-width: 920px; margin: 0 auto; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.faq-item p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, #0a66d0 100%);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }
.cta-band .btn-primary { background: #fff; color: var(--primary); }
.cta-band .btn-primary:hover { background: var(--bg-soft); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 920px; margin: 0 auto; }
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card .post-thumb { background: var(--bg-tint); }
.post-card .post-thumb img { display: block; width: 100%; }
.post-card .post-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.post-meta { font-size: 0.85rem; color: var(--ink-faint); }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--primary); text-decoration: none; }
.post-card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

.article { max-width: 720px; margin: 0 auto; }
.article-header { text-align: center; margin-bottom: 40px; }
.article h1 { font-size: 2.3rem; }
.article h2 { font-size: 1.5rem; margin-top: 1.8em; }
.article p, .article li { color: var(--ink-soft); font-size: 1.05rem; }
.article img { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin: 12px 0; }
.article blockquote {
  border-left: 3px solid var(--primary);
  margin: 1.5em 0;
  padding: 4px 0 4px 20px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Forms ---------- */
.form-card {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}
.form-note { font-size: 0.92rem; color: var(--ink-faint); margin-top: 18px; }

/* Inline feedback shown after an AJAX form submission (see js/main.js). */
.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  border: 1px solid var(--line);
}
.form-status.is-success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.form-status.is-error { background: #fef3f2; border-color: #fecdca; color: #b42318; }

/* Honeypot field — hidden from humans, catches bots that fill every input. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- About ---------- */
.about-body { max-width: 720px; margin: 0 auto; }
.about-body p { color: var(--ink-soft); font-size: 1.08rem; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { color: var(--ink-faint); font-size: 0.95rem; margin-top: 12px; }
.site-footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a { color: var(--ink-soft); font-size: 0.95rem; }
.site-footer ul a:hover { color: var(--primary); }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
}
.socials a:hover { border-color: var(--primary); }
.socials svg { width: 17px; height: 17px; fill: var(--ink-soft); }
.socials a:hover svg { fill: var(--primary); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-faint);
  font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { font-size: 2.4rem; }
.page-hero p { color: var(--ink-soft); font-size: 1.15rem; max-width: 620px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  h1 { font-size: 2.2rem; }
  .card-grid, .value-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .feature-row.reverse .feature-copy { order: 1; }
  .feature-row.reverse .feature-media { order: 2; }
  .faq-grid, .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 24px;
    gap: 16px;
  }
  .site-nav.open { display: flex; }
}
