/* Marketing-page extensions for sections in the rebuilt app that need
   styles not present in the original Credorra 2 design tokens.
   Keep this file minimal — prefer reusing existing classes from styles.css. */

/* Generic review-card list used on the Social Proof section. */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.review-grid > article {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.review-grid > article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}
.review-grid header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.review-grid .platform-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.review-grid .verify-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 4px 8px;
  border-radius: 999px;
}
.review-grid .stars {
  letter-spacing: 0.05em;
}
.review-grid h4 {
  font-size: 15px;
  font-weight: 500;
  margin: 6px 0 8px;
  letter-spacing: -0.01em;
}
.review-grid p {
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.55;
}
.review-grid footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ink-100);
}
.review-grid footer .av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.review-grid footer .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review-grid .by {
  font-size: 12px;
  color: var(--ink-500);
}
.review-grid .helpful {
  font-size: 11px;
  color: var(--ink-400);
}
@media (max-width: 720px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* Compact 4-up stat row used on Social Proof and About blocks. */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.stat-row .stat-card {
  padding: 22px;
  text-align: center;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  background: var(--paper-soft);
}
.stat-row .stat-card .v {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-950);
}
.stat-row .stat-card .l {
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
  color: var(--ink-700);
}
.stat-row .stat-card p {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 4px;
}
@media (max-width: 720px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* Mini "For brands / For reviewers" sub-heading used in How It Works. */
.subhead-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 16px;
}
.subhead-row span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  padding: 4px 10px;
  background: var(--blue-50);
  border-radius: 999px;
}
.subhead-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-700);
}

/* Pricing tweaks: add-ons row. */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.addons-grid .addon {
  padding: 22px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.addons-grid .addon h4 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 6px;
}
.addons-grid .addon .price {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-950);
  letter-spacing: -0.01em;
}
.addons-grid .addon .unit {
  font-size: 12px;
  color: var(--ink-400);
  margin-left: 4px;
}
.addons-grid .addon p {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 8px;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .addons-grid { grid-template-columns: 1fr; }
}

/* Case-study highlight cards on home. */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.case-grid .case {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--ink-100);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.case-grid .case:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}
.case-grid .case .platform {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 4px 10px;
  border-radius: 999px;
  width: max-content;
}
.case-grid .case h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-950);
}
.case-grid .case .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-500);
}
.case-grid .case .row strong {
  color: var(--ink-950);
  font-weight: 500;
}
.case-grid .case .row .down { color: #c94e4e; }
.case-grid .case .row .up { color: #1e7a4e; }
.case-grid .case .timeline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  background: var(--ink-50);
  padding: 4px 10px;
  border-radius: 999px;
  width: max-content;
}
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- Sticky header fix ----------
   styles.css declares `.site-header { position: sticky; top: 0 }` but also
   `html, body { overflow-x: hidden }` — and overflow-x:hidden on a scrolling
   ancestor cancels position:sticky on its descendants in Chromium/WebKit.
   Switch the horizontal clipping to `overflow-x: clip`, which provides the
   same clip effect without establishing a scroll container, so the header
   actually sticks. Also ensure the header sits above page content. */
html, body { overflow-x: clip; }
.site-header { position: sticky; top: 0; z-index: 50; }

/* ---------- Footer button fix ----------
   .site-footer a { display:block; padding:6px 0; color:var(--ink-300); ... }
   from styles.css overrides .btn for any anchor inside the footer, which
   breaks the "Book a Demo" CTA. Restore proper inline-flex button shape and
   button colors with higher specificity. */
.site-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  width: auto;
  border: 1px solid transparent;
}
.site-footer .btn-blue { background: var(--blue-500); color: var(--paper); }
.site-footer .btn-blue:hover { background: var(--blue-600); color: var(--paper); }
.site-footer .btn-primary { background: var(--ink-950); color: var(--paper); }
.site-footer .btn-primary:hover { color: var(--paper); }
.site-footer .btn-ghost {
  background: transparent;
  color: var(--ink-950);
  border-color: var(--ink-100);
}
.site-footer .btn-arrow svg { transition: transform .2s ease; }
.site-footer .btn-arrow:hover svg { transform: translateX(3px); }

/* Faq accordion polish (extends faq-item from styles.css). */
.faq-item[data-open="true"] .faq-item__a { max-height: 1200px; padding-bottom: 18px; }
.faq-item__q[aria-expanded="true"]::after { transform: rotate(45deg); }

/* ---------- Auth split (login/signup 2-column) ----------
   Mobile-first. On small screens the form pane stacks on top with a compact
   gradient banner; on >=920px the rail expands into a full-height column. */
.auth-split {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper);
}

.auth-split__rail {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink-950);
  display: none; /* hidden on mobile, shown >=920px below */
}
.auth-split__rail-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 60% at 100% 0%, rgba(124, 59, 237, 0.55), transparent 60%),
    radial-gradient(45% 50% at 0% 100%, rgba(124, 59, 237, 0.25), transparent 60%),
    linear-gradient(160deg, #15103A 0%, #0E0A22 70%);
  pointer-events: none;
}
.auth-split__rail-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 48px 56px;
  height: 100%;
}
.auth-split__brand img { display: block; }

.auth-split__copy { margin: auto 0; max-width: 460px; }
.auth-split__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-300);
}
.auth-split__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-300);
  box-shadow: 0 0 0 3px rgba(124, 59, 237, 0.25);
}
.auth-split__title {
  margin: 16px 0 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--paper);
}
.auth-split__title .serif { color: var(--blue-200); }
.auth-split__sub {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}
.auth-split__bullets {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.auth-split__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
}
.auth-split__tick {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(124, 59, 237, 0.25);
  color: var(--blue-200);
  margin-top: 1px;
}
.auth-split__quote {
  margin: 32px 0 0;
  padding: 18px 20px;
  border-left: 2px solid var(--blue-400);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.auth-split__quote blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--paper);
}
.auth-split__quote figcaption {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.auth-split__quote figcaption strong { color: var(--paper); font-weight: 500; }

.auth-split__rail-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.auth-split__rail-footer a { color: inherit; }
.auth-split__rail-footer a:hover { color: var(--paper); }

/* Form pane */
.auth-split__pane {
  display: grid;
  place-items: start center;
  padding: clamp(24px, 5vw, 56px) 16px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(124, 59, 237, 0.05), transparent 60%),
    var(--paper);
  overflow-y: auto;
}
.auth-split__pane-inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-split__pane-brand {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 4px;
}
.auth-split__form-head h1 {
  margin: 6px 0 6px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-950);
}
.auth-split__form-head p {
  margin: 0;
  color: var(--ink-500);
  font-size: 14.5px;
  line-height: 1.55;
}
.auth-split__form-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.auth-split__form { width: 100%; }
.auth-split__form-footer {
  margin-top: 8px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-500);
}
.auth-split__form-footer a { color: var(--blue-600); font-weight: 500; }
.auth-split__form-footer a:hover { color: var(--blue-700); }

@media (min-width: 920px) {
  .auth-split {
    grid-template-columns: 1.05fr 1fr;
    height: 100dvh;
    overflow: hidden;
  }
  .auth-split__rail {
    display: block;
    height: 100dvh;
    overflow-y: auto;
    position: sticky;
    top: 0;
  }
  .auth-split__pane {
    height: 100dvh;
  }
  .auth-split__pane-brand { display: none; }
  .auth-split__pane-inner { max-width: 440px; }
}
@media (min-width: 1200px) {
  .auth-split { grid-template-columns: 1.15fr 1fr; }
  .auth-split__rail-inner { padding: 64px 72px; }
  .auth-split__pane-inner { max-width: 460px; }
}

/* On small screens: render a compact gradient banner above the form so users
   still see the brand and a value prop without using vertical space for the
   full rail. */
@media (max-width: 919px) {
  .auth-split { grid-template-rows: auto 1fr; }
  .auth-split__pane-inner { padding-top: 0; }
}

/* ---------- Auth card shell ---------- */
.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 56px 16px;
  background: linear-gradient(160deg, var(--blue-50) 0%, var(--paper) 60%);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 36px 32px;
}
.auth-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  text-align: center;
}
.auth-card__brand img { display: block; }
.auth-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  margin-top: 8px;
}
.auth-card h1 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}
.auth-card__head p {
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.55;
  max-width: 320px;
}
.auth-card__footer {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-500);
}
.auth-card__footer a {
  color: var(--blue-600);
  font-weight: 500;
  border-bottom: 1px solid var(--blue-200);
}

/* ---------- Field primitives ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
}
.field__input {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink-950);
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--ink-200);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field__input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(124,59,237,0.15);
}
.field__textarea { min-height: 132px; resize: vertical; }
.field__select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-400) 50%), linear-gradient(135deg, var(--ink-400) 50%, transparent 50%); background-position: right 16px top 50%, right 11px top 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.field--error .field__input { border-color: #c94e4e; box-shadow: 0 0 0 3px rgba(201,78,78,0.12); }
.field__error { font-size: 12.5px; color: #c94e4e; }
.field__hint { font-size: 12.5px; color: var(--ink-400); }

/* ---------- Form helpers ---------- */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) { .form-grid-2 { grid-template-columns: 1fr; } }

.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-700);
  line-height: 1.55;
  margin: 8px 0 4px;
}
.checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue-500);
}

/* ---------- Auth radio-style toggle group ---------- */
.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toggle-group label {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink-200);
  font-size: 13px;
  cursor: pointer;
  background: var(--paper);
  user-select: none;
}
.toggle-group input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-group input:checked + span,
.toggle-group label:has(input:checked) {
  background: var(--blue-50);
  border-color: var(--blue-500);
  color: var(--blue-700);
}

/* ---------- Progress bar for multi-step forms ---------- */
.steps-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.steps-progress__bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--ink-100);
  overflow: hidden;
}
.steps-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
  transition: width .25s ease;
}
.steps-progress__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* ---------- Toast / inline alert ---------- */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.alert--error { background: #fbeaea; color: #8a1c1c; border: 1px solid #f1c5c5; }
.alert--success { background: #e7f6ec; color: #1d6b3f; border: 1px solid #c7e7d3; }
.alert--info { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }

/* ---------- Service detail (icon row, includes) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-grid .service-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--ink-100);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-grid .service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}
.service-grid h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.service-grid p { color: var(--ink-500); font-size: 14.5px; line-height: 1.55; }
.service-grid .subtitle { color: var(--ink-700); font-weight: 500; font-size: 14px; }
@media (max-width: 720px) { .service-grid { grid-template-columns: 1fr; } }

.includes-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 12px 0 8px; }
.includes-list li { color: var(--ink-700); font-size: 14px; padding-left: 18px; position: relative; line-height: 1.6; }
.includes-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-600); font-weight: 600; }
@media (max-width: 540px) { .includes-list { grid-template-columns: 1fr; } }

.platform-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.platform-list .pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink-50);
  color: var(--ink-700);
  padding: 6px 10px;
  border-radius: 999px;
}

/* ---------- Legal page (Privacy / Terms) ---------- */
.legal-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 96px;
  font-size: 13px;
  color: var(--ink-500);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-toc h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 4px;
}
.legal-toc a {
  display: block;
  padding: 4px 0;
  color: inherit;
}
.legal-toc a:hover { color: var(--ink-950); }
.legal-body { font-size: 16px; line-height: 1.7; color: var(--ink-700); }
.legal-body h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-950); margin: 56px 0 12px; }
.legal-body h3 { font-size: 18px; font-weight: 500; color: var(--ink-950); margin: 24px 0 8px; }
.legal-body p { margin-bottom: 12px; }
.legal-body ul { padding-left: 22px; margin-bottom: 12px; }
.legal-body li { margin-bottom: 6px; }
.legal-body table { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: 14.5px; }
.legal-body th, .legal-body td { padding: 10px 12px; border-bottom: 1px solid var(--ink-100); text-align: left; vertical-align: top; }
.legal-body th { background: var(--paper-soft); font-weight: 500; color: var(--ink-950); }
.legal-callout {
  padding: 16px 18px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  margin: 20px 0;
  color: var(--ink-700);
}
.legal-callout--warn { background: #FFF6E6; border-color: #F5DDA8; color: #6B4A06; }
@media (max-width: 900px) { .legal-grid { grid-template-columns: 1fr; } .legal-toc { position: relative; top: auto; } }

/* ---------- Page hero (sub-page intro) reused style ---------- */
.page-hero { padding: 88px 0 28px; background: linear-gradient(180deg, var(--blue-50), transparent); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.03em; max-width: 18ch; margin: 0; }
.page-hero p { max-width: 60ch; font-size: 17px; color: var(--ink-500); margin-top: 18px; }
.page-hero__inner { padding: 24px 0; }

/* ---------- Blog list cards ---------- */
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-list article { padding: 22px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--ink-100); display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.blog-list article:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.blog-list .meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-400); letter-spacing: 0.06em; text-transform: uppercase; }
.blog-list h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.blog-list p { color: var(--ink-500); font-size: 14px; line-height: 1.55; }
@media (max-width: 900px) { .blog-list { grid-template-columns: 1fr; } }

/* ---------- Dashboard shell ---------- */
.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 240px 1fr; background: var(--paper-soft); }
.app-shell__nav { background: var(--paper); border-right: 1px solid var(--ink-100); padding: 24px 18px; display: flex; flex-direction: column; gap: 6px; }
.app-shell__nav .brand { padding: 0 6px 18px; }
.app-shell__nav a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; color: var(--ink-700); }
.app-shell__nav a:hover { background: var(--ink-50); }
.app-shell__nav a.is-active { background: var(--blue-50); color: var(--blue-700); }
.app-shell__main { padding: 32px clamp(24px, 4vw, 56px); }
.app-shell__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.app-shell__topbar h1 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.app-shell__topbar .meta { color: var(--ink-500); font-size: 13px; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.app-card { background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 20px; }
.app-card h3 { font-size: 13px; font-weight: 500; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.app-card .num { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-950); }
.app-card .delta { font-size: 12.5px; color: var(--ink-500); margin-top: 4px; }
.app-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--radius-md); overflow: hidden; }
.app-table th, .app-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--ink-100); }
.app-table th { background: var(--paper-soft); color: var(--ink-500); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.app-table tbody tr:last-child td { border-bottom: 0; }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.tag--ok { background: #EAF7F0; color: #1E7A4E; }
.tag--pending { background: #FFF6E6; color: #9A6800; }
.tag--off { background: #FBEAEA; color: #8A1C1C; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-shell__nav { display: none; }
  .app-grid { grid-template-columns: 1fr; }
}

/* ---------- Calculator form ---------- */
.calc-form { display: grid; gap: 14px; }
.calc-result { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.calc-result .calc-cell { padding: 18px; border-radius: var(--radius-md); background: var(--paper); border: 1px solid var(--ink-100); text-align: center; }
.calc-result .calc-cell .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); }
.calc-result .calc-cell .val { font-size: 22px; font-weight: 500; margin-top: 4px; color: var(--ink-950); }
@media (max-width: 720px) { .calc-result { grid-template-columns: 1fr 1fr; } }
