/* =============================================================
   Kepek — Extended layout & component styles
   Built on top of tokens.css. Adds layout helpers, page-level
   components, and animations for the static HTML frontend.
   ============================================================= */

/* =============================================================
   Layout primitives
   ============================================================= */
.container {
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}
@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}
@media (min-width: 1100px) {
  .container { padding-inline: 48px; }
}

.container-narrow { max-width: 720px; margin-inline: auto; padding-inline: var(--gutter-mobile); }
.container-wide   { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter-mobile); }

.section { padding-block: 96px; }
.section-sm { padding-block: 64px; }
.section-lg { padding-block: 128px; }
@media (max-width: 768px) {
  .section { padding-block: 64px; }
  .section-sm { padding-block: 48px; }
  .section-lg { padding-block: 80px; }
}

/* =============================================================
   Grid utilities
   ============================================================= */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-1 { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .sm\:grid-cols-1 { grid-template-columns: 1fr !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-full { grid-column: 1 / -1; }

/* =============================================================
   Flex utilities
   ============================================================= */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }
.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.gap-6 { gap: var(--s-6); }
.gap-7 { gap: var(--s-7); }
.gap-8 { gap: var(--s-8); }

/* =============================================================
   Spacing utilities (margin / padding)
   ============================================================= */
.m-0 { margin: 0; }
.mt-1 { margin-top: var(--s-1); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }
.mt-9 { margin-top: var(--s-9); }
.mb-1 { margin-bottom: var(--s-1); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-7 { margin-bottom: var(--s-7); }
.mb-8 { margin-bottom: var(--s-8); }
.mb-9 { margin-bottom: var(--s-9); }
.mx-auto { margin-inline: auto; }

.p-0 { padding: 0; }
.p-3 { padding: var(--s-3); }
.p-4 { padding: var(--s-4); }
.p-5 { padding: var(--s-5); }
.p-6 { padding: var(--s-6); }
.p-7 { padding: var(--s-7); }

/* =============================================================
   Text utilities
   ============================================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-fg-1 { color: var(--fg-1); }
.text-fg-2 { color: var(--fg-2); }
.text-fg-3 { color: var(--fg-3); }
.text-mint { color: var(--mint-600); }
.text-mint-700 { color: var(--mint-700); }
.text-warn { color: var(--warn-fg); }
.text-danger { color: var(--danger-fg); }
.text-white { color: var(--white); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* =============================================================
   Background utilities
   ============================================================= */
.bg-paper { background: var(--paper); }
.bg-mist { background: var(--mist); }
.bg-cloud { background: var(--cloud); }
.bg-white { background: var(--white); }
.bg-mint-50 { background: var(--mint-50); }
.bg-mint-100 { background: var(--mint-100); }
.bg-char { background: var(--char); }

/* =============================================================
   Display + position utilities
   ============================================================= */
.hidden { display: none; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-md { max-width: 480px; }
.max-w-lg { max-width: 640px; }
.max-w-xl { max-width: 720px; }
.max-w-2xl { max-width: 960px; }

.rounded-md { border-radius: var(--r-md); }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-xl { border-radius: var(--r-xl); }
.rounded-full { border-radius: var(--r-full); }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* =============================================================
   Nav (top, marketing)
   ============================================================= */
.nav-top {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-top.is-scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav-top__inner {
  max-width: var(--max-content);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-top__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-top__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ash);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-top__link:hover { background: rgba(31, 36, 33, 0.04); }
.nav-top__link.is-active { color: var(--char); }
.nav-top__cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1000px) {
  .nav-top__links { display: none; }
}

/* Simple analysis flow nav */
.nav-simple {
  border-bottom: 1px solid var(--border-soft);
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-simple__inner {
  max-width: var(--max-content);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.logo__mark { width: 28px; height: 28px; }
.logo__text {
  font-weight: 600;
  font-size: 18px;
  color: var(--char);
  letter-spacing: -0.01em;
}
.logo__text .dot { color: var(--mint-400); }

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: var(--mist);
  border-top: 1px solid var(--border-soft);
  margin-top: 96px;
}
.site-footer__top {
  max-width: var(--max-content);
  margin-inline: auto;
  padding: 64px var(--gutter-mobile) 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.site-footer__brand p {
  font-size: 14px;
  color: var(--fg-3);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.55;
}
.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__col a {
  color: var(--fg-2);
  font-size: 14px;
  text-decoration: none;
}
.site-footer__col a:hover { color: var(--fg-1); }
.site-footer__bottom {
  max-width: var(--max-content);
  margin-inline: auto;
  padding: 24px var(--gutter-mobile);
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--fg-3);
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer__bottom a { color: inherit; text-decoration: none; }
.site-footer__bottom a:hover { color: var(--fg-1); }
.site-footer__legal { display: flex; gap: 16px; }
@media (max-width: 768px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* =============================================================
   Hero (homepage)
   ============================================================= */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__radial {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 800px 400px at 70% 20%, #D2E5E7 0%, transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}
.hero__inner {
  max-width: var(--max-content);
  margin-inline: auto;
  padding: 96px var(--gutter-mobile);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--char);
  margin: 0;
}
.hero__sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-2);
  margin-top: 24px;
  max-width: 480px;
}
.hero__cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero__points {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--fg-3);
  flex-wrap: wrap;
}
.hero__points span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding: 64px var(--gutter-mobile); }
}

/* Hero visual (concentric rings + floating cards) */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-inline: auto;
  width: 100%;
}
.hero-visual__rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual__center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: linear-gradient(135deg, #F4F4EF 0%, #E4E4DC 100%);
  border: 1px solid var(--stone);
  overflow: hidden;
}
.hero-visual__center img { width: 90%; height: 90%; position: absolute; top: 5%; left: 5%; }
.hero-visual__card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  padding: 16px;
}
.hero-visual__card--top { top: 12%; right: -4%; width: 220px; }
.hero-visual__card--bottom { bottom: 14%; left: -6%; width: 240px; padding: 14px; }

@keyframes spin-slow { to { transform: rotate(360deg); } }
.hero-visual__sweep {
  transform-origin: center;
  animation: spin-slow 8s linear infinite;
}

/* =============================================================
   How it works (3 steps)
   ============================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.step__n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mint-600);
  font-weight: 600;
}
.step__line {
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}
.step__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--mint-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mint-600);
}

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

/* =============================================================
   Observation cards
   ============================================================= */
.obs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.obs__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--mint-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint-600);
}
.obs__icon--warn { background: var(--warn-bg); color: var(--warn-fg); }
.obs__icon--teal { background: var(--teal-50); color: var(--teal-700); }
.obs__label { font-size: 17px; font-weight: 500; margin-top: 16px; }

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

/* =============================================================
   Trust band
   ============================================================= */
.trust-band {
  padding: 64px var(--gutter-mobile);
  background: var(--mint-50);
  border-top: 1px solid var(--mint-200);
  border-bottom: 1px solid var(--mint-200);
}
.trust-band__inner {
  max-width: 1100px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.trust-band__num {
  font-size: 36px;
  font-weight: 500;
  color: var(--mint-700);
  letter-spacing: -0.02em;
}
@media (max-width: 768px) { .trust-band__inner { grid-template-columns: repeat(2, 1fr); } }

/* =============================================================
   Cards: Blog teaser / detail / cover
   ============================================================= */
.blog-card { padding: 0; overflow: hidden; }
.blog-card__cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #ECF4F5 0%, #D2E5E7 100%);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__cover-placeholder {
  width: 60%;
  height: 70%;
  border-radius: 50%;
  border: 1px dashed var(--mint-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint-600);
}
.blog-card__body { padding: 24px; }
.blog-card__title {
  font-size: 20px;
  font-weight: 500;
  margin-top: 12px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--char);
}
.blog-card--big .blog-card__cover { aspect-ratio: 21 / 9; }
.blog-card--big .blog-card__body { padding: 32px; }
.blog-card--big .blog-card__title { font-size: 32px; line-height: 1.2; letter-spacing: -0.015em; }

/* =============================================================
   Product card
   ============================================================= */
.product-card { padding: 0; overflow: hidden; display: block; text-decoration: none; color: inherit; }
.product-card__img {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--mist) 0%, var(--cloud) 100%);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__bottle {
  width: 80px;
  height: 180px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 12px 12px 6px 6px;
  position: relative;
  box-shadow: var(--shadow-hover);
}
.product-card__bottle-label {
  position: absolute;
  top: 30px;
  left: 8px;
  right: 8px;
  padding: 8px 4px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--graphite);
}
.product-card__body { padding: 20px; }
.product-card__name {
  font-size: 17px;
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: -0.005em;
}
.product-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.product-card__price { font-size: 17px; font-weight: 500; }

/* =============================================================
   FAQ
   ============================================================= */
.faq__item { border-bottom: 1px solid var(--border-soft); }
.faq__head {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  color: var(--char);
  text-align: left;
}
.faq__body {
  padding-bottom: 20px;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
  display: none;
}
.faq__item[open] .faq__body { display: block; }
.faq__item[open] .faq__icon-plus { display: none; }
.faq__item:not([open]) .faq__icon-minus { display: none; }

/* =============================================================
   Newsletter dark card
   ============================================================= */
.newsletter-cta {
  max-width: 1100px;
  margin-inline: auto;
  background: var(--char);
  color: var(--white);
  border-radius: 28px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter-cta__radial {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 197, 168, 0.18) 0%, transparent 70%);
}
.newsletter-cta h2 { color: var(--white); }
.newsletter-cta__form { display: flex; gap: 8px; position: relative; z-index: 1; }
.newsletter-cta .input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
}
.newsletter-cta .input::placeholder { color: rgba(255, 255, 255, 0.4); }
.newsletter-cta__fine {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .newsletter-cta { grid-template-columns: 1fr; padding: 48px 32px; }
}

/* =============================================================
   Stepper (analysis flow)
   ============================================================= */
.stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
}
.stepper__node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-soft);
  color: var(--fg-3);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}
.stepper__node.is-active,
.stepper__node.is-done {
  background: var(--mint-500);
  border-color: var(--mint-500);
  color: var(--white);
}
.stepper__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-3);
}
.stepper__step.is-active .stepper__label { color: var(--char); }
.stepper__step { display: flex; align-items: center; gap: 8px; }
.stepper__line { width: 32px; height: 1px; background: var(--border-soft); }

/* =============================================================
   Upload dropzone
   ============================================================= */
.dropzone {
  background: var(--white);
  border: 1px dashed var(--border-soft);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.dropzone:hover { background: var(--mist); border-color: var(--pebble); }
.dropzone.is-dragging { background: var(--mint-50); border-color: var(--mint-400); }
.dropzone.has-file { background: var(--mint-50); border-color: var(--mint-400); }
.dropzone__icon {
  width: 80px;
  height: 80px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--mint-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint-600);
}
.dropzone__title {
  font-size: 22px;
  font-weight: 500;
  margin-top: 24px;
  letter-spacing: -0.01em;
}
.dropzone__hint {
  color: var(--fg-2);
  margin-top: 8px;
}

/* =============================================================
   Processing animation
   ============================================================= */
@keyframes scan-sweep {
  0%, 100% { transform: translateY(-50%) rotate(0); }
  50% { transform: translateY(-50%) rotate(360deg); }
}
@keyframes scan-line {
  0% { transform: translateY(0); }
  50% { transform: translateY(280px); }
  100% { transform: translateY(0); }
}
@keyframes pulse-ring {
  0% { transform: scale(0.92); opacity: 0.7; }
  60% { transform: scale(1.08); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up var(--dur) var(--ease); }

.processing {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 48px auto 0;
}
.processing__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--mint-300);
  opacity: 0;
  animation: pulse-ring 2.5s infinite cubic-bezier(0.32, 0.72, 0, 1);
}
.processing__ring--2 { animation-delay: 0.4s; }
.processing__ring--3 { animation-delay: 0.8s; }
.processing__center {
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A9CDD2, #48999E);
  overflow: hidden;
}
.processing__center img {
  width: 90%;
  height: 90%;
  position: absolute;
  top: 5%;
  left: 5%;
  opacity: 0.85;
  mix-blend-mode: multiply;
}
.processing__scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95), transparent);
  box-shadow: 0 0 24px 6px rgba(255, 255, 255, 0.4);
  animation: scan-line 2.5s infinite linear;
}

.phases { display: flex; flex-direction: column; gap: 4px; max-width: 420px; margin-inline: auto; }
.phase {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: all var(--dur) var(--ease);
  opacity: 0.4;
}
.phase.is-active {
  background: var(--mint-50);
  border-color: var(--mint-200);
  opacity: 1;
}
.phase.is-done { opacity: 1; }
.phase__node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-soft);
  color: var(--mint-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phase.is-active .phase__node { border-color: var(--mint-500); }
.phase.is-done .phase__node { background: var(--mint-500); border-color: var(--mint-500); color: var(--white); }
.phase__label { flex: 1; text-align: left; font-size: 14px; color: var(--fg-2); }
.phase.is-active .phase__label { font-weight: 500; color: var(--char); }

/* =============================================================
   Modal + toast
   ============================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 24, 22, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-up var(--dur) var(--ease);
}
.modal {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-modal);
  max-width: 1000px;
  width: 100%;
  max-height: 88vh;
  overflow: auto;
  position: relative;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-2);
  z-index: 1;
}
.modal__close:hover { background: var(--mist); }

.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--char);
  color: var(--white);
  padding: 14px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  max-width: 380px;
  animation: fade-up var(--dur) var(--ease);
}
.toast--success { background: var(--mint-700); }
.toast--danger { background: var(--danger-fg); }
.toast--warn { background: var(--warn-fg); color: var(--white); }

/* =============================================================
   Post CTA (yazı sonu)
   ============================================================= */
.post-cta {
  margin: 40px 0 16px;
  padding: 24px 28px;
  background: var(--mint-50);
  border: 1px solid var(--mint-200);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-cta__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint-700);
}
.post-cta p {
  margin: 0;
  color: var(--char);
  font-size: 17px;
  line-height: 1.55;
}
.post-cta a.post-cta__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  background: var(--mint-500);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease);
}
.post-cta a.post-cta__btn:hover { background: var(--mint-600); text-decoration: none; }

/* =============================================================
   Misc reused patterns
   ============================================================= */
.disclaimer {
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
}
.disclaimer__icon { color: var(--graphite); flex-shrink: 0; margin-top: 2px; }

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tip-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--fg-2);
}
.tip-list li > span:first-child {
  color: var(--mint-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* =============================================================
   Score dial (analysis result)
   ============================================================= */
.score-dial { position: relative; width: 200px; height: 200px; }
.score-dial svg { transform: rotate(-90deg); }
.score-dial__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-dial__num {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}

/* =============================================================
   Lucide icon sizing helper
   ============================================================= */
[data-lucide] { stroke-width: 1.75; vertical-align: middle; }

/* =============================================================
   Hide on small screens helper
   ============================================================= */
@media (max-width: 768px) {
  .hide-on-sm { display: none !important; }
}
@media (min-width: 769px) {
  .show-on-sm { display: none !important; }
}
