:root {
  --blue: #0f6fff;
  --blue-dark: #0b2d65;
  --ink: #10213f;
  --muted: #61708f;
  --line: #dbe5f4;
  --soft: #f5f8ff;
  --green: #0aa769;
  --red: #c93b4b;
  --amber: #a86f05;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(29, 64, 120, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(840px, calc(100% - 32px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -50px; z-index: 9999; background: #111; color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(219,229,244,.9); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { display: block; width: 235px; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 700; }
.main-nav a { text-decoration: none; color: #294264; }
.main-nav a:hover { color: var(--blue); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 13px; border: 1px solid transparent; text-decoration: none; font-weight: 800; transition: .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: linear-gradient(135deg, #126fff, #3449e9); box-shadow: 0 10px 24px rgba(15,111,255,.22); }
.btn-primary:hover { box-shadow: 0 14px 28px rgba(15,111,255,.28); }
.btn-outline { color: var(--blue-dark); background: white; border-color: #c8d8ef; }
.btn-soft { color: #18428c; background: #edf4ff; border-color: #d8e5fb; }
.btn-white { background: #fff; color: #0c326d; }
.btn-sm { min-height: 38px; padding: 0 14px; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 24px; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.hero { padding: 78px 0 68px; background:
  radial-gradient(circle at 80% 10%, rgba(47,145,255,.13), transparent 32%),
  radial-gradient(circle at 10% 85%, rgba(109,86,255,.10), transparent 28%),
  linear-gradient(180deg, #f9fbff 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 70px; align-items: center; }
.eyebrow { display: inline-block; color: #1769df; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; font-size: 12px; }
.eyebrow.light { color: #b9d7ff; }
.hero h1 { margin: 14px 0 20px; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -.045em; color: #09265e; max-width: 780px; }
.hero-lead { margin: 0; max-width: 720px; color: #536583; font-size: clamp(18px, 2vw, 22px); }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; color: #536583; margin-top: 24px; font-size: 14px; font-weight: 700; }
.hero-demo { position: relative; }
.hero-demo:before { content: ""; position: absolute; inset: 12% -6% -10% 12%; background: #dfeaff; filter: blur(42px); border-radius: 50%; z-index: 0; }
.mini-window { position: relative; z-index: 1; background: #fff; border: 1px solid #dbe6f5; box-shadow: var(--shadow); border-radius: 24px; padding: 18px; overflow: hidden; }
.window-dots { display: flex; gap: 7px; margin: 2px 0 16px; }
.window-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ccd7ea; }
.window-dots i:nth-child(1) { background: #ff6d6d; } .window-dots i:nth-child(2) { background: #ffc54d; } .window-dots i:nth-child(3) { background: #48cc7a; }
.mini-window pre { margin: 0; padding: 22px; background: #f8faff; border: 1px solid #e5ecf7; border-radius: 18px; white-space: pre-wrap; color: #162b51; font-size: 17px; line-height: 1.7; }
.mini-result { margin-top: 14px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #0d2f6d; color: #fff; border-radius: 16px; }
.mini-result div { display: grid; gap: 3px; } .mini-result span { font-size: 12px; color: #bcd1f6; } .mini-result b { font-size: 21px; }

.generator-section { padding: 82px 0 88px; }
.section-heading { margin-bottom: 34px; }
.section-heading.center { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
.section-heading h2, .workspace-toolbar h2, .content-section h2, .whatsapp-section h2 { margin: 8px 0 10px; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -.03em; color: #0a2a61; }
.section-heading p, .content-section p { color: #5f6f8b; }
.generator-card { border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.step-block { padding: 30px; border-bottom: 1px solid var(--line); }
.step-block:last-child { border-bottom: 0; }
.step-title { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.step-title > span { flex: 0 0 36px; height: 36px; border-radius: 12px; background: #eaf2ff; color: var(--blue); display: grid; place-items: center; font-weight: 900; }
.step-title h3 { margin: 0 0 3px; font-size: 20px; } .step-title p { margin: 0; color: #71809c; font-size: 14px; }
.form-grid { display: grid; gap: 18px; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.span-2 { grid-column: span 2; }
label { display: grid; gap: 7px; color: #263b5d; font-size: 13px; font-weight: 800; }
label small { color: #7b89a4; font-weight: 500; }
input, select, textarea { width: 100%; border: 1px solid #cbd8eb; background: #fff; color: #142747; border-radius: 11px; padding: 11px 12px; outline: none; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: #72a7ff; box-shadow: 0 0 0 4px rgba(15,111,255,.10); }
textarea { resize: vertical; }
.check-label { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0 9px; padding-top: 25px; }
.check-label input { width: 18px; height: 18px; margin-top: 2px; }
.check-label small { grid-column: 2; }
.prompt-block { background: linear-gradient(180deg, #fbfdff, #fff); }
#invoicePrompt { min-height: 190px; font: 17px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #0c1b34; color: #edf5ff; border-color: #0c1b34; padding: 20px; border-radius: 16px; }
#invoicePrompt:focus { box-shadow: 0 0 0 4px rgba(15,111,255,.14); }
.examples-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: #6b7993; }
.example-btn, .text-btn { border: 0; background: #edf4ff; color: #1757aa; border-radius: 999px; padding: 7px 11px; font-weight: 800; }
.example-btn:hover, .text-btn:hover { background: #dfeaff; }
.generate-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 22px; }
.privacy-note { margin: 0; color: #64738e; font-size: 13px; }
.form-message { margin-top: 7px; min-height: 20px; font-size: 13px; font-weight: 700; }
.form-message.error { color: var(--red); } .form-message.warn { color: var(--amber); } .form-message.success { color: var(--green); }

.workspace { margin-top: 56px; scroll-margin-top: 90px; }
.currency-notice { padding: 15px 17px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fff8df; border: 1px solid #efd886; border-radius: 14px; color: #6c4f0d; }
.currency-notice select { max-width: 300px; background: #fff; }
.workspace-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.workspace-toolbar h2 { font-size: 34px; margin-bottom: 0; }
.toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: end; }
.workspace-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 24px; align-items: start; }
.editor-panel { border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.editor-section { padding: 21px; border-bottom: 1px solid var(--line); }
.editor-section:last-child { border-bottom: 0; }
.editor-section h3 { margin: 0 0 16px; font-size: 16px; color: #17345f; }
.editor-section > label + label { margin-top: 13px; }
.editor-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.editor-heading h3 { margin: 0; }
.compact { gap: 12px; }
.editor-table-wrap { overflow-x: auto; }
.editor-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 12px; }
.editor-table th { text-align: left; color: #71809a; padding: 8px 7px; }
.editor-table td { padding: 6px 5px; border-top: 1px solid #edf1f6; }
.editor-table input { padding: 8px; min-width: 70px; }
.editor-table td:nth-child(1) input { min-width: 210px; }
.row-amount { font-weight: 800; color: #21395f; white-space: nowrap; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 0; background: #fff1f2; color: #b02d43; font-size: 18px; }
.preview-panel { position: sticky; top: 96px; }
.preview-label { margin-bottom: 8px; font-size: 12px; font-weight: 900; color: #70809b; text-transform: uppercase; letter-spacing: .08em; }
.invoice-paper { min-height: 720px; background: #fff; border: 1px solid #dfe6f1; box-shadow: 0 22px 60px rgba(20,45,83,.13); padding: 42px; color: #1b3154; }
.paper-header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #e1e7f0; }
.paper-brand img { width: 190px; display: block; margin-bottom: 16px; }
.from-block { display: grid; gap: 2px; font-size: 12px; color: #61718b; max-width: 270px; }
.from-block strong { color: #17315b; font-size: 15px; }
.paper-title { text-align: right; }
.paper-title h2 { margin: 0; font-size: 29px; letter-spacing: .04em; color: #092a62; }
.paper-title span { color: #6f7f98; font-size: 12px; }
.paper-meta { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px; padding: 24px 0; }
.paper-meta > div:first-child { display: grid; gap: 3px; color: #66758f; font-size: 12px; }
.paper-meta strong { font-size: 16px; color: #17315b; }
.paper-meta small, .paper-notes small { display: block; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; color: #8693aa; font-size: 9px; }
.meta-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; font-size: 11px; color: #2b4264; }
.meta-grid span { display: grid; gap: 2px; }
.paper-table-wrap { overflow: hidden; }
.paper-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.paper-table thead { background: #edf4ff; }
.paper-table th, .paper-table td { padding: 10px 9px; border-bottom: 1px solid #e7edf5; text-align: left; }
.paper-table th { color: #284266; font-size: 10px; }
.paper-table th:nth-child(1), .paper-table td:nth-child(1) { width: 34px; }
.paper-table th:nth-child(3), .paper-table td:nth-child(3) { text-align: center; width: 54px; }
.paper-table th:nth-child(4), .paper-table td:nth-child(4), .paper-table th:nth-child(5), .paper-table td:nth-child(5) { text-align: right; white-space: nowrap; }
.paper-bottom { display: grid; grid-template-columns: 1fr 250px; gap: 28px; padding-top: 24px; }
.paper-notes p { margin: 5px 0 0; color: #65748e; font-size: 11px; }
.paper-totals { display: grid; gap: 8px; }
.paper-totals > div { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: #63718a; }
.paper-totals strong { color: #23395d; }
.paper-totals .grand-total { background: #edf4ff; padding: 10px 11px; margin-top: 4px; border-radius: 8px; color: #102c5e; font-weight: 900; font-size: 14px; }
.paper-footer { margin-top: 44px; padding-top: 14px; border-top: 1px solid #edf1f6; color: #9aa5b9; font-size: 9px; }

.content-section { padding: 86px 0; }
.soft-bg { background: var(--soft); }
.split-grid { display: grid; grid-template-columns: 1fr .92fr; gap: 54px; align-items: center; }
.feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 28px; }
.feature-grid article { padding: 20px; background: #fff; border: 1px solid #dce6f3; border-radius: 16px; }
.feature-grid b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #e8f1ff; color: var(--blue); }
.feature-grid h3 { margin: 11px 0 4px; font-size: 16px; }
.feature-grid p { margin: 0; font-size: 13px; }
.feature-image-card { margin: 0; padding: 12px; background: #fff; border: 1px solid #dce6f3; border-radius: 22px; box-shadow: var(--shadow); }
.feature-image-card img { display: block; border-radius: 15px; }
.feature-image-card figcaption { padding: 10px 6px 2px; color: #75839c; font-size: 12px; }
.prompt-example-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.prompt-example-grid article { border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.prompt-example-grid h3 { margin: 0 0 10px; font-size: 17px; }
.prompt-example-grid pre { margin: 0; white-space: pre-wrap; background: #0c1b34; color: #eaf2ff; border-radius: 12px; padding: 16px; font-size: 13px; line-height: 1.65; }

.whatsapp-section { padding: 0 0 88px; }
.whatsapp-card { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 44px; border-radius: 26px; background: linear-gradient(135deg, #0c2c65, #0c6f79); color: #fff; }
.whatsapp-section h2 { color: #fff; margin-top: 8px; }
.whatsapp-card p { margin: 0; max-width: 760px; color: #d8e7f8; }

#faq details { background: #fff; border: 1px solid #dce5f2; border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
#faq summary { cursor: pointer; list-style: none; font-weight: 850; padding: 17px 0; color: #17315b; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary:after { content: '+'; float: right; color: var(--blue); font-size: 20px; }
#faq details[open] summary:after { content: '–'; }
#faq details p { margin: -2px 0 18px; font-size: 14px; }

.site-footer { background: #081a38; color: #dbe7f8; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid img { width: 220px; filter: brightness(0) invert(1); opacity: .95; }
.footer-grid p { max-width: 500px; color: #9eb1cd; font-size: 13px; }
.footer-grid h3 { margin: 0 0 10px; font-size: 14px; color: #fff; }
.footer-grid a { display: block; margin: 7px 0; color: #aac0dc; text-decoration: none; font-size: 13px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09); color: #7991b0; font-size: 12px; }

@media (max-width: 960px) {
  .main-nav a:not(.btn) { display: none; }
  .hero-grid, .workspace-grid, .split-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .workspace-grid { gap: 18px; }
  .preview-panel { position: static; }
  .form-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid-3 .span-2 { grid-column: span 2; }
  .whatsapp-card { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 22px, 1180px); }
  .site-header { position: static; }
  .header-inner { min-height: 68px; }
  .brand img { width: 190px; }
  .main-nav .btn { display: none; }
  .hero { padding: 46px 0 52px; }
  .hero h1 { font-size: 42px; }
  .mini-result { align-items: flex-start; flex-direction: column; }
  .step-block { padding: 20px; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .span-2, .form-grid-3 .span-2 { grid-column: auto; }
  .check-label { padding-top: 5px; }
  .generate-row, .workspace-toolbar, .currency-notice { flex-direction: column; align-items: stretch; }
  .generate-row .btn { width: 100%; }
  .toolbar-actions { justify-content: stretch; }
  .toolbar-actions .btn { flex: 1; }
  .invoice-paper { padding: 24px 18px; min-height: 600px; }
  .paper-header, .paper-meta, .paper-bottom { grid-template-columns: 1fr; display: grid; }
  .paper-title { text-align: left; }
  .paper-meta { gap: 16px; }
  .paper-bottom { gap: 18px; }
  .paper-totals { max-width: none; }
  .paper-table { font-size: 9px; }
  .paper-table th, .paper-table td { padding: 8px 5px; }
  .feature-grid, .prompt-example-grid { grid-template-columns: 1fr; }
  .content-section { padding: 64px 0; }
  .whatsapp-card { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media print {
  @page { size: A4; margin: 0; }
  body * { visibility: hidden !important; }
  #invoicePaper, #invoicePaper * { visibility: visible !important; }
  #invoicePaper { position: absolute; inset: 0 auto auto 0; width: 210mm; min-height: 297mm; padding: 16mm; border: 0; box-shadow: none; }
}

/* v2: required currency, local business-logo upload and dedicated document generators */
.required-mark { color: #c93b4b; }
.mini-currency { display: grid; gap: 3px; margin: 0 0 12px; padding: 12px 16px; border: 1px solid #dce7f7; background: #f6f9ff; border-radius: 12px; color: #17315d; }
.mini-currency small { color: #71809b; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.logo-preview { grid-column: span 3; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px dashed #cbd8eb; border-radius: 12px; background: #f8fbff; }
.logo-preview[hidden] { display: none; }
.logo-preview img { width: auto; height: 54px; max-width: 180px; object-fit: contain; background: #fff; border-radius: 8px; padding: 5px; border: 1px solid #e2e8f2; }
.paper-brand .business-logo, .simple-paper-head .business-logo { width: auto; max-width: 190px; max-height: 82px; object-fit: contain; margin: 0 0 14px; }
.compact-hero { padding-top: 58px; padding-bottom: 58px; }
.compact-hero h1 { font-size: clamp(40px, 5.3vw, 66px); }
.tool-links-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tool-card { display: block; min-height: 225px; padding: 24px; border: 1px solid #dce6f3; border-radius: 20px; background: #fff; text-decoration: none; box-shadow: 0 12px 34px rgba(29,64,120,.07); transition: .2s ease; }
.tool-card:hover { transform: translateY(-3px); border-color: #b8cff1; box-shadow: 0 18px 42px rgba(29,64,120,.11); }
.tool-card > span { display: inline-block; font-size: 10px; letter-spacing: .11em; color: #1769df; font-weight: 900; }
.tool-card h3 { margin: 12px 0 8px; font-size: 20px; color: #0b2d65; }
.tool-card p { margin: 0 0 18px; font-size: 14px; color: #687893; }
.tool-card b { color: #1769df; font-size: 13px; }
.simple-preview-wrap { display: flex; justify-content: center; }
.simple-paper { width: min(100%, 820px); min-height: 760px; background: #fff; border: 1px solid #dfe6f1; box-shadow: 0 22px 60px rgba(20,45,83,.13); padding: 48px; color: #1b3154; }
.simple-paper-head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid #e1e7f0; }
.simple-paper-head > div { align-self: center; }
.simple-paper-head h2 { margin: 0 0 5px; font-size: 24px; color: #112f61; }
.simple-paper-head p { margin: 0; color: #687893; font-size: 12px; }
.simple-paper-head > strong { color: #092a62; font-size: 26px; letter-spacing: .03em; white-space: nowrap; }
.simple-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 26px 0; }
.simple-meta > div { display: grid; gap: 4px; padding: 16px; background: #f7f9fe; border-radius: 12px; }
.simple-meta small, .ship-address-grid small, .simple-notes small, .payment-amount-box small { text-transform: uppercase; letter-spacing: .08em; font-size: 9px; font-weight: 900; color: #8492a9; }
.simple-meta b { color: #17315b; }
.simple-meta span { color: #65758f; font-size: 12px; }
.simple-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.simple-table th { text-align: left; background: #edf4ff; color: #284266; }
.simple-table th, .simple-table td { padding: 12px 11px; border-bottom: 1px solid #e7edf5; }
.simple-table th:last-child, .simple-table td:last-child { text-align: right; }
.simple-table .total-row td { font-weight: 800; }
.simple-table .grand-row td { background: #edf4ff; font-size: 16px; font-weight: 900; color: #102c5e; }
.simple-notes { margin-top: 28px; padding-top: 18px; border-top: 1px solid #edf1f6; }
.simple-notes p { margin: 6px 0 0; color: #65748e; font-size: 13px; }
.payment-amount-box { margin: 28px 0; padding: 24px; background: #edf4ff; border-radius: 16px; display: grid; gap: 5px; }
.payment-amount-box b { font-size: 34px; color: #102c5e; }
.ship-address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 28px 0; }
.ship-address-grid > div { min-height: 160px; padding: 18px; border: 1px solid #e0e7f2; border-radius: 14px; background: #fbfcff; }
.ship-address-grid b { display: block; margin: 7px 0; color: #17315b; }
.ship-address-grid p { margin: 0; color: #65748e; font-size: 13px; }
.declared-value { margin: 24px 0 0 auto; max-width: 330px; padding: 14px 16px; background: #edf4ff; border-radius: 12px; display: flex; justify-content: space-between; gap: 20px; color: #102c5e; }
.declared-value strong { white-space: nowrap; }
.simple-doc-form input[type="file"] { padding: 9px; }

@media (max-width: 960px) {
  .tool-links-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .logo-preview { grid-column: span 2; }
}
@media (max-width: 680px) {
  .tool-links-grid { grid-template-columns: 1fr; }
  .logo-preview { grid-column: auto; }
  .simple-paper { padding: 25px 18px; min-height: 620px; }
  .simple-paper-head { grid-template-columns: 1fr; }
  .simple-paper-head > strong { font-size: 22px; }
  .simple-meta, .ship-address-grid { grid-template-columns: 1fr; }
}

@media print {
  body.print-simple * { visibility: hidden !important; }
  body.print-simple .simple-paper, body.print-simple .simple-paper * { visibility: visible !important; }
  body.print-simple .simple-paper { position: absolute; inset: 0 auto auto 0; width: 210mm; min-height: 297mm; padding: 16mm; border: 0; box-shadow: none; }
}
@media print {
  .simple-paper, .simple-paper * { visibility: visible !important; }
  .simple-paper { position: absolute; inset: 0 auto auto 0; width: 210mm; min-height: 297mm; padding: 16mm; border: 0; box-shadow: none; }
}
