/* The Inner Space - Walidator (editorial v3, landing + app, design-aligned) */

:root {
  --bg: #f7f3eb;
  --bg-alt: #fbf8f1;
  --ink: #1a1a1a;
  --muted: #666;
  --rule: #e2ded6;
  --accent: #4a8a4a;
  --accent-hover: #3a6e3a;
  --accent-soft: #e7f0e7;
  --measure: 720px;
  --measure-wide: 1280px;
  --warn-bg: #fdedc1;
  --warn-border: #b89220;
  --success-bg: #d4ebd4;
  --success-text: #1a4a1a;
}

* { box-sizing: border-box; }
*, *::before, *::after { border-radius: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-top: 0;
}
h3 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 0.6rem; }

p { margin: 0 0 1.1em; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }

/* === NAV (cream, hairline) === */
.site-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.site-nav__inner {
  max-width: var(--measure-wide); margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-nav__logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.site-nav__logo img { display: block; height: 24px; width: auto; }
.site-nav__menu {
  display: flex; align-items: center; gap: 28px;
  margin: 0; padding: 0; list-style: none;
  font-size: 13px; color: var(--muted);
  letter-spacing: 0.02em;
}
.site-nav__menu a { color: var(--muted); transition: color .15s; }
.site-nav__menu a:hover { color: var(--ink); }
.site-nav__menu .nav-pill {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 500;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.site-nav__menu .nav-pill:hover { background: var(--ink); color: var(--bg); }

/* === LANDING CONTAINER === */
.landing {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 36px 32px 40px;
}

/* Breadcrumb row */
.crumb-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 56px;
}
.crumb-row__left strong { color: var(--ink); font-weight: 500; }
.crumb-row__right { color: var(--muted); }

/* === HERO dual === */
.hero--dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 56px;
}
@media (min-width: 880px) {
  .hero--dual { grid-template-columns: 1.45fr 1fr; gap: 80px; }
}

.hero--dual__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(4.5rem, 12vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 36px;
}
.hero--dual__title .accent-dot {
  color: var(--accent);
}

.hero--dual__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
}

.hero--dual__right {
  padding-bottom: 8px;
}
.hero--dual__desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px; line-height: 1.55;
  color: var(--ink);
  margin: 0;
  max-width: 36ch;
}

/* CTA buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--accent); color: var(--bg);
  font-size: 15px; font-weight: 500;
  border: 1px solid var(--accent);
  cursor: pointer; transition: background .15s, border-color .15s;
  font-family: inherit;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); }
.btn-primary__arrow { font-size: 17px; line-height: 1; }
.btn-note { font-size: 13px; color: var(--muted); }

/* Separator z kropką */
.sep-dot {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 56px;
}
.sep-dot__dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.sep-dot__line { flex: 1; height: 1px; background: var(--rule); }

/* === 3-COLUMN STEPS === */
.steps-3col {
  display: grid; grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 80px;
}
@media (min-width: 720px) {
  .steps-3col { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
}
.step {
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
.step--accent { border-top-color: var(--accent); }
.step__num {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.step--accent .step__num { color: var(--accent); }
.step__title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: 22px; line-height: 1.25;
  margin: 0 0 10px;
  color: var(--ink);
}
.step__desc {
  font-size: 14px; color: var(--muted); line-height: 1.55;
  margin: 0;
}

/* === RELATED TOOLS === */
.related-tools {
  margin-bottom: 80px;
}
.related-tools__header {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.related-tools__title {
  display: flex; align-items: baseline; gap: 12px;
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
  font-weight: 500; font-size: 22px; color: var(--ink);
  margin: 0;
}
.related-tools__title::before {
  content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); align-self: center;
}
.related-tools__meta {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted);
}

.related-tools__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .related-tools__grid { grid-template-columns: 1fr 1fr; }
}
.related-card {
  padding: 28px 0;
  display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 720px) {
  .related-card { padding: 32px 32px 32px 0; }
  .related-card + .related-card { border-left: 1px solid var(--rule); padding-left: 32px; padding-right: 0; }
}
.related-card__crumb {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted);
}
.related-card__crumb img { width: 22px; height: 22px; display: block; }
.related-card__crumb strong { color: var(--ink); font-weight: 500; }
.related-card__title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: 28px; line-height: 1.15;
  color: var(--ink); margin: 0;
}
.related-card__desc {
  font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0;
}
.related-card__cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 13px; font-weight: 500;
  margin-top: 4px;
  align-self: flex-start;
}
.related-card__cta:hover { color: var(--accent-hover); }

/* === APP ANCHOR & SECTION === */
.app-anchor {
  scroll-margin-top: 80px;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 32px;
}
.app-anchor__divider {
  display: flex; align-items: center; gap: 14px;
  margin: 8px 0 36px;
}
.app-anchor__divider span {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted);
}
.app-anchor__divider hr {
  flex: 1; border: 0; border-top: 1px solid var(--rule); margin: 0;
}

/* === APLIKACJA: section, headers === */
.section {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 32px 48px;
}
.section__inner { max-width: 800px; margin: 0 auto; }

.app-title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: 32px; line-height: 1.2;
  margin: 0 0 12px; color: var(--ink);
}
.lede {
  font-size: 17px; color: var(--ink); line-height: 1.55;
  margin: 0 0 12px;
}

/* Mode toggle */
.mode-toggle {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 28px 0 8px;
}
.mode-toggle__btn {
  background: var(--bg-alt); color: var(--ink);
  border: 1px solid var(--rule);
  padding: 14px 16px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  text-align: left;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.mode-toggle__btn:hover { border-color: var(--ink); }
.mode-toggle__btn.is-active {
  border-color: var(--accent); background: var(--accent-soft);
}
.mode-toggle__title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: 14px; letter-spacing: 1px;
}
.mode-toggle__sub { font-size: 12px; color: var(--muted); }
.mode-toggle__desc { font-size: 13px; margin: 8px 0 24px; }

/* Form */
.form-field { margin: 18px 0; }
.form-field label {
  display: block; font-size: 13px; font-weight: 500;
  margin-bottom: 6px; color: var(--ink);
}
.form-field__required { color: var(--accent); }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea,
#chat-form textarea,
#report-email-input,
.form-field--collapsible textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg-alt); color: var(--ink);
  border: 1px solid var(--rule);
  font-family: inherit; font-size: 14px; line-height: 1.5;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus,
#chat-form textarea:focus, #report-email-input:focus {
  outline: none; border-color: var(--accent);
}
.form-field__meta {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; margin-top: 4px;
}
.form-field--collapsible summary {
  cursor: pointer; padding: 10px 0;
  font-size: 13px; color: var(--accent); font-weight: 500;
}

/* Info-box (skala werdyktu + how-it-works) */
.info-box {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 24px;
  margin: 28px 0;
}
.info-box h3 { margin-top: 18px; }
.info-box h3:first-of-type { margin-top: 0; }
.info-box ul { margin: 0 0 12px; padding-left: 1.2em; }
.info-box li { margin-bottom: 8px; font-size: 14px; line-height: 1.55; }
.info-box__notice {
  background: var(--warn-bg); border-left: 3px solid var(--warn-border);
  padding: 12px 16px; margin-bottom: 16px;
}
.info-box__notice p { margin: 0; font-size: 14px; }
.info-box__footer {
  font-size: 13px; color: var(--muted); margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--rule);
}
.info-box__footer a { color: var(--accent); }

.verdict-legend { list-style: none; padding-left: 0; }
.verdict-legend li {
  display: flex; gap: 10px; align-items: baseline;
  margin-bottom: 8px;
}
.verdict-legend__dot { font-size: 16px; }
.verdict-legend__note { font-size: 12px; }

/* Chat */
.chat { padding: 0; }
.chat__header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin: 20px 0 12px;
}
.chat__progress {
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.chat__counter { font-size: 12px; color: var(--muted); }
.chat__bar {
  height: 4px; background: var(--rule); overflow: hidden;
}
.chat__bar-fill {
  height: 100%; background: var(--accent); transition: width .3s;
}
.chat__reset {
  background: transparent; color: var(--muted);
  border: 1px solid var(--rule); padding: 6px 12px;
  font-size: 12px; cursor: pointer; font-family: inherit;
}
.chat__reset:hover { color: var(--ink); border-color: var(--ink); }

.chat__messages {
  display: flex; flex-direction: column; gap: 14px;
  margin: 16px 0;
}
.chat__msg {
  padding: 14px 18px;
  background: var(--bg-alt); border: 1px solid var(--rule);
  font-size: 14px; line-height: 1.55;
}
.chat__msg--user { background: var(--accent-soft); border-color: var(--accent); }
.chat__msg--assistant { background: var(--bg-alt); }

.chat__verdict { margin: 24px 0; }

.chat__form {
  display: flex; flex-direction: column; gap: 8px; margin-top: 20px;
}
.chat__label {
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.chat__meta {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; align-items: center;
}
#send-btn, #generate-btn {
  background: var(--accent); color: var(--bg);
  border: 1px solid var(--accent); padding: 10px 22px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background .15s, border-color .15s;
}
#send-btn:hover, #generate-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
#send-btn:disabled, #generate-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.chat__hint { font-size: 12px; margin-top: 16px; }
.chat__error {
  background: #fdecec; border-left: 3px solid #b22222; color: #7a1414;
  padding: 10px 14px; font-size: 13px; margin-top: 12px;
}

/* Report actions */
.report-actions {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 20px 0;
}
.report-actions__btn {
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink); padding: 10px 18px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer;
}
.report-actions__btn:hover { background: var(--accent); border-color: var(--accent); }
.report-actions__btn--ghost {
  background: transparent; color: var(--ink);
}
.report-actions__btn--ghost:hover { background: var(--ink); color: var(--bg); }
.report-actions__status { font-size: 12px; }

/* Modal email */
.report-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.report-modal[hidden] { display: none; }
.report-modal__backdrop {
  position: absolute; inset: 0; background: rgba(26, 26, 26, 0.55);
}
.report-modal__panel {
  position: relative; background: var(--bg); padding: 28px;
  max-width: 480px; width: 100%;
  border: 1px solid var(--ink);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.report-modal__title { margin: 0 0 6px; }
.report-modal__lead { font-size: 13px; margin: 0 0 16px; }
.report-modal__form { display: flex; flex-direction: column; gap: 12px; }
.report-modal__label { font-size: 13px; font-weight: 500; }
.report-modal__consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; color: var(--muted); line-height: 1.4;
}
.report-modal__error { color: #b22222; font-size: 12px; }
.report-modal__actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px;
}
.report-modal__btn {
  background: var(--accent); color: var(--bg);
  border: 1px solid var(--accent); padding: 10px 18px;
  font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.report-modal__btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.report-modal__btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--rule);
}
.report-modal__btn--ghost:hover { border-color: var(--ink); }

/* Feedback box */
.feedback-box {
  background: var(--bg-alt); border: 1px solid var(--rule);
  padding: 24px; margin: 28px 0;
  display: flex; flex-direction: column; gap: 12px;
}
.feedback-box__title { margin: 0; font-size: 18px; }
.feedback-box__lead { margin: 0 0 8px; font-size: 13px; }
.feedback-box__label { font-size: 13px; font-weight: 500; }
.feedback-box textarea {
  width: 100%; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--rule);
  font-family: inherit; font-size: 13px;
}
.rating { display: flex; gap: 6px; }
.rating__star {
  background: transparent; border: 0; font-size: 24px; cursor: pointer;
  color: var(--rule); padding: 0;
}
.rating__star.is-active, .rating__star:hover { color: var(--accent); }
.feedback-box__footer {
  display: flex; justify-content: flex-end; gap: 12px; align-items: center;
}
.feedback-box__error { color: #b22222; font-size: 12px; }
.feedback-box__submit {
  background: var(--accent); color: var(--bg);
  border: 1px solid var(--accent); padding: 10px 18px;
  font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.feedback-box__submit:hover { background: var(--accent-hover); }

.chat__upgrade {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  justify-content: space-between;
  padding: 20px 24px; background: var(--success-bg); color: var(--success-text);
  margin: 20px 0;
}
.chat__upgrade-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.chat__upgrade-btn {
  background: var(--accent); color: var(--bg);
  border: 1px solid var(--accent); padding: 10px 18px;
  font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.chat__upgrade-btn:hover { background: var(--accent-hover); }
.chat__upgrade-btn--ghost { background: transparent; color: var(--success-text); border-color: var(--success-text); }
.chat__upgrade-btn--ghost:hover { background: var(--success-text); color: var(--bg); }

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg);
  padding: 28px 32px;
  font-size: 12px; color: var(--muted);
  margin-top: 60px;
}
.site-footer__inner {
  max-width: var(--measure-wide); margin: 0 auto;
  display: grid; grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .site-footer__inner { grid-template-columns: 1.3fr 1fr 1fr; align-items: center; }
}
.site-footer__col--right {
  text-align: left;
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
  color: var(--ink); font-size: 13px;
}
@media (min-width: 720px) {
  .site-footer__col--right { text-align: right; }
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* === RESPONSIVE === */
@media (max-width: 720px) {
  .site-nav__inner { padding: 14px 20px; }
  .site-nav__menu { gap: 14px; font-size: 12px; }
  .landing { padding: 24px 20px 28px; }
  .crumb-row { margin-bottom: 36px; }
  .hero--dual { gap: 28px; padding-bottom: 32px; }
  .hero--dual__title { font-size: clamp(3rem, 14vw, 5rem); }
  .steps-3col { gap: 22px; margin-bottom: 48px; }
  .related-tools { margin-bottom: 48px; }
  .section { padding: 0 20px 36px; }
  .app-anchor { padding: 0 20px; }
}

/* === Priorytety-specific extras (merged from priorytety/styles.css) === */

.form-actions {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.result-section { margin-top: 2.5rem; }

.result-section[hidden] { display: none; }

.result-actions {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}

.result-actions[hidden] { display: none; }

.result-action {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font: inherit; font-weight: 500; font-size: 0.9rem;
  cursor: pointer;
  min-height: 38px;
  transition: background 0.15s ease;
}

.result-action:hover:not(:disabled) { background: var(--accent-hover); }

.result-action:disabled { opacity: 0.5; cursor: not-allowed; }

.result {
  padding: 1.75rem 1.5rem;
  border-radius: 8px;
  background: #F4EFE5;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.result-md h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600; font-size: 1.6rem;
  margin: 0 0 1rem; line-height: 1.25;
  color: var(--text);
}

.result-md h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600; font-size: 1.35rem;
  margin: 1.6rem 0 0.6rem; line-height: 1.25;
  letter-spacing: -0.005em;
}

.result-md h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500; font-size: 1.1rem;
  margin: 1.2rem 0 0.5rem;
}

.result-md p { margin: 0 0 0.9em; }

.result-md ul, .result-md ol { margin: 0.2em 0 1em; padding-left: 1.3em; }

.result-md li { margin-bottom: 0.35em; }

.result-md li > p { margin-bottom: 0.3em; }

.result-md strong { font-weight: 600; }

.result-md code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #eeeeea;
  padding: 1px 5px;
  border-radius: 3px;
}

.result-md blockquote {
  margin: 1em 0;
  padding: 0.2em 1em;
  border-left: 3px solid var(--border);
  color: var(--text-muted);
}

.result-md hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5em 0;
}

.email-box {
  margin-top: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--star);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

.email-box[hidden] { display: none; }

.email-box input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font: inherit; font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.email-box input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.15);
}

.email-box button[type="submit"]#email-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  cursor: pointer;
  min-height: 42px;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.email-box button[type="submit"]#email-submit:hover:not(:disabled) { background: var(--accent-hover); }

.email-box button[type="submit"]#email-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.email-thanks {
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--success);
}

.email-thanks[hidden] { display: none; }

.dots { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 6px; }

.dots > span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: dot 1s infinite ease-in-out;
  opacity: 0.6;
}

.dots > span:nth-child(2) { animation-delay: 0.15s; }

.dots > span:nth-child(3) { animation-delay: 0.3s; }

.memo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  margin-top: 2rem;
  line-height: 1.65;
  color: var(--ink);
}

.memo h1, .memo h2, .memo h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  margin-top: 2rem;
}

.memo h2 { font-size: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.4rem; }

.memo h3 { font-size: 1.2rem; }

.memo table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.memo th, .memo td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.memo th { background: #efe9dd; font-weight: 500; }

.memo blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--accent);
  background: #f0ece4;
  font-style: italic;
}

.memo hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.memo strong { color: var(--ink); font-weight: 600; }

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #e2ded6;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.step-block { background: transparent; }

.step-header { margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }

.step-counter {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.step-header h2 { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 500; }

.tier-badge {
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  background: rgba(58, 110, 58, 0.06);
  border: 1px solid rgba(58, 110, 58, 0.2);
  border-radius: 8px;
  color: var(--ink);
}

.select-section { margin-top: 2.5rem; padding: 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: 8px; }

.select-section h3 { margin-top: 0; font-family: "Fraunces", Georgia, serif; font-weight: 500; }

.select-counter { margin-top: 1rem; padding: 0.6rem 1rem; background: rgba(58,110,58,0.08); border-radius: 6px; font-size: 1rem; }

.select-counter strong { color: var(--accent); font-size: 1.1rem; }

.checklist, .radio-five {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1rem 0;
}

.check-item, .radio-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1.4;
}

.check-item:hover, .radio-item:hover {
  background: #efe9dd;
  border-color: var(--accent);
}

.check-item input, .radio-item input {
  margin-top: 0.25rem;
  flex-shrink: 0;
  transform: scale(1.2);
  accent-color: var(--accent);
}

.check-item input:checked + span, .radio-item input:checked + span {
  font-weight: 500;
  color: var(--accent);
}

.btn--primary[disabled], .btn--secondary[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  line-height: 1.2;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover:not([disabled]) {
  background: #3a6e3a;
  border-color: #3a6e3a;
}

.btn--secondary {
  background: #fff;
  color: var(--accent);
}

.btn--secondary:hover:not([disabled]) {
  background: #e7f0e7;
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.info-box,
.chat__messages,
.chat__verdict,
.feedback-box,
.email-box,
.tile,
.placeholder,
.modal,
.modal__content,
.chat__upgrade-card,
.access-code-card {
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: none;
}

button[type="submit"],
.btn--primary,
.feedback-box__submit,
.chat__upgrade-btn {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid transparent;
}

button[type="submit"]:hover:not(:disabled),
.btn--primary:hover,
.feedback-box__submit:hover:not(:disabled),
.chat__upgrade-btn:hover { background: var(--accent-hover); }


/* Defensive: respect [hidden] attribute regardless of display rules above */
[hidden] { display: none !important; }
