@font-face { font-family: "Onest"; src: url("fonts/Onest-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/Onest-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/Onest-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/Onest-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* Radius rule: controls 10px, cards 18px, screenshot frames 14px, tab chips full pill. */
:root {
  --primary: #17694f;
  --primary-hover: #135a43;
  --primary-pressed: #0f4a37;
  --primary-soft: #e9f2ee;
  --primary-muted: #b9d6ca;
  --on-primary: #ffffff;

  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-sunken: #f5f6f3;
  --border: #e8e9e5;
  --border-strong: #d6d3cb;

  --ink: #1c1b18;
  --text-2: #5f5c56;
  --text-3: #85827b;

  --danger: #b4392f;
  --shadow: 0 1px 2px rgb(28 27 24 / .05), 0 12px 32px -12px rgb(23 105 79 / .18);
  --frame-shadow: 0 30px 60px -30px rgb(23 60 45 / .35), 0 2px 6px rgb(28 27 24 / .06);

  --r-control: 10px;
  --r-card: 18px;
  --r-frame: 14px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

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

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--text-2); font-weight: 500; font-size: 15px; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: var(--r-control);
  font: inherit; font-weight: 600; font-size: 15px; white-space: nowrap;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .12s ease;
}
.btn:active { transform: scale(.97); }
.btn i { font-size: 18px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-pressed); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text-3); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.4vw, 56px); }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { margin-top: 20px; font-size: 18px; color: var(--text-2); max-width: 38ch; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-shot { width: 118%; max-width: none; }
@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-shot { width: 100%; }
}

.frame {
  border-radius: var(--r-frame);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--frame-shadow);
  overflow: hidden;
}

/* Offline band */
.band { background: var(--primary-soft); border-block: 1px solid var(--primary-muted); padding: 80px 0; }
.band h2 { font-size: clamp(28px, 3.4vw, 42px); max-width: 20ch; }
.facts { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.fact i { font-size: 28px; color: var(--primary); }
.fact h3 { margin-top: 14px; font-size: 18px; font-weight: 600; }
.fact p { margin-top: 6px; color: var(--text-2); font-size: 15px; max-width: 32ch; }
@media (max-width: 768px) { .band { padding: 56px 0; } .facts { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Sections */
.section { padding: 112px 0; }
.section-title { font-size: clamp(28px, 3.4vw, 42px); max-width: 22ch; }
.section-lead { margin-top: 16px; color: var(--text-2); font-size: 17px; max-width: 60ch; }
@media (max-width: 768px) { .section { padding: 72px 0; } }

/* Bento */
.bento {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "store discount debts"
    "store shifts   roles"
    "firma firma    firma";
  gap: 16px;
}
.cell {
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 210px;
}
.cell i.ph { font-size: 26px; color: var(--primary); }
.cell h3 { font-size: 19px; font-weight: 600; margin-top: auto; }
.cell p { color: var(--text-2); font-size: 15px; }
.cell-store { grid-area: store; padding: 28px 0 0 28px; overflow: hidden; background: var(--surface-sunken); }
.cell-store .text { padding-right: 28px; }
.cell-store h3 { margin-top: 0; }
.cell-store .frame { margin-top: 24px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-top-right-radius: 0; box-shadow: none; }
.cell-store .frame img { width: 150%; max-width: none; }
.cell-discount { grid-area: discount; }
.cell-debts { grid-area: debts; background: var(--primary); border-color: var(--primary); }
.cell-debts, .cell-debts p, .cell-debts i.ph { color: var(--on-primary); }
.cell-debts p { opacity: .86; }
.cell-shifts { grid-area: shifts; }
.cell-roles { grid-area: roles; background: var(--surface-sunken); }
.cell-firma {
  grid-area: firma; min-height: 0;
  flex-direction: row; align-items: center; gap: 24px;
  background:
    radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%),
    var(--surface);
}
.cell-firma h3 { margin-top: 0; }
.cell-firma .text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 960px) {
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "store store" "discount debts" "shifts roles" "firma firma"; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "store" "discount" "debts" "shifts" "roles" "firma"; }
  .cell { min-height: 0; }
  .cell h3 { margin-top: 8px; }
  .cell-firma { flex-direction: column; align-items: flex-start; }
}

/* Reports split */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.points { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--text-2); }
.points li i { font-size: 22px; color: var(--primary); margin-top: 1px; }
.points li strong { color: var(--ink); font-weight: 600; display: block; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); gap: 40px; } .split .frame { order: 2; } }

/* Invoice scan */
.scan-head { max-width: 640px; }
.scan-shot { margin-top: 48px; aspect-ratio: 16 / 7; }
.scan-shot img { width: 100%; height: 100%; object-fit: cover; object-position: right top; }
@media (max-width: 640px) { .scan-shot { aspect-ratio: 4 / 3; } }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.platform { border-radius: var(--r-card); border: 1px solid var(--border); background: var(--surface); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.platform i.ph { font-size: 30px; color: var(--primary); }
.platform h3 { font-size: 20px; font-weight: 600; margin-top: 8px; }
.platform p { color: var(--text-2); }
.platform .btn { margin-top: 18px; align-self: flex-start; }
@media (max-width: 768px) { .platforms { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--text-3); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Reveal on scroll (motivated: sections enter in reading order) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-shot { animation: rise 1s var(--ease) .1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Contact */
.contact { text-align: left; }
.phones { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.phone {
  display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px;
  border-radius: var(--r-card); border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 22px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: border-color .15s ease, transform .12s ease;
}
.phone i { color: var(--primary); font-size: 24px; }
.phone:hover { border-color: var(--primary); }
.phone:active { transform: scale(.98); }
.footer-phones { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 640px) { .phone { width: 100%; font-size: 20px; } }

/* Screen tour */
.tabs { margin-top: 32px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; scroll-snap-align: start; height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.tabs button:hover { color: var(--ink); border-color: var(--text-3); }
.tabs button:active { transform: scale(.97); }
.tabs button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tour-view { margin: 24px 0 0; }
.tour-view .frame { aspect-ratio: 1920 / 1000; background: var(--surface-sunken); }
.tour-view img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.tour-view figcaption { margin-top: 16px; color: var(--text-2); font-size: 15px; }
