/* Buttons, cards, badges, grids, hero, etc. */

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-brand-green), var(--color-accent) 52%, var(--color-brand-blue));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(18, 143, 196, 0.28);
}

.btn--primary:hover {
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(18, 143, 196, 0.36);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--color-ghost-fill);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  background: var(--color-ghost-fill-hover);
  color: var(--color-text);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent-dim);
  color: var(--color-accent);
}

.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 0.95rem 1.85rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--color-accent-dim);
  color: var(--color-accent);
  border: 1px solid rgba(18, 143, 196, 0.22);
}

.badge--soft {
  background: var(--color-ghost-fill);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

/* ===== Hero layout ===== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 2rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 0 1rem;
  }
}

.hero__title {
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 1rem 0 1.1rem;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--color-brand-green), var(--color-accent), var(--color-brand-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 34rem;
}

.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.hero__notes span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__notes span::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 700;
}

/* ===== Phone mock / QR card ===== */
.hero-visual {
  display: flex;
  justify-content: center;
}

.qr-card {
  position: relative;
  background: linear-gradient(160deg, #ffffff, #eef8fc);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  width: 100%;
  max-width: 22rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.qr-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(18, 143, 196, 0.32), transparent 60%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.qr-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--color-text);
}

.qr-card__sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}

.qr-card__placeholder {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), #eef8fc),
    repeating-linear-gradient(45deg, rgba(18, 143, 196, 0.06) 0 8px, transparent 8px 16px);
  border: 1px dashed rgba(18, 143, 196, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--color-text-faint);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
}

.qr-card__placeholder--real {
  background: #ffffff;
  border-style: solid;
  border-color: rgba(18, 143, 196, 0.16);
  padding: 0.9rem;
}

.qr-card__logo {
  width: min(8.2rem, 58%);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(18, 143, 196, 0.16);
}

.qr-card__code {
  width: 100%;
  max-width: 18rem;
  border-radius: 10px;
  image-rendering: pixelated;
}

.qr-card__hint {
  font-size: 0.78rem;
  color: var(--color-text-faint);
  margin: 0;
}

/* ===== Stats ===== */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.stat {
  min-width: 7rem;
}

.stat__value {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-sans);
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat__label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

/* ===== Product visuals ===== */
.visual-band {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid rgba(18, 143, 196, 0.14);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 18% 18%, rgba(23, 190, 139, 0.12), transparent 32%),
    linear-gradient(135deg, #ffffff, #f3fbff 54%, #f8fbff);
  box-shadow: var(--shadow-card);
}

.visual-copy .section__lead {
  max-width: 31rem;
}

.visual-stage {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(20rem, 1fr);
  gap: 1.25rem;
  align-items: center;
}

@media (max-width: 1060px) {
  .visual-band,
  .visual-stage {
    grid-template-columns: 1fr;
  }
}

.device-hero-mini {
  display: grid;
  grid-template-columns: 1fr 4.25rem;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(23, 190, 139, 0.12), rgba(18, 143, 196, 0.1));
  border: 1px solid rgba(18, 143, 196, 0.16);
}

.device-hero-mini h3,
.device-hero-mini p {
  margin: 0;
}

.device-hero-mini h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--color-text);
}

.device-hero-mini p {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: var(--color-text-faint);
}

.device-hero-mini__meta {
  margin-top: 0 !important;
  margin-bottom: 0.35rem !important;
  color: var(--color-accent) !important;
  font-weight: 700;
}

.device-hero-mini img {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 0.65rem;
  background: #ffffff;
  object-fit: cover;
}

.device-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.device-facts span {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 3.4rem;
  padding: 0.75rem;
  border-radius: 0.85rem;
  background: #f7fbfd;
  border: 1px solid rgba(18, 143, 196, 0.1);
  font-size: 0.72rem;
  color: var(--color-text);
}

.device-facts b {
  font-size: 0.68rem;
  color: var(--color-text-faint);
}

.device-actions-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.device-actions-mini span {
  display: grid;
  place-items: center;
  min-height: 3rem;
  border-radius: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.ticket-flow {
  display: grid;
  gap: 0.5rem;
}

.ticket-step {
  position: relative;
  padding: 0.6rem 0.75rem 0.6rem 1.8rem;
  border-radius: 0.75rem;
  background: #f7fbfd;
  color: var(--color-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.ticket-step::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #cbd5e1;
  transform: translateY(-50%);
}

.ticket-step--done::before {
  background: var(--color-brand-green);
}

.ticket-step--active {
  color: var(--color-accent);
  background: var(--color-accent-dim);
}

.ticket-step--active::before {
  background: var(--color-accent);
}

.dashboard-mock {
  overflow: hidden;
  border-radius: 1.3rem;
  background: #ffffff;
  border: 1px solid rgba(18, 143, 196, 0.14);
  box-shadow: 0 18px 50px rgba(20, 43, 69, 0.1);
}

.dashboard-mock__bar {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background: #f8fbfd;
}

.dashboard-mock__bar span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #cbd5e1;
}

.dashboard-mock__bar span:nth-child(1) {
  background: #ff8a65;
}

.dashboard-mock__bar span:nth-child(2) {
  background: #ffd166;
}

.dashboard-mock__bar span:nth-child(3) {
  background: var(--color-brand-green);
}

.dashboard-mock__bar strong {
  margin-left: auto;
  color: var(--color-text);
  font-size: 0.82rem;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem;
}

.dashboard-kpis div {
  padding: 0.9rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(18, 143, 196, 0.1), rgba(23, 190, 139, 0.08));
}

.dashboard-kpis b,
.dashboard-kpis span {
  display: block;
}

.dashboard-kpis b {
  font-size: 1.35rem;
  color: var(--color-text);
  line-height: 1;
}

.dashboard-kpis span {
  margin-top: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.72rem;
}

.dashboard-table {
  padding: 0 1rem 1rem;
}

.dashboard-row {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.9fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.dashboard-row--head {
  color: var(--color-text-faint);
  font-weight: 700;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text);
}

.status-dot::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.status-dot--green::before {
  background: var(--color-brand-green);
}

.status-dot--blue::before {
  background: var(--color-brand-blue);
}

.status-dot--orange::before {
  background: #f59e0b;
}

@media (max-width: 640px) {
  .visual-band {
    padding: 1.35rem;
    border-radius: var(--radius-lg);
  }

  .dashboard-kpis,
  .dashboard-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Grids ===== */
.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.grid-4 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== Card ===== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.card:hover {
  border-color: rgba(79, 110, 247, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.card__meta {
  font-size: 0.78rem;
  color: var(--color-text-faint);
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.card__text {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ===== Section ===== */
.section {
  margin-top: 4.5rem;
}

.section--tight {
  margin-top: 3rem;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  margin-bottom: 1.75rem;
}

.section__head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__title {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.section__lead {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 38rem;
  margin: 0.6rem 0 0;
  line-height: 1.65;
}

.section__link {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== Feature ===== */
.feature {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s, transform 0.25s var(--ease-out);
}

.feature:hover {
  border-color: rgba(79, 110, 247, 0.35);
  transform: translateY(-2px);
}

.feature__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
  font-weight: 700;
}

.feature__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.feature__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===== Category chips ===== */
.cat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 540px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.35rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out);
}

.cat-chip:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-text);
  transform: translateY(-2px);
}

.cat-chip__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--color-accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.cat-chip__name {
  font-size: 0.92rem;
  font-weight: 600;
}

.cat-chip__sub {
  font-size: 0.72rem;
  color: var(--color-text-faint);
}

/* ===== Steps ===== */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.35;
}

.step__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.step__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===== Highlight band ===== */
.highlight {
  margin-top: 4.5rem;
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(79, 110, 247, 0.95), rgba(124, 58, 237, 0.92));
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(79, 110, 247, 0.3);
}

.highlight::before,
.highlight::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.highlight::before {
  background: #ffffff;
  top: -120px;
  left: -80px;
}

.highlight::after {
  background: #a78bfa;
  bottom: -120px;
  right: -80px;
}

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

.highlight__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.highlight__lead {
  font-size: 1.05rem;
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  opacity: 0.9;
}

.highlight .btn--primary {
  background: #ffffff;
  color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.highlight .btn--primary:hover {
  color: var(--color-accent-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.highlight .btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.highlight .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ===== Scene banner ===== */
.scene-banner {
  position: relative;
  overflow: hidden;
  margin-top: 4.5rem;
  min-height: 26rem;
  border-radius: var(--radius-xl);
  background: #eef8fc;
  box-shadow: 0 24px 70px rgba(18, 143, 196, 0.16);
}

.scene-banner img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 26rem;
  object-fit: cover;
}

.scene-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 22, 34, 0.42), rgba(5, 22, 34, 0.05) 55%, rgba(5, 22, 34, 0));
  pointer-events: none;
}

.scene-banner__caption {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  z-index: 1;
  max-width: 30rem;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(5, 22, 34, 0.28);
}

.scene-banner__caption h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.scene-banner__caption p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.92;
}

@media (max-width: 720px) {
  .scene-banner {
    min-height: 22rem;
    border-radius: var(--radius-lg);
  }

  .scene-banner img {
    min-height: 22rem;
    object-position: 42% center;
  }

  .scene-banner::after {
    background: linear-gradient(0deg, rgba(5, 22, 34, 0.64), rgba(5, 22, 34, 0.08) 62%, rgba(5, 22, 34, 0));
  }

  .scene-banner__caption {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
  }
}

/* ===== Phone mockup (used in features) ===== */
.phone-mock {
  width: 100%;
  max-width: 18rem;
  margin: 0 auto;
  aspect-ratio: 9 / 18;
  border-radius: 2rem;
  background: linear-gradient(160deg, #ffffff, #f3f4f8);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.phone-mock--device {
  max-width: 19rem;
  aspect-ratio: auto;
  min-height: 34rem;
  padding: 1.1rem;
  border: 8px solid #102436;
  box-shadow: 0 24px 70px rgba(16, 36, 54, 0.18);
}

.phone-mock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.25rem 0.45rem;
  font-size: 0.78rem;
  color: var(--color-text-faint);
}

.phone-mock__top strong {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(23, 190, 139, 0.14);
  color: #047857;
  font-size: 0.72rem;
}

.phone-mock__bar {
  height: 12px;
  width: 60%;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.phone-mock__row {
  height: 14px;
  border-radius: 6px;
  background: rgba(79, 110, 247, 0.1);
}

.phone-mock__row.short {
  width: 60%;
}

.phone-mock__row.tall {
  height: 80px;
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.18), rgba(124, 58, 237, 0.12));
}

.phone-mock__row.tag {
  height: 22px;
  width: 38%;
  background: var(--color-accent-soft);
  border: 1px solid rgba(79, 110, 247, 0.2);
}

/* ===== Lifecycle map ===== */
.lifecycle-map {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(18, 143, 196, 0.16);
  background: linear-gradient(135deg, #ffffff, #f2fbff);
  box-shadow: var(--shadow-card);
}

.lifecycle-step {
  position: relative;
  min-height: 11rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.lifecycle-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.75rem;
  top: 50%;
  z-index: 2;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.78rem;
  transform: translateY(-50%);
  box-shadow: 0 8px 20px rgba(18, 143, 196, 0.2);
}

.lifecycle-step__icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--color-brand-green), var(--color-accent));
  color: #ffffff;
  font-weight: 800;
}

.lifecycle-step strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--color-text);
  font-size: 1rem;
}

.lifecycle-step p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (max-width: 1020px) {
  .lifecycle-map {
    grid-template-columns: 1fr;
  }

  .lifecycle-step {
    min-height: auto;
  }

  .lifecycle-step:not(:last-child)::after {
    content: "↓";
    right: 50%;
    top: auto;
    bottom: -1.15rem;
    transform: translateX(50%);
  }
}

/* ===== FAQ (details/summary) ===== */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 1.25rem;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: rgba(79, 110, 247, 0.35);
  background: var(--color-bg-elevated);
}

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-item > summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform 0.2s;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] > summary::after {
  content: "−";
}

.faq-item__body {
  padding: 0 0 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.faq-item__body p {
  margin: 0 0 0.5rem;
}

/* ===== Prose / typography for legal pages ===== */
.prose {
  max-width: 48rem;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.75rem;
  font-weight: 700;
}

.prose h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

.prose p,
.prose li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ===== Alert / Notice ===== */
.notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(79, 110, 247, 0.25);
  background: var(--color-accent-soft);
  font-size: 0.9rem;
  color: var(--color-text);
  margin: 1.5rem 0;
}

.notice--warn {
  border-color: rgba(255, 149, 0, 0.3);
  background: rgba(255, 149, 0, 0.08);
  color: #8a4a00;
}

/* ===== Tag ===== */
.tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  background: var(--color-ghost-fill);
  color: var(--color-text-muted);
}

.tag--accent {
  background: var(--color-accent-dim);
  color: var(--color-accent);
}

.tag--warm {
  background: rgba(255, 149, 0, 0.14);
  color: #b45309;
}

.tag--success {
  background: rgba(52, 199, 89, 0.14);
  color: #166534;
}

/* ===== Info row (about/contact) ===== */
.info-row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.95rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row__key {
  color: var(--color-text-faint);
  font-size: 0.85rem;
  font-weight: 500;
}

.info-row__val {
  color: var(--color-text);
}

@media (max-width: 540px) {
  .info-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
