/* ==========================================================================
   Active Mill, activemill.com
   Design tokens and component styles.
   ========================================================================== */

:root {
  /* Ink & text */
  --am-ink: #17131e;
  --am-ink-80: #3a3346;
  --am-body: #605769;
  --am-body-alt: #4e4458;
  --am-muted: #8b8394;
  --am-muted-light: #a79bb0;
  --am-slate: #8e93a8;

  /* Purple */
  --am-purple: #7b33eb;
  --am-purple-hover: #5716b8;
  --am-purple-light: #a87bf5;
  --am-lavender: #c9b4f2;
  --am-lavender-2: #dcccf5;

  /* Surfaces */
  --am-white: #ffffff;
  --am-fill-2: #efe7fb;
  --am-fill-3: #e1d3f5;
  --am-fill-4: #f7f2fe;
  --am-tint-bg: #f8f6fc;
  --am-tint-bg-2: #f8f5fe;
  --am-tint-bg-3: #fbf9fe;
  --am-chrome-bg: #faf8fd;
  --am-chrome-bg-2: #fcfbfe;
  --am-row-header: #f7f5fb;
  --am-avatar-bg: #ede4fa;

  /* Borders */
  --am-border: rgba(23, 19, 30, 0.1);
  --am-border-light: rgba(23, 19, 30, 0.07);
  --am-border-input: rgba(23, 19, 30, 0.16);
  --am-border-purple: rgba(123, 51, 235, 0.24);
  --am-border-purple-2: rgba(123, 51, 235, 0.2);
  --am-border-hover: rgba(123, 51, 235, 0.32);
  --am-border-dark: rgba(255, 255, 255, 0.18);
  --am-body-dark: rgba(255, 255, 255, 0.62);

  /* Type */
  --am-font: "Instrument Sans", system-ui, sans-serif;

  /* Layout */
  --am-max-width: 1280px;
  --am-max-width-narrow: 1180px;
  --am-page-pad: 40px;

  /* Radii */
  --am-radius-pill: 100px;
  --am-radius-xl: 28px;
  --am-radius-lg: 24px;
  --am-radius-md: 20px;
  --am-radius-sm: 16px;
  --am-radius-tile: 14px;
  --am-radius-input: 10px;

  /* Shadows */
  --am-shadow-mockup: 0 50px 100px -60px rgba(38, 16, 74, 0.5);
  --am-shadow-lift: 0 24px 60px -30px rgba(38, 16, 74, 0.26);
  --am-shadow-card: 0 24px 60px -40px rgba(38, 16, 74, 0.3);
  --am-focus-ring: 0 0 0 3px rgba(123, 51, 235, 0.12);

  /* Easing */
  --am-ease: cubic-bezier(0.16, 0.84, 0.28, 1);
  --am-ease-draw: cubic-bezier(0.22, 0.7, 0.3, 1);
  --am-ease-packet: cubic-bezier(0.5, 0, 0.5, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* Sticky header clearance for anchor jumps. */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--am-font);
  color: var(--am-ink);
  background: var(--am-white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--am-purple);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--am-purple-hover);
}

img,
svg {
  display: block;
}

h1,
h2,
h3 {
  font-weight: 500;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--am-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.am-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--am-white);
  color: var(--am-ink);
  padding: 12px 20px;
  border-radius: 0 0 var(--am-radius-input) 0;
  font-size: 14px;
}

.am-skip:focus {
  left: 0;
}

.am-wrap {
  max-width: var(--am-max-width);
  margin: 0 auto;
  padding-left: var(--am-page-pad);
  padding-right: var(--am-page-pad);
}

.am-wrap--narrow {
  max-width: var(--am-max-width-narrow);
}

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */

.am-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--am-purple);
}

.am-h2 {
  font-size: clamp(32px, 3.6vw, 50px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 18px 0;
}

.am-h2--minor {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  margin: 16px 0 0;
}

.am-lede {
  font-size: 17px;
  line-height: 1.68;
  color: var(--am-body);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.am-btn {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--am-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.am-btn--primary {
  color: var(--am-white);
  background: var(--am-purple);
  padding: 16px 32px;
}

.am-btn--primary:hover {
  color: var(--am-white);
  background: var(--am-purple-hover);
}

.am-btn--secondary {
  color: var(--am-ink);
  border-color: var(--am-border-input);
  padding: 16px 32px;
}

.am-btn--secondary:hover {
  color: var(--am-purple);
  border-color: var(--am-purple);
}

.am-btn--nav {
  padding: 11px 22px;
}

.am-btn--cta {
  padding: 17px 38px;
}

.am-btn--submit {
  margin-top: 6px;
  padding: 16px 30px;
}

.am-btn[disabled] {
  opacity: 0.62;
  cursor: default;
}

.arrow {
  display: inline-block;
  transition: transform 0.4s var(--am-ease);
}

.go:hover .arrow {
  transform: translateX(7px);
}

.am-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--am-purple);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.am-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--am-border-light);
}

.am-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.am-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.am-header__logo img {
  height: 26px;
  width: auto;
}

.am-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.am-nav__link {
  font-size: 15px;
  color: var(--am-body);
}

.am-nav__link:hover {
  color: var(--am-purple);
}

/* Contact page header */
.am-header--plain {
  position: static;
  background: var(--am-white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.am-header--plain .am-header__inner {
  padding-top: 20px;
  padding-bottom: 20px;
}

.am-back {
  font-size: 15px;
  color: var(--am-body);
}

.am-back:hover {
  color: var(--am-purple);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.am-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--am-border-light);
}

.am-hero__glow {
  position: absolute;
  top: -200px;
  right: -180px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 51, 235, 0.14) 0%, rgba(123, 51, 235, 0) 68%);
  animation: amBlob 26s ease-in-out infinite;
  pointer-events: none;
}

.am-hero__inner {
  position: relative;
  padding-top: 88px;
  padding-bottom: 76px;
  text-align: center;
}

.am-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px;
  border: 1px solid var(--am-border-purple);
  border-radius: var(--am-radius-pill);
  margin-bottom: 30px;
  font-size: 13px;
  color: var(--am-body);
}

.am-hero__title {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.042em;
  margin: 0 auto;
  max-width: 17ch;
}

.am-hero__sub {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--am-body);
  margin: 26px auto 0;
  max-width: 60ch;
}

.am-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}

.am-hero__mockup {
  max-width: var(--am-max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--am-page-pad) 78px;
}

.am-claims {
  max-width: var(--am-max-width);
  margin: 0 auto;
  padding: 0 var(--am-page-pad) 44px;
}

.am-claims__row {
  display: flex;
  gap: 14px 40px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 30px;
  border-top: 1px solid rgba(23, 19, 30, 0.08);
}

.am-claims__row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--am-body-alt);
}

.am-claims__row span::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--am-purple);
}

/* --------------------------------------------------------------------------
   Product mockup
   -------------------------------------------------------------------------- */

.am-mock {
  border: 1px solid rgba(23, 19, 30, 0.12);
  border-radius: var(--am-radius-sm);
  overflow: hidden;
  background: var(--am-white);
  box-shadow: var(--am-shadow-mockup);
}

.am-mock__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(23, 19, 30, 0.09);
  background: var(--am-chrome-bg);
}

.am-mock__dots {
  display: flex;
  gap: 6px;
}

.am-mock__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e0d6ed;
  display: block;
}

.am-mock__tab {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 5px 14px;
  background: var(--am-white);
  border: 1px solid rgba(23, 19, 30, 0.09);
  border-radius: 7px;
  font-size: 12px;
  color: var(--am-body-alt);
}

.am-mock__tab img {
  width: 13px;
  height: 13px;
}

.am-mock__tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.am-mock__tools svg {
  width: 15px;
  height: 15px;
}

.am-mock__bell {
  position: relative;
  display: block;
}

.am-mock__bell span {
  position: absolute;
  top: -2px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--am-purple);
  border: 1.5px solid var(--am-chrome-bg);
  display: block;
}

.am-mock__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--am-avatar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-mock__avatar svg {
  width: 13px;
  height: 13px;
}

.am-mock__body {
  display: grid;
  grid-template-columns: 178px minmax(280px, 1fr) 250px;
  min-height: 400px;
}

.am-mock__side {
  border-right: 1px solid rgba(23, 19, 30, 0.08);
  padding: 20px 14px;
  background: var(--am-chrome-bg-2);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.am-mock__navitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--am-body);
}

.am-mock__navitem svg {
  flex-shrink: 0;
}

.am-mock__navitem--active {
  background: #f1e9fd;
  color: var(--am-ink);
  font-weight: 500;
}

.am-mock__main {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.am-mock__mainhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.am-mock__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.am-mock__meta {
  font-size: 12px;
  color: var(--am-muted);
}

.am-mock__table {
  border: 1px solid rgba(23, 19, 30, 0.09);
  border-radius: var(--am-radius-input);
  overflow: hidden;
}

.am-mock__thead,
.am-mock__row {
  display: grid;
  grid-template-columns: 1fr 100px 78px;
  gap: 10px;
}

.am-mock__thead {
  padding: 9px 14px;
  background: var(--am-row-header);
  border-bottom: 1px solid var(--am-border-light);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--am-muted);
}

.am-mock__row {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(23, 19, 30, 0.055);
  align-items: center;
  animation: rowSweep 9s ease-in-out infinite;
}

.am-mock__row:last-child {
  border-bottom: none;
}

.am-mock__row > span:first-child {
  font-size: 13px;
  color: var(--am-ink);
}

.am-mock__row > span:nth-child(2) {
  font-size: 12px;
  color: var(--am-body);
}

.am-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--am-radius-pill);
  justify-self: start;
  white-space: nowrap;
}

.am-badge--open {
  background: rgba(123, 51, 235, 0.1);
  color: var(--am-purple);
}

.am-badge--review {
  background: rgba(142, 147, 168, 0.16);
  color: #5b6070;
}

.am-badge--done {
  background: rgba(23, 19, 30, 0.06);
  color: var(--am-muted);
}

.am-mock__rail {
  border-left: 1px solid rgba(23, 19, 30, 0.08);
  padding: 20px 18px;
  background: var(--am-chrome-bg-2);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.am-mock__raillabel {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--am-muted);
}

.am-steps {
  display: flex;
  flex-direction: column;
}

.am-step {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
}

.am-step__gutter {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.am-step__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #e3daf3;
  background: #f1edf9;
  display: block;
  animation: stepCycle 9s ease-in-out infinite;
}

.am-step__line {
  width: 1.5px;
  flex: 1;
  min-height: 22px;
  background: #ede7f6;
  display: block;
  margin: 3px 0;
}

.am-step__line i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--am-purple);
  transform-origin: top;
  transform: scaleY(0);
  animation: stepLine 9s ease-in-out infinite;
}

.am-step__label {
  font-size: 13px;
  color: var(--am-ink-80);
  padding-bottom: 16px;
  margin-top: -1px;
}

.am-mock__invoice {
  margin-top: auto;
  border: 1px solid rgba(23, 19, 30, 0.09);
  border-radius: var(--am-radius-input);
  padding: 14px;
}

.am-mock__invoicehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.am-mock__invoicehead > span:first-child {
  font-size: 12px;
  color: var(--am-muted);
}

.am-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
}

.am-chart span {
  flex: 1;
  border-radius: 3px;
  background: var(--am-lavender-2);
  transform-origin: bottom;
  animation: barGrow 1.4s var(--am-ease) both;
  display: block;
}

.am-chart span:nth-child(6),
.am-chart span:nth-child(7) {
  background: var(--am-purple);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.am-section {
  padding-top: 100px;
  padding-bottom: 90px;
}

.am-section--flush-top {
  padding-top: 0;
  padding-bottom: 100px;
}

.am-section--even {
  padding-top: 90px;
  padding-bottom: 90px;
}

.am-section__head {
  max-width: 660px;
  margin-bottom: 56px;
}

.am-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.am-card {
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-md);
  padding: 30px 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--am-white);
}

.am-card__num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--am-purple);
}

.am-card__title {
  font-size: 20px;
  letter-spacing: -0.025em;
  margin: 4px 0 0;
}

.am-card__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--am-body);
  margin: 0;
}

.lift {
  transition: transform 0.5s var(--am-ease), box-shadow 0.5s ease, border-color 0.4s ease;
}

.lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--am-shadow-lift);
  border-color: var(--am-border-hover);
}

/* Order types panel */

.am-panel {
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-lg);
  padding: 46px 44px 48px;
  background: var(--am-white);
}

.am-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.am-panel__title {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 14px 0 0;
  max-width: 20ch;
}

.am-panel__note {
  font-size: 15px;
  line-height: 1.65;
  color: var(--am-body);
  margin: 0;
  max-width: 34ch;
}

.am-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.am-chip {
  font-size: 15px;
  color: var(--am-ink-80);
  border: 1px solid rgba(23, 19, 30, 0.12);
  border-radius: var(--am-radius-pill);
  padding: 11px 22px;
  background: var(--am-white);
  display: inline-block;
}

.am-chip--more {
  color: var(--am-purple);
  border: 1px dashed rgba(123, 51, 235, 0.4);
  background: var(--am-tint-bg-3);
}

/* Under the hood */

.am-stack {
  background: var(--am-tint-bg);
  border-top: 1px solid rgba(23, 19, 30, 0.06);
  border-bottom: 1px solid rgba(23, 19, 30, 0.06);
}

.am-stack__inner {
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  gap: 56px;
  align-items: center;
}

.am-stack__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--am-body);
  margin: 0 0 30px;
  max-width: 44ch;
}

.am-layer {
  padding: 18px 0;
  border-top: 1px solid rgba(23, 19, 30, 0.12);
}

.am-layer h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}

.am-layer p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--am-body);
  margin: 0;
  max-width: 40ch;
}

.am-stack__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Features */

.am-section--features {
  padding-top: 100px;
  padding-bottom: 40px;
}

.am-section--features .am-section__head {
  max-width: 620px;
  margin-bottom: 52px;
}

.am-grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.am-feature {
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-md);
  padding: 26px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--am-white);
}

.am-feature__icon {
  width: 100px;
  height: 107px;
  margin-bottom: 4px;
}

.am-feature h3 {
  font-size: 20px;
  letter-spacing: -0.025em;
  margin: 0;
}

.am-feature p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--am-body);
  margin: 0;
}

.am-grid-more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.am-minicard {
  background: var(--am-white);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-sm);
  padding: 24px 24px 26px;
}

.am-minicard h3 {
  font-size: 16px;
  letter-spacing: -0.015em;
  margin: 0 0 7px;
}

.am-minicard p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--am-body);
  margin: 0;
}

/* DataRunner + integrations */

.am-dr {
  margin-bottom: 64px;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-md);
  background: var(--am-white);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.am-dr__title {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.14;
  margin: 14px 0;
}

.am-dr__body {
  font-size: 16px;
  line-height: 1.68;
  color: var(--am-body);
  margin: 0 0 22px;
  max-width: 52ch;
}

.am-dr__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: var(--am-tint-bg-3);
  border: 1px solid rgba(123, 51, 235, 0.18);
  border-radius: var(--am-radius-tile);
}

.am-dr__logo img {
  width: min(300px, 80%);
  height: auto;
}

.am-int {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  align-items: center;
}

.am-int__copy .am-h2 {
  font-size: clamp(28px, 3.2vw, 44px);
}

.am-int__copy p {
  max-width: 44ch;
}

.am-int__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
}

.am-tile {
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-tile);
  padding: 20px 22px;
  background: var(--am-white);
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-tile img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.am-tile--api {
  border-color: rgba(123, 51, 235, 0.28);
  background: var(--am-tint-bg-3);
  padding: 20px 18px;
  gap: 12px;
}

.am-tile--api svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.am-tile--api span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--am-ink);
  white-space: nowrap;
}

/* Security */

.am-security {
  background: var(--am-ink);
  color: var(--am-white);
}

.am-security__inner {
  padding-top: 84px;
  padding-bottom: 84px;
}

.am-security__head {
  max-width: 620px;
  margin-bottom: 48px;
}

.am-security .am-eyebrow {
  color: var(--am-purple-light);
}

.am-security h2 {
  color: var(--am-white);
}

.am-security__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 44px 40px;
}

.am-security__item {
  padding-top: 22px;
  border-top: 1px solid var(--am-border-dark);
}

.am-security__item h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--am-white);
}

.am-security__item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--am-body-dark);
  margin: 0;
}

/* Closing CTA */

.am-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--am-radius-xl);
  border: 1px solid var(--am-border-purple-2);
  background: var(--am-tint-bg-2);
  padding: 84px 60px;
  text-align: center;
}

.am-cta__glow {
  position: absolute;
  bottom: -380px;
  left: 50%;
  /* Centred with a margin, not translateX: amBlob owns the transform. */
  margin-left: -450px;
  width: 900px;
  height: 760px;
  background: radial-gradient(ellipse closest-side, rgba(123, 51, 235, 0.24) 0%, rgba(123, 51, 235, 0) 100%);
  animation: amBlob 22s ease-in-out infinite;
  pointer-events: none;
}

.am-cta__inner {
  position: relative;
}

.am-cta h2 {
  font-size: clamp(30px, 3.8vw, 50px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 auto;
  max-width: 18ch;
}

.am-cta p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--am-body);
  margin: 22px auto 36px;
  max-width: 46ch;
}

/* Footer */

.am-footer {
  border-top: 1px solid rgba(23, 19, 30, 0.08);
}

.am-footer__inner {
  padding-top: 48px;
  padding-bottom: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.am-footer__brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.am-footer__brand img {
  width: 22px;
  height: 22px;
}

.am-footer__brand span {
  font-size: 14px;
  color: var(--am-muted);
}

.am-footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.am-footer__links a {
  font-size: 14px;
  color: var(--am-body);
}

.am-footer__links a:hover {
  color: var(--am-purple);
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.am-contact {
  max-width: var(--am-max-width-narrow);
  margin: 0 auto;
  padding: 70px var(--am-page-pad) 100px;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(340px, 1.15fr);
  gap: 72px;
  align-items: start;
}

.am-contact__title {
  font-size: clamp(34px, 3.8vw, 50px);
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 0;
}

.am-contact__lede {
  font-size: 18px;
  line-height: 1.62;
  color: var(--am-body);
  margin: 22px 0 36px;
  max-width: 40ch;
}

.am-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--am-border);
}

.am-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.am-point__tick {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(123, 51, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--am-purple);
  font-size: 12px;
}

.am-point span:last-child {
  font-size: 16px;
  line-height: 1.6;
  color: var(--am-body-alt);
}

.am-formcard {
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-md);
  padding: 38px 36px 40px;
  box-shadow: var(--am-shadow-card);
  background: var(--am-white);
}

.am-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.am-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.am-form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--am-body-alt);
  display: block;
  margin-bottom: 7px;
}

.am-form input,
.am-form select,
.am-form textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--am-ink);
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--am-border-input);
  border-radius: var(--am-radius-input);
  background: var(--am-white);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.am-form textarea {
  resize: vertical;
  min-height: 108px;
}

.am-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238B8394' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px 8px;
  padding-right: 38px;
}

.am-form input:focus,
.am-form select:focus,
.am-form textarea:focus {
  border-color: var(--am-purple);
  box-shadow: var(--am-focus-ring);
}

.am-form input[aria-invalid="true"],
.am-form textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

.am-form__error {
  display: block;
  font-size: 12px;
  color: #c0392b;
  margin-top: 6px;
  min-height: 0;
}

.am-form__error:empty {
  display: none;
}

/* Honeypot: off-screen rather than display:none, which the cruder bots skip. */
.am-form__gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.am-form__status {
  font-size: 13px;
  color: #c0392b;
  margin: 0;
}

.am-form__status:empty {
  display: none;
}

.am-success {
  padding: 40px 0;
  text-align: center;
}

.am-success__tick {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(123, 51, 235, 0.1);
  color: var(--am-purple);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-success h2 {
  font-size: 24px;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.am-success p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--am-body);
  margin: 0;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Entrance animation utilities
   -------------------------------------------------------------------------- */

.up {
  animation: amUp 1s var(--am-ease) both;
}

.rev {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--am-ease), transform 0.9s var(--am-ease);
}

.rev.in {
  opacity: 1;
  transform: translateY(0);
}

.d {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: amDraw 1.6s var(--am-ease-draw) forwards;
}

.a {
  opacity: 0;
  animation: amDrop 0.85s var(--am-ease) forwards;
}

.flow {
  stroke-dasharray: 5 9;
  animation: amFlow 4s linear infinite;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes amUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes amBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(34px, -26px) scale(1.1);
  }
  66% {
    transform: translate(-26px, 20px) scale(0.94);
  }
}

@keyframes amDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes amDrop {
  0% {
    opacity: 0;
    transform: translateY(-26px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes amSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes amSpinBack {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes amTick {
  0%,
  45% {
    opacity: 0.18;
  }
  55%,
  100% {
    opacity: 1;
  }
}

@keyframes amFlow {
  to {
    stroke-dashoffset: -160;
  }
}

@keyframes amRing {
  0% {
    transform: scale(0.55);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

@keyframes amScanDoc {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.25;
  }
  20% {
    opacity: 1;
  }
  50% {
    transform: translate(12px, -7px);
    opacity: 1;
  }
  80% {
    opacity: 0.6;
  }
}

@keyframes moveAlong {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: 100%;
  }
}

@keyframes nodeGlow {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

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

@keyframes barPulse {
  0%,
  100% {
    transform: scaleY(0.42);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes uiFocus {
  0%,
  16% {
    transform: translate(0, 0);
  }
  28%,
  44% {
    transform: translate(17.6px, 10.2px);
  }
  56%,
  72% {
    transform: translate(35.1px, 20.4px);
  }
  88%,
  100% {
    transform: translate(0, 0);
  }
}

@keyframes pktUp150 {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  86% {
    opacity: 1;
  }
  100% {
    transform: translateY(-150px);
    opacity: 0;
  }
}

@keyframes pktDown150 {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  86% {
    opacity: 1;
  }
  100% {
    transform: translateY(150px);
    opacity: 0;
  }
}

@keyframes stepCycle {
  0%,
  4% {
    background: #f1edf9;
    border-color: #e3daf3;
  }
  8%,
  26% {
    background: #7b33eb;
    border-color: #7b33eb;
  }
  34%,
  100% {
    background: #ede4fa;
    border-color: #dcccf5;
  }
}

@keyframes stepLine {
  0%,
  6% {
    transform: scaleY(0);
  }
  26%,
  100% {
    transform: scaleY(1);
  }
}

@keyframes rowSweep {
  0%,
  70% {
    background: #ffffff;
  }
  78%,
  92% {
    background: #f7f3fe;
  }
  100% {
    background: #ffffff;
  }
}

@keyframes barGrow {
  0% {
    transform: scaleY(0.3);
  }
  100% {
    transform: scaleY(1);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* The mockup's three-column layout stops fitting well before the tablet
   breakpoint: drop the right rail first, then the sidebar. */
@media (max-width: 1080px) {
  .am-mock__body {
    grid-template-columns: 178px minmax(280px, 1fr);
  }

  .am-mock__rail {
    display: none;
  }
}

@media (max-width: 900px) {
  .am-stack__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .am-stack__art {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .am-contact {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .am-int {
    gap: 40px;
  }
}

@media (max-width: 760px) {
  :root {
    --am-page-pad: 22px;
  }

  html {
    scroll-padding-top: 80px;
  }

  .am-nav__link {
    display: none;
  }

  .am-nav {
    gap: 18px;
  }

  .am-header__inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .am-hero__inner {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .am-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .am-hero__actions .am-btn {
    text-align: center;
  }

  .am-hero__mockup {
    padding-bottom: 52px;
  }

  .am-mock__body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .am-mock__side {
    display: none;
  }

  .am-mock__main {
    padding: 16px;
  }

  .am-mock__thead,
  .am-mock__row {
    grid-template-columns: 1fr 84px;
  }

  .am-mock__thead > span:nth-child(2),
  .am-mock__row > span:nth-child(2) {
    display: none;
  }

  .am-claims__row {
    gap: 12px 28px;
  }

  .am-section {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .am-section--flush-top {
    padding-bottom: 64px;
  }

  .am-section--even {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .am-section--features {
    padding-top: 64px;
    padding-bottom: 24px;
  }

  .am-section__head,
  .am-section--features .am-section__head {
    margin-bottom: 36px;
  }

  .am-stack__inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .am-panel {
    padding: 32px 26px 34px;
  }

  .am-panel__head {
    gap: 18px;
    margin-bottom: 26px;
  }

  .am-chip,
  .am-chip--more {
    font-size: 14px;
    padding: 10px 18px;
  }

  .am-dr {
    padding: 32px 26px;
    margin-bottom: 44px;
    gap: 28px;
  }

  .am-security__inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .am-security__grid {
    gap: 32px 28px;
  }

  .am-cta {
    padding: 56px 26px;
  }

  .am-footer__inner {
    padding-top: 36px;
    padding-bottom: 40px;
    gap: 20px;
  }

  .am-contact {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .am-formcard {
    padding: 26px 22px 30px;
  }
}

@media (max-width: 420px) {
  .am-nav {
    gap: 12px;
  }

  .am-btn--nav {
    padding: 10px 18px;
    font-size: 14px;
  }

  .am-header__logo img {
    height: 22px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion: show final states, drop the loops.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .up {
    opacity: 1;
    transform: none;
  }

  .rev {
    opacity: 1;
    transform: none;
  }

  .a {
    opacity: 1;
  }

  .d {
    stroke-dashoffset: 0;
  }

  .am-step__line i {
    transform: scaleY(1);
  }
}
