/* The public website of Afia. */
:root {
  --pub-teal-950: #042f2c;
  --pub-teal-900: #083d3a;
  --pub-teal-800: #0b5f59;
  --pub-teal-700: #0f766e;
  --pub-teal-600: #0f9488;
  --pub-teal-400: #2dd4bf;
  --pub-teal-200: #99f6e4;
  --pub-mint: #effcf9;
  --pub-ink: #0b1f24;
  --pub-muted: #5b6b70;
  --pub-line: #e3ecec;
  --pub-accent: #f97316;
  --pub-bg: #ffffff;
  --pub-radius: 1.25rem;
  --pub-shadow: 0 18px 50px -20px rgba(4, 47, 44, 0.35);
}

html {
  scroll-behavior: smooth;
}

body.pub {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  color: var(--pub-ink);
  background: var(--pub-bg);
  font-size: 1rem;
  line-height: 1.75;
  /* Nothing drifting in from the side may widen the page on a phone. */
  overflow-x: clip;
}

.pub-skip {
  position: absolute;
  z-index: 2000;
  inset-inline-start: 1rem;
  top: 1rem;
  padding: 0.5rem 1rem;
  color: #fff;
  background: var(--pub-teal-700);
  border-radius: 0.5rem;
}

/* ---- Header */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--pub-line);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.pub-header .navbar {
  padding: 0.85rem 0;
  transition: padding 0.35s ease;
}

.pub-header.is-transparent {
  position: fixed;
  inset-inline: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.pub-header.is-transparent.is-scrolled,
.pub-header.is-transparent.menu-open {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--pub-line);
  box-shadow: 0 8px 30px -18px rgba(4, 47, 44, 0.4);
}

.pub-header.is-scrolled .navbar {
  padding: 0.5rem 0;
}

.pub-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--pub-teal-900);
  text-decoration: none;
}

.pub-brand img {
  border-radius: 27%;
  box-shadow: 0 6px 16px -6px rgba(15, 118, 110, 0.6);
  transition: transform 0.4s ease;
}

.pub-brand:hover img {
  transform: rotate(-6deg) scale(1.05);
}

.pub-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.pub-brand strong {
  font-size: 1.5rem;
  font-weight: 800;
}

.pub-brand small {
  margin-top: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--pub-teal-600);
}

.pub-header .nav-link {
  position: relative;
  padding: 0.5rem 0.95rem !important;
  font-weight: 500;
  color: var(--pub-ink);
  transition: color 0.2s ease;
}

.pub-header .nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0.95rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--pub-teal-600);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.pub-header .nav-link:hover,
.pub-header .nav-link.active {
  color: var(--pub-teal-700);
}

.pub-header .nav-link:hover::after,
.pub-header .nav-link.active::after {
  transform: scaleX(1);
}

/* Over the banner, before scrolling, the header is white on the picture. */
.pub-header.is-transparent:not(.is-scrolled):not(.menu-open) .nav-link,
.pub-header.is-transparent:not(.is-scrolled):not(.menu-open) .pub-brand,
.pub-header.is-transparent:not(.is-scrolled):not(.menu-open) .pub-lang {
  color: #fff;
}

.pub-header.is-transparent:not(.is-scrolled):not(.menu-open) .pub-brand small {
  color: var(--pub-teal-200);
}

.pub-header.is-transparent:not(.is-scrolled):not(.menu-open) .nav-link::after {
  background: #fff;
}

.pub-header.is-transparent:not(.is-scrolled):not(.menu-open) .pub-burger span,
.pub-header.is-transparent:not(.is-scrolled):not(.menu-open) .pub-burger span::before,
.pub-header.is-transparent:not(.is-scrolled):not(.menu-open) .pub-burger span::after {
  background: #fff;
}

.pub-lang {
  font-weight: 500;
  color: var(--pub-ink);
  border: 0;
}

.pub-cta {
  padding: 0.55rem 1.4rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--pub-teal-600), var(--pub-teal-800));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(15, 118, 110, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-cta:hover,
.pub-cta:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(15, 118, 110, 0.9);
}

.navbar-toggler {
  border: 0;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.pub-burger span,
.pub-burger span::before,
.pub-burger span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pub-ink);
  border-radius: 2px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.pub-burger span {
  position: relative;
}

.pub-burger span::before,
.pub-burger span::after {
  content: "";
  position: absolute;
}

.pub-burger span::before { top: -7px; }
.pub-burger span::after { top: 7px; }

@media (max-width: 991.98px) {
  .pub-header .navbar-collapse {
    padding: 1rem 0 0.5rem;
  }

  .pub-actions {
    padding-top: 0.75rem;
    border-top: 1px solid var(--pub-line);
  }
}

/* ---- The banner */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  overflow: hidden;
  color: #fff;
  background: var(--pub-teal-900);
  isolation: isolate;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  visibility: hidden;
  opacity: 0;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}

.hero-slide.is-active {
  z-index: 2;
  visibility: visible;
  opacity: 1;
  transition: opacity 1.1s ease;
}

.hero-slide.is-leaving {
  z-index: 1;
  visibility: visible;
}

.hero-image {
  position: absolute;
  inset: -2%;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

/* The slow drift of the picture, from slightly close to closer. */
.hero-slide.is-active .hero-image {
  animation: hero-zoom 9s ease-out both;
}

@keyframes hero-zoom {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(4, 47, 44, 0.85), rgba(4, 47, 44, 0.15) 55%, rgba(4, 47, 44, 0.45)),
    linear-gradient(90deg, rgba(4, 47, 44, 0.55), rgba(4, 47, 44, 0) 70%);
}

[dir="rtl"] .hero-shade {
  background:
    linear-gradient(to top, rgba(4, 47, 44, 0.85), rgba(4, 47, 44, 0.15) 55%, rgba(4, 47, 44, 0.45)),
    linear-gradient(270deg, rgba(4, 47, 44, 0.55), rgba(4, 47, 44, 0) 70%);
}

.hero-art .hero-shade {
  background: linear-gradient(to top, rgba(4, 47, 44, 0.55), rgba(4, 47, 44, 0) 50%);
}

/* The drawing behind a slide without a photo. */
.hero-art-1 { background: radial-gradient(120% 120% at 80% 10%, #14b8a6 0%, #0f766e 40%, #042f2c 100%); }
.hero-art-2 { background: radial-gradient(120% 120% at 20% 0%, #0ea5e9 0%, #0f766e 45%, #042f2c 100%); }
.hero-art-3 { background: radial-gradient(120% 120% at 70% 100%, #34d399 0%, #0b5f59 45%, #042f2c 100%); }

.hero-drawing {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
  animation: blob-float 14s ease-in-out infinite alternate;
}

.blob-1 { width: 32rem; height: 32rem; inset-inline-end: -8rem; top: -10rem; background: radial-gradient(circle, rgba(153, 246, 228, 0.55), transparent 70%); }
.blob-2 { width: 26rem; height: 26rem; inset-inline-start: -6rem; bottom: -8rem; background: radial-gradient(circle, rgba(45, 212, 191, 0.5), transparent 70%); animation-duration: 18s; }
.blob-3 { width: 14rem; height: 14rem; inset-inline-end: 30%; bottom: 12%; background: radial-gradient(circle, rgba(249, 115, 22, 0.45), transparent 70%); animation-duration: 11s; }

@keyframes blob-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2rem, 1.5rem, 0) scale(1.12); }
}

.hero-pulse {
  position: absolute;
  inset-inline: 0;
  bottom: 22%;
  width: 100%;
  height: 160px;
  opacity: 0.5;
}

.hero-pulse path {
  fill: none;
  stroke: #99f6e4;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1700;
  stroke-dashoffset: 1700;
}

.hero-slide.is-active .hero-pulse path {
  animation: pulse-draw 3.2s ease-out 0.3s forwards, pulse-glow 2.4s ease-in-out 3.5s infinite;
}

@keyframes pulse-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes pulse-glow {
  50% { stroke: #fff; filter: drop-shadow(0 0 6px rgba(153, 246, 228, 0.9)); }
}

.hero-floats {
  position: absolute;
  inset: 0;
}

.hero-float {
  position: absolute;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.2rem;
  backdrop-filter: blur(6px);
  animation: float-bob 7s ease-in-out infinite;
}

.hero-float svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-float:nth-child(1) { inset-inline-end: 12%; top: 22%; }
.hero-float:nth-child(2) { inset-inline-end: 26%; top: 38%; animation-delay: -1.5s; width: 3.2rem; height: 3.2rem; }
.hero-float:nth-child(3) { inset-inline-end: 8%; top: 56%; animation-delay: -3s; }
.hero-float:nth-child(4) { inset-inline-end: 34%; top: 16%; animation-delay: -4.5s; width: 3rem; height: 3rem; }
.hero-float:nth-child(5) { inset-inline-end: 20%; top: 66%; animation-delay: -2.2s; width: 3.4rem; height: 3.4rem; }
.hero-float:nth-child(6) { inset-inline-end: 40%; top: 58%; animation-delay: -5.2s; width: 2.8rem; height: 2.8rem; }

@keyframes float-bob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -18px, 0) rotate(4deg); }
}

@media (max-width: 767.98px) {
  .hero-float:nth-child(n + 4) { display: none; }
  .hero-float { opacity: 0.6; }
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: min(92vh, 860px);
  padding-top: 6rem;
  padding-bottom: 7rem;
}

.hero-text {
  max-width: 40rem;
}

.hero-title {
  margin-bottom: 1.1rem;
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: rgba(255, 255, 255, 0.88);
}

/* The text of a slide rises in, line after line. */
.hero-title,
.hero-subtitle,
.hero-button {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

.hero-slide.is-active .hero-title,
.hero-slide.is-active .hero-subtitle,
.hero-slide.is-active .hero-button {
  animation: rise-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-slide.is-active .hero-title { animation-delay: 0.35s; }
.hero-slide.is-active .hero-subtitle { animation-delay: 0.55s; }
.hero-slide.is-active .hero-button { animation-delay: 0.75s; }

@keyframes rise-in {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.9rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pub-teal-900);
  background: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hero-button:hover,
.hero-button:focus-visible {
  color: var(--pub-teal-900);
  background: var(--pub-teal-200);
  transform: translateY(-3px);
}

.hero-button svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

[dir="rtl"] .hero-button svg {
  transform: scaleX(-1);
}

.hero-button:hover svg {
  transform: translateX(4px);
}

[dir="rtl"] .hero-button:hover svg {
  transform: scaleX(-1) translateX(4px);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-arrow svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-prev { inset-inline-start: 1.25rem; }
.hero-next { inset-inline-end: 1.25rem; }

[dir="rtl"] .hero-arrow svg {
  transform: scaleX(-1);
}

@media (max-width: 767.98px) {
  .hero-arrow { display: none; }
}

.hero-dots {
  position: absolute;
  z-index: 4;
  bottom: 6.5rem;
  inset-inline-start: 50%;
  display: flex;
  gap: 0.6rem;
  transform: translateX(-50%);
}

[dir="rtl"] .hero-dots {
  transform: translateX(50%);
}

/* Each dot fills while its slide is on, showing how long until the next. */
.hero-dot {
  width: 2.6rem;
  height: 0.35rem;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  border-radius: 999px;
}

.hero-dot span {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: inline-start;
}

[dir="ltr"] .hero-dot span { transform-origin: left; }
[dir="rtl"] .hero-dot span { transform-origin: right; }

.hero-dot.is-active span {
  animation: dot-fill var(--hero-interval, 6500ms) linear forwards;
}

.hero.is-paused .hero-dot.is-active span {
  animation-play-state: paused;
}

@keyframes dot-fill {
  to { transform: scaleX(1); }
}

.hero-scroll {
  position: absolute;
  z-index: 4;
  bottom: 3.3rem;
  inset-inline-end: 2rem;
  width: 1.6rem;
  height: 2.6rem;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
}

.hero-scroll span {
  position: absolute;
  top: 0.45rem;
  inset-inline-start: 50%;
  width: 0.25rem;
  height: 0.5rem;
  margin-inline-start: -0.125rem;
  background: #fff;
  border-radius: 2px;
  animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(0.9rem); }
}

.hero-wave {
  position: absolute;
  z-index: 3;
  bottom: -1px;
  inset-inline: 0;
  width: 100%;
  height: 70px;
}

.hero-wave path {
  fill: var(--pub-bg);
}

/* ---- Sections */
.pub-section {
  padding: 5.5rem 0;
}

.pub-section-tint {
  background: linear-gradient(180deg, var(--pub-mint), #fff);
}

.pub-heading {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.pub-heading h2,
.split-text h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--pub-teal-900);
}

.pub-heading h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 0.3rem;
  margin: 0.9rem auto 0;
  background: linear-gradient(90deg, var(--pub-teal-400), var(--pub-accent));
  border-radius: 999px;
}

.pub-heading p {
  font-size: 1.1rem;
  color: var(--pub-muted);
}

/* Sections slide up and fade in once, as they come into view. */
.motion .reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.8s ease var(--delay, 0ms), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms);
}

.motion .reveal-side {
  transform: translate3d(-40px, 0, 0) scale(0.97);
}

[dir="rtl"] .motion .reveal-side {
  transform: translate3d(40px, 0, 0) scale(0.97);
}

.motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.feature-card {
  position: relative;
  height: 100%;
  padding: 2rem 1.75rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--pub-line);
  border-radius: var(--pub-radius);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--pub-mint), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--pub-shadow);
  transform: translateY(-8px);
}

.motion .feature-card.reveal.is-visible:hover {
  transform: translateY(-8px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card > * {
  position: relative;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pub-teal-400), var(--pub-teal-700));
  border-radius: 1.1rem;
  box-shadow: 0 12px 24px -12px rgba(15, 118, 110, 0.9);
  transition: transform 0.35s ease;
}

.feature-card:hover .feature-icon {
  transform: rotate(-8deg) scale(1.08);
}

.feature-icon svg {
  width: 1.9rem;
  height: 1.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--pub-muted);
}

/* Numbers on a deep band. */
.pub-stats {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--pub-teal-950), var(--pub-teal-800));
}

.pub-stats-glow {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.35), transparent 65%);
}

.pub-stats-title {
  position: relative;
  margin-bottom: 3rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
}

.stat {
  position: relative;
  padding: 1.5rem 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--pub-radius);
}

.stat-value {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  direction: ltr;
  unicode-bidi: isolate;
}

.stat-label {
  margin-top: 0.5rem;
  color: var(--pub-teal-200);
}

/* A text beside a picture. */
.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  border-radius: var(--pub-radius);
  box-shadow: var(--pub-shadow);
}

.split-text .pub-button {
  margin-top: 0.5rem;
}

.pub-button {
  padding: 0.75rem 1.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--pub-teal-600), var(--pub-teal-800));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 26px -12px rgba(15, 118, 110, 0.9);
  transition: transform 0.25s ease;
}

.pub-button:hover,
.pub-button:focus-visible {
  color: #fff;
  transform: translateY(-3px);
}

.pub-prose {
  font-size: 1.08rem;
  color: #2d3d42;
}

.pub-prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--pub-teal-900);
}

.pub-prose ul {
  padding-inline-start: 0;
  list-style: none;
}

.pub-prose li {
  position: relative;
  padding-inline-start: 1.8rem;
  margin-bottom: 0.5rem;
}

.pub-prose li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--pub-teal-400);
  border: 3px solid var(--pub-mint);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--pub-teal-400);
}

/* The drawing of a phone showing a code. */
.code-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 26rem;
  background: radial-gradient(circle at 50% 50%, var(--pub-mint), transparent 70%);
}

.code-phone {
  position: relative;
  width: 15rem;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  background: linear-gradient(170deg, #fff, var(--pub-mint));
  border: 8px solid var(--pub-teal-900);
  border-radius: 2.5rem;
  box-shadow: var(--pub-shadow);
  animation: float-bob 8s ease-in-out infinite;
}

.code-phone-top {
  position: absolute;
  top: 0.6rem;
  inset-inline-start: 50%;
  width: 4rem;
  height: 0.45rem;
  margin-inline-start: -2rem;
  background: var(--pub-teal-900);
  border-radius: 999px;
}

.code-lock {
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pub-teal-400), var(--pub-teal-700));
  border-radius: 50%;
}

.code-lock svg,
.code-badge svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.code-digits {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  direction: ltr;
}

.code-digits span {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 2.3rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--pub-teal-900);
  background: #fff;
  border: 1px solid var(--pub-line);
  border-radius: 0.5rem;
}

.is-visible .code-digits span {
  animation: digit-pop 0.5s ease backwards;
}

.code-digits span:nth-child(2) { animation-delay: 0.1s; }
.code-digits span:nth-child(3) { animation-delay: 0.2s; }
.code-digits span:nth-child(4) { animation-delay: 0.3s; }
.code-digits span:nth-child(5) { animation-delay: 0.4s; }
.code-digits span:nth-child(6) { animation-delay: 0.5s; }

@keyframes digit-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.6); }
}

.code-bar {
  height: 0.4rem;
  margin-top: 1.5rem;
  overflow: hidden;
  background: var(--pub-line);
  border-radius: 999px;
}

.code-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--pub-teal-400), var(--pub-accent));
  transform-origin: left;
  animation: code-time 6s linear infinite;
}

@keyframes code-time {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.code-badge {
  position: absolute;
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  color: var(--pub-teal-700);
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: var(--pub-shadow);
  animation: float-bob 6s ease-in-out infinite;
}

.code-badge-1 { top: 12%; inset-inline-start: 12%; }
.code-badge-2 { bottom: 14%; inset-inline-end: 12%; color: var(--pub-accent); animation-delay: -3s; }

/* Steps joined by a line. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2.25rem 1.5rem 1.5rem;
  text-align: center;
  background: #fff;
  border-radius: var(--pub-radius);
  box-shadow: 0 10px 30px -22px rgba(4, 47, 44, 0.45);
}

.step-number {
  position: absolute;
  top: -1.4rem;
  inset-inline-start: 50%;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-inline-start: -1.4rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pub-teal-400), var(--pub-teal-700));
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 18px -8px rgba(15, 118, 110, 0.9);
}

.step h3 {
  margin: 0.5rem 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--pub-muted);
}

/* The closing band with a button. */
.cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, var(--pub-teal-700), var(--pub-teal-950));
  border-radius: calc(var(--pub-radius) * 1.4);
  box-shadow: var(--pub-shadow);
}

.cta > * {
  position: relative;
}

.cta h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
}

.cta p {
  margin: 0;
  color: var(--pub-teal-200);
  font-size: 1.1rem;
}

.cta-art {
  position: absolute !important;
  inset: 0;
  pointer-events: none;
}

.cta-art span {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: blob-float 12s ease-in-out infinite alternate;
}

.cta-art span:first-child { width: 22rem; height: 22rem; inset-inline-end: -6rem; top: -10rem; }
.cta-art span:last-child { width: 14rem; height: 14rem; inset-inline-end: 12rem; bottom: -9rem; animation-duration: 16s; }

.cta-button {
  padding: 0.85rem 2.2rem;
  font-weight: 700;
  color: var(--pub-teal-900);
  background: #fff;
  border: 0;
  border-radius: 999px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  color: var(--pub-teal-900);
  background: var(--pub-teal-200);
  transform: translateY(-3px);
}

/* ---- A page of its own */
.page-hero {
  position: relative;
  padding: 9rem 0 6rem;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(120% 140% at 85% 0%, #14b8a6, #0f766e 45%, #042f2c);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
}

.page-crumbs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--pub-teal-200);
}

.page-crumbs a {
  color: #fff;
  text-decoration: none;
}

.page-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-top: -4rem;
  background: #fff;
  border-radius: calc(var(--pub-radius) * 1.2);
  box-shadow: var(--pub-shadow);
  position: relative;
  z-index: 3;
}

.page-image {
  width: 100%;
  max-height: 26rem;
  margin-bottom: 2rem;
  object-fit: cover;
  border-radius: var(--pub-radius);
}

/* ---- Footer */
.pub-footer {
  padding: 4.5rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  background: var(--pub-teal-950);
}

.pub-brand-light {
  color: #fff;
}

.pub-brand-light small {
  color: var(--pub-teal-200);
}

.pub-footer-text {
  max-width: 28rem;
}

.pub-footer-title {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.pub-footer-links li {
  margin-bottom: 0.5rem;
}

.pub-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pub-footer a:hover {
  color: var(--pub-teal-200);
}

.pub-social {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pub-social:hover {
  background: var(--pub-teal-700);
  transform: translateY(-3px);
}

.pub-social svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pub-footer-bottom {
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

  .hero-title,
  .hero-subtitle,
  .hero-button {
    opacity: 1;
    transform: none;
  }

  .hero-pulse path {
    stroke-dashoffset: 0;
  }
}
