:root {
  color-scheme: light;
  --ink: #123f3b;
  --muted: #5f7772;
  --line: #c6dcd7;
  --soft-line: rgba(13, 148, 136, 0.18);
  --paper: #fffef9;
  --panel: #ffffff;
  --bg: #f0fdfa;
  --primary: #0d9488;
  --primary-strong: #0f766e;
  --accent: #f97316;
  --accent-strong: #c2410c;
  --border: rgba(13, 148, 136, 0.16);
  --shadow: 0 18px 48px rgba(15, 82, 74, 0.1);
  --soft-shadow: 0 8px 28px rgba(15, 82, 74, 0.07);
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --trace-font: "Yu Kyokasho", "YuKyokasho", "UD Digi Kyokasho N-R", "BIZ UDPMincho",
    "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.08), transparent 42%),
    linear-gradient(rgba(13, 148, 136, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 32px 32px, 32px 32px, auto;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

button,
label,
input[type="radio"],
input[type="checkbox"],
input[type="range"] {
  cursor: pointer;
}

.site-header {
  align-items: center;
  background: rgba(240, 253, 250, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin: 14px auto 0;
  max-width: 1280px;
  padding: 10px 12px 10px 18px;
  position: sticky;
  top: 10px;
  z-index: 30;
}

.site-mark {
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.site-mark span,
.footer-brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
}

.site-mark small {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

.site-nav a,
.nav-feedback-button,
.soft-link,
.secondary-button {
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  min-height: 40px;
  padding: 10px 13px;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-feedback-button {
  background: rgba(255, 255, 255, 0.72);
}

.site-nav a:hover,
.nav-feedback-button:hover,
.soft-link:hover,
.secondary-button:hover {
  background: #fff;
  border-color: rgba(13, 148, 136, 0.32);
  transform: translateY(-1px);
}

.hero-strip {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1280px;
  padding: 46px 24px 28px;
}

.hero-strip h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  max-width: 900px;
}

.hero-copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  margin: 16px 0 0;
  max-width: 680px;
}

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

.hero-actions .print-button {
  justify-content: center;
  min-width: 170px;
}

.hero-notes {
  align-items: end;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.hero-notes span {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  white-space: nowrap;
}

.app-shell {
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 28px;
  margin: 0 auto;
  max-width: 1280px;
  min-height: 980px;
  padding: 18px;
}

.tool-panel,
.preview-panel {
  min-width: 0;
}

.tool-panel {
  align-self: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: 20px;
  position: sticky;
  top: 88px;
}

.brand-row,
.paper-header,
.note-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow,
.paper-header p {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--serif);
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.15;
}

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

.print-button {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.print-button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.print-button:focus-visible,
textarea:focus-visible,
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(234, 88, 12, 0.38);
  outline-offset: 3px;
}

.print-button svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

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

.field span,
legend,
.range-control span,
.switch-row,
.note-row {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}

textarea {
  background: #fbfffd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  line-height: 1.8;
  min-height: 210px;
  padding: 14px;
  resize: vertical;
  width: 100%;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

input,
select {
  background: #fbfffd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  padding: 0 14px;
  width: 100%;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

textarea:focus,
input:focus,
select:focus {
  border-color: rgba(13, 148, 136, 0.62);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.08);
}

select {
  appearance: none;
}

.save-panel {
  border-bottom: 1px solid rgba(13, 148, 136, 0.12);
  border-top: 1px solid rgba(13, 148, 136, 0.12);
  display: grid;
  gap: 12px;
  padding: 16px 0;
}

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

.save-actions .secondary-button {
  background: #fff;
  justify-self: stretch;
}

.danger-button {
  color: #9f2d12;
}

.save-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  min-height: 18px;
}

.premium-tools {
  background: #fffaf5;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.premium-tools.is-unlocked {
  background: #f7fcfa;
  border-color: rgba(13, 148, 136, 0.2);
}

.premium-tools-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.premium-tools-head h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0;
}

.premium-tools-head > span {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 8px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
  white-space: nowrap;
}

.premium-tools.is-unlocked .premium-tools-head > span {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.22);
  color: var(--primary-strong);
}

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

.premium-actions .secondary-button {
  background: #fff;
  justify-self: stretch;
}

.premium-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  margin: 0;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.controls-grid {
  display: grid;
  gap: 16px;
}

fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

legend {
  margin: 0 0 8px;
  padding: 0;
}

.segmented {
  background: #edf8f5;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  padding: 4px;
}

.segmented label {
  align-items: center;
  border-radius: 6px;
  color: var(--primary-strong);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 38px;
  position: relative;
}

.segmented input {
  appearance: none;
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.segmented label:has(input:checked) {
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 82, 74, 0.12);
}

.range-control {
  display: grid;
  gap: 8px;
}

input[type="range"] {
  accent-color: var(--primary);
  width: 100%;
}

.switch-row {
  align-items: center;
  background: #fbfffd;
  border: 1px solid rgba(13, 148, 136, 0.14);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
}

.switch-row input {
  accent-color: var(--primary);
  height: 20px;
  width: 20px;
}

.legal-page {
  margin: 0 auto;
  max-width: 760px;
  padding: 48px 20px 72px;
}

.legal-page article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  padding: 32px;
}

.legal-page h1 {
  font-size: 30px;
}

.legal-page h2 {
  font-family:
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui,
    sans-serif;
  font-size: 18px;
}

.legal-page p,
.legal-page li {
  color: var(--ink);
  line-height: 1.8;
}

.legal-page a {
  color: var(--primary-strong);
  font-weight: 700;
}

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

.legal-table th,
.legal-table td {
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  line-height: 1.7;
  padding: 14px 0;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--muted);
  font-size: 13px;
  width: 34%;
}

.premium-status {
  background: #f7fcfa;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
  padding: 14px 16px;
}

.premium-status.is-success {
  background: rgba(13, 148, 136, 0.08);
  color: var(--primary-strong);
}

.premium-status.is-warning {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.26);
  color: #9a3412;
}

.preview-panel {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-rows: auto 1fr;
  overflow: auto;
  padding: 4px 0 0;
}

.preview-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-width: 0;
  padding: 4px 8px 0;
}

.preview-head h2 {
  font-size: 19px;
}

.preview-head span {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.paper-wrap {
  display: grid;
  gap: 28px;
  justify-content: center;
  padding: 6px 0 40px;
}

.paper {
  --cell-size: 38px;
  --font-size: 28px;
  --trace-opacity: 0.24;
  background: var(--paper);
  box-shadow: var(--shadow);
  min-height: 1123px;
  padding: 46px;
  width: 794px;
}

.paper.template-manuscript {
  background:
    linear-gradient(rgba(13, 148, 136, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 22px 22px, 22px 22px, auto;
}

.paper.template-manuscript .line {
  border-color: rgba(13, 148, 136, 0.42);
}

.paper.template-manuscript .line.grid {
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.3) 1px, transparent 1px);
}

.paper.template-letter {
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 42px,
      rgba(13, 148, 136, 0.14) 43px,
      transparent 44px
    ),
    var(--paper);
}

.paper.template-letter .line {
  border-color: rgba(13, 148, 136, 0.22);
}

.paper.template-letter .line.grid {
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.13) 1px, transparent 1px);
}

.paper:not(:last-child) {
  margin-bottom: 0;
}

.paper-header {
  border-bottom: 2px solid var(--soft-line);
  margin-bottom: 28px;
  padding-bottom: 16px;
}

.paper-header > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.paper-header time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.paper-header time span {
  color: var(--primary);
  display: block;
  font-size: 11px;
  margin-top: 5px;
}

.practice-sheet {
  color: rgba(23, 61, 56, var(--trace-opacity));
  font-family: var(--trace-font);
  font-size: var(--font-size);
  line-height: 1;
}

.paper.vertical .practice-sheet {
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
  justify-content: end;
  min-height: 950px;
  overflow: hidden;
}

.paper.horizontal .practice-sheet {
  display: grid;
  gap: 14px;
}

.line {
  border: 1px solid var(--line);
  height: var(--cell-size);
  position: relative;
}

.vertical .line {
  height: calc(var(--cell-size) * var(--cells));
  min-width: var(--cell-size);
  width: var(--cell-size);
}

.horizontal .line {
  width: calc(var(--cell-size) * var(--cells));
}

.paper-header .header-title-line {
  color: rgba(23, 61, 56, var(--trace-opacity));
  font-family: var(--trace-font);
  height: var(--cell-size);
  max-width: 100%;
  width: calc(var(--cell-size) * var(--cells));
}

.paper-header .header-title-line .text-line {
  grid-template-columns: repeat(var(--cells), var(--cell-size));
  grid-template-rows: none;
}

.line.grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--cell-size) var(--cell-size);
}

.text-line {
  display: grid;
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 1;
}

.horizontal .text-line {
  grid-template-columns: repeat(var(--cells), var(--cell-size));
}

.vertical .text-line {
  grid-template-rows: repeat(var(--cells), var(--cell-size));
}

.practice-cell {
  align-items: center;
  display: flex;
  font-size: var(--line-font-size, inherit);
  height: var(--cell-size);
  justify-content: center;
  line-height: 1;
  overflow: hidden;
  position: relative;
  width: var(--cell-size);
}

.line.center .practice-cell::before,
.line.center .practice-cell::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.line.center .practice-cell::before {
  border-left: 1px solid rgba(15, 118, 110, 0.2);
  bottom: 0;
  left: 50%;
  top: 0;
}

.line.center .practice-cell::after {
  border-top: 1px solid rgba(15, 118, 110, 0.2);
  left: 0;
  right: 0;
  top: 50%;
}

.blank .practice-cell {
  color: transparent;
}

.premium-section,
.seo-section,
.faq-section {
  display: grid;
  gap: 24px;
  margin: 0 auto;
  max-width: 1280px;
  padding: 54px 24px 18px;
}

.faq-section {
  padding-bottom: 54px;
}

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

.seo-grid article,
.faq-list details {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  padding: 20px;
}

.seo-grid h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 8px;
}

.seo-grid p,
.faq-list p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

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

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.6;
}

.faq-list details[open] summary {
  margin-bottom: 10px;
}

.feedback-form {
  display: grid;
  gap: 16px;
  padding: 20px 22px 22px;
}

.feedback-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.feedback-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.feedback-trap {
  display: none;
}

.feedback-overlay {
  align-items: center;
  background: rgba(15, 46, 41, 0.38);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 50;
}

.feedback-overlay.is-open {
  display: flex;
}

.feedback-modal {
  background: #fffef9;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(15, 46, 41, 0.26);
  max-height: min(90vh, 760px);
  overflow: auto;
  width: min(100%, 560px);
}

.feedback-modal-head {
  align-items: start;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 22px 16px;
}

.feedback-modal-head h2 {
  font-size: 22px;
}

.feedback-modal-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 8px 0 0;
}

.feedback-close {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 22px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  width: 44px;
}

.feedback-close:hover {
  background: #f7fcfa;
}

.modal-open {
  overflow: hidden;
}

.section-heading {
  max-width: 780px;
}

.section-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 10px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

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

.price-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 14px;
  padding: 24px;
  position: relative;
}

.price-card.featured {
  border-color: rgba(234, 88, 12, 0.36);
  box-shadow: 0 18px 44px rgba(154, 52, 18, 0.12);
}

.plan-label {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.price-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0;
}

.price {
  color: var(--ink);
  font-size: 36px;
  font-weight: 900;
  margin: 0;
}

.price span {
  color: var(--muted);
  font-size: 13px;
  margin-left: 6px;
}

.price-card ul {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-card li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.price-card li::before {
  color: var(--primary);
  content: "✓";
  font-weight: 900;
  margin-right: 8px;
}

.secondary-button,
.buy-button,
.checkout-form {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  justify-self: start;
}

.checkout-form {
  margin: 0;
}

.premium-setup-alert {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.34);
  border-radius: 8px;
  color: #7c2d12;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

.premium-setup-alert[hidden] {
  display: none;
}

.premium-setup-alert strong {
  color: #9a3412;
  font-size: 16px;
}

.premium-setup-alert p {
  color: #7c2d12;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.premium-setup-alert code {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 6px;
  color: #7c2d12;
  display: inline-block;
  font-size: 12px;
  justify-self: start;
  padding: 5px 7px;
}

.site-footer {
  align-items: start;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1280px;
  padding: 28px 24px 46px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.7;
  margin: 4px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer a {
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.footer-feedback-button {
  background: transparent;
  border: 0;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 800;
  padding: 0;
}

.site-footer a:hover,
.footer-feedback-button:hover {
  text-decoration: underline;
}

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: 1fr;
    margin: 0 16px;
  }

  .tool-panel {
    position: static;
  }

  .paper-wrap {
    transform: scale(0.8);
    transform-origin: top center;
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero-strip,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    margin: 10px 12px 0;
    position: static;
  }

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

  .site-nav a,
  .nav-feedback-button {
    justify-content: center;
    text-align: center;
  }

  h1 {
    font-size: 29px;
  }

  .hero-strip {
    padding: 32px 16px 18px;
  }

  .hero-actions,
  .hero-notes {
    align-items: stretch;
    justify-items: stretch;
  }

  .hero-actions .print-button,
  .hero-actions .soft-link {
    width: 100%;
  }

  .app-shell {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin: 0;
    padding: 14px;
  }

  .brand-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .print-button {
    width: 100%;
    justify-content: center;
  }

  .paper-wrap {
    transform: scale(0.46);
  }

  .preview-panel {
    min-height: 560px;
  }

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

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

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@page {
  margin: 0;
  size: A4 portrait;
}

@media print {
  body * {
    visibility: hidden !important;
  }

  .paper-wrap,
  .paper-wrap *,
  .paper,
  .paper * {
    visibility: visible !important;
  }

  html,
  body {
    background: #fff;
    height: auto;
    margin: 0;
    min-height: 0;
    overflow: visible;
    padding: 0;
    width: 210mm;
  }

  .tool-panel {
    display: none;
  }

  .site-header,
  .hero-strip,
  .preview-head,
  .premium-section,
  .seo-section,
  .faq-section,
  .feedback-overlay,
  .site-footer {
    display: none !important;
  }

  main,
  .app-shell,
  .preview-panel,
  .paper-wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: block;
    margin: 0;
    min-height: 0;
    overflow: visible;
    padding: 0;
    transform: none;
    width: 210mm;
  }

  .paper {
    break-after: auto;
    box-shadow: none;
    height: 296.5mm;
    max-height: 296.5mm;
    min-height: 296.5mm;
    overflow: hidden;
    page-break-after: auto;
    padding: 14mm;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    width: 210mm;
  }

  .paper:not(:last-child) {
    break-after: page;
    page-break-after: always;
  }

  .paper.vertical .practice-sheet {
    min-height: 0;
  }
}
