:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #eef4f2;
  --surface-soft: #fafbfc;
  --text: #18211d;
  --muted: #65716b;
  --line: #dbe4df;
  --accent: #247c5a;
  --accent-strong: #185c43;
  --accent-soft: #dff1e7;
  --info: #23558f;
  --warn: #a85f16;
  --danger: #a53737;
  --radius: 8px;
  --shadow: 0 12px 30px rgba(24, 33, 29, 0.07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body.is-generating {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(36, 124, 90, 0.25);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-logo {
  display: block;
  width: clamp(220px, 28vw, 330px);
  height: 70px;
  object-fit: contain;
  object-position: left center;
}

.landing-page .topbar {
  position: fixed;
  right: 0;
  left: 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.landing-page.landing-header-visible .topbar {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.landing-page {
  --landing-header-height: 99px;
  background:
    linear-gradient(135deg, rgba(223, 241, 231, 0.88), rgba(247, 248, 251, 0.86) 48%, rgba(237, 246, 251, 0.9)),
    var(--bg);
}

.landing-page .shell {
  width: 100%;
  margin: 0 auto;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 650;
}

.nav a:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.language-form select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  min-width: 0;
}

.auth-actions form {
  margin: 0;
}

.auth-actions a,
.auth-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.landing-page .auth-actions .header-cta {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.landing-page .auth-actions .header-cta:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.shell {
  width: min(1180px, calc(100% - 28px));
  margin: clamp(20px, 4vw, 34px) auto 64px;
}

.messages {
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 0;
}

.message {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.message.success {
  border-color: #b8d9c8;
  color: var(--accent-strong);
}

.message.error {
  border-color: #efb8b8;
  color: var(--danger);
}

.inline-loading {
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--accent-strong);
  font-weight: 800;
}

.inline-loading[hidden] {
  display: none;
}

.loading-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #cfe6da;
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.loading-spinner.large {
  width: 38px;
  height: 38px;
  border-width: 4px;
}

.generation-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(29, 37, 33, 0.46);
  backdrop-filter: blur(4px);
}

.generation-modal[hidden] {
  display: none;
}

.generation-modal-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(29, 37, 33, 0.22);
}

.generation-modal-card p {
  margin: 8px 0 4px;
  color: var(--muted);
}

.generation-modal-card small {
  color: var(--accent-strong);
  font-weight: 750;
}

.generation-modal-card .progress-track {
  grid-column: 1 / -1;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(29, 37, 33, 0.46);
  backdrop-filter: blur(4px);
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-modal-card {
  display: grid;
  gap: 18px;
  width: min(480px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(29, 37, 33, 0.22);
}

.confirm-modal-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.progress-track {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: var(--accent);
  animation: progress-slide 1.2s ease-in-out infinite;
}

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

@keyframes progress-slide {
  0% {
    transform: translateX(-110%);
  }
  50% {
    transform: translateX(85%);
  }
  100% {
    transform: translateX(245%);
  }
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(18px, 4vw, 26px);
}

.page-heading.compact {
  align-items: start;
}

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

.breadcrumb {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

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

h1 {
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}

.page-description {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.25;
}

.actions,
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: min(100%, 460px);
}

.search-form input {
  flex: 1 1 220px;
  width: auto;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.15;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover {
  border-color: #b7cbc2;
  background: var(--surface-strong);
}

.button.cta-button {
  border-color: rgba(36, 124, 90, 0.26);
  background: linear-gradient(135deg, #2f996f 0%, #18724f 100%);
  box-shadow: 0 14px 30px rgba(36, 124, 90, 0.24);
}

.button.cta-button:hover {
  background: linear-gradient(135deg, #247c5a 0%, #14563e 100%);
  box-shadow: 0 18px 34px rgba(24, 92, 67, 0.28);
}

.button.danger {
  background: var(--danger);
  color: #ffffff;
}

.button.danger:hover {
  background: #842a2a;
}

.button.compact {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.button-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  animation: spin 0.75s linear infinite;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat,
.panel,
.form-surface,
.table-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat {
  padding: clamp(16px, 4vw, 20px);
}

.stat span {
  display: block;
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.stat p {
  margin: 4px 0 0;
  color: var(--muted);
}

.stat-link {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.stat-link:hover {
  border-color: #b7cbc2;
  box-shadow: 0 16px 34px rgba(24, 33, 29, 0.1);
  transform: translateY(-2px);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.panel,
.form-surface {
  padding: clamp(16px, 4vw, 22px);
}

.panel > h2 {
  margin-bottom: 14px;
}

.panel.wide,
.result-panel {
  margin-top: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.panel-head a,
.panel-head small {
  color: var(--muted);
  font-weight: 700;
}

.item-list {
  display: grid;
  gap: 10px;
}

.row-link,
.table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.row-link:hover,
.table-row:hover {
  border-color: #bdd5ca;
  background: var(--surface-strong);
}

.row-link.static:hover {
  border-color: var(--line);
  background: var(--surface-soft);
}

.row-link span:first-child,
.table-row span:first-child {
  min-width: 0;
}

.row-link .actions,
.table-row .actions {
  justify-content: flex-end;
}

strong {
  display: block;
  overflow-wrap: anywhere;
}

small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  animation: spin 0.75s linear infinite;
  opacity: 0.75;
}

.status-spinner[hidden] {
  display: none;
}

.status.ok {
  background: #dff1e7;
  color: var(--accent-strong);
}

.status.muted {
  background: #edf0ed;
}

.status-queued,
.status-pending {
  background: #e7f0ff;
  color: var(--info);
}

.status-processing {
  background: #fff1cc;
  color: #8a5a00;
}

.status-sent,
.status-success {
  background: #dff1e7;
  color: var(--accent-strong);
}

.status-failed {
  background: #f9dddd;
  color: var(--danger);
}

.status-cancelled {
  background: #edf0ed;
  color: #5e6862;
}

.empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-soft);
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 100vh;
  padding: clamp(18px, 3vw, 34px) 0 clamp(50px, 8vw, 88px);
}

.landing-hero-copy {
  min-width: 0;
  max-width: 680px;
}

.landing-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 4.4vw, 46px);
  line-height: 1.06;
}

.landing-logo {
  display: block;
  width: min(100%, 480px);
  height: auto;
  margin: 0 0 40px;
}

.landing-hero p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.landing-actions .button {
  min-height: 50px;
  padding-inline: 20px;
  font-size: 15px;
}

.landing-actions .button.secondary {
  border-color: #bfd6cc;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 26px rgba(24, 33, 29, 0.08);
}

.landing-actions .button.subtle-button {
  border-color: rgba(24, 33, 29, 0.14);
  background: rgba(255, 255, 255, 0.58);
  color: #24312b;
  box-shadow: none;
}

.landing-actions .button.subtle-button:hover {
  border-color: rgba(36, 124, 90, 0.26);
  background: rgba(255, 255, 255, 0.82);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cta-highlights {
  margin: 12px 0 18px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #cfe2d8;
  border-radius: 999px;
  background: rgba(247, 251, 248, 0.68);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.product-preview {
  display: grid;
  min-width: 0;
}

.preview-window {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid #cfded6;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(24, 33, 29, 0.14);
  animation: preview-float 0.9s ease-out 0.15s both;
}

.preview-bar {
  display: flex;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #8aa89a;
}

.preview-content {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 4vw, 26px);
}

.preview-summary,
.preview-message,
.preview-status-row {
  animation: preview-rise 0.85s ease-out both;
}

.preview-summary {
  animation-delay: 0s;
}

.preview-content strong {
  margin-top: 4px;
  font-size: 24px;
}

.preview-message {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbf8;
}

.preview-step-one {
  animation-delay: 0.28s;
}

.preview-step-two {
  animation-delay: 0.46s;
}

.preview-message.muted {
  background: var(--surface-soft);
}

.preview-message span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-message p {
  margin: 0;
  color: var(--text);
}

.preview-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-step-three {
  animation-delay: 0.64s;
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(36, 124, 90, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  transform: translateX(-50%);
  box-shadow: 0 12px 26px rgba(24, 33, 29, 0.08);
}

.scroll-cue span:last-child {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  animation: scroll-cue-bounce 1.7s ease-in-out infinite;
}

@keyframes preview-float {
  0% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes preview-rise {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-cue-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-window,
  .preview-summary,
  .preview-message,
  .preview-status-row,
  .scroll-cue span:last-child,
  .mockup-progress::after,
  .document-mockup small,
  .generation-mockup small,
  .phone-mockup .mockup-bubble {
    animation: none;
  }

  .mockup-progress::after {
    transform: scaleX(1);
  }

  .document-mockup small,
  .generation-mockup small,
  .phone-mockup .mockup-bubble {
    opacity: 1;
    transform: none;
  }
}

.landing-section {
  width: 100%;
  scroll-margin-top: var(--landing-header-height);
  padding: clamp(54px, 8vw, 96px) 0;
  background: var(--bg);
}

.landing-section:nth-of-type(odd) {
  background:
    linear-gradient(135deg, rgba(223, 241, 231, 0.72), rgba(247, 248, 251, 0.78) 52%, rgba(237, 246, 251, 0.78)),
    var(--bg);
}

.landing-section-inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin-bottom: 20px;
}

.section-heading h2,
.benefit-band h2,
.pricing-cta h2 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  min-width: 0;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.price-card:hover {
  border-color: #b7d5c7;
  box-shadow: 0 18px 42px rgba(24, 33, 29, 0.1);
  transform: translateY(-2px);
}

.price-card h3 {
  margin: 16px 0 8px;
  font-size: 18px;
}

.price-card p,
.benefit-list p {
  margin: 0;
  color: var(--muted);
}

.price-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.price-list li {
  display: flex;
  gap: 8px;
}

.price-list li::before {
  color: var(--accent);
  content: "\2713";
}

.benefit-band {
  background: var(--bg);
}

.benefit-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 54px);
}

.benefit-list {
  display: grid;
  gap: 12px;
}

.benefit-list p {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #cfddd5;
  color: var(--text);
  font-weight: 700;
}

.benefit-list p span {
  display: inline-grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
}

.benefit-list p:last-child {
  border-bottom: 0;
}

.workflow-strip {
  --workflow-arrow-size: 34px;
  --workflow-mockup-height: 248px;
  --workflow-arrow-lift: 0px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(12px, 2.5vw, 24px);
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid #d5e4dc;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 34px rgba(24, 33, 29, 0.06);
}

.workflow-heading {
  max-width: 800px;
  margin-bottom: clamp(28px, 5vw, 42px);
}

.workflow-intro {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.55;
}

.workflow-step {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.workflow-step > strong {
  margin-top: 4px;
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.25;
}

.workflow-step > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.workflow-details {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}

.workflow-details li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}

.workflow-details li::before {
  color: var(--accent);
  content: "\2713";
}

.workflow-arrow {
  display: grid;
  width: var(--workflow-arrow-size);
  height: var(--workflow-arrow-size);
  margin-top: calc(((var(--workflow-mockup-height) - var(--workflow-arrow-size)) / 2) - var(--workflow-arrow-lift));
  place-items: center;
  border-radius: 999px;
  background: #e1f0e8;
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  padding-bottom: 5px;
}

.workflow-arrow span {
  transform: translateY(-1px);
}

.workflow-mockup {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  height: var(--workflow-mockup-height);
  padding: 16px;
  overflow: hidden;
  border: 1px solid #d7e6de;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.mockup-body {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 0;
}

.mockup-label {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.workflow-mockup strong {
  margin-top: 2px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.workflow-mockup small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.18;
}

.mockup-bubble {
  display: block;
  border-radius: 999px;
  background: #dfeae5;
}

.mockup-progress {
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7f1ec;
}

.mockup-progress::after {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f996f, #1a8ba3);
  content: "";
  transform-origin: left;
  transform: scaleX(0);
}

.document-mockup small,
.generation-mockup small {
  opacity: 0.35;
  transform: translateX(-5px);
}

.document-mockup small:nth-of-type(2) {
  animation-delay: 0.24s;
}

.document-mockup small:nth-of-type(3) {
  animation-delay: 0.4s;
}

.document-mockup small:nth-of-type(4) {
  animation-delay: 0.56s;
}

.document-mockup small:nth-of-type(5) {
  animation-delay: 0.72s;
}

.phone-mockup .mockup-bubble {
  width: 100%;
  max-width: 100%;
  min-height: 28px;
  padding: 7px 10px;
  border-radius: 14px 14px 14px 4px;
  background: #dff1e7;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  opacity: 0.3;
  transform: translateY(6px);
}

.phone-mockup .mockup-bubble.muted {
  margin-left: 0;
  border-radius: 14px 14px 4px 14px;
  background: #edf0ed;
  color: var(--muted);
  animation-delay: 0.28s;
}

.phone-mockup .mockup-bubble:nth-of-type(3) {
  animation-delay: 0.46s;
}

.phone-mockup .mockup-bubble:nth-of-type(4) {
  animation-delay: 0.64s;
}

.workflow-strip.is-visible .mockup-progress::after {
  animation: workflow-progress 2s ease-out 0.15s both;
}

.workflow-strip.is-visible .document-mockup small,
.workflow-strip.is-visible .generation-mockup small {
  animation: workflow-line 1.2s ease-out both;
}

.workflow-strip.is-visible .document-mockup small:nth-of-type(2) {
  animation-delay: 0.34s;
}

.workflow-strip.is-visible .document-mockup small:nth-of-type(3) {
  animation-delay: 0.58s;
}

.workflow-strip.is-visible .document-mockup small:nth-of-type(4) {
  animation-delay: 0.82s;
}

.workflow-strip.is-visible .document-mockup small:nth-of-type(5) {
  animation-delay: 1.06s;
}

.workflow-strip.is-visible .generation-mockup small {
  animation-delay: 2.26s;
}

.workflow-strip.is-visible .generation-mockup small:nth-of-type(2) {
  animation-delay: 2.5s;
}

.workflow-strip.is-visible .generation-mockup small:nth-of-type(3) {
  animation-delay: 2.74s;
}

.workflow-strip.is-visible .generation-mockup small:nth-of-type(4) {
  animation-delay: 2.98s;
}

.workflow-strip.is-visible .generation-mockup small:nth-of-type(5) {
  animation-delay: 3.22s;
}

.workflow-strip.is-visible .generation-mockup small:nth-of-type(6) {
  animation-delay: 3.46s;
}

.workflow-strip.is-visible .phone-mockup .mockup-bubble {
  animation: workflow-message 1.2s ease-out both;
  animation-delay: 4.66s;
}

.workflow-strip.is-visible .phone-mockup .mockup-bubble:nth-of-type(2) {
  animation-delay: 4.96s;
}

.workflow-strip.is-visible .phone-mockup .mockup-bubble:nth-of-type(3) {
  animation-delay: 5.26s;
}

.workflow-strip.is-visible .phone-mockup .mockup-bubble:nth-of-type(4) {
  animation-delay: 5.56s;
}

@keyframes workflow-progress {
  0% {
    transform: scaleX(0);
  }
  54%,
  100% {
    transform: scaleX(1);
  }
}

@keyframes workflow-line {
  0%,
  22% {
    opacity: 0.35;
    transform: translateX(-5px);
  }
  48%,
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes workflow-message {
  0%,
  24% {
    opacity: 0.3;
    transform: translateY(6px);
  }
  48%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-section {
  padding-bottom: clamp(54px, 8vw, 96px);
}

.price-card {
  display: grid;
  align-content: start;
  gap: 0;
  padding: clamp(20px, 3vw, 28px);
}

.price-card-header {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-bottom: clamp(22px, 3vw, 28px);
  border-bottom: 1px solid rgba(24, 33, 29, 0.09);
  text-align: center;
}

.price-card-content {
  display: grid;
  gap: 20px;
  padding-top: clamp(20px, 3vw, 26px);
}

.price-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 999px;
  background: #eef7f2;
  line-height: 1;
  font-size: clamp(31px, 4vw, 37px);
}

.price-card strong {
  display: block;
  margin: 4px 0 0;
  text-align: center;
  color: var(--accent-strong);
  font-size: 24px;
  line-height: 1;
}

.price-card h3 {
  margin: 0;
  text-align: center;
  font-size: clamp(23px, 3vw, 27px);
  line-height: 1.15;
}

.price-description {
  font-size: 16px;
  line-height: 1.55;
}

.price-card.featured .price-icon {
  background: #dff1e7;
}

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

.contact-inner {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(22px, 6vw, 76px);
}

.contact-messages .message {
  margin-bottom: clamp(18px, 3vw, 26px);
}

.contact-copy h2 {
  max-width: 500px;
  margin-top: 8px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 530px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 17px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form .form-actions {
  margin-top: 4px;
}

.price-card.featured {
  border-color: #9dc8b5;
  background: #f2faf5;
}

.pricing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 48px);
  margin-top: clamp(34px, 5vw, 62px);
  padding-top: clamp(28px, 4vw, 42px);
  border-top: 1px solid rgba(11, 118, 73, 0.16);
}

.pricing-cta h2 {
  max-width: 760px;
  margin: 0;
}

.table-panel {
  display: grid;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(105px, auto)) auto;
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.table-row:last-child {
  border-bottom-width: 0;
}

.classroom-table-row {
  grid-template-columns: minmax(180px, 1fr) auto minmax(120px, auto) minmax(260px, 1.4fr) auto;
  align-items: start;
}

.classroom-summary {
  display: grid;
  gap: 4px;
}

.classroom-subscribers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.subscriber-chip {
  display: grid;
  gap: 4px;
  min-width: min(100%, 180px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.subscriber-chip strong {
  font-size: 13px;
}

.subscriber-chip .status {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.generation-card {
  display: grid;
  gap: 14px;
  padding: clamp(14px, 4vw, 18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.generation-card .panel-head h2 {
  margin-bottom: 6px;
}

.generation-collapse {
  gap: 0;
}

.generation-collapse[open] {
  gap: 18px;
}

.generation-collapse-content {
  margin-top: 10px;
}

.generation-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.generation-summary::-webkit-details-marker {
  display: none;
}

.generation-summary h2 {
  margin-bottom: 6px;
}

.generation-summary .actions {
  align-items: center;
}

.status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.status-summary .status {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.delivery-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.delivery-status-summary .status {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.micro-lesson-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.micro-lesson-row > span > small {
  margin-top: 8px;
}

.delivery-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.delivery-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.delivery-row .actions {
  align-items: center;
}

.delivery-error {
  margin-top: 4px;
  color: var(--danger);
}

.collapse-label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.collapse-label::after {
  content: "Expandir";
}

.generation-collapse[open] .collapse-label::after {
  content: "Recolher";
}

.content-body {
  line-height: 1.65;
}

.content-source-note {
  display: grid;
  gap: 8px;
  margin: -4px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.content-source-note p,
.content-source-note ul {
  margin: 0;
}

.content-source-note ul {
  padding-left: 20px;
}

.content-source-note strong {
  display: inline;
  color: var(--text);
}

.form-surface {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.form-surface.generator {
  max-width: none;
}

.form-surface.classroom-form {
  max-width: none;
}

.auth-page {
  background:
    linear-gradient(135deg, rgba(223, 241, 231, 0.88), rgba(247, 248, 251, 0.86) 48%, rgba(237, 246, 251, 0.9)),
    var(--bg);
}

.auth-page .topbar {
  display: none;
}

.auth-page .shell {
  display: grid;
  align-items: center;
  min-height: 100vh;
  margin-block: 0;
  padding-block: clamp(26px, 5vw, 56px);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(28px, 7vw, 88px);
  width: 100%;
}

.auth-intro {
  max-width: 610px;
}

.auth-logo-link {
  display: inline-flex;
  margin-bottom: clamp(24px, 5vw, 42px);
}

.auth-logo {
  width: min(100%, 360px);
  height: auto;
}

.auth-intro h1 {
  max-width: 560px;
}

.auth-intro p:not(.eyebrow) {
  max-width: 540px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.auth-form {
  max-width: 520px;
  width: 100%;
  justify-self: end;
  padding: clamp(20px, 4vw, 30px);
  border-color: rgba(190, 211, 201, 0.95);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 26px 70px rgba(24, 33, 29, 0.12);
  backdrop-filter: blur(10px);
}

.auth-form .form-actions {
  margin-top: 4px;
}

.auth-form .button {
  min-height: 48px;
}

.auth-social {
  margin-top: 14px;
}

.phone-verify-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.phone-verify-actions form {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.form-grid.three {
  grid-template-columns: minmax(260px, 1.4fr) minmax(190px, 1fr) minmax(150px, 0.8fr);
}

.field,
.mini-field {
  display: grid;
  gap: 7px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea,
.mini-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.phone-input {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
}

.field .phone-input input,
.mini-field .phone-input input {
  min-width: 0;
}

.field .phone-input .phone-country-code,
.mini-field .phone-input .phone-country-code {
  display: grid;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  cursor: default;
  user-select: none;
}

.field textarea {
  resize: vertical;
}

.field ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  list-style: none;
  background: var(--surface-soft);
}

.field li label,
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  min-width: 0;
}

.field input[type="checkbox"],
.checkline input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.readonly-field {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.readonly-field strong {
  font-weight: 850;
}

.formatted-content-field {
  max-height: 360px;
  overflow: auto;
  line-height: 1.65;
  font-weight: 500;
}

.formatted-content-field h3,
.formatted-content-field h4,
.formatted-content-field h5 {
  margin: 18px 0 8px;
  line-height: 1.25;
}

.formatted-content-field h3:first-child,
.formatted-content-field h4:first-child,
.formatted-content-field h5:first-child {
  margin-top: 0;
}

.formatted-content-field p,
.formatted-content-field ul,
.formatted-content-field ol {
  margin: 0 0 12px;
}

.formatted-content-field ul,
.formatted-content-field ol {
  padding-left: 24px;
}

.formatted-content-field li {
  margin-bottom: 6px;
}

.formatted-content-field p:last-child,
.formatted-content-field ul:last-child,
.formatted-content-field ol:last-child {
  margin-bottom: 0;
}

.error,
.form-errors {
  color: var(--danger);
}

.form-errors {
  padding: 12px;
  border: 1px solid #e4baba;
  border-radius: var(--radius);
  background: #fff6f6;
}

.material-picker {
  display: grid;
  gap: 10px;
}

.inline-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.inline-rows {
  display: grid;
  gap: 10px;
}

.inline-panel-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
}

.inline-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.material-inline-row {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1.2fr);
}

.conflict-dates {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.classroom-shortcuts {
  display: grid;
  gap: 10px;
}

.material-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(96px, 110px) minmax(96px, 110px);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (max-width: 920px) {
  .landing-hero,
  .benefit-inner,
  .contact-inner,
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-hero {
    min-height: 100vh;
  }

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

  .workflow-strip {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .workflow-arrow {
    justify-self: center;
    margin-top: 0;
    transform: rotate(90deg);
  }

  .pricing-cta {
    display: grid;
  }

  .auth-form {
    justify-self: stretch;
    max-width: none;
  }

  .form-grid.three,
  .material-inline-row,
  .material-row {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .classroom-table-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .table-row .button {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .landing-page {
    --landing-header-height: 0px;
  }

  .landing-page .topbar,
  .landing-page.landing-header-visible .topbar {
    display: none;
  }

  .topbar,
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .landing-section {
    scroll-margin-top: 0;
    padding: clamp(42px, 8vw, 64px) 0;
  }

  .landing-hero {
    min-height: auto;
    padding-block: clamp(28px, 8vw, 54px);
  }

  .scroll-cue {
    position: static;
    justify-self: center;
    transform: none;
  }

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

  .topbar {
    gap: 12px;
  }

  .auth-actions {
    justify-content: space-between;
  }

  .auth-actions span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-heading .actions,
  .panel-head .actions,
  .form-actions,
  .search-form {
    width: 100%;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-loading {
    grid-template-columns: auto 1fr;
  }

  .generation-modal {
    padding: 14px;
  }

  .generation-modal-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .inline-loading .progress-track {
    grid-column: 1 / -1;
  }

  .row-link,
  .table-row,
  .delivery-row,
  .generation-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .table-row {
    display: flex;
  }

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

  .row-link .actions,
  .table-row .actions,
  .delivery-row .actions,
  .generation-summary .actions {
    justify-content: flex-start;
  }

  .status {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .shell,
  .messages {
    width: min(100% - 20px, 1180px);
  }

  .auth-page .shell {
    width: min(100% - 24px, 1180px);
    padding-block: 20px;
  }

  .topbar {
    padding-inline: 10px;
  }

  .brand-logo {
    width: min(100%, 250px);
    height: 54px;
  }

  .landing-logo,
  .auth-logo {
    width: min(100%, 310px);
  }

  .panel,
  .form-surface,
  .generation-card,
  .inline-panel {
    padding: 14px;
  }

  .actions .button,
  .actions form,
  .form-actions .button,
  .form-actions form,
  .phone-verify-actions .button,
  .phone-verify-actions form,
  .search-form .button,
  .auth-actions form,
  .auth-actions a,
  .auth-actions button {
    width: 100%;
  }

  .actions form .button,
  .form-actions form .button {
    width: 100%;
  }

  .auth-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    min-height: 46px;
  }

  .button.compact {
    min-height: 42px;
  }

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

@media (min-width: 900px) {
  h1 {
    font-size: 48px;
  }

  .stat span {
    font-size: 34px;
  }
}

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