/* eTechFlow POS — pos.etechflow.com
   Built on the same system as cartio.ai: Inter, white page with grey bands,
   pill eyebrows, soft-bordered cards, one accent colour. Accent here is the
   eTechFlow indigo the POS interface itself uses. */

:root {
  --ink: #0f172a;
  --ink-2: #1f2937;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: #e5e7eb;
  --line-soft: #f1f2f6;
  --page: #ffffff;
  --band: #f8f9fb;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-line: #c7d2fe;
  --accent-text: #4338ca;
  --amber: #f59e0b;
  --green: #10b981;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 50px -22px rgba(15, 23, 42, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1em; height: 1em; flex: none; }

a { color: var(--accent-text); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--accent); color: #fff; padding: 12px 18px; }
.skip:focus { left: 0; }

.container { width: 100%; max-width: 1152px; margin-inline: auto; padding-inline: 24px; }
.container.narrow { max-width: 780px; }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.033em; line-height: 1.06; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.012em; }
p { margin: 0; }

/* ── Nav ─────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo-mark { border-radius: 9px; }
.logo-pos { color: var(--accent); }
.nav-links { display: none; margin-inline: auto; gap: 30px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; }
@media (min-width: 940px) { .nav-links { display: flex; } .nav-cta { margin-left: 0; } }

/* ── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px; font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(79, 70, 229, .8); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-soft { background: #f8f9fb; color: var(--ink-2); border-color: var(--line); }
.btn-soft:hover { background: #f1f2f6; }
.btn-onaccent { background: #fff; color: var(--accent-text); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.btn-onaccent:hover { background: #f6f6ff; }
.btn-sm { padding: 9px 18px; font-size: 15px; border-radius: 10px; }

/* ── Pills + section heads ───────────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-text);
  font-size: 13.5px; font-weight: 600;
}
.pill .ic { width: 15px; height: 15px; }
.pill-quiet { background: var(--accent-soft); border-color: var(--accent-line); }
.pill-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #c7d2fe; }

.sec { padding-block: clamp(64px, 8vw, 96px); }
.band { background: var(--band); border-block: 1px solid var(--line-soft); }
.sec-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sec-sub { color: var(--muted); font-size: 17.5px; }
.sec-head .sec-sub { max-width: 620px; }

/* ── Hero ────────────────────────────────────────────────────────── */

.hero { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 56px); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-copy h1 { max-width: 15ch; }
.accent { color: var(--accent); }
.sub { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 56ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); }
.ticks.stacked { flex-direction: column; gap: 12px; margin-top: 24px; }
.tick { width: 16px; height: 16px; color: var(--accent); }

.hero-media { display: flex; flex-direction: column; gap: 12px; }
.frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.frame img { width: 100%; }
.frame-note { font-size: 13.5px; color: var(--muted-2); text-align: right; }

/* ── Stat bar ────────────────────────────────────────────────────── */

.statbar { background: var(--band); border-block: 1px solid var(--line-soft); padding-block: 40px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; text-align: center; }
@media (min-width: 820px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-grid strong { display: block; font-size: clamp(26px, 3vw, 32px); font-weight: 700; letter-spacing: -0.03em; }
.stat-grid span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

/* ── Cards ───────────────────────────────────────────────────────── */

.cards { display: grid; gap: 22px; }
.cards.three { grid-template-columns: 1fr; }
.cards.four { grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards.three, .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.four { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #dcdfe6; transform: translateY(-2px); }
.card h3 { margin-top: 16px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.card-accent { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), #fff 62%); }
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.icon .ic { width: 21px; height: 21px; }
.steps .step {
  position: absolute; top: 20px; right: 24px;
  font-size: 30px; font-weight: 800; letter-spacing: -0.04em;
  color: var(--line);
}

.ticklist { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ticklist li { position: relative; padding-left: 20px; font-size: 15px; color: var(--muted); }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .5;
}

/* ── Offline ─────────────────────────────────────────────────────── */

.offline { background: #0c1222; color: #e8eaf3; border-block: 1px solid #0c1222; }
.offline h2 { color: #fff; margin-top: 18px; }
.offline .sec-sub { color: #9aa3bd; margin-top: 18px; max-width: 54ch; }
.offline-grid { display: grid; gap: clamp(36px, 5vw, 60px); align-items: center; }
@media (min-width: 1000px) { .offline-grid { grid-template-columns: 1fr 1.02fr; } }

.statelist { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.statelist li { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: #9aa3bd; }
.statelist b { color: #fff; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.dot.amber { background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 158, 11, .15); }
.dot.green { background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.footnote { margin-top: 22px; font-size: 14px; color: #79819c; max-width: 50ch; }

.offline-media { position: relative; }
.frame-dark { border-color: #1e263b; box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .9); }
.badge-inset {
  position: absolute; left: -12px; bottom: -20px;
  width: min(66%, 330px);
  border-radius: 12px; overflow: hidden;
  border: 1px solid #262f47;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .95);
  background: #fff;
}
@media (max-width: 640px) {
  .badge-inset { position: static; width: 100%; margin-top: 14px; }
}

/* ── Screens ─────────────────────────────────────────────────────── */

.shots { display: grid; gap: 24px; }
@media (min-width: 720px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.shots .frame { box-shadow: var(--shadow-sm); }
.shots figcaption { font-size: 14px; color: var(--muted); }

/* ── Fit + requirements ──────────────────────────────────────────── */

.fit-grid { display: grid; gap: clamp(32px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .fit-grid { grid-template-columns: 1fr 0.92fr; } }
.fit-grid .sec-sub { margin-top: 18px; max-width: 52ch; }
.fit-grid h2 { margin-top: 18px; }
.req { padding: 28px 26px 16px; }
.req h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 6px; }
.req h3 .ic { width: 18px; height: 18px; color: var(--accent); }
.req dl { margin: 0; }
.req dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding-block: 14px; border-top: 1px solid var(--line-soft); }
.req dt { font-size: 13px; font-weight: 600; color: var(--ink-2); padding-top: 2px; }
.req dd { margin: 0; font-size: 15px; color: var(--muted); }

/* ── FAQ ─────────────────────────────────────────────────────────── */

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none;
  padding: 18px 22px;
  font-size: 16.5px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { width: 18px; height: 18px; color: var(--muted-2); transition: transform .18s ease; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq p { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* ── CTA ─────────────────────────────────────────────────────────── */

.cta { background: var(--accent); color: #fff; padding-block: clamp(60px, 7vw, 88px); }
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.cta h2 { color: #fff; }
.cta p { color: #dbdcfb; max-width: 58ch; font-size: 17.5px; }
.cta .btn { margin-top: 6px; }
.cta-note { font-size: 14px; color: #c3c4f6; }

/* ── Footer ──────────────────────────────────────────────────────── */

.foot { background: #0c1222; color: #9aa3bd; padding-top: 56px; }
.foot-grid { display: grid; gap: 34px; grid-template-columns: 1fr; padding-bottom: 44px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; } }
.foot .logo { color: #fff; }
.foot-brand p { margin-top: 14px; font-size: 14.5px; max-width: 42ch; }
.foot h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 14px; }
.foot-grid > div > a { display: block; font-size: 14.5px; color: #9aa3bd; text-decoration: none; padding-block: 5px; }
.foot-grid > div > a:hover { color: #fff; }
.foot-base { border-top: 1px solid #1a2238; padding-block: 22px; }
.foot-base p { font-size: 13.5px; color: #6e7692; }
