/* ===================================================================
   Conta PDV — Landing Page
   Palette & type extracted from the reference design (.design)
   =================================================================== */

:root {
  --bg: #070707;
  --bg-2: #0e0e0e;
  --surface: #161616;
  --surface-2: #1c1c1c;
  --surface-3: #242424;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);

  --red: #ea1d2c;
  --red-strong: #ff2f3e;
  --red-soft: rgba(234, 29, 44, 0.12);
  --red-border: rgba(234, 29, 44, 0.34);
  --amber: #f4b43a;
  --coral: #f46a5a;

  --text: #ffffff;
  --muted: #9a9a9a;
  --subtle: #707070;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --pill: 999px;
  --maxw: 1200px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
  user-select: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px; --pad-x: 22px; --fs: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  font-size: var(--fs); font-weight: 700; font-family: inherit;
  border: 1px solid transparent; border-radius: var(--pill);
  cursor: pointer; white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn .material-symbols-rounded { font-size: 20px; }
.btn:active { transform: scale(0.97); }
.btn--sm { --pad-y: 10px; --pad-x: 18px; --fs: 14px; }
.btn--lg { --pad-y: 16px; --pad-x: 28px; --fs: 16px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 26px -10px rgba(234, 29, 44, 0.7); }
.btn--primary:hover { background: var(--red-strong); box-shadow: 0 12px 34px -10px rgba(234, 29, 44, 0.85); }
.btn--ghost { background: var(--surface-2); color: #fff; border-color: var(--border-2); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--dark { background: #0b0b0b; color: #fff; }
.btn--dark:hover { background: #000; }

/* ---------- Eyebrow / section headings ---------- */
.eyebrow {
  color: var(--red);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow--center { text-align: center; }
.eyebrow--light { color: rgba(255, 255, 255, 0.85); }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section__title {
  text-align: center;
  font-size: clamp(29px, 4.6vw, 46px); font-weight: 800;
  line-height: 1.06; letter-spacing: -0.02em;
}
.section__sub {
  max-width: 620px; margin: 18px auto 0; text-align: center;
  color: var(--muted); font-size: clamp(15px, 1.6vw, 17px); line-height: 1.6;
}

/* =================== NAV =================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 7, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(7, 7, 7, 0.86); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: inline-flex; }
.brand__mark svg { display: block; border-radius: 9px; }
.brand__word { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand__word strong { color: var(--red); font-weight: 800; }

.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { color: var(--muted); font-size: 14.5px; font-weight: 600; transition: color 0.2s; }
.nav__links a:hover { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none; background: var(--surface-2); color: #fff;
  border: 1px solid var(--border-2); border-radius: 12px;
  width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer;
}
.nav__mobile { display: none; flex-direction: column; gap: 6px; padding: 8px 24px 20px; border-bottom: 1px solid var(--border); }
.nav__mobile a { padding: 12px 4px; color: var(--muted); font-weight: 600; }
.nav__mobile a.btn { color: #fff; justify-content: center; margin-top: 6px; }

/* =================== HERO =================== */
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero__grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  font-size: clamp(40px, 6.4vw, 76px); font-weight: 800;
  line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 22px;
}
.t-red { color: var(--red); }
.hero__lead { font-size: clamp(19px, 2.3vw, 26px); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.hero__lead u { text-decoration-color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 3px; }
.hero__body { margin-top: 20px; max-width: 460px; color: var(--muted); font-size: 16px; line-height: 1.62; }
.hero__body strong { color: #fff; font-weight: 700; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.hero__trust .material-symbols-rounded { color: var(--red); font-size: 18px; }

.hero__device { display: flex; justify-content: center; }

/* =================== PHONE MOCKUP =================== */
.phone {
  width: 300px; flex: none;
  background: #000; border: 1px solid #262626; border-radius: 46px;
  padding: 10px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.phone__screen {
  background: var(--bg-2); border-radius: 38px; overflow: hidden;
  display: flex; flex-direction: column; height: 600px;
}
.statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px 6px; font-size: 13px; font-weight: 700;
}
.statusbar__icons { display: inline-flex; gap: 5px; }
.statusbar__icons .material-symbols-rounded { font-size: 17px; }

.scr { flex: 1; overflow: hidden; padding: 6px 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.scr--center { justify-content: space-between; padding-bottom: 18px; }
.scr__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.scr__eyebrow { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.scr__title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-top: 1px; }
.scr__back { display: flex; align-items: center; gap: 10px; }
.scr__back .material-symbols-rounded { font-size: 22px; }
.scr__label { color: var(--subtle); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.iconbtn {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.scr__search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 13px; color: var(--subtle); font-size: 13.5px; font-weight: 500;
}
.scr__search .material-symbols-rounded { font-size: 19px; }

.chips { display: flex; gap: 5px; overflow: hidden; }
.chip {
  padding: 6px 10px; border-radius: var(--pill); font-size: 11.5px; font-weight: 600;
  background: var(--surface); color: var(--muted); border: 1px solid var(--border); white-space: nowrap;
}
.chip--on { background: var(--red); color: #fff; border-color: var(--red); }

.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pcard {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 15px; padding: 12px; min-height: 92px; display: flex; flex-direction: column; justify-content: flex-end;
}
.pcard__ico { position: absolute; top: 12px; left: 12px; font-size: 26px; color: var(--muted); }
.pcard__add {
  position: absolute; top: 9px; right: 9px; width: 26px; height: 26px; border: none;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.pcard__name { font-size: 13px; font-weight: 700; }
.pcard__price { font-size: 12.5px; font-weight: 600; color: var(--muted); }

.cartbar {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; border: none; border-radius: 15px;
  padding: 14px 16px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.cartbar .material-symbols-rounded { font-size: 20px; }
.cartbar__n { margin-left: 4px; font-weight: 600; opacity: 0.85; font-size: 12px; }
.cartbar__total { margin-left: auto; font-weight: 800; }
.cartbar--full { justify-content: center; }

.ghostbar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface); color: #fff; border: 1px solid var(--border-2); border-radius: 15px;
  padding: 13px 16px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.ghostbar .material-symbols-rounded { font-size: 20px; }
.ghostbar--sm { padding: 11px 14px; font-size: 13px; }

.tabbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border); background: rgba(0, 0, 0, 0.4);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; color: var(--subtle); }
.tab .material-symbols-rounded { font-size: 22px; }
.tab--on { color: var(--red); }

/* comandas grid */
.tabgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; overflow: hidden; }
.tabcard { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 11px; }
.tabcard__top { display: flex; align-items: center; justify-content: space-between; }
.tabcard__name { font-size: 14px; font-weight: 800; }
.tabcard__time { font-size: 9.5px; font-weight: 700; color: var(--amber); background: rgba(244, 180, 58, 0.14); padding: 2px 6px; border-radius: var(--pill); }
.tabcard__who { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.tabcard__items { font-size: 10.5px; color: var(--subtle); margin-top: 1px; }
.tabcard__total { font-size: 15px; font-weight: 800; margin-top: 8px; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  background: var(--red); color: #fff; border: none; border-radius: var(--pill);
  padding: 9px 14px; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.pill-btn .material-symbols-rounded { font-size: 17px; }
.pill-btn--soft { background: var(--surface); color: #fff; border: 1px solid var(--border); }
.pill-btn--full { flex: 1; justify-content: center; border-radius: 14px; padding: 13px; font-size: 13.5px; }

/* payment */
.totalbox { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; text-align: center; }
.totalbox__label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.totalbox__value { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.totalbox--out .totalbox__value { color: var(--coral); }
.totalbox--in .totalbox__value { color: #34c759; }
.pay { display: flex; flex-direction: column; gap: 8px; }
.pay__opt {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 13px;
  padding: 13px 14px; font-size: 13.5px; font-weight: 600;
}
.pay__opt .material-symbols-rounded { font-size: 20px; color: var(--muted); }
.pay__opt--on { border-color: var(--red); background: var(--red-soft); }
.pay__opt--on .material-symbols-rounded { color: var(--red); }
.pay__ck { margin-left: auto; }
.payrow { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.payrow span { color: var(--muted); }
.payrow strong { font-weight: 700; }
.payrow--muted strong { color: var(--muted); }

/* done */
.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; }
.done__badge { width: 68px; height: 68px; border-radius: 50%; background: rgba(52, 199, 89, 0.15); color: #34c759; display: grid; place-items: center; margin-bottom: 8px; }
.done__badge .material-symbols-rounded { font-size: 40px; font-variation-settings: "wght" 700; }
.done__title { font-size: 22px; font-weight: 800; }
.done__sub { color: var(--muted); font-size: 13px; }
.done__value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.done__box { width: 100%; margin-top: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.done__actions { display: flex; flex-direction: column; gap: 9px; }

.twobtn { display: flex; gap: 8px; }

/* expenses list */
.exlist { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.exlist li { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 10px 12px; }
.ex__ico { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; font-size: 19px; flex: none; }
.ex__mid { flex: 1; min-width: 0; }
.ex__name { font-size: 13px; font-weight: 700; }
.ex__meta { font-size: 10.5px; color: var(--subtle); }
.ex__val { font-size: 13px; font-weight: 700; color: var(--coral); white-space: nowrap; }

/* financial */
.minirow { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mini { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 11px 12px; }
.mini .material-symbols-rounded { font-size: 20px; }
.mini--in .material-symbols-rounded { color: #34c759; }
.mini--out .material-symbols-rounded { color: var(--coral); }
.mini__l { font-size: 10.5px; color: var(--muted); }
.mini__v { font-size: 15px; font-weight: 800; }
.chartcard { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 13px; }
.chartcard__head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; }
.dot { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.dot--in { background: #34c759; }
.dot--out { background: var(--coral); }
.bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 82px; margin-top: 12px; }
.barcol { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; position: relative; height: 100%; }
.barcol em { position: absolute; bottom: -18px; font-style: normal; font-size: 9px; color: var(--subtle); }
.bar { width: 6px; border-radius: 3px 3px 0 0; }
.bar--in { background: #34c759; }
.bar--out { background: var(--coral); opacity: 0.85; }
.marlist { display: flex; flex-direction: column; gap: 9px; }
.marlist li { display: grid; grid-template-columns: 78px 1fr 34px; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; }
.marlist strong { text-align: right; font-weight: 800; }
.mar__track { height: 6px; border-radius: var(--pill); background: var(--surface-3); overflow: hidden; }
.mar__fill { display: block; height: 100%; border-radius: var(--pill); background: var(--red); }

/* =================== STATS BAND =================== */
.stats { background: var(--bg-2); border-block: 1px solid var(--border); padding-block: clamp(44px, 6vw, 72px); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.stat__num { color: var(--red); font-size: clamp(34px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.02em; }
.stat__label { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 8px; max-width: 300px; margin-inline: auto; }

/* =================== COMPARE =================== */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 46px; }
.compare__card { border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); border: 1px solid var(--border); }
.compare__card--bad { background: var(--surface); }
.compare__card--good { background: var(--red-soft); border-color: var(--red-border); }
.compare__head { display: flex; align-items: center; gap: 10px; color: var(--red); font-size: 17px; font-weight: 800; margin-bottom: 22px; }
.compare__head .material-symbols-rounded { font-size: 24px; }
.compare__list { display: flex; flex-direction: column; gap: 16px; }
.compare__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; color: #e9e9e9; }
.compare__list .material-symbols-rounded { font-size: 20px; flex: none; margin-top: 1px; }
.compare__list .x { color: var(--red); }
.compare__list .ck { color: var(--red); font-variation-settings: "wght" 700; }

/* =================== STEPS =================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: border-color 0.2s, transform 0.2s var(--ease); }
.step:hover { border-color: var(--border-2); transform: translateY(-3px); }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step__ico { width: 48px; height: 48px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 26px; }
.step__n { font-size: 40px; font-weight: 800; color: rgba(255, 255, 255, 0.08); letter-spacing: -0.02em; }
.step__title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step__body { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* =================== SHOWCASE / CAROUSEL =================== */
.showcase { overflow: hidden; }
.carousel { margin-top: 44px; cursor: grab; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x proximity; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.is-dragging * { pointer-events: none; }
.carousel__track { display: flex; gap: 28px; padding-inline: max(24px, calc((100vw - var(--maxw)) / 2 + 24px)); width: max-content; }
.slide { margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.slide__cap { order: -1; font-size: 15px; font-weight: 700; text-align: center; }
.slide__n { color: var(--red); font-weight: 800; margin-right: 4px; }
.carousel__progress { max-width: 340px; margin: 30px auto 0; height: 4px; border-radius: var(--pill); background: var(--surface-3); overflow: hidden; }
.carousel__progress span { display: block; height: 100%; width: 22%; border-radius: var(--pill); background: var(--red); transition: transform 0.1s linear; transform-origin: left; }

/* =================== FEATURES (offline) =================== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.feature__ico { width: 52px; height: 52px; border-radius: 15px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 27px; margin-bottom: 18px; }
.feature__title { font-size: 19px; font-weight: 800; margin-bottom: 9px; }
.feature__body { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* =================== FINAL CTA =================== */
.cta { background: var(--red); border-radius: var(--radius-xl); padding: clamp(44px, 6vw, 76px) 24px; text-align: center; box-shadow: 0 40px 90px -50px rgba(234, 29, 44, 0.9); }
.cta .eyebrow { color: rgba(255, 255, 255, 0.82); }
.cta__title { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em; }
.cta__sub { max-width: 480px; margin: 16px auto 30px; color: rgba(255, 255, 255, 0.88); font-size: clamp(15px, 1.8vw, 18px); line-height: 1.55; }
.cta__fine { margin-top: 20px; color: rgba(255, 255, 255, 0.78); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }

/* =================== FOOTER =================== */
.footer { border-top: 1px solid var(--border); padding-block: 34px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__tag { color: var(--muted); font-size: 13.5px; }
.footer__copy { color: var(--subtle); font-size: 13px; }

/* =================== RESPONSIVE =================== */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; order: 2; }
  .hero__device { order: 1; }
  .hero__body { margin-inline: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__actions .btn--sm { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__mobile { display: flex; }
  .stats__grid { grid-template-columns: 1fr; gap: 30px; }
  .compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
