:root {
  color-scheme: light;
  --bg: #f4f6f2;
  --surface: #ffffff;
  --surface-2: #f1f7f3;
  --text: #17211f;
  --muted: #5d6c67;
  --line: #d7ded9;
  --accent: #1f7a5a;
  --accent-2: #b96f2d;
  --accent-3: #315f8c;
  --danger: #9c3838;
  --ink: #263532;
  --shadow: 0 18px 45px rgba(38, 53, 50, 0.1);
  --shadow-soft: 0 8px 24px rgba(38, 53, 50, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-weight: 700;
  min-width: 0;
}

.workspace-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mode-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #b8d6c8;
  background: var(--surface-2);
  color: var(--accent);
  border-radius: 999px;
  padding: 0 12px;
}

.header-note {
  font-size: 13px;
  white-space: nowrap;
}

.app-nav-links {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 3px;
}

.app-nav-links a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  padding: 0 9px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.app-nav-links a:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
}

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

.primary-button.alt {
  background: var(--accent-2);
}

.secondary-button {
  background: var(--ink);
  color: white;
}

.ghost-button {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.button-icon {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  font-size: 11px;
  font-weight: 900;
}

.app-shell {
  padding: 28px;
}

.product-banner {
  max-width: 1420px;
  min-height: 260px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.55fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  border: 1px solid #cad9d0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 122, 90, 0.08), rgba(185, 111, 45, 0.08)),
    #fffdf9;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.banner-copy {
  max-width: 820px;
}

.product-banner h1 {
  max-width: 760px;
  font-size: 48px;
  letter-spacing: 0;
}

.export-pack-visual {
  min-height: 194px;
  position: relative;
  display: grid;
  align-items: center;
}

.pack-spine {
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 52px;
  display: grid;
  place-items: center;
  background: #233b35;
  color: white;
  border-radius: 8px 0 0 8px;
  font-weight: 900;
  writing-mode: vertical-rl;
}

.pack-sheet {
  min-height: 142px;
  margin-left: 42px;
  border: 1px solid #cad9d0;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
  padding: 22px 24px;
  display: grid;
  gap: 10px;
  position: relative;
}

.pack-sheet.front {
  z-index: 2;
}

.pack-sheet.logs {
  position: absolute;
  inset: 40px 0 auto 76px;
  z-index: 1;
  transform: rotate(2deg);
  background: #f5fbf7;
}

.pack-sheet strong {
  color: var(--ink);
  font-size: 18px;
}

.pack-sheet span {
  height: 10px;
  max-width: 74%;
  border-radius: 999px;
  background: #dfe9e3;
  color: transparent;
}

.output-strip {
  max-width: 1420px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.output-card {
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  display: grid;
  align-content: start;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.output-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: rgba(31, 122, 90, 0.08);
}

.output-kicker {
  width: 42px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.output-kicker.blue {
  background: var(--accent-3);
}

.output-kicker.amber {
  background: var(--accent-2);
}

.output-kicker.dark {
  background: var(--ink);
}

.output-card strong {
  font-size: 17px;
}

.output-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 14px;
}

.workspace {
  max-width: 1420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.tool-panel,
.preview-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool-panel {
  padding: 24px;
}

.preview-panel {
  padding: 22px;
  position: sticky;
  top: 96px;
}

.intro-block {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.intro-block h2 {
  font-size: 28px;
}

.lede {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.preset-button {
  min-height: 86px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--text);
  padding: 13px;
  display: grid;
  gap: 5px;
}

.preset-button span {
  font-weight: 900;
}

.preset-button small {
  color: var(--muted);
  line-height: 1.35;
}

.preset-button.active {
  border-color: #87bca4;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px #87bca4;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.summary-tile {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfb;
  display: grid;
  align-content: center;
  gap: 3px;
}

.summary-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
}

.summary-label {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.stepper li {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  background: #fbfcfb;
}

.stepper li.active {
  background: var(--surface-2);
  color: var(--accent);
  border-color: #a7ccb9;
}

.guidance-system {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: -6px 0 20px;
}

.guidance-layer {
  min-height: 118px;
  border: 1px solid #c5d6cd;
  border-radius: 8px;
  background: #fbfcfb;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.guidance-layer span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 900;
}

.guidance-layer strong {
  font-size: 16px;
}

.guidance-layer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.smart-assist-band {
  border: 1px solid #d9c69f;
  border-radius: 8px;
  background: #fffaf0;
  padding: 16px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.smart-assist-band h3 {
  margin: 0;
  font-size: 20px;
}

.guide-checklist {
  display: grid;
  gap: 10px;
}

.guide-empty,
.process-ok {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  color: var(--muted);
}

.guide-empty strong,
.process-ok strong {
  color: var(--ink);
}

.guide-task,
.suggestion-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e2d0a8;
  border-radius: 8px;
  background: white;
  padding: 10px;
}

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

.guide-task p,
.suggestion-row p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 13px;
}

.priority-chip,
.context-chip {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.priority-chip.required {
  background: #f7e4e4;
  color: var(--danger);
}

.priority-chip.review {
  background: #fff1d6;
  color: #9a5c1f;
}

.priority-chip.recommended,
.context-chip {
  background: var(--surface-2);
  color: var(--accent);
}

.form-stack {
  display: grid;
  gap: 18px;
}

fieldset {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

legend {
  padding: 0 8px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  color: var(--ink);
}

.guided-field {
  align-content: start;
}

.label-row,
.block-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  font-weight: 700;
}

.field-example-button {
  min-height: 28px;
  border: 1px solid #c7d8ce;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.field-example-button:hover {
  border-color: #87bca4;
}

.field-intro {
  display: grid;
  gap: 5px;
  border: 1px solid #d8e4dd;
  border-radius: 8px;
  background: white;
  padding: 12px;
  margin-bottom: 14px;
}

.field-intro span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bdc9c3;
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 10px 11px;
  min-height: 42px;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.products-list {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.product-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
  box-shadow: 0 5px 16px rgba(38, 53, 50, 0.04);
}

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

.product-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-title {
  font-weight: 800;
}

.product-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--danger);
  display: grid;
  place-items: center;
  font-weight: 900;
}

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

.product-question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 700;
}

.check-row:hover,
.preset-button:hover,
.ghost-button:hover {
  border-color: #98b7aa;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.compact-check {
  min-height: 34px;
  padding: 8px 10px;
}

.guided-check {
  align-items: flex-start;
}

.guided-check span,
.process-choice span {
  display: grid;
  gap: 3px;
}

.guided-check small,
.process-choice small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.process-suggestions {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.coach-panel {
  border: 1px solid #c5d6cd;
  border-radius: 8px;
  background: #fbfcfb;
  padding: 14px;
  margin-bottom: 14px;
}

.coach-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.coach-head h3 {
  margin: 0;
  font-size: 18px;
}

.coach-list {
  margin: 0;
  display: grid;
  gap: 9px;
}

.coach-list div {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.coach-list dt {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.coach-list dd {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 13px;
}

.coach-action {
  width: 100%;
  margin-top: 12px;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.readiness-panel {
  min-height: 98px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 14px;
  margin-bottom: 14px;
}

.score-ring {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--accent) 0deg, #e3ece7 0deg);
  position: relative;
  font-weight: 900;
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: white;
}

.score-ring span {
  position: relative;
  z-index: 1;
}

.readiness-panel strong {
  display: block;
  margin-bottom: 4px;
}

.readiness-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.binder-visual {
  height: 142px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #28453d 0 54px, #eef5f1 54px 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.watermark-label {
  position: absolute;
  right: 24px;
  top: 22px;
  z-index: 4;
  transform: rotate(-12deg);
  min-width: 92px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(185, 111, 45, 0.55);
  color: rgba(185, 111, 45, 0.72);
  font-weight: 900;
  letter-spacing: 2px;
  background: rgba(255, 249, 236, 0.74);
}

.binder-ring {
  position: absolute;
  left: 18px;
  top: 26px;
  width: 16px;
  height: 90px;
  border: 3px solid #c7d8ce;
  border-radius: 999px;
}

.binder-page {
  position: absolute;
  left: 76px;
  top: 18px;
  width: 210px;
  height: 108px;
  background: white;
  border: 1px solid #cbd8d2;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(38, 53, 50, 0.12);
}

.binder-label {
  position: absolute;
  left: 78px;
  top: 22px;
  z-index: 3;
}

.binder-label strong,
.binder-label span {
  display: block;
}

.binder-label span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.binder-page span {
  display: block;
  height: 8px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #dce6e0;
}

.binder-page span:first-child {
  width: 72%;
  background: #93b7a5;
}

.preview-content {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 330px);
  overflow: auto;
  padding-right: 6px;
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.tab-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.tab-button.active {
  border-color: #87bca4;
  background: var(--surface-2);
  color: var(--accent);
}

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

.preview-section.featured {
  background: #fffdf8;
  border-color: #e0cda7;
}

.preview-section h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.preview-section ul {
  margin: 0;
  padding-left: 20px;
}

.preview-section li {
  margin: 5px 0;
  color: var(--muted);
  line-height: 1.4;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mini-table th,
.mini-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  vertical-align: top;
  text-align: left;
}

.mini-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.export-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid #e0cda7;
  border-radius: 8px;
  background: #fff9ec;
  padding: 14px;
}

.export-callout p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.price-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  background: #2b2f2c;
  color: white;
  padding: 0 12px;
  font-weight: 900;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.package-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.package-item strong,
.package-item span {
  display: block;
}

.package-item span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 260px;
  max-width: 420px;
  min-height: 44px;
  display: none;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  z-index: 20;
}

.toast.show {
  display: flex;
}

.landing-body,
.checkout-body {
  background: #f4f6f2;
}

.marketing-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.marketing-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.marketing-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.marketing-nav .nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  padding: 0 14px;
}

.landing-hero {
  max-width: 1420px;
  min-height: calc(100vh - 118px);
  margin: 0 auto;
  padding: 42px 28px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.landing-hero h1 {
  max-width: 820px;
  font-size: 58px;
  line-height: 1.02;
}

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

.primary-link-button,
.secondary-link-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 900;
}

.primary-link-button {
  background: var(--accent);
  color: white;
}

.secondary-link-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.full-width {
  width: 100%;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-proof span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #b8d6c8;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  padding: 0 12px;
  font-weight: 800;
}

.landing-document {
  min-height: 520px;
  border: 1px solid #cdd9d3;
  border-radius: 8px;
  background: #20362f;
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.document-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  font-weight: 900;
}

.document-toolbar strong {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffe4b9;
  border-radius: 8px;
  padding: 0 10px;
  letter-spacing: 1px;
}

.document-page {
  min-height: 420px;
  border-radius: 8px;
  background: #fffdf8;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.document-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 18px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.document-grid span {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 900;
  background: var(--surface-2);
}

.document-table {
  width: 100%;
  border-collapse: collapse;
}

.document-table th,
.document-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
}

.document-table th {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
}

.document-watermark {
  position: absolute;
  right: -16px;
  bottom: 82px;
  transform: rotate(-14deg);
  border: 3px solid rgba(185, 111, 45, 0.45);
  color: rgba(185, 111, 45, 0.68);
  font-weight: 900;
  letter-spacing: 2px;
  padding: 12px 18px;
}

.landing-section {
  max-width: 1420px;
  margin: 0 auto;
  padding: 54px 28px;
}

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

.section-heading h2,
.split-section h2 {
  font-size: 36px;
}

.landing-card-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.landing-card,
.price-card,
.payment-path-card,
.checkout-card,
.success-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.landing-card {
  min-height: 210px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.landing-card h3,
.payment-path-card h3 {
  margin: 0;
  font-size: 20px;
}

.landing-card p,
.payment-path-card p,
.price-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.marketing-steps,
.payment-steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.marketing-steps li,
.payment-steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
}

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

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

.payment-path-card {
  padding: 20px;
  display: grid;
  gap: 14px;
}

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

.price-card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.featured-price {
  border-color: #87bca4;
  box-shadow: inset 0 0 0 1px #87bca4, var(--shadow-soft);
}

.plan-name {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.price-card strong {
  font-size: 38px;
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.faq-grid details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 16px;
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-grid p {
  color: var(--muted);
}

.answer-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.answer-panel p:last-child {
  max-width: 940px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.output-package-table,
.comparison-table,
.use-case-table {
  width: 100%;
  border-collapse: collapse;
}

.output-package-table th,
.output-package-table td,
.comparison-table th,
.comparison-table td,
.use-case-table th,
.use-case-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.output-package-table th,
.comparison-table th,
.use-case-table th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 900;
}

.output-package-table td:nth-child(2),
.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
  font-weight: 800;
}

.table-note {
  color: var(--muted);
  margin-top: 12px;
}

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

.authority-grid article,
.seo-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.authority-grid h3,
.seo-grid h3 {
  margin: 0 0 8px;
}

.authority-grid p,
.seo-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.authority-grid a {
  color: var(--accent);
  font-weight: 800;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.link-grid a {
  min-height: 78px;
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  font-weight: 900;
  padding: 14px;
}

.seo-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px;
  display: grid;
  gap: 28px;
}

.seo-hero,
.seo-answer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.seo-hero h1 {
  max-width: 900px;
  font-size: 46px;
}

.seo-hero p,
.seo-answer p {
  max-width: 900px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 18px;
}

.marketing-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.checkout-shell,
.success-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 28px;
}

.checkout-card {
  width: min(1040px, 100%);
  padding: 28px;
  display: grid;
  gap: 24px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
}

.order-summary,
.payment-design {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcfb;
}

.order-row,
.order-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.muted-row {
  color: var(--muted);
}

.order-total {
  border-bottom: 0;
  font-size: 18px;
}

.wide-action {
  width: 100%;
}

.checkout-note {
  margin-bottom: 0;
  color: var(--muted);
}

.success-card {
  width: min(620px, 100%);
  padding: 36px;
  display: grid;
  gap: 14px;
  text-align: center;
  justify-items: center;
}

.success-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 900;
}

@media (max-width: 1040px) {
  .app-header {
    flex-wrap: wrap;
  }

  .product-banner {
    grid-template-columns: 1fr;
  }

  .landing-hero,
  .split-section,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .landing-card-grid,
  .output-strip,
  .authority-grid,
  .seo-grid,
  .link-grid,
  .guidance-system {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .export-pack-visual {
    min-height: 180px;
  }

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

  .preview-panel {
    position: static;
  }

  .preview-content {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .app-header,
  .marketing-header,
  .marketing-nav,
  .top-actions,
  .header-center,
  .workspace-status,
  .field-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .app-header {
    padding: 16px;
  }

  .app-shell {
    padding: 16px;
  }

  .landing-hero,
  .landing-section,
  .checkout-shell,
  .success-shell {
    padding: 22px 16px;
  }

  .landing-hero h1 {
    font-size: 38px;
  }

  .section-heading h2,
  .split-section h2 {
    font-size: 28px;
  }

  .product-banner {
    padding: 20px;
  }

  .product-banner h1 {
    font-size: 34px;
  }

  .top-actions,
  .app-nav-links,
  .hero-actions,
  .field-grid,
  .stepper,
  .summary-grid,
  .preset-row,
  .output-strip,
  .landing-card-grid,
  .pricing-grid,
  .document-grid,
  .authority-grid,
  .seo-grid,
  .link-grid,
  .guidance-system,
  .product-question-grid,
  .choice-grid,
  .allergen-grid,
  .preview-tabs,
  .package-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-nav-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-nav-links a {
    justify-content: center;
    padding: 0 6px;
  }

  h1 {
    font-size: 28px;
  }

  .tool-panel,
  .preview-panel {
    padding: 16px;
  }

  .pack-sheet.logs {
    display: none;
  }

  .export-callout,
  .readiness-panel,
  .smart-assist-band,
  .guide-task,
  .suggestion-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .export-callout {
    display: grid;
  }

  .marketing-footer {
    display: grid;
  }
}
