/* Koshanvaya marketing site. Plain-spoken and rounded, in the application's own colours: a cool slate scale, the indigo accent,
   and the same status hues (green, amber, orange, red). The values are the tokens in frontend/src/styles.css. No framework. */

:root {
  --cream: #f5f6f8;
  --cream-2: #f1f3f6;
  --paper: #ffffff;
  --ink: #0f172a;
  --night: #111433; /* the application's dark brand panel */
  --ink-2: #475569;
  --ink-3: #5b6b82; /* the app's muted ink, one step darker so small text passes AA on the page colour */
  --line: #d5d9e1;
  --line-2: #e6e8ee;

  --indigo: #4f46e5;
  --indigo-d: #4338ca;
  --indigo-l: #e6e5fb;
  --indigo-ll: #f1f0fd;
  --marigold: #fab219;
  --marigold-l: #fdf1d2;
  --coral: #ec835a;
  --coral-l: #fdece4;
  --teal: #0ca30c;
  --teal-d: #166534;
  --teal-l: #e1f4e1;
  --rose-l: #fae8e8;

  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --shadow-s: 0 1px 2px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-m: 0 2px 4px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.09);
  --shadow-l: 0 4px 8px rgba(15, 23, 42, 0.06), 0 28px 64px rgba(15, 23, 42, 0.16);

  --font-display: 'Bricolage Grotesque', 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--indigo-d);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--indigo);
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 2 * clamp(18px, 4vw, 36px), var(--wrap));
  margin-inline: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.28rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 60ch;
}

.muted {
  color: var(--ink-2);
}

.small {
  font-size: 0.9rem;
  color: var(--ink-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--indigo-d);
  margin-bottom: 20px;
  box-shadow: var(--shadow-s);
}

.eyebrow .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--marigold);
  box-shadow: 0 0 0 4px var(--marigold-l);
}

/* A marker stroke under a few words, drawn with a gradient so it needs no image. */
.mark {
  background: linear-gradient(transparent 62%, var(--marigold) 62%, var(--marigold) 92%, transparent 92%);
  padding: 0 0.06em;
  border-radius: 3px;
}

.mark-indigo {
  background: linear-gradient(transparent 62%, #cdcbf8 62%, #cdcbf8 92%, transparent 92%);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  background: var(--indigo-d);
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.42);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--indigo);
  color: var(--indigo-d);
}

.btn-sun {
  background: var(--marigold);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(250, 178, 25, 0.4);
}

.btn-sun:hover {
  color: var(--ink);
  background: #fcc233;
}

.btn-small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.95rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}

.link-arrow .icon {
  transition: transform 0.15s ease;
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

/* ---- announcement and header ---- */

.announce {
  background: var(--night);
  color: #fff;
  font-size: 0.93rem;
}

.announce .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-block: 10px;
  text-align: center;
  flex-wrap: wrap;
}

.announce a {
  color: var(--marigold);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.announce a:hover {
  color: #fcd34d;
}

.announce .badge {
  background: var(--marigold);
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 248, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  margin-right: 18px;
}

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

/* The application's mark: three blocks and a plus on the accent tile. */
.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  padding: 6px;
  border-radius: 11px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  box-shadow: 0 1px 2px rgba(67, 56, 202, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  background: none;
  border-radius: 999px;
  color: var(--ink);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-link[aria-expanded='true'],
.nav-link[aria-current='page'] {
  background: var(--paper);
  color: var(--indigo-d);
  box-shadow: var(--shadow-s);
}

.nav-link .icon {
  width: 1em;
  height: 1em;
  transition: transform 0.2s ease;
}

.nav-link[aria-expanded='true'] .icon {
  transform: rotate(180deg);
}

.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
}

.nav-phone:hover {
  color: var(--indigo-d);
}

.menu-button {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-button .icon {
  width: 24px;
  height: 24px;
}

/* the Apps menu */

.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: -120px;
  width: min(880px, 92vw);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-l);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.mega.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 12px 0 4px 10px;
}

.mega a.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.97rem;
}

.mega a.item:hover {
  background: var(--indigo-ll);
  color: var(--indigo-d);
}

.mega .chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
}

.mega .chip-icon .icon {
  width: 19px;
  height: 19px;
}

.mega-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: 16px;
  font-size: 0.95rem;
}

/* tints for icon chips, used all over */
.t-indigo {
  background: var(--indigo-l);
  color: var(--indigo-d);
}
.t-sun {
  background: var(--marigold-l);
  color: #854d0e;
}
.t-coral {
  background: var(--coral-l);
  color: #9a3412;
}
.t-teal {
  background: var(--teal-l);
  color: var(--teal-d);
}
.t-rose {
  background: var(--rose-l);
  color: #991b1b;
}
.t-ink {
  background: #e9ecf1;
  color: var(--ink);
}

/* ---- sections ---- */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-tight {
  padding-block: clamp(40px, 6vw, 72px);
}

.section-white {
  background: var(--paper);
  border-block: 1px solid var(--line-2);
}

.section-dark {
  background: var(--night);
  color: #e8eaff;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark .lead,
.section-dark p {
  color: #c9ceea;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .lead {
  margin-inline: auto;
}

.kicker {
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 14px;
}

.section-dark .kicker {
  color: var(--marigold);
}

/* ---- hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.hero::before {
  width: 640px;
  height: 640px;
  right: -180px;
  top: -140px;
  background: radial-gradient(circle at 40% 40%, #d9d8fb 0%, rgba(217, 216, 251, 0) 68%);
}

.hero::after {
  width: 520px;
  height: 520px;
  left: -200px;
  bottom: -160px;
  background: radial-gradient(circle at 60% 40%, #fdebc2 0%, rgba(253, 235, 194, 0) 68%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 0.4em;
}

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

.hero-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  font-weight: 500;
}

.tick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-l);
  color: var(--teal-d);
  display: grid;
  place-items: center;
  flex: none;
}

.tick .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

/* page hero for inner pages */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 72px);
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 560px;
  height: 560px;
  right: -160px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #d9d8fb 0%, rgba(217, 216, 251, 0) 68%);
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  max-width: 18ch;
}

.page-hero .lead {
  max-width: 62ch;
}

/* ---- product mock windows ---- */

.mock {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: #f1f3f6;
  border-bottom: 1px solid var(--line);
}

.mock-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d5d9e1;
}

.mock-bar i:nth-child(1) {
  background: #ec835a;
}
.mock-bar i:nth-child(2) {
  background: #fab219;
}
.mock-bar i:nth-child(3) {
  background: #34b834;
}

.mock-bar span {
  margin-left: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-3);
}

.mock-body {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tile {
  background: var(--cream);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 14px 16px;
}

.tile .label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-3);
}

.tile .value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.tile .value.good {
  color: var(--teal-d);
}

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

.mock-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  font-size: 0.92rem;
}

.mock-list .grow {
  flex: 1;
  min-width: 0;
}

.mock-list strong {
  display: block;
  font-weight: 700;
}

.mock-list small {
  color: var(--ink-3);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill.good {
  background: var(--teal-l);
  color: var(--teal-d);
}
.pill.warn {
  background: var(--marigold-l);
  color: #854d0e;
}
.pill.bad {
  background: var(--coral-l);
  color: #9a3412;
}
.pill.info {
  background: var(--indigo-l);
  color: var(--indigo-d);
}
.pill.new {
  background: var(--marigold);
  color: var(--ink);
}

.float-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-m);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: bob 6s ease-in-out infinite;
}

.float-card .chip-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.float-card small {
  display: block;
  font-weight: 500;
  color: var(--ink-3);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.hero-art {
  position: relative;
  padding: 44px 0 40px;
}

.hero-art .float-a {
  left: -30px;
  bottom: 0;
  animation-delay: -2s;
}

.hero-art .float-b {
  right: -10px;
  top: 0;
  animation-delay: -4s;
}

/* ---- cards and grids ---- */

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: var(--shadow-s);
}

.card.lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card.lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
  border-color: #b8bfcc;
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p:last-child {
  margin-bottom: 0;
}

.chip-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.chip-icon .icon {
  width: 26px;
  height: 26px;
}

.pain {
  position: relative;
  overflow: hidden;
}

.pain::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--coral-l);
  opacity: 0.6;
}

.stat {
  background: var(--night);
  color: #fff;
  border-radius: var(--r-m);
  padding: 28px;
}

.stat .big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--marigold);
  margin-bottom: 12px;
}

.stat p {
  color: #c9ceea;
  margin: 0;
  font-size: 0.97rem;
}

/* ---- tabs: the five rooms ---- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px 0 14px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 700 1.02rem/1 var(--font-body);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab .chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  margin: 0;
}

.tab .chip-icon .icon {
  width: 18px;
  height: 18px;
}

.tab:hover {
  border-color: var(--indigo);
}

.tab[aria-selected='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-m);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  animation: rise 0.35s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checks .tick {
  margin-top: 2px;
}

/* ---- post once diagram ---- */

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1.1fr auto 1fr;
  gap: clamp(10px, 2vw, 24px);
  align-items: stretch;
}

.flow-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 22px;
  box-shadow: var(--shadow-s);
}

.flow-col h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.flow-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.flow-col li {
  background: var(--cream);
  border-radius: 12px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

.flow-col.core {
  background: var(--night);
  border-color: var(--ink);
  color: #fff;
}

.flow-col.core li {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.flow-col.core p {
  color: #c9ceea;
  font-size: 0.93rem;
  margin: 14px 0 0;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--indigo);
}

.section-dark .flow-arrow {
  color: var(--marigold);
}

.flow-arrow .icon {
  width: 34px;
  height: 34px;
  stroke-width: 2.2;
}

/* ---- the challan clock ---- */

.clock-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-l);
  padding: clamp(22px, 3vw, 34px);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label,
.field .label {
  font-weight: 700;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: 500 1rem/1.4 var(--font-body);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--indigo-l);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.choice input:checked + span {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}

.choice input:focus-visible + span {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
}

.result {
  margin-top: 8px;
  padding: 22px;
  border-radius: 20px;
  background: var(--teal-l);
  border: 2px solid #c9ebc9;
}

.result.warn {
  background: var(--marigold-l);
  border-color: #f5dfad;
}

.result.bad {
  background: var(--coral-l);
  border-color: #f8d4c5;
}

.result .when {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.meter {
  height: 12px;
  background: rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0 10px;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
  transition: width 0.4s ease;
}

.result.warn .meter i {
  background: var(--marigold);
}
.result.bad .meter i {
  background: var(--coral);
}

/* ---- big numbers and bars ---- */

.profit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.profit .tile {
  background: var(--paper);
  padding: 20px 22px;
}

.profit .tile .value {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.cost-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cost-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.93rem;
}

.cost-chips i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

/* ---- comparison ---- */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-s);
}

.swipe-hint {
  display: none;
  margin: 0 0 10px;
}

@media (max-width: 760px) {
  .swipe-hint {
    display: block;
  }
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.97rem;
}

table.compare th,
table.compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-2);
}

table.compare thead th {
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--cream);
}

table.compare thead th.us {
  background: var(--indigo);
  color: #fff;
}

table.compare td.us {
  background: var(--indigo-ll);
  font-weight: 700;
  color: var(--indigo-d);
}

table.compare tbody tr:last-child td {
  border-bottom: 0;
}

table.compare td.dim {
  color: var(--ink-3);
}

/* ---- steps ---- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 70px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--marigold);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(250, 178, 25, 0.35);
  transform: rotate(-4deg);
}

.steps li:nth-child(2)::before {
  background: #f5b59d;
  transform: rotate(3deg);
}
.steps li:nth-child(3)::before {
  background: #a5b4fc;
  transform: rotate(-3deg);
}
.steps li:nth-child(4)::before {
  background: #8fd98f;
  transform: rotate(4deg);
}

.steps h3 {
  font-size: 1.15rem;
}

.steps p {
  color: var(--ink-2);
  font-size: 0.97rem;
}

/* ---- faq ---- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-s);
  transition: border-color 0.15s ease;
}

.faq details[open] {
  border-color: var(--indigo);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  transition: transform 0.2s ease;
  color: var(--indigo);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq .answer {
  padding: 0 26px 22px;
  color: var(--ink-2);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ---- apps page ---- */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 700 0.97rem/1 var(--font-body);
  cursor: pointer;
}

.filter:hover {
  border-color: var(--indigo);
}

.filter[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.app-card {
  display: flex;
  flex-direction: column;
}

.app-card .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.app-card .top .chip-icon {
  margin-bottom: 16px;
}

.app-card h3 {
  font-size: 1.15rem;
}

.app-card p {
  color: var(--ink-2);
  font-size: 0.96rem;
  margin-bottom: 0;
}

.app-card[hidden] {
  display: none;
}

/* ---- roles ---- */

.desk {
  text-align: left;
}

.desk .chip-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
}

.desk h3 {
  font-size: 1.1rem;
}

.desk p {
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* ---- call to action ---- */

.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 55%, #6366f1 100%);
  color: #fff;
  border-radius: 40px;
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-l);
}

.cta::before,
.cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta::before {
  width: 380px;
  height: 380px;
  right: -90px;
  top: -140px;
  background: rgba(165, 180, 252, 0.3);
}

.cta::after {
  width: 260px;
  height: 260px;
  right: 180px;
  bottom: -150px;
  background: rgba(255, 255, 255, 0.1);
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: #fff;
  margin-bottom: 0.3em;
}

.cta p {
  color: #e0e4ff;
  font-size: 1.12rem;
  max-width: 46ch;
}

.cta .btn-row {
  justify-content: flex-end;
}

.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.contact-lines a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.contact-lines a:hover {
  text-decoration: underline;
}

/* ---- footer ---- */

.site-footer {
  background: var(--night);
  color: #c9ceea;
  padding-block: 72px 36px;
  margin-top: clamp(64px, 9vw, 112px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 36px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--marigold);
  margin-bottom: 16px;
}

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

.site-footer a {
  color: #c9ceea;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-note {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #9aa3c7;
}

/* ---- reveal on scroll ---- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---- walkthrough form ---- */

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-m);
  padding: clamp(24px, 3.4vw, 40px);
}

.notice {
  display: none;
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--teal-l);
  border: 2px solid #c9ebc9;
  color: #166534;
  font-weight: 500;
}

.notice.show {
  display: block;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---- responsive ---- */

@media (max-width: 1020px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-art .float-a {
    left: 8px;
  }
  .hero-art .float-b {
    right: 8px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tab-panel.active {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
  }
  .cta {
    grid-template-columns: 1fr;
  }
  .cta .btn-row {
    justify-content: flex-start;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
  .flow {
    grid-template-columns: 1fr;
  }
  .flow-arrow .icon {
    transform: rotate(90deg);
  }
}

@media (max-width: 880px) {
  .menu-button {
    display: inline-flex;
  }
  .nav-cta {
    display: none;
  }
  .nav-links {
    /* The header's blur makes it the anchor for this panel, so hang the panel from the header's bottom edge
       and let it fill the rest of the screen. The script scrolls the header to the top as the menu opens. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 100%);
    height: calc(100dvh - 100%);
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 22px clamp(18px, 4vw, 36px) 36px;
    overflow-y: auto;
    /* Closed, it is clipped away rather than moved off-screen, so it never widens the page. */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path 0.25s ease, visibility 0.25s;
  }
  .nav-links.open {
    clip-path: inset(0);
    visibility: visible;
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 18px;
    font-size: 1.1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .mega {
    position: static;
    width: 100%;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 8px 0 0;
    grid-template-columns: 1fr;
    background: transparent;
  }
  .mega.open {
    display: grid;
  }
  .mobile-cta {
    display: grid !important;
    gap: 12px;
    margin-top: 12px;
  }
}

.mobile-cta {
  display: none;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .tiles,
  .profit {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .hero-art .float-card {
    display: none;
  }
  .btn {
    width: 100%;
  }
  .btn-row {
    flex-direction: column;
  }
  .cta {
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .announce,
  .site-header,
  .site-footer,
  .cta {
    display: none;
  }
}
