/*
 * AH Digital — Création de site web au Maroc
 * Site Web General Hub v2
 */

.ah-web-page {
  --web-bg: #f8fafc;
  --web-surface: #ffffff;
  --web-soft: #f1f4f8;
  --web-ink: #0b1020;
  --web-muted: #5e6878;
  --web-border: #e1e7ee;
  --web-brand: #5657e6;
  --web-brand-deep: #3730a3;
  --web-cyan: #20c7d6;
  --web-lime: #b7f34a;
  --web-dark: #0b1020;
  --web-dark-surface: #101629;
  --web-dark-border: #26324a;
  --web-radius-lg: 32px;
  --web-radius-md: 22px;
  --web-radius-sm: 14px;
  --web-shadow: 0 26px 80px rgba(11, 16, 32, 0.09);
  --web-shadow-soft: 0 14px 44px rgba(11, 16, 32, 0.06);
  color: var(--web-ink);
  background: var(--web-bg);
  overflow: clip;
}

.ah-web-page *,
.ah-web-page *::before,
.ah-web-page *::after {
  box-sizing: border-box;
}

.ah-web-page a {
  color: inherit;
}

.ah-web-page img {
  display: block;
  max-width: 100%;
}

.ah-web-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.ah-web-section {
  position: relative;
  padding: clamp(76px, 8vw, 120px) 0;
}

.ah-web-section--tight {
  padding-block: clamp(64px, 6.4vw, 92px);
}

.ah-web-section--soft {
  background: var(--web-soft);
}

.ah-web-eyebrow {
  margin: 0 0 16px;
  color: var(--web-brand);
  font-family: var(--ah-font-mono, "IBM Plex Mono", monospace);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ah-web-section-head {
  max-width: 760px;
}

.ah-web-section-head--wide {
  max-width: 920px;
}

.ah-web-section-head h2,
.ah-web-final h2,
.ah-web-year h2 {
  margin: 0;
  color: var(--web-ink);
  font-size: clamp(2rem, 4.2vw, 4.25rem);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.ah-web-section-head > p:last-child,
.ah-web-year__copy > p:last-child,
.ah-web-final__inner > div:first-child > p:last-child {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--web-muted);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.75;
}

/* Buttons / links */
.ah-web-actions,
.ah-web-final__actions,
.ah-web-type-story__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ah-web-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.ah-web-btn:focus-visible,
.ah-web-link:focus-visible,
.ah-web-types__rail a:focus-visible,
.ah-web-faq summary:focus-visible,
.ah-web-pricing-row a:focus-visible {
  outline: 3px solid rgba(32, 199, 214, 0.38);
  outline-offset: 4px;
}

.ah-web-btn--primary {
  color: #fff;
  background: var(--web-brand);
  box-shadow: 0 14px 32px rgba(86, 87, 230, 0.24);
}

.ah-web-btn--primary:hover {
  background: var(--web-brand-deep);
}

.ah-web-btn--secondary {
  color: var(--web-ink);
  border-color: var(--web-border);
  background: rgba(255, 255, 255, 0.72);
}

.ah-web-btn--secondary:hover {
  border-color: rgba(86, 87, 230, 0.42);
  background: #fff;
}

.ah-web-btn--light {
  color: var(--web-ink);
  background: #fff;
}

.ah-web-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--web-brand-deep);
  font-size: 0.94rem;
  font-weight: 760;
  text-decoration: none;
}

.ah-web-link span {
  transition: transform 180ms ease;
}

.ah-web-link:hover span {
  transform: translateX(4px);
}

.ah-web-link--light {
  color: #fff;
}

/* Hero — zero rebuild: framed strategic visual + scoped sticky media */
.ah-web-hero {
  position: relative;
  padding: clamp(72px, 7vw, 104px) 0 clamp(82px, 8vw, 118px);
  background:
    radial-gradient(circle at 92% 12%, rgba(32, 199, 214, 0.14), transparent 24%),
    radial-gradient(circle at 8% 5%, rgba(86, 87, 230, 0.12), transparent 28%),
    var(--web-bg);
}

.ah-web-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(11, 16, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 16, 32, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 76%);
}

.ah-web-hero > .ah-web-container {
  width: min(1280px, calc(100% - 48px));
}

.ah-web-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(44px, 5vw, 72px);
}

.ah-web-hero__copy {
  min-width: 0;
}

.ah-web-hero__copy h1 {
  max-width: 620px;
  margin: 0;
  color: var(--web-ink);
  font-size: clamp(3.2rem, 6vw, 6.45rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.ah-web-hero__lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--web-muted);
  font-size: clamp(1.08rem, 1.55vw, 1.24rem);
  line-height: 1.7;
}

.ah-web-hero__prices {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.ah-web-hero__prices > div {
  display: grid;
  gap: 4px;
}

.ah-web-hero__prices span {
  color: var(--web-muted);
  font-family: var(--ah-font-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ah-web-hero__prices strong {
  color: var(--web-ink);
  font-size: 1.08rem;
}

.ah-web-hero__prices i {
  width: 1px;
  height: 40px;
  background: var(--web-border);
}

.ah-web-hero .ah-web-actions {
  margin-top: 30px;
}

.ah-web-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ah-web-proof li {
  position: relative;
  padding-left: 17px;
  color: var(--web-muted);
  font-size: 0.82rem;
  font-weight: 680;
}

.ah-web-proof li::before {
  position: absolute;
  top: 0.56em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--web-cyan);
  box-shadow: 0 0 0 5px rgba(32, 199, 214, 0.1);
  content: "";
}

.ah-web-hero__media {
  position: relative;
  min-width: 0;
  padding-top: clamp(30px, 4vw, 58px);
}

.ah-web-hero__media::before {
  position: absolute;
  inset: 18% 8% -8%;
  z-index: -1;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(86, 87, 230, 0.18), rgba(32, 199, 214, 0.16));
  filter: blur(34px);
  pointer-events: none;
  content: "";
}

@media (min-width: 1121px) {
  .ah-web-hero__media {
    position: sticky;
    top: calc(var(--ah-header-height, 82px) + 22px);
    align-self: start;
  }
}

.ah-web-hero-browser {
  position: relative;
  width: min(100%, 660px);
  margin: 0 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(86, 87, 230, 0.18);
  border-radius: 24px;
  background: var(--web-surface);
  box-shadow: 0 28px 88px rgba(11, 16, 32, 0.14);
  isolation: isolate;
}

.ah-web-hero-browser__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 46px;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid var(--web-border);
  background: var(--web-surface);
}

.ah-web-hero-browser__dots {
  display: flex;
  gap: 5px;
}

.ah-web-hero-browser__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--web-border);
}

.ah-web-hero-browser__dots i:nth-child(2) {
  background: rgba(86, 87, 230, 0.48);
}

.ah-web-hero-browser__dots i:nth-child(3) {
  background: rgba(32, 199, 214, 0.58);
}

.ah-web-hero-browser__title,
.ah-web-hero-browser__meta,
.ah-web-hero-browser__footer {
  font-family: var(--ah-font-mono, "IBM Plex Mono", monospace);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ah-web-hero-browser__title {
  overflow: hidden;
  color: var(--web-muted);
  font-size: 0.64rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-web-hero-browser__meta {
  color: var(--web-brand);
  font-size: 0.61rem;
  white-space: nowrap;
}

.ah-web-hero-browser__viewport {
  position: relative;
  overflow: hidden;
  background: var(--web-soft);
}

.ah-web-hero__image {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.ah-web-hero-browser__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 10px;
  min-height: 48px;
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--web-border);
  color: var(--web-muted);
  font-size: 0.6rem;
  line-height: 1.35;
  text-align: center;
}

.ah-web-hero-browser__footer i {
  color: var(--web-cyan);
  font-style: normal;
}

/* Objective rail */
.ah-web-objectives {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--web-border);
  border-bottom: 1px solid var(--web-border);
}

.ah-web-objectives article {
  min-height: 190px;
  padding: 28px 26px 30px 0;
}

.ah-web-objectives article + article {
  padding-left: 28px;
  border-left: 1px solid var(--web-border);
}

.ah-web-objectives span,
.ah-web-included > article > span,
.ah-web-process > li > span,
.ah-web-factor-list article > span,
.ah-web-foundation-grid article > span {
  color: var(--web-brand);
  font-family: var(--ah-font-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ah-web-objectives h3 {
  margin: 18px 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.ah-web-objectives p {
  margin: 0;
  color: var(--web-muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

/* Type stories */
.ah-web-types {
  background: var(--web-surface);
}

.ah-web-types__intro {
  padding-bottom: 52px;
}

.ah-web-types__layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 38px;
}

.ah-web-types__rail {
  position: sticky;
  top: 108px;
  padding: 22px;
  border: 1px solid var(--web-border);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(14px);
}

.ah-web-types__rail > p {
  margin: 0 0 15px;
  color: var(--web-muted);
  font-family: var(--ah-font-mono, "IBM Plex Mono", monospace);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ah-web-types__rail nav {
  display: grid;
}

.ah-web-types__rail a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  color: var(--web-muted);
  border-top: 1px solid var(--web-border);
  font-size: 0.86rem;
  font-weight: 720;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.ah-web-types__rail a span {
  font-family: var(--ah-font-mono, "IBM Plex Mono", monospace);
  font-size: 0.64rem;
  color: var(--web-brand);
}

.ah-web-types__rail a.is-active {
  color: var(--web-ink);
  transform: translateX(4px);
}

.ah-web-types__stories {
  display: grid;
  gap: 36px;
}

.ah-web-type-story {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(28px, 4vw, 50px);
  min-height: 520px;
  padding: clamp(30px, 4vw, 50px);
  border: 1px solid var(--web-border);
  border-radius: var(--web-radius-lg);
  background: var(--web-soft);
  box-shadow: var(--web-shadow-soft);
  scroll-margin-top: 120px;
}

.ah-web-type-story:nth-child(even):not(.ah-web-type-story--dark) {
  background: #fff;
}

.ah-web-type-story__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ah-web-type-story__meta span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--web-brand);
  font-family: var(--ah-font-mono, "IBM Plex Mono", monospace);
  font-size: 0.66rem;
  font-weight: 800;
}

.ah-web-type-story__meta p {
  margin: 0;
  color: var(--web-brand-deep);
  font-family: var(--ah-font-mono, "IBM Plex Mono", monospace);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ah-web-type-story h3 {
  margin: 18px 0 0;
  font-size: clamp(2rem, 3.3vw, 3.45rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.ah-web-type-story__lead {
  margin: 18px 0 0;
  color: var(--web-muted);
  font-size: 1.04rem;
  line-height: 1.68;
}

.ah-web-type-story ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ah-web-type-story li {
  position: relative;
  padding-left: 19px;
  color: var(--web-ink);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.55;
}

.ah-web-type-story li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--web-cyan);
  content: "";
}

.ah-web-type-story__actions {
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--web-border);
}

.ah-web-type-story__price {
  color: var(--web-muted);
  font-family: var(--ah-font-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ah-web-type-story__visual {
  margin: 0;
}

.ah-web-type-story__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(86, 87, 230, 0.14);
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(11, 16, 32, 0.12);
}

.ah-web-type-story--dark {
  color: #fff;
  border-color: var(--web-dark-border);
  background:
    radial-gradient(circle at 88% 12%, rgba(32, 199, 214, 0.16), transparent 30%),
    var(--web-dark);
}

.ah-web-type-story--dark h3,
.ah-web-type-story--dark li {
  color: #fff;
}

.ah-web-type-story--dark .ah-web-type-story__lead,
.ah-web-type-story--dark .ah-web-type-story__price {
  color: #aeb9ca;
}

.ah-web-type-story--dark .ah-web-type-story__meta p {
  color: var(--web-cyan);
}

.ah-web-type-story--dark .ah-web-type-story__actions {
  border-color: var(--web-dark-border);
}

.ah-web-type-story--system {
  background: linear-gradient(145deg, #f7f8ff 0%, #eef9fb 100%);
}

/* Custom system mockup */
.ah-web-system {
  overflow: hidden;
  border: 1px solid rgba(86, 87, 230, 0.2);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(11, 16, 32, 0.12);
}

.ah-web-system__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 20px;
  color: #b8c2d2;
  background: var(--web-dark);
  font-family: var(--ah-font-mono, "IBM Plex Mono", monospace);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ah-web-system__top i {
  color: var(--web-lime);
  font-style: normal;
}

.ah-web-system__body {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  min-height: 360px;
}

.ah-web-system__body nav {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 18px 12px;
  color: #96a3b7;
  background: var(--web-dark-surface);
  font-size: 0.68rem;
}

.ah-web-system__body nav b,
.ah-web-system__body nav span {
  padding: 10px 9px;
  border-radius: 8px;
}

.ah-web-system__body nav b {
  color: #fff;
  background: rgba(86, 87, 230, 0.22);
}

.ah-web-system__workspace {
  padding: 24px;
}

.ah-web-system__headline small {
  color: var(--web-brand);
  font-family: var(--ah-font-mono, "IBM Plex Mono", monospace);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ah-web-system__headline strong {
  display: block;
  max-width: 380px;
  margin-top: 8px;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.ah-web-system__nodes {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
}

.ah-web-system__nodes div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--web-border);
  border-radius: 12px;
  background: var(--web-soft);
}

.ah-web-system__nodes span {
  display: block;
  color: var(--web-muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.ah-web-system__nodes strong {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
}

.ah-web-system__nodes i {
  color: var(--web-brand);
  font-style: normal;
  font-weight: 800;
}

.ah-web-system__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.ah-web-system__signals span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--web-brand-deep);
  background: rgba(86, 87, 230, 0.09);
  font-family: var(--ah-font-mono, "IBM Plex Mono", monospace);
  font-size: 0.62rem;
  font-weight: 800;
}

/* Included */
.ah-web-included {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 46px;
  border-top: 1px solid var(--web-border);
}

.ah-web-included > article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 28px 26px 28px 0;
  border-bottom: 1px solid var(--web-border);
}

.ah-web-included > article:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid var(--web-border);
}

.ah-web-included h3 {
  margin: 0 0 7px;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.ah-web-included p {
  margin: 0;
  color: var(--web-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Process */
.ah-web-process-layout,
.ah-web-split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(50px, 7vw, 100px);
}

.ah-web-section-head--sticky {
  position: sticky;
  top: 110px;
}

.ah-web-process {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--web-border);
  list-style: none;
}

.ah-web-process li,
.ah-web-factor-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--web-border);
}

.ah-web-process h3,
.ah-web-factor-list h3 {
  margin: 0 0 7px;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.ah-web-process p,
.ah-web-factor-list p {
  margin: 0;
  color: var(--web-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Pricing */
.ah-web-pricing-section {
  color: #fff;
  background:
    radial-gradient(circle at 85% 0%, rgba(32, 199, 214, 0.14), transparent 28%),
    radial-gradient(circle at 8% 100%, rgba(86, 87, 230, 0.18), transparent 32%),
    var(--web-dark);
}

.ah-web-pricing-section .ah-web-section-head h2,
.ah-web-pricing-section .ah-web-section-head > p:last-child {
  color: #fff;
}

.ah-web-pricing-section .ah-web-section-head > p:last-child {
  color: #aeb9ca;
}

.ah-web-pricing-section .ah-web-eyebrow {
  color: var(--web-cyan);
}

.ah-web-pricing-board {
  margin-top: 48px;
  border-top: 1px solid var(--web-dark-border);
}

.ah-web-pricing-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(150px, 0.45fr) minmax(170px, 0.5fr);
  gap: 22px;
  align-items: center;
  min-height: 124px;
  border-bottom: 1px solid var(--web-dark-border);
}

.ah-web-pricing-row > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 0 14px;
}

.ah-web-pricing-row > div > span {
  grid-row: 1 / span 2;
  color: var(--web-cyan);
  font-family: var(--ah-font-mono, "IBM Plex Mono", monospace);
  font-size: 0.68rem;
  font-weight: 800;
}

.ah-web-pricing-row strong {
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.ah-web-pricing-row small {
  margin-top: 5px;
  color: #8996aa;
  font-size: 0.75rem;
}

.ah-web-pricing-row > p {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 780;
}

.ah-web-pricing-row > a {
  justify-self: end;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 730;
  text-decoration: none;
}

.ah-web-pricing-row--specialized {
  background: linear-gradient(90deg, rgba(86, 87, 230, 0.08), transparent);
}

.ah-web-pricing-note {
  max-width: 850px;
  margin: 24px 0 0;
  color: #8996aa;
  font-size: 0.82rem;
  line-height: 1.65;
}

/* First year */
.ah-web-year {
  color: #fff;
  background: var(--web-brand-deep);
}

.ah-web-year .ah-web-eyebrow {
  color: var(--web-lime);
}

.ah-web-year h2 {
  color: #fff;
}

.ah-web-year__copy > p:last-child {
  color: #d2d7f4;
}

.ah-web-year__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(50px, 7vw, 96px);
  align-items: start;
}

.ah-web-year__scope {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(11, 16, 32, 0.2);
}

.ah-web-year__scope > div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ah-web-year__scope span {
  color: #c9cff3;
  font-family: var(--ah-font-mono, "IBM Plex Mono", monospace);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ah-web-year__scope strong {
  font-size: 0.92rem;
  line-height: 1.5;
}

.ah-web-year__scope > p {
  margin: 0;
  padding: 20px 22px;
  color: #d2d7f4;
  font-size: 0.78rem;
  line-height: 1.65;
}

.ah-web-renewal {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.ah-web-renewal h3 {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.ah-web-renewal > p {
  margin: 0;
  color: #d2d7f4;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Factors */
.ah-web-factor-list {
  border-top: 1px solid var(--web-border);
}

/* Foundation */
.ah-web-foundation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 46px;
  border-top: 1px solid var(--web-border);
}

.ah-web-foundation-grid article {
  min-height: 310px;
  padding: 30px 28px 32px 0;
}

.ah-web-foundation-grid article + article {
  padding-left: 28px;
  border-left: 1px solid var(--web-border);
}

.ah-web-foundation-grid h3 {
  margin: 22px 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.ah-web-foundation-grid p {
  margin: 0;
  color: var(--web-muted);
  font-size: 0.9rem;
  line-height: 1.68;
}

.ah-web-foundation-grid .ah-web-link {
  margin-top: 18px;
}

/* FAQ */
.ah-web-faq__list {
  border-top: 1px solid var(--web-border);
}

.ah-web-faq details {
  border-bottom: 1px solid var(--web-border);
}

.ah-web-faq summary {
  position: relative;
  padding: 24px 46px 24px 0;
  color: var(--web-ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 730;
  line-height: 1.5;
  list-style: none;
}

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

.ah-web-faq summary::after {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 24px;
  height: 24px;
  color: var(--web-brand);
  content: "+";
  font-size: 1.35rem;
  line-height: 22px;
  text-align: center;
  transform: translateY(-50%);
}

.ah-web-faq details[open] summary::after {
  content: "−";
}

.ah-web-faq details p {
  max-width: 720px;
  margin: -4px 0 24px;
  color: var(--web-muted);
  font-size: 0.91rem;
  line-height: 1.72;
}

/* Final CTA */
.ah-web-final {
  padding: clamp(76px, 8vw, 112px) 0;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(32, 199, 214, 0.16), transparent 28%),
    var(--web-dark);
}

.ah-web-final .ah-web-eyebrow {
  color: var(--web-cyan);
}

.ah-web-final h2 {
  max-width: 860px;
  color: #fff;
}

.ah-web-final__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: 52px;
  align-items: end;
}

.ah-web-final__inner > div:first-child > p:last-child {
  color: #aeb9ca;
}

.ah-web-final__actions {
  justify-content: flex-end;
}

/* Progressive emphasis */
.ah-web-type-story {
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.ah-web-type-story.is-current {
  border-color: rgba(86, 87, 230, 0.34);
  box-shadow: 0 26px 76px rgba(11, 16, 32, 0.11);
}

.ah-web-type-story--dark.is-current {
  border-color: rgba(32, 199, 214, 0.34);
}

/* Dark theme support: tolerate current/future attribute naming. */
html[data-theme="dark"] .ah-web-page,
html[data-color-theme="dark"] .ah-web-page,
html[data-ah-theme="dark"] .ah-web-page,
body[data-theme="dark"] .ah-web-page {
  --web-bg: #0b1020;
  --web-surface: #101629;
  --web-soft: #111a2d;
  --web-ink: #f6f8fc;
  --web-muted: #aeb9ca;
  --web-border: #26324a;
  --web-shadow: 0 28px 90px rgba(0, 0, 0, 0.26);
  --web-shadow-soft: 0 16px 50px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .ah-web-hero,
html[data-color-theme="dark"] .ah-web-hero,
html[data-ah-theme="dark"] .ah-web-hero,
body[data-theme="dark"] .ah-web-hero {
  background:
    radial-gradient(circle at 92% 12%, rgba(32, 199, 214, 0.1), transparent 24%),
    radial-gradient(circle at 8% 5%, rgba(86, 87, 230, 0.14), transparent 28%),
    #0b1020;
}

html[data-theme="dark"] .ah-web-hero::before,
html[data-color-theme="dark"] .ah-web-hero::before,
html[data-ah-theme="dark"] .ah-web-hero::before,
body[data-theme="dark"] .ah-web-hero::before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

html[data-theme="dark"] .ah-web-hero-browser,
html[data-color-theme="dark"] .ah-web-hero-browser,
html[data-ah-theme="dark"] .ah-web-hero-browser,
body[data-theme="dark"] .ah-web-hero-browser {
  border-color: var(--web-dark-border);
  background: var(--web-dark-surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .ah-web-hero-browser__bar,
html[data-color-theme="dark"] .ah-web-hero-browser__bar,
html[data-ah-theme="dark"] .ah-web-hero-browser__bar,
body[data-theme="dark"] .ah-web-hero-browser__bar,
html[data-theme="dark"] .ah-web-hero-browser__footer,
html[data-color-theme="dark"] .ah-web-hero-browser__footer,
html[data-ah-theme="dark"] .ah-web-hero-browser__footer,
body[data-theme="dark"] .ah-web-hero-browser__footer {
  border-color: var(--web-dark-border);
  background: #101629;
}

html[data-theme="dark"] .ah-web-btn--secondary,
html[data-color-theme="dark"] .ah-web-btn--secondary,
html[data-ah-theme="dark"] .ah-web-btn--secondary,
body[data-theme="dark"] .ah-web-btn--secondary {
  color: var(--web-ink);
  border-color: var(--web-border);
  background: rgba(16, 22, 41, 0.7);
}

html[data-theme="dark"] .ah-web-types__rail,
html[data-color-theme="dark"] .ah-web-types__rail,
html[data-ah-theme="dark"] .ah-web-types__rail,
body[data-theme="dark"] .ah-web-types__rail,
html[data-theme="dark"] .ah-web-type-story:nth-child(even):not(.ah-web-type-story--dark),
html[data-color-theme="dark"] .ah-web-type-story:nth-child(even):not(.ah-web-type-story--dark),
html[data-ah-theme="dark"] .ah-web-type-story:nth-child(even):not(.ah-web-type-story--dark),
body[data-theme="dark"] .ah-web-type-story:nth-child(even):not(.ah-web-type-story--dark) {
  background: #101629;
}

html[data-theme="dark"] .ah-web-type-story--system,
html[data-color-theme="dark"] .ah-web-type-story--system,
html[data-ah-theme="dark"] .ah-web-type-story--system,
body[data-theme="dark"] .ah-web-type-story--system {
  background: #101629;
}

html[data-theme="dark"] .ah-web-system,
html[data-color-theme="dark"] .ah-web-system,
html[data-ah-theme="dark"] .ah-web-system,
body[data-theme="dark"] .ah-web-system {
  border-color: var(--web-dark-border);
  background: #111a2d;
}

html[data-theme="dark"] .ah-web-system__workspace,
html[data-color-theme="dark"] .ah-web-system__workspace,
html[data-ah-theme="dark"] .ah-web-system__workspace,
body[data-theme="dark"] .ah-web-system__workspace {
  color: #f7f9fc;
}

html[data-theme="dark"] .ah-web-system__nodes div,
html[data-color-theme="dark"] .ah-web-system__nodes div,
html[data-ah-theme="dark"] .ah-web-system__nodes div,
body[data-theme="dark"] .ah-web-system__nodes div {
  border-color: var(--web-dark-border);
  background: #151f34;
}

/* Responsive */
@media (max-width: 1180px) {
  .ah-web-container {
    width: min(1120px, calc(100% - 40px));
  }

  .ah-web-hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 40px;
  }

  .ah-web-types__layout {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 28px;
  }

  .ah-web-type-story {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ah-web-type-story__visual,
  .ah-web-system {
    order: -1;
  }

  .ah-web-type-story__image {
    max-height: 520px;
  }
}

@media (max-width: 1120px) {
  .ah-web-hero__grid {
    grid-template-columns: 1fr;
  }

  .ah-web-hero__copy {
    max-width: 780px;
  }

  .ah-web-hero__media {
    position: static;
    width: 100%;
    max-width: 820px;
    padding-top: 10px;
  }

  .ah-web-hero-browser {
    width: min(100%, 760px);
    margin-inline: 0;
  }
}

@media (max-width: 1024px) {
  .ah-web-process-layout,
  .ah-web-split,
  .ah-web-year__grid,
  .ah-web-final__inner {
    grid-template-columns: 1fr;
  }


  .ah-web-objectives,
  .ah-web-foundation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ah-web-objectives article:nth-child(3),
  .ah-web-foundation-grid article:nth-child(3) {
    border-left: 0;
  }

  .ah-web-objectives article:nth-child(n+3) {
    border-top: 1px solid var(--web-border);
  }

  .ah-web-foundation-grid article:nth-child(3) {
    border-top: 1px solid var(--web-border);
  }

  .ah-web-types__layout {
    grid-template-columns: 1fr;
  }

  .ah-web-types__rail,
  .ah-web-section-head--sticky {
    position: static;
  }

  .ah-web-types__rail {
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .ah-web-types__rail > p {
    display: none;
  }

  .ah-web-types__rail nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .ah-web-types__rail a {
    min-width: 150px;
    min-height: 52px;
    padding: 0 12px;
    border: 1px solid var(--web-border);
    border-radius: 12px;
    background: var(--web-surface);
  }

  .ah-web-pricing-row {
    grid-template-columns: 1fr auto;
    padding: 22px 0;
  }

  .ah-web-pricing-row > a {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .ah-web-year__scope {
    max-width: 760px;
  }

  .ah-web-renewal {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ah-web-final__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .ah-web-container {
    width: min(100% - 28px, 720px);
  }

  .ah-web-section {
    padding-block: 72px;
  }

  .ah-web-hero {
    padding-top: 58px;
  }

  .ah-web-hero > .ah-web-container {
    width: min(100% - 28px, 720px);
  }

  .ah-web-hero-browser {
    border-radius: 20px;
  }

  .ah-web-hero-browser__bar {
    min-height: 42px;
    padding-inline: 13px;
  }

  .ah-web-hero__copy h1 {
    font-size: clamp(3rem, 12vw, 4.7rem);
  }

  .ah-web-hero__prices {
    align-items: stretch;
  }

  .ah-web-hero__prices i {
    height: auto;
  }


  .ah-web-objectives,
  .ah-web-foundation-grid,
  .ah-web-included {
    grid-template-columns: 1fr;
  }

  .ah-web-objectives article,
  .ah-web-objectives article + article,
  .ah-web-foundation-grid article,
  .ah-web-foundation-grid article + article,
  .ah-web-included > article,
  .ah-web-included > article:nth-child(even) {
    padding: 24px 0;
    border-left: 0;
    border-top: 0;
    border-bottom: 1px solid var(--web-border);
  }

  .ah-web-type-story {
    padding: 24px;
    border-radius: 24px;
  }

  .ah-web-type-story__image {
    border-radius: 15px;
  }

  .ah-web-system__body {
    grid-template-columns: 1fr;
  }

  .ah-web-system__body nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .ah-web-system__body nav span:nth-of-type(n+3) {
    display: none;
  }

  .ah-web-process li,
  .ah-web-factor-list article {
    grid-template-columns: 42px 1fr;
  }

  .ah-web-pricing-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ah-web-pricing-row > a {
    grid-column: auto;
  }

  .ah-web-year__scope > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ah-web-final__inner {
    gap: 30px;
  }
}

@media (max-width: 520px) {
  .ah-web-container {
    width: min(100% - 24px, 480px);
  }

  .ah-web-section,
  .ah-web-section--tight {
    padding-block: 62px;
  }

  .ah-web-hero {
    padding-top: 46px;
    padding-bottom: 70px;
  }

  .ah-web-hero > .ah-web-container {
    width: min(100% - 24px, 480px);
  }

  .ah-web-hero__media {
    padding-top: 4px;
  }

  .ah-web-hero-browser {
    border-radius: 16px;
  }

  .ah-web-hero-browser__bar {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }

  .ah-web-hero-browser__title {
    text-align: left;
  }

  .ah-web-hero-browser__meta {
    display: none;
  }

  .ah-web-hero-browser__footer {
    justify-content: flex-start;
    gap: 5px 8px;
    min-height: 44px;
    padding: 9px 12px;
    font-size: 0.55rem;
    text-align: left;
  }

  .ah-web-hero__copy h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
    letter-spacing: -0.06em;
  }

  .ah-web-hero__lead {
    margin-top: 20px;
    font-size: 1rem;
  }

  .ah-web-hero__prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .ah-web-hero__prices i {
    display: none;
  }

  .ah-web-hero__prices > div {
    padding: 12px;
    border: 1px solid var(--web-border);
    border-radius: 12px;
    background: var(--web-surface);
  }

  .ah-web-actions,
  .ah-web-final__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ah-web-btn {
    width: 100%;
  }

  .ah-web-proof {
    display: grid;
  }


  .ah-web-section-head h2,
  .ah-web-final h2,
  .ah-web-year h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .ah-web-types__intro {
    padding-bottom: 34px;
  }

  .ah-web-types__rail nav {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 72%);
  }

  .ah-web-type-story {
    padding: 18px;
  }

  .ah-web-type-story h3 {
    font-size: 2rem;
  }

  .ah-web-type-story__actions {
    display: grid;
    align-items: start;
  }

  .ah-web-system__top {
    padding-inline: 14px;
    font-size: 0.56rem;
  }

  .ah-web-system__workspace {
    padding: 18px;
  }

  .ah-web-system__nodes {
    grid-template-columns: 1fr;
  }

  .ah-web-system__nodes i {
    display: none;
  }

  .ah-web-system__nodes div {
    min-height: 72px;
  }

  .ah-web-included > article {
    grid-template-columns: 38px 1fr;
    gap: 10px;
  }

  .ah-web-pricing-row > div {
    grid-template-columns: 34px 1fr;
  }

  .ah-web-renewal {
    margin-top: 40px;
  }

  .ah-web-faq summary {
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-web-page *,
  .ah-web-page *::before,
  .ah-web-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
