:root {
  --bg: #e8eaed; /* Pale grey page ground */
  --paper: #f7f8fa; /* Quote, plan and stat tiles */
  --ink: #14151a; /* Primary text and ink tiles */
  --muted: #4a4e57; /* Secondary text on grey */
  --cobalt: #2347f5; /* Hero tile and primary accent */
  --tangerine: #ff7a1f; /* Second tile colour */
  --mint: #5ee2b4; /* Third tile colour */
  --on-cobalt: #ffffff; /* Text on cobalt */
  --line: #c4c8cf; /* Hairlines */
  --font-display: 'Bricolage Grotesque', 'Arial Black', Arial, sans-serif; /* Headlines and labels */
  --font-body: 'Bricolage Grotesque', Arial, sans-serif; /* Body copy */
  --font-mono: 'JetBrains Mono', ui-monospace, monospace; /* Figures inside product UI */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.skip-link { position: absolute; top: 10px; left: 16px; transform: translateY(-200%); z-index: 30; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; }
.skip-link:focus { transform: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
h1 { font-size: clamp(54px, 9.4vw, 150px); }
h2 { font-size: clamp(40px, 6vw, 88px); }
h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; letter-spacing: -0.025em; }
.wrap { width: min(100% - 32px, 1280px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.lead { font-size: clamp(19px, 1.8vw, 22px); color: var(--muted); max-width: 46ch; }
.sub-head { display: grid; gap: 18px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.main-nav { display: none; gap: 4px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.main-nav a:hover { background: #d6d9de; }
.main-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.header-cta { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: #fff; }
.menu nav { position: absolute; right: -16px; left: -16px; top: calc(100% + 12px); display: grid; gap: 4px; padding: 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); }
.menu nav a { padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 18px; }
.menu nav a[aria-current="page"] { background: var(--cobalt); color: #fff; }
.menu nav .btn { margin-top: 8px; }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 84px); }
.hero h1 { max-width: 10ch; }
.hero h1 em { font-style: normal; color: var(--cobalt); }
.hero-grid { display: grid; gap: 28px; align-items: end; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row span { padding: 6px 14px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 600; font-size: 15px; background: var(--paper); }

/* Bento: each tile is a flip card (hover, focus button or tap). Under 720px the two faces stack. */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 48px; }
.tile { perspective: 1400px; min-height: 320px; }
.tile-inner { position: relative; height: 100%; min-height: inherit; transform-style: preserve-3d; transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1); }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.face.back { transform: rotateY(180deg); justify-content: flex-start; }
.face p { max-width: 36ch; }
.face .flip-btn { margin-top: auto; align-self: flex-start; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 2px solid currentColor; background: transparent; color: inherit; font-weight: 700; }
.face .flip-btn:hover { background: rgba(127, 127, 127, 0.18); }
.face .flip-btn:focus-visible { outline-color: currentColor; }
.t-cobalt { background: var(--cobalt); color: var(--on-cobalt); }
.t-tangerine { background: var(--tangerine); color: var(--ink); }
.t-mint { background: var(--mint); color: var(--ink); }
.t-ink { background: var(--ink); color: #fff; }
.t-paper { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.tile.is-flipped .tile-inner { transform: rotateY(180deg); }

/* Mini product UI, built from HTML and CSS */
.ui { margin-top: auto; border-radius: 16px; background: #fff; color: var(--ink); padding: 14px; display: grid; gap: 10px; }
.ui-row { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); gap: 6px; align-items: center; font-size: 12px; }
.ui-row.head span { font-family: var(--font-mono); color: var(--muted); text-align: center; font-size: 12px; }
.ui-row > span:first-child { font-weight: 700; font-size: 13px; }
.chip { height: 26px; border-radius: 8px; display: block; font-size: 12px; font-weight: 700; line-height: 26px; text-align: center; color: var(--ink); background: transparent; box-shadow: inset 0 0 0 2px #d6d9de; }
.chip.c1 { background: var(--cobalt); color: #fff; box-shadow: none; }
.chip.c2 { background: var(--tangerine); box-shadow: none; }
.chip.c3 { background: var(--mint); box-shadow: none; }
.chip.c4 { background: #d6d9de; box-shadow: none; }
.bars { display: grid; gap: 9px; }
.bar-line { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.bar-line i { display: block; height: 14px; border-radius: 999px; background: #e3e6ea; overflow: hidden; }
.bar-line i::after { content: ""; display: block; height: 100%; width: var(--fill, 50%); background: var(--cobalt); border-radius: inherit; }
.bar-line.low i::after { background: var(--tangerine); }
.bar-line b { text-align: right; font-family: var(--font-mono); font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }
.w-90 { --fill: 90%; } .w-60 { --fill: 60%; } .w-35 { --fill: 35%; } .w-20 { --fill: 20%; } .w-75 { --fill: 75%; }
.invoice { display: grid; gap: 8px; }
.invoice .line { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.invoice .total { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--mint); font-size: 12px; font-weight: 700; color: var(--ink); width: max-content; }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.msg .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--ink); background: var(--tangerine); }
.msg .av.b { background: var(--mint); }
.msg .av.k { background: #d6d9de; }
.msg small { display: block; color: var(--muted); font-size: 12px; }
.stat-num { font-size: clamp(96px, 14vw, 180px); font-weight: 800; line-height: 0.85; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: var(--cobalt); }
.stat-num small { font-size: 0.26em; letter-spacing: -0.02em; color: var(--ink); margin-left: 8px; }
.tile-foot { margin-top: auto; font-family: var(--font-mono); font-size: 12px; }
.mono { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

/* Customers */
.wordmarks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; border-top: 2px solid var(--ink); }
.wordmarks span { padding: 22px 8px; border-bottom: 2px solid var(--ink); font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3vw, 34px); letter-spacing: -0.03em; }
.wordmarks span:nth-child(odd) { border-right: 2px solid var(--ink); }
.quotes { display: grid; gap: 16px; margin-top: 40px; }
.quote { margin: 0; padding: 28px; border-radius: 26px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.quote p { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.quote footer { margin-top: 18px; font-size: 15px; color: var(--muted); }
.quote footer strong { color: var(--ink); }

/* Pricing */
.billing { display: inline-flex; padding: 5px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); }
.billing button { min-height: 40px; padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; }
.billing button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.plans { display: grid; gap: 16px; margin-top: 40px; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 26px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.plan h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; line-height: 1.05; }
.plan .price { font-family: var(--font-display); font-size: clamp(60px, 7vw, 92px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 0.24em; letter-spacing: 0; font-weight: 600; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li::before { content: "+ "; font-weight: 800; color: var(--cobalt); }
.plan .btn { margin-top: auto; }
.plan .note { color: var(--muted); font-size: 15px; }
.plan.hot { background: var(--cobalt); color: #fff; box-shadow: 8px 8px 0 var(--ink); }
.plan.hot .note { color: #fff; opacity: 0.9; }
.plan.hot li::before { color: var(--mint); }
.plan.hot .btn { background: #fff; color: var(--ink); border-color: #fff; }
.badge { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--tangerine); color: var(--ink); font-weight: 800; font-size: 14px; }
.table-wrap { overflow-x: auto; margin-top: 40px; border-radius: 20px; box-shadow: inset 0 0 0 2px var(--ink); background: var(--paper); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { font-family: var(--font-display); font-size: 17px; background: #eef0f3; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; font-variant-numeric: tabular-nums; }
.compare tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { display: grid; margin-top: 36px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 22px 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 34px; line-height: 1; font-weight: 500; flex-shrink: 0; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; max-width: 62ch; color: var(--muted); }
.faq-group { font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.03em; font-weight: 800; margin-top: 56px; }

/* Changelog */
.log { display: grid; gap: 16px; margin-top: 40px; }
.entry { display: grid; gap: 12px; padding: 26px; border-radius: 26px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.entry header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.entry h2 { font-size: clamp(26px, 3vw, 38px); }
.entry ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.kind { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--mint); }
.kind.new { background: var(--cobalt); color: #fff; }
.kind.fix { background: var(--tangerine); }

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

/* Trial block and page heads */
.trial { background: var(--cobalt); color: #fff; border-radius: 34px; padding: clamp(28px, 5vw, 64px); display: grid; gap: 28px; }
.trial h2 { color: #fff; max-width: 13ch; }
.trial .lead { color: #fff; opacity: 0.94; }
.trial .btn { border-color: #fff; }
.trial-form { display: grid; gap: 10px; max-width: 460px; } .trial-form label { font-weight: 700; } .trial-form input, .trial-form select { min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 2px solid #fff; background: #fff; color: var(--ink); } .trial-form button { justify-self: start; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid #fff; background: #fff; color: var(--ink); font-weight: 700; }
.page-head { padding-top: clamp(48px, 8vw, 96px); }
.page-head h1 { font-size: clamp(54px, 8vw, 120px); max-width: 12ch; }
.legal { max-width: 68ch; display: grid; gap: 16px; padding-block: 48px 96px; }
.legal h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 16px; }
.legal p, .legal li { font-size: 17px; }
.legal ul { padding-left: 22px; }

/* Footer */
.footer { background: var(--ink); color: #fff; margin-top: 40px; }
.footer .wrap { padding-block: 64px 36px; display: grid; gap: 40px; }
.footer .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 16vw, 230px); letter-spacing: -0.07em; line-height: 0.8; color: var(--mint); overflow: hidden; }
.footer-grid { display: grid; gap: 28px; }
.footer h2 { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: #b9bec8; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 16px; }
.footer a { color: #fff; }
.footer .fine a { display: inline-flex; align-items: center; min-height: 44px; }
.footer .fine { font-size: 14px; color: #b9bec8; border-top: 1px solid #343843; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }

/* Reveal on scroll (JS adds .js to <html>; without JS everything is visible) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Breakpoints, mobile first */
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tile { grid-column: span 6; }
  .tile { min-height: 470px; }
  .b-rota, .b-band { grid-column: span 12; }
  .wordmarks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wordmarks span:nth-child(odd) { border-right: 0; }
  .wordmarks span:nth-child(3n + 1), .wordmarks span:nth-child(3n + 2) { border-right: 2px solid var(--ink); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .trial { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
  .faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
  .faq-wrap .faq { margin-top: 0; }
  .entry { grid-template-columns: 200px minmax(0, 1fr); }
  .entry header { grid-column: 1 / -1; }
  .entry h2 { grid-column: 1 / -1; }
}
@media (min-width: 860px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu { display: none; }
  /* Rota takes the left column for two rows; stock and invoice stack on the right; inbox and time-back share the last row */
  .bento > .b-rota { grid-column: span 7; grid-row: span 2; min-height: 640px; }
  .bento > .b-stock, .bento > .b-invoice { grid-column: span 5; }
  .bento > .b-inbox { grid-column: span 6; }
  .bento > .b-stat { grid-column: span 6; }
  .bento .tile { min-height: 470px; }
  .bento > .b-rota .tile-inner { min-height: 100%; }
}
@media (min-width: 720px) and (max-width: 859px) {
  .bento > .b-stock, .bento > .b-invoice, .bento > .b-inbox, .bento > .b-stat { grid-column: span 6; }
}
@media (max-width: 719px) {
  .tile { perspective: none; min-height: 0; }
  .tile-inner { transform: none !important; min-height: 0; height: auto; transform-style: flat; display: grid; }
  .face { position: relative; inset: auto; backface-visibility: visible; transform: none !important; }
  .face.front { border-radius: 26px 26px 0 0; }
  .face.back { border-radius: 0 0 26px 26px; border-top: 2px dashed currentColor; }
  .face .flip-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
