:root {
  color-scheme: light;
  --ink: #17213a;
  --muted: #485771;
  --paper: #fff;
  --mist: #f4f6fc;
  --line: #dce3f0;
  --brand: #3632a5;
  --brand-dark: #26237d;
  --radius: 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg { display: block; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 3px solid #5851ce; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.85rem, 5.1vw, 4.9rem); line-height: 1.01; letter-spacing: -.047em; }
h2 { font-size: clamp(1.85rem, 3.55vw, 3rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { font-size: clamp(1.16rem, 2vw, 1.4rem); line-height: 1.25; letter-spacing: -.027em; }
.wrap { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.skip { position: absolute; top: .6rem; left: .6rem; z-index: 2; padding: .65rem 1rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }

.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.5rem; font-weight: 760; letter-spacing: -.04em; text-decoration: none; }

.hero { background: var(--mist); }
.hero-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 6.6vw, 6.25rem); }
.hero-copy h1 { max-width: 13.5ch; }
.kicker { display: flex; align-items: center; gap: .5rem; color: var(--brand); font-size: .83rem; font-weight: 720; margin-bottom: 1.3rem; }
.kicker span { width: .55rem; height: .55rem; border-radius: 50%; background: #5f57d5; box-shadow: 0 0 0 .22rem #e3e3ff; }
.lede { font-size: clamp(1.06rem, 1.7vw, 1.25rem); color: var(--muted); max-width: 49ch; margin-top: 1.35rem; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.8rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .65rem; min-height: 3rem; padding: .66rem 1.05rem; border: 1px solid transparent; border-radius: 9px; font-size: .92rem; font-weight: 700; text-decoration: none; }
.primary { background: var(--brand); color: white; }
.primary:hover { background: var(--brand-dark); }
.secondary { background: var(--paper); color: var(--brand); border-color: var(--line); }
.secondary:hover { border-color: var(--brand); }

.dashboard-preview { min-width: 0; }
.dashboard-preview figcaption { margin: .55rem .15rem 0; color: var(--muted); font-size: .77rem; }
.dashboard-stage {
  position: relative;
  padding: clamp(.9rem, 2.5vw, 2rem) clamp(1rem, 3vw, 2.6rem) 2.35rem;
  border: 1px solid #d8ddf4;
  border-radius: 24px;
  background-color: #e8eafb;
  background-image:
    linear-gradient(#c3c9eb52 1px, transparent 1px),
    linear-gradient(90deg, #c3c9eb52 1px, transparent 1px);
  background-size: 18px 18px;
}
.preview-window {
  overflow: hidden;
  border: 1px solid #cbd2eb;
  border-radius: 13px;
  background: #f8f9fe;
  box-shadow: 0 16px 32px #252a5c26;
}
.preview-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 2rem;
  padding: .25rem .7rem;
  border-bottom: 1px solid #e0e4f2;
  background: white;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 650;
}
.preview-dots { display: flex; gap: .25rem; }
.preview-dots i { width: .37rem; height: .37rem; border-radius: 50%; background: #b6bfd9; }
.preview-dots i:first-child { background: #9598c7; }
.preview-demo { justify-self: end; color: var(--brand); font-size: .63rem; }
.preview-body { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.preview-sidebar {
  margin: 0;
  padding: .7rem .48rem;
  list-style: none;
  background: #222654;
  color: #e4e7fb;
}
.preview-sidebar li { display: flex; align-items: center; gap: .34rem; padding: .42rem .4rem; font-size: .65rem; font-weight: 620; white-space: nowrap; }
.preview-sidebar .preview-selected { border-radius: 5px; background: #41467b; color: white; }
.preview-sidebar svg, .preview-staff svg { --icon-size: .75rem; }
.preview-content { min-width: 0; padding: .8rem .9rem .85rem; }
.preview-heading { display: flex; align-items: end; justify-content: space-between; gap: .5rem; }
.preview-heading small { display: block; color: var(--muted); font-size: .66rem; font-weight: 650; }
.preview-heading strong { display: block; font-size: clamp(1rem, 1.6vw, 1.4rem); letter-spacing: -.045em; line-height: 1.16; }
.preview-heading .preview-trend { width: 3.25rem; height: 1.32rem; color: #168364; }
.preview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .33rem; margin-top: .65rem; }
.preview-stats div { padding: .36rem .43rem; border: 1px solid #e0e4f2; border-radius: 7px; background: white; }
.preview-stats span { display: block; color: var(--muted); font-size: .62rem; font-weight: 650; }
.preview-stats strong { display: block; color: var(--brand); font-size: 1.13rem; line-height: 1.25; }
.preview-label { margin: .66rem 0 .24rem; font-size: .73rem; font-weight: 750; }
.preview-queue { margin: 0; padding: 0; overflow: hidden; list-style: none; border: 1px solid #e0e4f2; border-radius: 7px; background: white; }
.preview-queue li { display: flex; justify-content: space-between; align-items: center; gap: .35rem; padding: .34rem .44rem; font-size: .67rem; font-weight: 690; }
.preview-queue li + li { border-top: 1px solid #e9edf6; }
.preview-queue li span { display: flex; align-items: center; gap: .34rem; }
.preview-queue i { width: .36rem; height: .36rem; border-radius: 50%; background: #746dcb; }
.preview-queue small { padding: .07rem .35rem; border-radius: 4px; background: #eeedfc; color: #403a8b; font-size: .59rem; white-space: nowrap; }
.preview-queue li:first-child i { background: #299476; }
.preview-queue li:first-child small { background: #e5f5ed; color: #185942; }
.preview-queue li:last-child i { background: #7e8ba8; }
.preview-queue li:last-child small { background: #edf0f6; color: #495671; }
.preview-staff { display: flex; align-items: center; gap: .35rem; margin-top: .6rem; color: var(--muted); font-size: .64rem; font-weight: 700; }
.dashboard-float {
  position: absolute;
  right: .65rem;
  bottom: .75rem;
}
.dashboard-assistant {
  display: flex;
  align-items: center;
  gap: .52rem;
  padding: .36rem .55rem .36rem .36rem;
  border: 1px solid #c7e8d8;
  border-radius: 12px;
  background: #fff;
  color: #195944;
  text-decoration: none;
  box-shadow: 0 7px 20px #254f4f26;
}
.dashboard-assistant:hover { border-color: #58a589; background: #f6fffa; }
.dashboard-assistant strong, .dashboard-assistant small { display: block; line-height: 1.35; }
.dashboard-assistant strong { font-size: .76rem; }
.dashboard-assistant small { color: #376956; font-size: .66rem; white-space: nowrap; }
.assistant-icon { --icon-size: 1.25rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 7px; background: #13714f; color: white; }
.dashboard-assistant > svg { --icon-size: .86rem; margin-left: .1rem; }

.section { padding-block: clamp(3rem, 6vw, 5.3rem); }
.section-intro p, .feature-intro p { color: var(--muted); margin-top: .8rem; max-width: 45ch; }
.spotlight-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.spotlight-grid { margin-top: 1.65rem; }
.spotlight { padding: clamp(1.35rem, 3vw, 2.05rem); border-radius: var(--radius); border: 1px solid var(--tile-line); background: var(--tile-bg); }
.message { --tile-bg: #edf8f2; --tile-line: #d3e9dc; --tile-ink: #185942; --tile-icon: #d7eee2; }
.attendance { --tile-bg: #f0effc; --tile-line: #e0ddf6; --tile-ink: #383090; --tile-icon: #e0def9; }
.tile-icon { --icon-size: 1.35rem; display: grid; place-items: center; width: 2.65rem; height: 2.65rem; margin-bottom: .9rem; border-radius: 11px; background: var(--tile-icon, #eae8fa); color: var(--tile-ink, var(--brand)); }

.message-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .7rem;
}
.message-phone {
  display: flex;
  flex-direction: column;
  align-self: center;
  width: clamp(4.8rem, 10vw, 6.5rem);
  aspect-ratio: 7 / 10;
  padding: .34rem;
  border: 2px solid #32765f;
  border-radius: 15px;
  background: #f5fff9;
  box-shadow: 4px 7px 0 #c5e4d6;
  transform: rotate(6deg);
}
.phone-camera { width: 32%; height: .19rem; margin: .1rem auto .34rem; border-radius: 10px; background: #6c9b8b; }
.phone-chat { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: .37rem .3rem; border-radius: 6px; background: #d7eee2; color: #185942; }
.phone-chat strong, .phone-chat small { display: block; line-height: 1.2; }
.phone-chat strong { margin: .22rem 0; font-size: .62rem; }
.phone-chat small { font-size: .55rem; }
.message-phone::after { content: ''; width: 26%; height: .17rem; margin: .29rem auto .07rem; border-radius: 10px; background: #6c9b8b; }
@media (max-width: 360px) {
  .message-spotlight { gap: .5rem; }
  .message-phone { width: 4.2rem; }
}

.spotlight p { margin-block: .6rem .85rem; max-width: 49ch; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--tile-ink, var(--brand)); font-size: .9rem; font-weight: 710; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.capabilities { border-top: 1px solid var(--line); background: var(--mist); }

.subhero { padding-block: clamp(2.75rem, 6vw, 5rem); background: var(--mist); border-bottom: 1px solid var(--line); }
.subhero h1 { max-width: 19ch; font-size: clamp(2.75rem, 6.2vw, 4.55rem); }
.jump-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.jump-nav a:hover { border-color: var(--brand); }
.feature-list { display: grid; gap: .8rem; }
.feature-list article { padding: .78rem 1rem; border-inline-start: 2px solid var(--line); }
.feature-list p { color: var(--muted); margin-top: .3rem; max-width: 65ch; }
.feature-list .feature-emphasis { background: var(--tile-bg); border-color: var(--tile-ink); border-radius: 0 11px 11px 0; scroll-margin-top: 1rem; }
.closing { background: var(--mist); border-top: 1px solid var(--line); }
.closing-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.1rem; padding-block: 2rem; }
.contact-grid h2 { font-size: clamp(1.45rem, 3vw, 2rem); }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2.1rem; }
  .hero-copy h1 { max-width: 15ch; }
  .dashboard-preview { width: min(100%, 36rem); }
}
@media (max-width: 610px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner .brand { font-size: 1.24rem; gap: .42rem; }
  .header-inner .brand img { width: 30px; height: 30px; }
}
@media (max-width: 480px) {
  .dashboard-stage { padding: .66rem .66rem 2.2rem; border-radius: 16px; }
  .preview-body { grid-template-columns: minmax(0, 1fr); }
  .preview-sidebar { display: none; }
  .preview-content { padding-inline: .6rem; }
  .dashboard-float { right: .48rem; bottom: .5rem; }
}

svg[focusable="false"] {
  flex: none;
  width: var(--icon-size, 1rem);
  height: var(--icon-size, 1rem);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  min-height: 4.75rem;
}
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem clamp(.45rem, 1.5vw, 1.2rem); }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding-inline: .62rem;
  border-radius: 7px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--brand); background: #eeedfb; }

.site-footer { color: #f2f5ff; background: #18213d; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .65fr 1fr .75fr;
  gap: 2rem;
  padding-block: clamp(2rem, 5vw, 3.75rem);
}
.footer-brand p { margin-top: .7rem; max-width: 29ch; }
.footer-grid h2 {
  margin-bottom: .55rem;
  font-size: .93rem;
  letter-spacing: 0;
  line-height: 1.5;
}
.footer-links { display: grid; justify-items: start; gap: .38rem; }
.footer-links a, .footer-brand p, .footer-bottom { color: #c4cde6; font-size: .875rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: white; text-decoration: underline; }
.site-footer a:focus-visible { outline-color: #b7b8ff; }
.footer-bottom { padding-block: .8rem; border-top: 1px solid #3d4764; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin: 1.65rem 0 0;
  padding: 0;
  list-style: none;
}
.module-card {
  position: relative;
  display: block;
  height: 100%;
  padding: 1.2rem 2.35rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-decoration: none;
}
.module-card p { margin-top: .38rem; color: var(--muted); }
.module-card:hover { border-color: #a8a5de; background: #faf9ff; }
.module-arrow { position: absolute; top: 1.48rem; right: 1.15rem; color: var(--brand); }

.jump-nav a {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  color: var(--brand);
  background: var(--paper);
  padding: .47rem .72rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}
.feature-catalog { padding-bottom: 1rem; }
.feature-group {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(1.65rem, 5vw, 4rem);
  padding-block: clamp(2.25rem, 5vw, 4rem);
  scroll-margin-top: 1rem;
}
.feature-group + .feature-group { border-top: 1px solid var(--line); }
.feature-list { margin-top: 1.05rem; }
.feature-list h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .65rem; font-size: 1.06rem; }
.feature-list p { font-size: .95rem; }
.plan-tag {
  display: inline-block;
  padding: .15rem .45rem;
  border: 1px solid var(--tile-line);
  border-radius: 5px;
  color: var(--tile-ink);
  background: white;
  font-size: .71rem;
  font-weight: 720;
  letter-spacing: 0;
}
.product-shot {
  padding: clamp(.65rem, 1.8vw, 1.2rem);
  border: 1px solid #d9e0f4;
  border-radius: 16px;
  background: #edf0fc;
}
.product-shot a {
  display: block;
  overflow: hidden;
  border: 1px solid #cfd9e7;
  border-radius: 8px;
  box-shadow: 0 6px 15px #2638721c;
  cursor: zoom-in;
}
.product-shot a:hover { border-color: #8681ce; }
.product-shot img { width: 100%; height: auto; }
.product-shot figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .7rem; margin-top: .55rem; color: var(--muted); font-size: .79rem; }
.product-shot figcaption span:first-child { font-weight: 700; color: var(--ink); }

.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 4vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.full-plan { border-color: #bab7e6; background: #f3f1fd; }
.plan-card h2 { font-size: 1.16rem; letter-spacing: -.02em; }
.plan-price { margin-top: .34rem; color: var(--brand); font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 760; letter-spacing: -.05em; line-height: 1.12; }
.plan-marker { margin-inline-start: .16em; font-size: .42em; letter-spacing: 0; }
.plan-description { margin-top: .75rem; max-width: 41ch; color: var(--muted); }
.plan-list { display: grid; gap: .7rem; margin: 1.4rem 0 1.65rem; padding: 0; list-style: none; }
.plan-list li { display: flex; gap: .58rem; align-items: baseline; }
.plan-list svg { align-self: start; margin-top: .25rem; color: var(--brand); }
.plan-card .button { margin-top: auto; }
.pricing-note { grid-column: 1 / -1; color: var(--muted); font-size: .89rem; }
.contact-notice { margin-bottom: 1.3rem; color: var(--muted); }
.contact-grid section { scroll-margin-top: 1rem; }
.contact-grid section:target { border-color: var(--tile-ink); }
.legal-copy { display: grid; gap: 1.65rem; }
.legal-copy h2 { font-size: 1.35rem; letter-spacing: -.02em; }
.legal-copy p { margin-top: .45rem; max-width: 66ch; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .site-header nav a, .module-card, .product-shot a, .jump-nav a {
    transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease;
  }
  .module-arrow { transition: transform 170ms ease; }
  .module-card:hover .module-arrow { transform: translateX(3px); }
}

@media (max-width: 800px) {
  .feature-group { grid-template-columns: minmax(0, 1fr); }
  .product-shot { max-width: 43rem; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 610px) {
  .header-inner { min-height: auto; padding-block: .55rem; gap: .2rem .9rem; }
  .site-header nav { gap: .15rem .2rem; }
  .site-header nav a { font-size: .86rem; padding-inline: .4rem; }
  .spotlight-grid, .contact-grid, .pricing-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .header-inner nav { width: 100%; justify-content: space-between; }
  .module-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid nav:nth-of-type(2) { grid-column: 2; grid-row: 2 / span 2; }
  .footer-grid nav:nth-of-type(3) { grid-column: 1; grid-row: 3; }
}

@media (prefers-reduced-motion: no-preference) {
  .dashboard-assistant {
    transition: background-color 170ms ease, border-color 170ms ease;
  }
  .dashboard-float.is-in-view .dashboard-assistant:not(:focus-visible) {
    animation: assistant-arrive 3.8s cubic-bezier(.45, .08, .4, .95);
  }
  .preview-trend path { animation: draw-trend 1.25s .35s both ease-out; }
  .module-grid > .is-in-view:not(:focus-within) .module-card,
  .spotlight-grid > .is-in-view:not(:focus-within) .spotlight-copy {
    animation: card-rise .75s both cubic-bezier(.2, .68, .3, 1);
  }
  .is-in-view .tile-icon svg { animation: icon-settle .75s both ease-out; }
  .is-in-view .message-phone { animation: phone-settle .85s both ease-out; }
}

@keyframes assistant-arrive {
  0%, 100% { transform: none; }
  26% { transform: translate(-11px, -16px) rotate(-5deg); }
  54% { transform: translate(3px, -8px) rotate(3deg); }
  76% { transform: translate(-3px, -5px) rotate(-1deg); }
}
@keyframes draw-trend {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1; stroke-dashoffset: 0; }
}

@keyframes card-rise {
  from { transform: translateY(38px); opacity: .35; }
  to { transform: none; opacity: 1; }
}
@keyframes icon-settle {
  from { transform: translateY(10px) rotate(-16deg); }
  to { transform: none; }
}
@keyframes phone-settle {
  from { transform: translateY(38px) rotate(19deg) scale(.88); opacity: .5; }
  to { transform: rotate(6deg); opacity: 1; }
}
