/* ShiftFlow marketing site. One stylesheet, no build step. */

:root {
  --navy-950: #070f2b;
  --navy-900: #0c1a45;
  --navy-800: #13265f;
  --navy: #1f3a93;
  --blue: #2e75b6;
  --blue-600: #1f5f99;
  --sky: #38bdf8;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f1f5f9;
  --paper: #f8fafc;
  --white: #ffffff;
  --pink: #db2777;
  --green: #16a34a;
  --amber: #f59e0b;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-lg: 0 30px 60px -20px rgba(7, 15, 43, .35), 0 12px 24px -12px rgba(7, 15, 43, .25);
  --max: 1200px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
main { overflow-x: clip; }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--soft { background: var(--paper); border-block: 1px solid var(--line); }
.section--dark { background: radial-gradient(1200px 600px at 80% 0%, #1b3a8a 0%, transparent 60%), var(--navy-950); color: #cbd5e1; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--sky); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.section--dark .lead { color: #94a3b8; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { margin-bottom: 56px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; font-size: 1rem; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px -8px rgba(46, 117, 182, .8); }
.btn--primary:hover { background: #2a6aa6; }
.btn--ghost { background: rgba(255, 255, 255, .08); color: var(--white); border-color: rgba(255, 255, 255, .2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--outline { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn svg { width: 18px; height: 18px; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(7, 15, 43, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(255, 255, 255, .08); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; text-decoration: none !important; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.brand small { display: block; font-weight: 500; font-size: .7rem; color: #94a3b8; letter-spacing: .02em; margin-top: -2px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav__links a { color: #cbd5e1; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav__links a:hover { color: var(--white); background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav__cta { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--white); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
.nav__toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #cbd5e1;
  padding: 140px 0 0;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(46, 117, 182, .35), transparent 60%),
    radial-gradient(800px 500px at 90% 30%, rgba(99, 102, 241, .25), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 70%, #10215a 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.hero__copy { position: relative; z-index: 1; text-align: center; max-width: 880px; margin-inline: auto; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.hero h1 .grad { background: linear-gradient(90deg, #7dd3fc, #a5b4fc 55%, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #94a3b8; max-width: 680px; margin: 0 auto 32px; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  padding: 6px 14px 6px 6px; border-radius: 999px; font-size: .85rem; font-weight: 500;
  color: #cbd5e1; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.pill b { background: var(--blue); color: var(--white); font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: .75rem; letter-spacing: .04em; }

.hero__stage { position: relative; z-index: 1; margin: 64px auto 0; max-width: 1120px; padding-bottom: 0; }

/* Device frames */
.browser { border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, .08); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #eef2f7; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.browser__bar i:nth-child(1) { background: #f87171; }
.browser__bar i:nth-child(2) { background: #fbbf24; }
.browser__bar i:nth-child(3) { background: #34d399; }
.browser__url { margin-left: 14px; flex: 1; max-width: 340px; height: 22px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); font-size: .72rem; color: var(--muted); display: flex; align-items: center; padding: 0 10px; }
.browser img { width: 100%; height: auto; }

.tablet { border-radius: 26px; padding: 12px; background: #0b1023; box-shadow: var(--shadow-lg), inset 0 0 0 2px #1e293b; }
.tablet img { border-radius: 14px; width: 100%; }

.phone {
  position: relative; border-radius: 42px; padding: 10px; background: #0b1023;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #1e293b, inset 0 0 0 4px #0b1023;
}
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 84px; height: 22px; background: #0b1023; border-radius: 14px; z-index: 3; }
.phone__screen { border-radius: 33px; overflow: hidden; background: #f8fafc; aspect-ratio: 9 / 19.5; position: relative; }

/* Employee app mockups: simplified, in the same style as the other illustrations.
   Drawn at a fixed 250px design width, then scaled to the frame by site.js. */
.app { position: absolute; top: 0; left: 0; width: 250px; height: 541.7px; transform-origin: 0 0; transform: scale(var(--s, 1)); display: flex; flex-direction: column; font-size: 11px; line-height: 1.35; color: #0f172a; background: #f4f7fb; text-align: left; }
.app__status { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 4px; font-size: 10.5px; font-weight: 600; height: 38px; }
.app__body { padding: 10px 12px 16px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; flex: 1; }
.ma-hi { display: flex; align-items: center; gap: 8px; }
.ma-hi .av { width: 30px; height: 30px; font-size: 10px; }
.ma-hi b { display: block; font-size: 13px; }
.ma-hi div span { color: #64748b; font-size: 9.5px; }
.ma-title { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.ma-sub { color: #64748b; font-size: 9.5px; }
.ma-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 11px; }
.ma-rings { display: flex; align-items: center; gap: 10px; }
.ma-rings svg { width: 74px; height: 74px; flex: none; }
.ma-legend { display: grid; gap: 7px; flex: 1; }
.ma-legend div { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: #64748b; }
.ma-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.ma-legend b { margin-left: auto; color: #0f172a; font-size: 10px; }
.ma-row { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e2e8f0; border-left: 3px solid var(--c, #e2e8f0); border-radius: 10px; padding: 8px 9px; }
.ma-row small { display: block; color: #64748b; font-size: 8.5px; }
.ma-row b { font-size: 11px; }
.ma-row .tag { margin-left: auto; font-size: 8px; padding: 2px 7px; }
.ma-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ma-tile { background: color-mix(in srgb, var(--c) 13%, white); border-radius: 10px; padding: 10px 9px; display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 10px; }
.ma-tile svg { width: 15px; height: 15px; color: var(--c); }
.ma-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ma-day { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; text-align: center; padding: 5px 0; font-size: 8.5px; color: #64748b; font-weight: 600; }
.ma-day b { display: block; font-size: 11px; color: #0f172a; }
.ma-day i { display: block; width: 5px; height: 5px; border-radius: 50%; margin: 3px auto 0; }
.ma-day--on i { background: #0ea5e9; }
.ma-day--today { background: #1f5f99; border-color: #1f5f99; color: #cbd5e1; }
.ma-day--today b { color: #fff; }
.ma-day--today i { background: #fff; }
.ma-btn { background: #1f5f99; color: #fff; text-align: center; font-weight: 700; padding: 10px; border-radius: 10px; font-size: 11px; margin-top: auto; }
.ma-big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.ma-bar { height: 7px; border-radius: 4px; background: #dcfce7; margin: 10px 0 6px; overflow: hidden; }
.ma-bar i { display: block; height: 100%; width: 29%; background: #16a34a; border-radius: 4px; }
.ma-split { display: flex; justify-content: space-between; color: #64748b; font-size: 9px; }
/* Trust strip */
.strip { background: var(--navy-950); border-top: 1px solid rgba(255, 255, 255, .06); padding: 80px 0 34px; }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.strip li { display: flex; gap: 12px; align-items: flex-start; color: #94a3b8; font-size: .92rem; line-height: 1.45; }
.strip li b { display: block; color: var(--white); font-size: 1rem; }
.strip svg { width: 22px; height: 22px; flex: none; color: var(--sky); margin-top: 2px; }

/* Apps trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .25); }
.app-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); border-bottom: 1px solid var(--line); position: relative; }
.app-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.app-card__media--dark { background: linear-gradient(160deg, #13265f, #070f2b); display: grid; place-items: end center; }
.app-card__media--dark .phone { width: 46%; margin-bottom: -38%; }
.app-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.app-card__kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.app-card ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .95rem; }
.app-card li { display: flex; gap: 10px; }
.app-card li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: #dbeafe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231f5f99'%3E%3Cpath d='M8.1 13.3 4.8 10l-1.1 1.1 4.4 4.4 9-9-1.1-1.1z'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 10vw, 128px); }
.feature--flip .feature__copy { order: 2; }
.feature__copy h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.025em; }
.feature__copy > p { color: var(--muted); font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.checks .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #e0ecf8; color: var(--blue-600); }
.checks .ico svg { width: 18px; height: 18px; }
.checks b { color: var(--ink); display: block; font-size: 1rem; }
.checks span { color: var(--muted); font-size: .95rem; }
.feature__media { position: relative; isolation: isolate; }
.feature__media::before {
  content: ''; position: absolute; inset: -28px -28px -28px 28px; z-index: -1; border-radius: 28px;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
}
.feature--flip .feature__media::before { inset: -28px 28px -28px -28px; background: linear-gradient(135deg, #fce7f3, #e0f2fe); }

/* Kiosk */
.kiosk { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--white); background: linear-gradient(135deg, var(--blue), #6366f1); }
.steps b { color: var(--white); display: block; }
.steps span { color: #94a3b8; font-size: .95rem; }

/* Mobile app */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 270px)); justify-content: center; gap: clamp(20px, 4vw, 48px); align-items: end; margin-top: 8px; }
.phones figure:nth-child(2) .phone { transform: translateY(-28px); }
.phones figure { margin: 0; }
.phones figcaption { text-align: center; margin-top: 18px; font-size: .92rem; color: var(--muted); }
.phones figcaption b { color: var(--ink); display: block; }
.app-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.mini { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.mini svg { width: 22px; height: 22px; color: var(--blue); margin-bottom: 8px; }
.mini b { display: block; color: var(--ink); }
.mini span { color: var(--muted); font-size: .92rem; }

/* Platform grid */
.grid4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { border-radius: 16px; padding: 24px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.tile svg { width: 26px; height: 26px; color: var(--sky); margin-bottom: 14px; }
.tile h3 { font-size: 1.08rem; margin-bottom: 6px; }
.tile p { margin: 0; font-size: .95rem; color: #94a3b8; }

/* Compliance chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.pos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pos div { height: 72px; border-radius: 14px; border: 1px dashed #cbd5e1; display: grid; place-items: center; font-weight: 700; color: var(--muted); background: var(--white); }

/* CTA */
.cta {
  border-radius: 28px; padding: clamp(40px, 6vw, 72px); color: #cbd5e1; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 90% 10%, rgba(99, 102, 241, .45), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(56, 189, 248, .3), transparent 60%), var(--navy-900);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.cta h2 { color: var(--white); }
.cta .lead { color: #94a3b8; }
.cta__box { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 26px; }
.cta__box p { margin: 0 0 14px; font-size: .95rem; }
.cta__box .btn { width: 100%; }
.cta__mail { display: block; text-align: center; margin-top: 12px; color: #93c5fd; font-weight: 600; }

/* About btree */
.btree { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.btree__logo { font-weight: 200; font-size: clamp(2.6rem, 6vw, 4rem); color: var(--ink); letter-spacing: .04em; line-height: 1; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin-top: 18px; padding: 0; list-style: none; }
.services li { padding-left: 16px; border-left: 2px solid #c7d2fe; font-size: .95rem; }
.services b { display: block; color: var(--ink); }

/* Footer */
.footer { background: var(--navy-950); color: #94a3b8; padding: 48px 0; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer a { color: #cbd5e1; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Full feature list */
.flist { columns: 3 320px; column-gap: 20px; }
.fcat { break-inside: avoid; margin: 0 0 20px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; }
.fcat h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; margin-bottom: 12px; }
.fcat__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #e0ecf8; color: var(--blue-600); flex: none; }
.fcat__ico svg { width: 18px; height: 18px; }
.fcat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.fcat li { position: relative; padding-left: 20px; font-size: .94rem; line-height: 1.45; }
.fcat li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); opacity: .7; }

/* Views list */
.views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vgroup { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.vgroup h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 14px; }
.vgroup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vgroup li { padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid #edf2f7; }
.vgroup li b { display: block; color: var(--ink); font-size: .98rem; }
.vgroup li span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.density { display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; padding: 4px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; }
.density__label { color: var(--muted); padding: 0 8px; font-weight: 500; }
.density__opt { padding: 6px 12px; border-radius: 8px; color: var(--muted); }
.density__opt--on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Stylised product fragments (drawn in HTML, not screenshots) */
.frag { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px 18px; font-size: 13px; line-height: 1.35; color: var(--ink); text-align: left; }
.frag .muted { color: var(--muted); }
.av { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: 10px; display: inline-grid; place-items: center; flex: none; letter-spacing: .02em; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; justify-self: start; }
.tag--green { background: #dcfce7; color: #15803d; }
.tag--amber { background: #fef3c7; color: #b45309; }
.tag--red { background: #fee2e2; color: #b91c1c; }
.tag--orange { background: #ffedd5; color: #c2410c; }
.tag--violet { background: #ede9fe; color: #6d28d9; }
.tag--blue { background: #e0f2fe; color: #0369a1; }
.frag__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.frag__head b { font-size: 15px; }
.frag__head > :last-child { margin-left: auto; }
.btn-mini { background: var(--blue); color: #fff; font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 8px; }
.fr-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fr-row { display: grid; grid-template-columns: 26px 128px 1fr; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid #f1f5f9; }
.fr-row--days { border-top: 0; padding: 0 0 4px; }
.fr-row--days .fr-cells span { font-size: 11px; color: var(--muted); font-weight: 600; text-align: center; }
.fr-cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pill { background: color-mix(in srgb, var(--c) 20%, white); border-left: 3px solid var(--c); border-radius: 5px; font-size: 11px; font-weight: 700; padding: 5px 3px; text-align: center; color: #334155; }
.frag__foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.frag__foot b { color: var(--ink); }
.frag__foot .tag { margin-left: auto; }

.frag--mini { box-shadow: 0 12px 30px -16px rgba(15, 23, 42, .35); width: 100%; padding: 12px; }
.frag--mini.frag-rota .fr-row { grid-template-columns: 20px 74px 1fr; gap: 6px; padding: 3px 0; }
.frag--mini .av { width: 20px; height: 20px; font-size: 8px; }
.frag--mini .fr-name { font-size: 11px; }
.frag--mini .pill { font-size: 0; padding: 0; height: 12px; }
.frag--mini .fr-row--days .fr-cells span { font-size: 9px; }
.frag--mini .frag__foot, .frag--mini .frag__head .tag { display: none; }
.frag--mini .frag__head { margin-bottom: 6px; }
.frag--mini .frag__head b { font-size: 12px; }
.app-card__media--frag { display: flex; align-items: flex-start; justify-content: center; padding: 16px; background: linear-gradient(160deg, #eaf2fb, #f8fafc); }
.app-card__media--frag.app-card__media--dark { background: linear-gradient(160deg, #13265f, #070f2b); }

.frag-kiosk { background: #0f1f4d; border-color: #1e2d5f; color: #e2e8f0; }
.fk-head { display: flex; justify-content: space-between; align-items: center; }
.fk-head small { display: block; color: #94a3b8; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.fk-head b { color: #fff; font-size: 15px; }
.fk-clock { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.fk-search { margin: 12px 0; background: #1e2d5f; border-radius: 10px; padding: 9px 12px; color: #94a3b8; font-size: 12px; }
.fk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kt { background: #1b2a5c; border: 1px solid #273a74; border-radius: 12px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.kt .av { width: 34px; height: 34px; font-size: 12px; }
.kt__n { font-weight: 700; color: #fff; font-size: 12px; }
.kt__s { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #334155; color: #cbd5e1; white-space: nowrap; }
.kt__s--green { background: #14532d; color: #86efac; }
.kt__s--blue { background: #0c4a6e; color: #7dd3fc; }
.kt__s--amber { background: #78350f; color: #fcd34d; }
.kt__s--red { background: #7f1d1d; color: #fca5a5; }
.frag--mini.frag-kiosk { padding: 12px; }
.frag--mini .fk-clock { font-size: 18px; }
.frag--mini .fk-search { margin: 8px 0; padding: 6px 10px; font-size: 10px; }
.frag--mini .fk-grid { gap: 6px; }
.frag--mini .kt { padding: 6px 4px; gap: 4px; border-radius: 9px; }
.frag--mini .kt .av { width: 24px; height: 24px; font-size: 9px; }
.frag--mini .kt__n { font-size: 10px; }
.frag--mini .kt__s { font-size: 8px; padding: 1px 6px; }
.frag--large { padding: 22px; border-radius: 22px; }
.frag--large .fk-grid { gap: 10px; }

.ft-row { display: grid; grid-template-columns: 26px 1.3fr 1.1fr .7fr 92px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #f1f5f9; }
.ft-row--head { border-top: 0; padding-top: 0; }
.ft-row--head span { font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.frag-org { padding: 22px 18px; }
.on { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.on > div { min-width: 0; }
.on b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.on > div span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.on--top { background: var(--navy-900); border-color: var(--navy-900); }
.on--top b { color: #fff; }
.on--top > div span { color: #94a3b8; }
.fo-top { display: flex; justify-content: center; position: relative; padding-bottom: 18px; }
.fo-top::after { content: ''; position: absolute; bottom: 0; left: 50%; height: 18px; border-left: 2px solid #cbd5e1; }
.fo-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; padding-top: 18px; }
.fo-cols::before { content: ''; position: absolute; top: 0; left: 16.66%; right: 16.66%; border-top: 2px solid #cbd5e1; }
.fo-col { position: relative; min-width: 0; }
.fo-col::before { content: ''; position: absolute; top: -18px; left: 50%; height: 18px; border-left: 2px solid #cbd5e1; }
.fo-kids { margin: 8px 0 0 12px; padding-left: 10px; border-left: 2px solid #e2e8f0; display: grid; gap: 8px; }

.fc-row { display: grid; grid-template-columns: 32px 1fr auto 74px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #f1f5f9; }
.tog { width: 30px; height: 18px; border-radius: 999px; background: var(--blue); position: relative; }
.tog::after { content: ''; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }

/* Hero composition */
.hero__stage--frags { position: relative; z-index: 1; max-width: 1060px; margin: 64px auto 0; padding: 0 0 110px; }
.hero__rota { position: relative; z-index: 1; max-width: 780px; margin: 0 0 0 30px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.toast b { display: block; font-size: 13px; }
.toast span:not(.av) { font-size: 12px; color: var(--muted); }
.toast .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; margin-left: auto; box-shadow: 0 0 0 4px #dcfce7; flex: none; }
.hero__toast { position: absolute; z-index: 2; right: -10px; top: 36px; width: 250px; }
.hero__check { position: absolute; z-index: 2; left: -20px; bottom: 0; width: 240px; padding: 14px 16px; }
.hc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hc-head svg { width: 18px; height: 18px; color: #16a34a; }
.hc-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 3px 0; color: var(--text); }
.ok { width: 16px; height: 16px; border-radius: 50%; flex: none; background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23fff'%3E%3Cpath d='M8.1 13.3 4.8 10l-1.1 1.1 4.4 4.4 9-9-1.1-1.1z'/%3E%3C/svg%3E") center / 11px no-repeat; }
.hero__stage--frags .hero__phone { position: absolute; z-index: 3; right: -6px; bottom: 0; width: 230px; }

@media (max-width: 1080px) {
  .hero__stage--frags .hero__phone { width: 190px; right: 0; }
  .hero__rota { margin: 0; max-width: calc(100% - 170px); }
  .hero__toast { display: none; }
  .views { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__toast, .hero__check { display: none; }
  .views { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero__stage--frags { margin-top: 40px; padding-bottom: 48px; }
  .hero__rota { margin: 0; max-width: none; }
  .frag { padding: 12px; }
  .fr-row { grid-template-columns: 22px 1fr; }
  .frag-rota:not(.frag--mini) .fr-name { display: none; }
  .frag-rota:not(.frag--mini) .fr-row--days > span:first-child + span { display: none; }
  .frag-rota .pill { font-size: 0; padding: 0; height: 14px; }
  .frag__foot .tag { margin-left: 0; }
  .fk-grid { grid-template-columns: repeat(2, 1fr); }
  .frag--large .kt:nth-child(n+5) { display: none; }
  .ft-row { grid-template-columns: 22px 1fr auto 84px; }
  .ft-row > :nth-child(3) { display: none; }
  .fc-row { grid-template-columns: 32px 1fr 70px; }
  .fc-row > :nth-child(3) { display: none; }
  .fo-cols { grid-template-columns: 1fr; }
  .fo-cols::before, .fo-col::before { display: none; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .app-card { transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .trio { grid-template-columns: 1fr 1fr; }
  .trio .app-card:last-child { grid-column: 1 / -1; }
  .app-feats { grid-template-columns: 1fr 1fr; }
  .strip ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-grid; place-items: center; }
  .nav.is-open { background: var(--navy-950); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--navy-950); padding: 8px 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .nav.is-open .nav__links a { display: block; padding: 12px; font-size: 1.05rem; }
  .feature, .feature--flip, .kiosk, .cta, .btree, .roadmap { grid-template-columns: 1fr; }
  .feature--flip .feature__copy { order: 0; }
  .feature__media::before { inset: -14px; }
  .feature--flip .feature__media::before { inset: -14px; }
  .gallery, .grid4 { grid-template-columns: 1fr 1fr; }
  .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .phones .phone { border-radius: 30px; padding: 7px; }
  .phones .phone__screen { border-radius: 24px; }
  .phones .phone::before { width: 50px; height: 14px; top: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 112px; }
  .hero__stage { margin-top: 44px; }
  .hero__phone { display: none; }
  .browser__bar { height: 26px; }
  .browser__url { display: none; }
  .strip { padding-top: 56px; }
  .strip ul, .trio, .gallery, .grid4, .app-feats, .services { grid-template-columns: 1fr; }
  .trio .app-card:last-child { grid-column: auto; }
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 16px 12px; margin-inline: -16px; justify-content: flex-start; }
  .phones figure { flex: 0 0 72%; scroll-snap-align: center; }
  .phones .phone:nth-child(2), .phones figure:nth-child(2) .phone { transform: none; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1; padding: 9px 8px; }
  .pos { grid-template-columns: 1fr 1fr; }
}
