/* Twiga POS website. Colours are the till app's (twiga_pos_app/lib/core/app_colors.dart). */
:root {
  --blue: #4D81EF;
  --blue-dark: #2F5FC4;
  --blue-deep: #1E3A5F;
  --blue-bg: #EEF3FE;
  --blue-bg-light: #F5F8FF;
  --blue-soft: #BFD1F9;
  --text: #1F2937;
  --text-second: #374151;
  --muted: #4B5563;
  --faint: #6B7280;
  --grey-mid: #C4C9D2;
  --border-strong: #D1D5DB;
  --border: #E5E7EB;
  --page: #F8F8F8;
  --grey-alt: #EDEEF1;
  --navy: #1A1D29;
  --navy-raised: #23273A;
  --navy-line: #2E3244;
  --navy-edge: #3A4057;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}
a { color: var(--blue-dark); }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { color: var(--navy); margin: 0; }
h2 { font-size: 36px; font-weight: 700; line-height: 1.15; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
img { display: block; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.small { font-size: 14px; color: var(--faint); }
.lead { font-size: 17px; line-height: 1.55; color: var(--muted); }
.narrow { max-width: 660px; margin-top: 12px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--blue-dark); letter-spacing: 0.04em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 18px; border-radius: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
}
.btn-big { padding: 15px 24px; border-radius: 12px; font-size: 16px; }
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-dark); color: #fff; }
.btn-line { background: #fff; color: var(--text); border: 1px solid var(--border-strong); }
.btn-line:hover { color: var(--text); background: var(--page); }

/* Header */
.top { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 20px; font-weight: 700; }
.brand img { border-radius: 9px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 15px; }
.nav a:not(.btn) { color: var(--text-second); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--blue-dark); }

/* Hero */
.hero { background: var(--blue-bg-light); }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 72px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: 52px; line-height: 1.08; font-weight: 700; }
.hero .lead { font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-pic { flex: 1 1 460px; min-width: 0; }
.tablet { background: var(--navy); border-radius: 28px; padding: 14px; box-shadow: 0 30px 60px rgba(30, 58, 95, 0.18); }
.screen { background: var(--navy); border-radius: 16px; overflow: hidden; display: flex; min-height: 340px; }
.tiles { background: var(--page); flex: 1 1 auto; padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; }
.tile { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; min-height: 70px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.tile b { font-size: 13px; font-weight: 600; }
.tile span { font-size: 12px; color: var(--muted); }
.tile-on { background: var(--blue-bg); border-color: #C9D8FB; }
.tile-on b, .tile-on span { color: var(--blue-dark); }
.cart { width: 170px; background: var(--navy); color: var(--page); padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.cart .line { display: flex; justify-content: space-between; font-size: 12px; }
.cart .total { font-size: 14px; font-weight: 700; border-top: 1px solid var(--navy-line); padding-top: 10px; }
.cart .grow { flex: 1 1 auto; }
.cart .pay { background: var(--blue); border-radius: 8px; padding: 10px; text-align: center; font-weight: 600; }

/* Bands */
.band { padding: 72px 0; }
.band.tight { padding-top: 0; }
.grey { background: var(--page); }
.dark { background: var(--navy); color: var(--page); }
.dark h2, .dark h3 { color: #fff; }
.dark .lead { color: var(--grey-mid); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.card { border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card p, .features p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px 32px; margin-top: 32px; }
.features > div { display: flex; flex-direction: column; gap: 8px; }
.features h3 { font-size: 17px; }
.features svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Prices */
.prices-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.switch { display: flex; background: var(--grey-alt); border-radius: 12px; padding: 4px; gap: 4px; }
.switch button { border: 0; border-radius: 9px; padding: 10px 18px; min-height: 44px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: transparent; color: var(--muted); }
.switch button.on { background: #fff; color: var(--text); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.plan h3 { font-size: 20px; font-weight: 700; }
.plan .about { font-size: 14px; color: var(--muted); min-height: 42px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price b { font-size: 30px; font-weight: 700; color: var(--navy); }
.price span { font-size: 14px; color: var(--faint); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.plan li { display: flex; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--text-second); }
.plan li svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Download */
.two { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.two > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.dl { background: var(--navy-raised); border: 1px solid var(--navy-edge); border-radius: 16px; padding: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.dl div { display: flex; flex-direction: column; gap: 4px; }
.dl b { font-size: 17px; color: #fff; }
.dl span { font-size: 14px; color: var(--grey-mid); }
.notes summary { cursor: pointer; color: var(--blue-soft); font-size: 15px; }
.notes ul { margin: 12px 0 0; padding-left: 20px; color: #E5E7EB; font-size: 15px; line-height: 1.6; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: #E5E7EB; }
.steps li span { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }

/* Contact */
.contact { gap: 12px !important; }
.contact-row { border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; text-decoration: none; color: var(--text); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.contact-row:hover { border-color: var(--blue); color: var(--text); }
.contact-row span { color: var(--muted); }

.foot { border-top: 1px solid var(--border); }
.foot-row { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--faint); }

/* Phones */
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .hero-row { padding-top: 36px; padding-bottom: 36px; gap: 32px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 16px; }
  .actions .btn { flex: 1 1 100%; }
  h2 { font-size: 26px; }
  .band { padding: 40px 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart { width: 130px; }
  .dl .btn { flex: 1 1 100%; }
  .switch { width: 100%; }
  .switch button { flex: 1 1 0; }
}
