:root {
  color-scheme: light;
  --ink: #10272a;
  --muted: #5a7077;
  --line: #d8e8ea;
  --paper: #f7fbfd;
  --surface: #ffffff;
  --tint: #eef8f6;
  --accent: #166b72;
  --accent-dark: #0d4f58;
  --accent-soft: #d8f0ed;
  --blue: #2f74b5;
  --blue-soft: #e6f1fb;
  --warm: #f4a340;
  --brand-gradient: linear-gradient(135deg, #166b72 0%, #2f74b5 100%);
  --shadow: 0 22px 60px rgba(16, 39, 42, 0.12);
  --shadow-soft: 0 20px 42px rgba(16, 39, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(244, 163, 64, 0.12), transparent 26rem),
    linear-gradient(180deg, #f8fcfd, #f2faf8);
  font-family:
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-size: clamp(2.25rem, 8vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-size: clamp(1.55rem, 6vw, 3rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(245, 251, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: 8px;
  font-size: 0.78rem;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(47, 116, 181, 0.24);
}

.site-nav {
  display: flex;
  width: 100%;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--accent-dark);
}

.hero,
.section,
.site-footer,
.policy-page {
  padding-inline: clamp(18px, 5vw, 64px);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-block: clamp(48px, 10vh, 96px);
  background:
    radial-gradient(circle at 86% 14%, rgba(47, 116, 181, 0.18), transparent 20rem),
    linear-gradient(145deg, rgba(22, 107, 114, 0.1), rgba(47, 116, 181, 0.07) 48%, rgba(244, 163, 64, 0.08)),
    var(--paper);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 4vw, 1.28rem);
}

.validation-note {
  max-width: 720px;
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(0.98rem, 3vw, 1.08rem);
  font-weight: 700;
}

.phrase {
  display: inline-block;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(16, 39, 42, 0.08);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-primary {
  color: #fff;
  background: var(--brand-gradient);
}

.button-primary:hover {
  background: linear-gradient(135deg, #0d4f58 0%, #245f9c 100%);
  box-shadow: 0 20px 40px rgba(16, 39, 42, 0.16);
  transform: translateY(-3px);
}

.button-secondary {
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: rgba(47, 116, 181, 0.32);
  box-shadow: 0 20px 40px rgba(16, 39, 42, 0.11);
  transform: translateY(-3px);
}

.privacy-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  padding: clamp(14px, 4vw, 22px);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.phone-mockup {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--brand-gradient) border-box;
  border: 2px solid transparent;
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(16, 39, 42, 0.05);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  min-height: 14px;
}

.phone-status span:first-child {
  width: 48px;
  height: 5px;
  background: #d5e6eb;
  border-radius: 999px;
}

.phone-status span:last-child {
  width: 34px;
  height: 5px;
  background: #c5e2db;
  border-radius: 999px;
}

.scan-card,
.todo-panel {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f4fbfd);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(16, 39, 42, 0.08);
}

.scan-card h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.scan-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.scan-lines {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.scan-lines span {
  height: 8px;
  background: linear-gradient(90deg, #cbe6f6, #dff2ed);
  border-radius: 999px;
}

.scan-lines span:nth-child(2) {
  width: 78%;
}

.scan-lines span:nth-child(3) {
  width: 58%;
}

.transform-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  justify-self: center;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: 999px;
  box-shadow: 0 14px 24px rgba(47, 116, 181, 0.2);
  font-weight: 900;
  animation: pulse-down 2.6s ease-in-out infinite;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 900;
}

.panel-title strong {
  padding: 3px 9px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.82rem;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 10px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.task-list,
.privacy-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-list li,
.privacy-box li {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(135deg, var(--tint), var(--blue-soft));
  border-radius: 8px;
  font-weight: 700;
}

.task-list span {
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  margin-top: 8px;
  background: #43b97f;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(67, 185, 127, 0.15);
}

.section {
  padding-block: clamp(56px, 12vw, 104px);
  background: var(--surface);
}

.section-tint {
  background: var(--tint);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow),
.info-card p,
.feature-row p,
.audience-grid p,
.signup-copy p,
.privacy-box p,
.faq-list p,
.policy-content p {
  color: var(--muted);
}

.card-grid,
.steps,
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.info-card,
.steps li,
.audience-grid div,
.privacy-box {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-card,
.steps li,
.audience-grid div,
.faq-list details {
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover,
.steps li:hover,
.audience-grid div:hover,
.faq-list details:hover {
  border-color: rgba(47, 116, 181, 0.24);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.feature-list {
  display: grid;
  gap: 8px;
  max-width: 940px;
}

.feature-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid rgba(16, 39, 42, 0.12);
}

.feature-row > span {
  color: var(--blue);
  font-weight: 900;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  counter-increment: steps;
}

.steps li::before {
  display: block;
  margin-bottom: 22px;
  color: var(--blue);
  font-weight: 900;
  content: "0" counter(steps);
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  margin-top: 8px;
  color: var(--muted);
}

.signup-section {
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 163, 64, 0.2), transparent 22rem),
    linear-gradient(135deg, #0f454d, #174f7b);
  color: #fff;
}

.signup-section .eyebrow,
.signup-section p {
  color: #d8efed;
}

.signup-copy {
  max-width: 860px;
}

.signup-section .button-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

.privacy-box {
  max-width: 920px;
  background: #f8fcfc;
}

.privacy-box li::before {
  color: var(--accent);
  font-weight: 900;
  content: "✓";
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 920px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 18px;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 18px;
  padding-block: 26px;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 800;
}

.policy-page {
  background: var(--surface);
}

.policy-hero {
  max-width: 880px;
  padding-block: clamp(48px, 10vw, 84px);
}

.policy-content {
  max-width: 860px;
  padding-bottom: 84px;
}

.policy-content h2 {
  margin-top: 34px;
  font-size: 1.25rem;
}

@media (min-width: 720px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .site-nav {
    width: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
    align-items: center;
    min-height: calc(100vh - 64px);
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card-grid,
  .steps,
  .audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.18rem;
  }

  .brand {
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }
}

.form-section {
  background: var(--surface);
}

.lead-form {
  display: grid;
  gap: 18px;
  max-width: 920px;
  padding: clamp(18px, 4vw, 30px);
  background: rgba(248, 252, 252, 0.92);
  border: 1px solid rgba(216, 232, 234, 0.9);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.form-alert {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(244, 163, 64, 0.08), rgba(244, 163, 64, 0.02));
  border: 2px solid var(--warm);
  border-radius: 14px;
}

.form-alert strong {
  display: block;
  margin-bottom: 6px;
}

.form-alert p {
  margin-bottom: 8px;
  color: var(--muted);
}

.form-alert a {
  color: var(--accent-dark);
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.field-group legend {
  color: var(--ink);
  font-weight: 800;
}

.field em,
.field-group em {
  color: var(--blue);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bfd6d4;
  border-radius: 8px;
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.field-group input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(47, 116, 181, 0.18);
  outline-offset: 1px;
}

.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: #c83f3f;
}

.field small {
  color: var(--muted);
  font-size: 0.9rem;
}

.field-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.field-group legend {
  padding-inline: 4px;
}

.field-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  color: var(--ink);
}

.field-group input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--accent);
}

.form-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

@keyframes pulse-down {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-submit {
    width: auto;
    justify-self: start;
  }
}

/* Header Right & Language Switcher */
.header-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

.lang-switcher a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.lang-switcher a:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.lang-switcher a.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(22, 107, 114, 0.24);
}

@media (min-width: 720px) {
  .header-right {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: auto;
  }
}

/* Multilingual spacing & layout adjustments */
:lang(en) .phrase,
:lang(pt) .phrase {
  display: inline; /* Disable phrase wrapping control for English and Portuguese */
}

:lang(en) body,
:lang(pt) body,
:lang(pt-BR) body {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* school-mvp-lab static experiment pages */
.lab-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 4%, rgba(244, 163, 64, 0.13), transparent 28rem),
    linear-gradient(180deg, #f8fcfd 0%, #f2faf8 55%, #ffffff 100%);
}

.lab-page .site-header {
  align-items: center;
  background: rgba(248, 252, 253, 0.94);
}

.lab-page .brand-mark {
  display: grid;
  place-items: center;
}

.lab-main,
.experiment-main,
.lab-policy-page {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.lab-hero {
  display: grid;
  gap: 28px;
  padding: clamp(56px, 9vw, 104px) 0 clamp(52px, 8vw, 88px);
}

.lab-hero-copy {
  max-width: 720px;
}

.lab-page h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 8vw, 5.4rem);
}

.experiment-page h1,
.lab-policy-page h1 {
  font-size: clamp(2.25rem, 7vw, 4.5rem);
}

.lab-page h2 {
  font-size: clamp(1.55rem, 5vw, 2.5rem);
}

.lab-lead {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(1.12rem, 3vw, 1.4rem);
  font-weight: 700;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.lab-status,
.experiment-card,
.test-panel,
.notice-box,
.experiment-content > section {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.lab-status {
  align-self: center;
  padding: clamp(24px, 5vw, 36px);
}

.lab-status h2 {
  margin-top: 16px;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
}

.status-badge {
  display: inline-flex;
  padding: 6px 12px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
}

.check-list,
.notice-box ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 1.3rem;
}

.lab-section {
  padding: clamp(56px, 8vw, 88px) 0;
}

.lab-section-tint {
  position: relative;
}

.lab-section-tint::before {
  position: absolute;
  z-index: -1;
  inset: 16px -999px;
  background: rgba(224, 243, 239, 0.64);
  content: "";
}

.compact-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.experiment-grid {
  display: grid;
  gap: 18px;
}

.experiment-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experiment-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-number {
  margin-bottom: 24px;
  color: var(--blue);
  font-family: "Outfit", sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.experiment-card h3 {
  font-size: 1.28rem;
  line-height: 1.45;
}

.experiment-card p {
  color: var(--muted);
}

.card-link {
  margin-top: auto;
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.card-link:hover,
.card-link:focus-visible,
.back-link a:hover,
.back-link a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.two-column {
  display: grid;
  gap: 24px;
}

.notice-box {
  padding: clamp(24px, 5vw, 40px);
  border-left: 5px solid var(--warm);
}

.notice-box a,
.policy-content a {
  color: var(--accent-dark);
  font-weight: 800;
}

.experiment-main {
  padding: 26px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--accent-dark);
}

.experiment-hero {
  max-width: 900px;
  padding: clamp(24px, 7vw, 64px) 0;
}

.experiment-hero .status-badge {
  margin-bottom: 18px;
}

.experiment-content {
  display: grid;
  gap: 20px;
  max-width: 900px;
}

.experiment-content > section {
  padding: clamp(24px, 5vw, 36px);
}

.experiment-content > .test-panel {
  background: linear-gradient(135deg, #eaf7f4, #edf5fc);
  border-color: #bcded9;
}

.step-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
}

.step-list span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: 50%;
  font-weight: 900;
}

.is-disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.back-link {
  margin: 34px 0 0;
}

.back-link a {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.lab-policy-page {
  padding-bottom: 72px;
}

.lab-policy-page .policy-hero {
  padding-inline: 0;
}

.lab-policy-page .policy-content {
  max-width: 900px;
  margin-inline: 0;
}

.lab-policy-page .policy-content h2 {
  font-size: clamp(1.25rem, 4vw, 1.7rem);
}

@media (min-width: 720px) {
  .lab-page .site-header {
    flex-direction: row;
    justify-content: space-between;
  }

  .lab-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  }

  .experiment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
  }
}

/* School print checker */
.checker-main {
  max-width: 1180px;
}

.checker-hero {
  max-width: 960px;
}

.status-badge-live {
  color: #075d42;
  background: #d9f5e9;
}

.privacy-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-points li {
  padding: 7px 12px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.privacy-points li::before {
  margin-right: 6px;
  color: #168261;
  content: "✓";
}

.checker-layout {
  display: grid;
  gap: 24px;
}

.checker-tool,
.checker-results {
  padding: clamp(22px, 5vw, 40px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.checker-results[hidden] {
  display: none;
}

.checker-tool-heading,
.results-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.checker-tool-heading h2,
.results-heading h2 {
  margin-bottom: 0;
}

.text-button {
  flex: 0 0 auto;
  padding: 8px 0;
  color: var(--accent-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--blue);
}

.checker-label {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  font-weight: 900;
}

.checker-label span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.checker-tool textarea {
  width: 100%;
  min-height: 280px;
  padding: 18px;
  color: var(--ink);
  background: #fbfdfd;
  border: 2px solid #bfd6d4;
  border-radius: 14px;
  font: inherit;
  line-height: 1.75;
  resize: vertical;
}

.checker-tool textarea:focus {
  background: #fff;
  border-color: var(--blue);
  outline: 4px solid rgba(47, 116, 181, 0.14);
}

.checker-form-footer {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

#character-count {
  color: var(--muted);
  font-size: 0.84rem;
}

.checker-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  width: 100%;
}

.checker-actions .button {
  width: 100%;
}

.local-processing-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  color: #315b57;
  background: #eef8f6;
  border-radius: 10px;
  font-size: 0.86rem;
}

.result-count {
  flex: 0 0 auto;
  padding: 6px 11px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.result-summary {
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
}

.result-grid {
  display: grid;
  gap: 14px;
}

.result-card {
  padding: 18px;
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.result-card.has-result {
  background: #fff;
  border-color: #bcded9;
}

.result-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.result-card-title span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 900;
}

.result-card-title h3 {
  margin: 0;
}

.result-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.25rem;
}

.result-card li {
  overflow-wrap: anywhere;
}

.no-result {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-warning {
  margin-top: 24px;
  padding: 18px;
  background: #fff8ec;
  border: 1px solid #f3d29f;
  border-radius: 14px;
}

.result-warning strong {
  display: block;
  margin-bottom: 4px;
}

.result-warning p {
  margin: 0;
  color: #6e5837;
  font-size: 0.9rem;
}

.feedback-panel {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.feedback-panel p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-actions button {
  padding: 9px 14px;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid #a9cfca;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.feedback-actions button:hover,
.feedback-actions button:focus-visible {
  background: var(--accent-soft);
}

.feedback-actions button:disabled {
  cursor: default;
  opacity: 0.55;
}

.feedback-actions button[aria-pressed="true"] {
  color: #fff;
  background: var(--accent);
  opacity: 1;
}

.feedback-message:empty {
  display: none;
}

.checker-information {
  margin-top: 24px;
}

@media (min-width: 640px) {
  .checker-form-footer {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .checker-actions {
    flex-direction: row;
    width: auto;
  }

  .checker-actions .button {
    width: auto;
  }

  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .feedback-message {
    grid-column: 1 / -1;
  }
}
