@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-600.ttf") format("truetype");
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-700.ttf") format("truetype");
  font-weight: 700 800;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --card: #ffffff;
  --ink: #0b1220;
  --ink-soft: #4a5568;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-2: #3b82f6;
  --brand-soft: #e8efff;
  --brand-ink: #ffffff;
  --sky: #7dd3fc;
  --accent: #10b981;
  --hero-bg: #070d1a;
  --hero-ink: #e6ecf7;
  --hero-soft: #9fb0cc;
  --radius: 14px;
  --shadow: 0 30px 60px -25px rgba(11, 18, 32, 0.45);
  --shadow-sm: 0 10px 30px -15px rgba(11, 18, 32, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f1729;
    --card: #131d33;
    --ink: #e6ecf7;
    --ink-soft: #a0aec0;
    --line: #1f2a44;
    --brand-soft: #172447;
    --shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8);
    --shadow-sm: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ic {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  background: var(--brand);
  color: var(--brand-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: #1d4ed8;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.9rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 13, 26, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--hero-ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

.nav > a:not(.btn) {
  text-decoration: none;
  color: var(--hero-soft);
}

.nav > a:not(.btn):hover {
  color: #fff;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--hero-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: #fff;
  color: var(--hero-bg);
}

/* Hero */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 72px 0 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  background:
    radial-gradient(600px 380px at 75% 35%, rgba(37, 99, 235, 0.45), transparent 70%),
    radial-gradient(500px 320px at 15% 10%, rgba(125, 211, 252, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.eyebrow,
.kicker {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
}

.kicker {
  color: var(--brand);
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.accent {
  background: linear-gradient(90deg, #60a5fa, var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.15rem;
  color: var(--hero-soft);
  margin: 0 0 28px;
  max-width: 34em;
}

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
}

.signup input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font: inherit;
}

.signup input::placeholder {
  color: #7f8ea8;
}

.signup input:focus {
  outline: 2px solid var(--brand-2);
  outline-offset: 1px;
}

.form-msg {
  flex-basis: 100%;
  margin: 0;
  min-height: 1.4em;
  font-size: 0.9rem;
}

.form-msg.ok {
  color: var(--accent);
}

.form-msg.err {
  color: #f87171;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  margin: 4px 0 0;
  color: var(--hero-soft);
  font-size: 0.92rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-points .ic {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.hero-visual {
  position: relative;
  padding-bottom: 72px;
}

.browser {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0d1526;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(37, 99, 235, 0.15);
  transform: perspective(1800px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #111b30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.browser-url {
  margin-left: 12px;
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--hero-soft);
}

.tablet {
  position: absolute;
  left: -48px;
  bottom: 0;
  width: 56%;
  margin: 0;
  padding: 10px;
  border-radius: 20px;
  background: #1a2233;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85);
}

.tablet img {
  border-radius: 10px;
}

/* Strip */
.strip {
  background: var(--hero-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--hero-soft);
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 22px 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.strip-inner span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--sky);
  vertical-align: middle;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 22em;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin: 0 0 48px;
  max-width: 40em;
}

/* Two products */
.duo {
  padding: 72px 0 0;
}

.duo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.duo-card {
  display: block;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.duo-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.duo-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}

.duo-card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.duo-card p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
}

.more .ic {
  width: 18px;
  height: 18px;
}

/* Screenshots */
.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}

.shot {
  margin: 0;
}

.shot img,
.zoom.shot img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}

.shot figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Till */
.till-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.till-points {
  display: grid;
  gap: 26px;
}

.point {
  display: flex;
  gap: 14px;
}

.point .ic {
  margin-top: 3px;
  color: var(--brand);
}

.point h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.point p {
  margin: 0;
  color: var(--ink-soft);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
  margin-top: 72px;
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  margin-top: 88px;
}

.phone {
  margin: 0;
  padding: 10px;
  border-radius: 38px;
  background: #111827;
  box-shadow: var(--shadow);
}

.phone img {
  border-radius: 30px;
}

.phone-copy h3 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.phone-copy p {
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 34em;
}

/* Back office tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.tabs button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.tabs button:hover {
  color: var(--ink);
  border-color: var(--brand);
}

.tabs button[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.panel {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr);
  gap: 48px;
  align-items: start;
  animation: fade 0.35s ease;
}

.panel[hidden] {
  display: none;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.panel-copy {
  padding-top: 12px;
}

.panel-copy h3 {
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.panel-copy p {
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 30px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.stack {
  position: relative;
  padding: 0 0 18% 0;
}

.stack > .zoom:first-child {
  width: 88%;
}

.stack-front {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62% !important;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
}

.feature:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.feature .ic {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  stroke-width: 2.2;
}

.feature h3 {
  font-size: 1rem;
  margin: 14px 0 6px;
}

.feature p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: none;
}

.steps li {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.steps h3 {
  margin: 14px 0 6px;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* CTA */
.cta {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-ink);
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 50% 0%, rgba(37, 99, 235, 0.4), transparent 70%);
}

.cta-inner {
  position: relative;
  text-align: center;
  display: grid;
  justify-items: center;
}

.cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.cta-inner > p {
  color: var(--hero-soft);
  margin: 0 0 28px;
}

.signup-wide {
  max-width: 720px;
  justify-content: center;
}

.signup-wide .form-msg {
  text-align: center;
}

.fineprint {
  font-size: 0.85rem;
  color: #7f8ea8 !important;
  margin: 8px 0 0 !important;
}

/* Footer */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.muted {
  opacity: 0.8;
}

/* Lightbox */
.lightbox {
  width: min(1600px, 96vw);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(4px);
}

.lightbox img {
  max-height: 94vh;
  width: auto;
  margin: auto;
  border-radius: 12px;
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #0b1220;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

/* 404 */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.notfound h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin: 0;
}

/* Responsive */
@media (max-width: 1080px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .till-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 48px;
  }
  .tablet {
    left: -8px;
    width: 60%;
  }
  .browser {
    transform: none;
  }
  .nav > a:not(.btn) {
    display: none;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .phone-row {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 32px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }
  .duo-inner,
  .gallery,
  .phone-row {
    grid-template-columns: 1fr;
  }
  .phone {
    max-width: 260px;
    margin-inline: auto;
  }
  .features {
    gap: 10px;
  }
  .feature {
    padding: 16px;
  }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 0 16px 6px;
    scrollbar-width: none;
  }
  .tabs button {
    flex: none;
  }
  .strip-inner {
    justify-content: flex-start;
  }
  .nav {
    gap: 10px;
  }
  .nav .btn-small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .panel {
    animation: none;
  }
  .browser {
    transform: none;
  }
}
