/* FlexBase website. Self-contained: system fonts, no external assets. */
:root {
  --brand: #00a892;
  --brand-strong: #00796b;
  --accent: #c6f432;
  --ink: #0b1114;
  --ink-soft: #1a2328;
  --text: #1c2529;
  --muted: #5b6770;
  --surface: #ffffff;
  --surface-alt: #f3f6f7;
  --border: #e1e6ea;
  --warn: #b45309;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 17, 20, .08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6ecef;
    --muted: #9aa7b0;
    --surface: #0e1417;
    --surface-alt: #141c20;
    --border: #25313a;
    --brand: #1fd1b8;
    --brand-strong: #5fe3d0;
    --warn: #fbbf24;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--surface); }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--brand-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #000; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #04221d; border-color: var(--brand); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.btn-outline { border-color: var(--brand); color: var(--brand-strong); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #04221d; }
.btn-ghost { color: inherit; border-color: var(--border); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: inherit; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) { color: #cfd8dc; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-header .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); margin-left: 8px; }
.menu-toggle { display: none; background: transparent; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; padding: 9px 10px; cursor: pointer; }
.menu-bar { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(0, 191, 166, .35), transparent 60%), var(--ink); color: #fff; padding: 72px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: #c7d1d6; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 20px; }
.center-row { justify-content: center; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; color: #aebbc2; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }

.hero-card { background: #121b20; border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.mock-top { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-top span { width: 10px; height: 10px; border-radius: 50%; background: #2c3940; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mock-stat { background: #19252b; border-radius: 14px; padding: 14px 16px; }
.mock-stat b { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.mock-stat i { font-style: normal; font-size: .8rem; color: #9fb0b8; }
.mock-stat.warn b { color: #fbbf24; }
.mock-list { background: #19252b; border-radius: 14px; padding: 6px 16px; }
.mock-list div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .9rem; color: #c7d1d6; }
.mock-list div:last-child { border-bottom: 0; }
.mock-list em { font-style: normal; font-weight: 700; color: var(--accent); }
.mock-note { margin: 10px 0 0; font-size: .72rem; color: #7d8d95; text-align: right; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 46em; margin-bottom: 32px; }
.center .section-lead { margin-left: auto; margin-right: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card.center p { margin-bottom: 16px; }
.roadmap-title { margin-top: 44px; }
.chips { list-style: none; padding: 0; margin: 12px 0 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px dashed var(--brand); color: var(--brand-strong); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { position: relative; padding: 6px 0 6px 28px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--brand); font-weight: 800; }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.phone { justify-self: center; width: 280px; background: var(--ink); border-radius: 34px; padding: 22px 18px; box-shadow: var(--shadow); border: 6px solid #232f36; color: #fff; }
.phone-card { background: linear-gradient(135deg, #00bfa6, #00695c); border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.phone-card small { letter-spacing: .12em; opacity: .8; font-size: .7rem; }
.phone-card > b { display: block; font-size: 1.3rem; }
.phone-card span { font-size: .8rem; opacity: .9; }
.phone-ring { margin: 16px auto 0; width: 110px; height: 110px; border-radius: 50%; border: 8px solid var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.phone-ring b { font-size: 1.6rem; line-height: 1; }
.phone-ring i { font-style: normal; font-size: .72rem; opacity: .9; }
.phone-line { display: flex; justify-content: space-between; background: #19252b; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; font-size: .9rem; }
.phone-line em { font-style: normal; font-weight: 700; color: var(--accent); }

/* ---------- screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shot { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot-wide { grid-column: 1 / -1; }
.shot img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
.shot figcaption { padding: 14px 18px; color: var(--muted); font-size: .95rem; }
.shot figcaption b { color: var(--text); }

/* ---------- comparison ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); margin-top: 28px; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 700; width: 26%; }
.compare td:nth-child(2) { color: var(--muted); }
.compare td:nth-child(3) { font-weight: 600; background: rgba(0, 168, 146, .08); }
.compare thead th:nth-child(3) { color: var(--brand-strong); background: rgba(0, 168, 146, .08); }

/* ---------- pricing ---------- */
.billing-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.billing-toggle button { border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700; padding: 8px 20px; border-radius: 999px; cursor: pointer; }
.billing-toggle button.active { background: var(--brand); color: #04221d; }
.plans { display: grid; gap: 20px; align-items: stretch; margin-bottom: 24px; }
.plans-1 { grid-template-columns: minmax(0, 420px); }
.plans-2 { grid-template-columns: repeat(2, 1fr); }
.plans-3 { grid-template-columns: repeat(3, 1fr); }
.plans-4 { grid-template-columns: repeat(4, 1fr); }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.plan-featured { border: 2px solid var(--brand); }
.plan-flag { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #111; font-size: .75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.plan-desc { color: var(--muted); min-height: 3.2em; }
.price { margin: 0; }
.price b { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.price span { color: var(--muted); }
.price-note { color: var(--muted); font-size: .875rem; margin-bottom: 18px; }
.plan .checks { flex: 1; }

/* ---------- faq ---------- */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 12px 0 0; color: var(--muted); }

.cta-band { background: var(--ink); color: #fff; }
.cta-band .section-lead { color: #c7d1d6; }
.cta-band .btn-outline, .cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }

.prose h1 { margin-bottom: .8em; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* ---------- footer ---------- */
.site-footer { background: #070b0d; color: #aebbc2; padding: 40px 0 24px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .brand { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; }
.site-footer nav a { color: #cfd8dc; text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: #8496a0; margin: 8px 0 0; }
.footer-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: #8496a0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .grid-3, .plans-3, .plans-4 { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--ink); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .site-nav.open { display: flex; }
  .site-header .btn-ghost { margin-left: 0; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero { padding: 48px 0 56px; }
  .grid-3, .plans-2, .plans-3, .plans-4, .shots { grid-template-columns: 1fr; }
  .plan-desc { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- enquiry form ---------- */
.enquiry-form { display: grid; gap: 6px; }
.enquiry-form label { font-weight: 600; margin-top: 8px; }
.enquiry-form input, .enquiry-form select { font: inherit; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); width: 100%; }
.enquiry-form input:focus, .enquiry-form select:focus { outline: 3px solid var(--brand); outline-offset: 1px; }
.enquiry-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0; }
.enquiry-form .check input { width: auto; margin-top: 4px; }
.enquiry-form button { margin-top: 10px; }
.enquiry-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: rgba(220, 38, 38, .1); color: #b91c1c; border-radius: 10px; padding: 10px 14px; }
