:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-muted: #f4f4f5;
  --border: #e4e4e7;
  --text: #18181b;
  --text-muted: #52525b;
  --text-subtle: #71717a;
  --accent: #d9480f;
  --accent-hover: #c2410c;
  --accent-soft: #fff1e8;
  --accent-text: #9a3412;
  --ink: #1c1d21;
  --ink-2: #26272c;
  --ink-text: #c9cad1;
  --ink-border: #34353c;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -12px rgb(0 0 0 / 0.18);
  color-scheme: light;
}

/* Dark: follows the system unless the visitor picked a theme (data-theme on <html>, set by script.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113;
    --surface: #1a1a1d;
    --surface-muted: #222226;
    --border: #2e2e33;
    --text: #f4f4f5;
    --text-muted: #b4b4bb;
    --text-subtle: #8e8e96;
    --accent: #e8590c;
    --accent-hover: #f76707;
    --accent-soft: #2d1a10;
    --accent-text: #ffa36b;
    --ink: #0b0b0d;
    --ink-2: #17171a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111113;
    --surface: #1a1a1d;
    --surface-muted: #222226;
    --border: #2e2e33;
    --text: #f4f4f5;
    --text-muted: #b4b4bb;
    --text-subtle: #8e8e96;
    --accent: #e8590c;
    --accent-hover: #f76707;
    --accent-soft: #2d1a10;
    --accent-text: #ffa36b;
    --ink: #0b0b0d;
    --ink-2: #17171a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.6);
    color-scheme: dark;
}

/* Theme-specific images (the hero screenshot) */
.dark-only { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dark-only { display: block !important; }
  :root:not([data-theme="light"]) .light-only { display: none !important; }
}
:root[data-theme="dark"] .dark-only { display: block !important; }
:root[data-theme="dark"] .light-only { display: none !important; }

/* Theme button */
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); background: var(--surface-muted); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle svg:not(.on) { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface-muted); }
.btn-light { background: #fff; color: #18181b; }
.btn-light:hover { background: #f4f4f5; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.brand-sm { font-size: 15px; }
.brand-sm .logo { width: 26px; height: 26px; font-size: 11px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; margin-left: auto; margin-right: 16px; }
.nav-links a:not(.btn) { color: var(--text-muted); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-signin { font-weight: 600; color: var(--text) !important; }
.nav-toggle { display: none; }
@media (max-width: 899px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; color: var(--text); cursor: pointer;
  }
  .nav-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 12px; height: 44px; }
}

/* Hero */
.hero { padding: 56px 0 24px; background: radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent 70%); }
.hero-inner { text-align: center; max-width: 880px; }
.eyebrow { color: var(--accent-text); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 700; }
.lede { margin: 20px auto 0; max-width: 680px; font-size: clamp(17px, 2.2vw, 19px); color: var(--text-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--text-muted); font-size: 14px; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.frame-hero { margin-top: 48px; }
.sample-note { text-align: center; color: var(--text-subtle); font-size: 13px; margin-top: 14px; }

/* Screenshot frames */
.frame {
  margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; cursor: zoom-in;
}
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-muted); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.stack { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .stack { position: relative; padding-bottom: 72px; }
  .stack .frame-offset { position: absolute; width: 78%; right: -24px; bottom: 0; }
  .feature-grid.reverse .stack .frame-offset { right: auto; left: -24px; }
}

/* Audience */
.audience { padding: 56px 0; }
.audience-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }
.audience-grid > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.audience h2 { font-size: 18px; margin-bottom: 8px; }
.audience p { color: var(--text-muted); font-size: 15px; }

/* Feature rows */
.feature { padding: 72px 0; }
.feature-alt { background: var(--surface-muted); border-block: 1px solid var(--border); }
.feature-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
  .feature-grid.reverse { grid-template-columns: 7fr 5fr; }
  .feature-grid.reverse .feature-copy { order: 2; }
}
.feature h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
.feature-copy > p:not(.eyebrow):not(.fine) { margin-top: 16px; color: var(--text-muted); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9480f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.fine { margin-top: 20px; font-size: 13px; color: var(--text-subtle); border-left: 2px solid var(--border); padding-left: 12px; }

.feature-dark { background: var(--ink); color: #fff; --border: var(--ink-border); }
.feature-dark .eyebrow { color: #ffa36b; }
.feature-dark .feature-copy > p:not(.eyebrow):not(.fine), .feature-dark .ticks li { color: var(--ink-text); }
.feature-dark .fine { color: #9a9ba3; }
.feature-dark .ticks li::before { background-color: #3a2416; }
.feature-dark .frame { box-shadow: 0 20px 48px -16px rgb(0 0 0 / 0.7); }

/* Cards */
.grid-section { padding: 80px 0; }
.grid-section h2 { font-size: clamp(26px, 3.4vw, 36px); }
.cards { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card svg { width: 36px; height: 36px; padding: 7px; border-radius: 8px; background: var(--accent-soft); fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 16px; margin: 14px 0 6px; }
.card p { font-size: 14px; color: var(--text-muted); }

/* Phone + trust */
.mobile { padding: 72px 0; background: var(--surface-muted); border-block: 1px solid var(--border); }
.mobile-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .mobile-grid { grid-template-columns: 4fr 7fr; gap: 72px; } }
.mobile h2 { font-size: clamp(26px, 3.4vw, 36px); }
.phone {
  margin: 0 auto; width: min(300px, 80vw); padding: 10px; border-radius: 36px; background: #0b0b0d;
  box-shadow: var(--shadow); cursor: zoom-in;
}
.phone img { border-radius: 28px; }

/* Lanka Mini POS family */
/* Uses the Lanka Mini POS pink so the sister brands read as theirs, not AutoMore's orange. */
.family {
  --lmp: #e11d48; --lmp-text: #be123c; --lmp-soft: #fff1f3;
  padding: 88px 0; border-top: 1px solid var(--border);
  background: radial-gradient(900px 380px at 50% 0, var(--lmp-soft), transparent 70%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .family { --lmp: #fb7185; --lmp-text: #fda4af; --lmp-soft: #2a1218; }
}
:root[data-theme="dark"] .family { --lmp: #fb7185; --lmp-text: #fda4af; --lmp-soft: #2a1218; }
.family .eyebrow { color: var(--lmp-text); }
.family h2 { font-size: clamp(26px, 3.4vw, 36px); }
.family-lede { margin: 16px auto 0; max-width: 680px; text-align: center; color: var(--text-muted); font-size: 17px; text-wrap: balance; }

.family-strip { list-style: none; padding: 0; margin: 32px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.family-strip li {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
@media (max-width: 599px) {
  .family-strip { flex-direction: column; align-items: stretch; max-width: 340px; }
}
.family-strip li.is-here { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.family-strip b { display: block; font-size: 14px; line-height: 1.2; }
.family-strip small { display: block; font-size: 12px; color: var(--text-subtle); }
.family-strip .logo { width: 30px; height: 30px; border-radius: 50%; font-size: 11px; }
.family-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lmp); color: #fff; font-size: 11px; font-weight: 700; }

.family-grid { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 860px) { .family-grid { grid-template-columns: repeat(2, 1fr); } }
.family-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.family-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--lmp) 35%, var(--border)); }
.family-shot { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.family-shot .frame-bar { align-items: center; }
.frame-url {
  flex: 1; max-width: 240px; margin-left: 10px; padding: 2px 10px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-subtle);
  font-size: 12px; line-height: 1.5; font-style: normal;
}
.family-shot img { aspect-ratio: 21 / 10; object-fit: cover; object-position: center top; transform-origin: center top; transition: transform .4s; }
.family-card:hover .family-shot img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .family-card, .family-shot img { transition: none; }
  .family-card:hover, .family-card:hover .family-shot img { transform: none; }
}

.family-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 24px; }
.family-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--lmp-text);
}
.family-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lmp); }
.family-card h3 { font-size: 22px; margin-top: 8px; }
.family-copy > p:not(.family-tag) { margin-top: 8px; color: var(--text-muted); font-size: 15px; }
.family-points { list-style: none; padding: 0; margin: 16px 0 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.family-points li { padding: 3px 10px; border-radius: 999px; background: var(--surface-muted); border: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.family-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15px; color: var(--lmp-text); text-decoration: none;
}
.family-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.family-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.family-link:hover svg { transform: translate(2px, -2px); }

/* FAQ */
.faq { padding: 80px 0; }
.faq h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 32px; }
details { border-bottom: 1px solid var(--border); }
summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--text-subtle); }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 20px; color: var(--text-muted); }

/* Contact */
.contact { padding: 80px 0; background: var(--ink); color: #fff; text-align: center; }
.contact h2 { font-size: clamp(26px, 4vw, 40px); }
.contact p { margin-top: 12px; color: var(--ink-text); font-size: 17px; }

.footer { padding: 28px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-subtle); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer .brand { color: var(--text); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgb(0 0 0 / 0.8); }
.lightbox img { max-height: 90vh; width: auto; border-radius: 8px; }
.lightbox-close {
  position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgb(255 255 255 / 0.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
