/* CPEio Desktop Edition landing page. Colours and type follow the app itself. */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent: #10b981;
  --accent-dark: #059669;
  --accent-tint: #ecfdf5;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-900: #171717;
  --red-light: #fee2e2;
  --red-600: #dc2626;
  --radius: 10px;
  --width: 1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
    'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--accent-dark); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 6px; }
.brand span span { color: var(--gray-600); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--gray-700); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent-dark); }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary, .nav a.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover, .nav a.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--gray-900); border-color: var(--gray-300); }
.btn-secondary:hover { background: var(--gray-100); }
.btn-small { padding: 8px 16px; font-size: 15px; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow { display: inline-block; background: var(--accent-tint); color: var(--accent-dark); font-weight: 600; font-size: 14px; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.15; letter-spacing: -0.02em; max-width: 820px; margin: 0 auto 18px; }
.hero p.lead { font-size: 20px; color: var(--gray-600); max-width: 680px; margin: 0 auto 28px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--gray-500); }
.shot { margin: 44px auto 0; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }

/* Sections */
section { padding: 64px 0; }
section.alt { background: #fff; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
h2 { font-size: clamp(26px, 3.5vw, 34px); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 12px; }
.section-lead { color: var(--gray-600); max-width: 700px; margin-bottom: 36px; }
h3 { font-size: 18px; margin-bottom: 6px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; }
section.alt .card { background: var(--gray-50); }
.card p { color: var(--gray-600); font-size: 16px; }

/* Steps */
.steps { counter-reset: step; list-style: none; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--gray-600); font-size: 16px; }

/* Feature rows with a screenshot */
.feature { display: grid; gap: 36px; grid-template-columns: 1fr 1.25fr; align-items: center; margin-bottom: 56px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-text { order: 2; }
.feature ul { margin: 12px 0 0 20px; color: var(--gray-600); }
.feature li { margin-bottom: 6px; }
.feature .shot { margin: 0; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); }

/* Pricing */
.pricing { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.price-card { background: #fff; border: 2px solid var(--accent); border-radius: var(--radius); padding: 32px; }
.price { font-size: 48px; font-weight: 700; line-height: 1; margin: 12px 0 4px; }
.price small { font-size: 18px; font-weight: 500; color: var(--gray-600); }
.price-card ul, .trial-card ul { list-style: none; margin: 20px 0 24px; }
.price-card li, .trial-card li { padding-left: 26px; position: relative; margin-bottom: 8px; color: var(--gray-700); }
.price-card li::before, .trial-card li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700; }
.trial-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 32px; }
.trial-card .tag { display: inline-block; background: var(--red-light); color: var(--red-600); font-weight: 600; font-size: 13px; padding: 3px 10px; border-radius: 999px; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--gray-600); }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--gray-200); padding: 36px 0; font-size: 15px; color: var(--gray-600); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer address { font-style: normal; }

@media (max-width: 780px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 24px; }
  section { padding: 44px 0; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 20px; }
  .feature.flip .feature-text { order: 0; }
  .nav a:not(.btn) { display: none; }
}

/* Legal pages (terms.html, privacy.html) */
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 6px; }
.legal .updated { color: var(--gray-500); font-size: 15px; margin-bottom: 28px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal h3 { font-size: 18px; margin: 22px 0 6px; }
.legal p { margin-bottom: 14px; color: var(--gray-700); }
.legal ul { margin: 0 0 14px 22px; color: var(--gray-700); }
.legal li { margin-bottom: 8px; }
.legal .grid { margin: 14px 0 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.legal .card h3 { margin-top: 0; }
.legal .card p { font-size: 15px; margin-bottom: 8px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; background: #fff; border: 1px solid var(--gray-200); }
.legal-table th, .legal-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--gray-200); font-size: 16px; }
.legal-table th { background: var(--gray-50); font-weight: 600; }

/* Release notes (releases.html) */
.release { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px 28px; margin-top: 22px; }
.legal .release h2 { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.legal .release h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-dark); margin: 18px 0 8px; }
.release-date { color: var(--gray-500); font-size: 15px; }
.legal .release ul { margin-bottom: 0; }
.tag-latest { background: var(--accent-tint); color: var(--accent-dark); font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
