:root {
  --fb-primary: #102c32;
  --fb-accent: #048d70;
  --ink: #142536;
  --muted-ink: #5d6c77;
  --line: #dce5e5;
  --canvas: #f5f8f7;
  --paper: #fff;
  --teal: #087d69;
  --mint: #c9f4e5;
  --real-header-height: 64px;
  --quick-nav-height: 47px;
}
html { scroll-padding-top: calc(var(--real-header-height) + var(--quick-nav-height) + 20px); }
body { background: var(--canvas); color: var(--ink); overflow-wrap: break-word; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--fb-accent); outline-offset: 3px; }
:where(section[id], h2[id]) { scroll-margin-top: calc(var(--real-header-height) + var(--quick-nav-height) + 20px); }
.visually-hidden { position: absolute !important; 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; z-index: 999; top: -100px; left: 20px; background: #fff; padding: 12px 18px; border-radius: 5px; }
.skip-link:focus { top: 10px; }
main { display: block; }
mightora-header { display: block; position: sticky; top: 0; z-index: 70; background: #fff; box-shadow: 0 2px 12px rgba(8, 35, 41, .08); }
[data-theme="dark"] mightora-header { background: #1f292d; }
.mobile-menu-btn::after { content: '☰'; color: currentColor; font-size: 1.25rem; line-height: 1; }
.mobile-menu-btn[aria-expanded="true"]::after { content: '×'; }
mightora-header .fallback-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.fallback-brand { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.fallback-brand img { width: 112px; height: auto; }
.fallback-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.fallback-header nav a { color: var(--ink); font-size: .91rem; }
.quick-jump-nav { position: sticky; top: var(--real-header-height); z-index: 60; background: #e9f1ee; border-bottom: 1px solid #d5e3dd; }
.quick-links { min-height: var(--quick-nav-height); display: flex; align-items: center; gap: 26px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.quick-links a { color: #254b48; font-size: .82rem; font-weight: 700; }
.quick-links a:hover { color: #03674e; }
.container { max-width: 1220px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hero { background: #0b2630; color: #fff; position: relative; overflow: hidden; padding: clamp(68px, 8vw, 116px) 0 clamp(70px, 8vw, 100px); }
.surface-noise::before { content: ''; position: absolute; pointer-events: none; width: 56vw; height: 56vw; border-radius: 50%; right: -14vw; top: -25vw; border: 1px solid rgba(155, 236, 207, .13); box-shadow: 0 0 0 90px rgba(155,236,207,.035), 0 0 0 220px rgba(155,236,207,.025), 0 0 0 340px rgba(155,236,207,.015); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); gap: clamp(24px, 5vw, 76px); align-items: center; position: relative; }
.kicker { font-size: .76rem; letter-spacing: .13em; font-weight: 800; color: #adf1d8; display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }
.kicker-mark { width: 8px; height: 8px; background: #9ff1d5; border-radius: 50%; box-shadow: 0 0 0 5px rgba(159,241,213,.13); }
.hero h1 { color: #fff; font-weight: 760; letter-spacing: -.055em; font-size: clamp(3.4rem, 5.4vw, 5.6rem); line-height: 1.05; margin: 0 0 26px; }
.hero h1 em { color: #9ff1d5; font-style: normal; }
.hero-intro { font-size: clamp(1.03rem, 1.4vw, 1.19rem); line-height: 1.75; color: #c4d8da; max-width: 590px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 32px; }
.btn { border: 1px solid transparent; border-radius: 9px; min-height: 45px; padding: 12px 19px; display: inline-flex; justify-content: center; align-items: center; gap: 18px; text-decoration: none; font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #0a8269; color: #fff; }
.btn-primary:hover { background: #086d5a; color: #fff; }
.hero .btn-primary { background: #a8f3da; color: #092c2f; }
.hero .btn-primary:hover { background: #d0ffe9; }
.btn-quiet { background: transparent; color: var(--teal); }
.btn-quiet:hover { background: rgba(20,124,104,.07); color: #075e50; }
.hero .btn-quiet { color: #e2fbf1; }
.hero .btn-quiet:hover { color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { background: #fff; border-color: #b4d2c9; color: #176656; }
.btn-outline:hover { border-color: #3d9a80; color: #0a5446; }
.btn-small { min-height: 38px; padding: 8px 12px; font-size: .84rem; }
.hero-proof { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 29px; color: #9aafb4; font-size: .77rem; }
.hero-preview { border: 1px solid rgba(158,239,211,.17); background: rgba(9, 29, 35, .92); border-radius: 15px; box-shadow: 0 35px 70px rgba(0,0,0,.26); overflow: hidden; transform: rotate(1deg); }
.preview-top { min-height: 56px; display: flex; align-items: center; gap: 19px; color: #8eb3b5; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.09); font-size: .66rem; font-weight: 800; letter-spacing: .13em; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { display: block; width: 7px; height: 7px; background: #416267; border-radius: 50%; }
.preview-spark { margin-left: auto; color: #a5eed1; font-size: 1.4rem; }
.prompt-stack { padding: 22px; }
.prompt-line { display: grid; grid-template-columns: 25px 90px 1fr; gap: 12px; align-items: center; padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.075); font-size: .83rem; }
.line-number { color: #4f7880; font-family: ui-monospace, monospace; }
.line-key { color: #9ee7cb; font-size: .73rem; font-weight: 800; letter-spacing: .08em; }
.line-value { color: #d1e2e1; }
.preview-foot { padding: 17px 25px 23px; color: #9fb7bb; font-size: .76rem; display: flex; align-items: center; gap: 9px; }
.online-dot { background: #4bc7a3; width: 8px; height: 8px; display: inline-block; border-radius: 50%; box-shadow: 0 0 0 4px rgba(64,190,151,.12); flex: none; }
.section { padding-top: 88px; padding-bottom: 88px; }
.section-alt { background: #eaf1ee; border-block: 1px solid #dfebe5; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading h2, .narrow h2 { font-size: clamp(2rem, 3.3vw, 2.8rem); letter-spacing: -.04em; line-height: 1.18; margin: 5px 0 12px; color: var(--ink); }
.section-heading p:not(.eyebrow) { color: var(--muted-ink); font-size: .98rem; }
.eyebrow { color: #147360; font-size: .69rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.section-label { font: 700 .75rem ui-monospace, monospace; letter-spacing: .09em; color: #81918f; padding-bottom: 5px; white-space: nowrap; }
.builder-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 22px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 9px 32px rgba(15,65,59,.035); }
.builder-form { padding: clamp(20px, 3.6vw, 34px); }
.step-heading { display: flex; align-items: start; gap: 13px; margin-bottom: 24px; }
.step-heading h3 { font-size: 1.11rem; color: var(--ink); margin: 2px 0 3px; }
.step-heading p { color: var(--muted-ink); font-size: .81rem; }
.step-number { border-radius: 10px; width: 31px; height: 31px; display: grid; place-items: center; color: #075a4b; background: #d4f5e6; font-size: .85rem; font-weight: 900; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { margin-bottom: 18px; min-width: 0; }
.field label { display: block; font-size: .81rem; color: #354d51; font-weight: 780; margin-bottom: 8px; }
.field input, .field select, .field textarea { background: #fcfdfc; width: 100%; min-width: 0; border: 1px solid #cddbd7; border-radius: 8px; padding: 11px 12px; font-family: inherit; font-size: .92rem; color: #162e34; box-shadow: 0 1px 2px rgba(0,0,0,.015); }
.field textarea { min-height: 80px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #7c928f; }
.required { color: #6d8380; font-size: .73rem; font-weight: 500; }
.help-text { color: #778985; font-size: .76rem; line-height: 1.6; }
.form-divider { border-top: 1px solid #e5eeea; margin: 27px 0; }
.profile-editor { border: 1px dashed #bed7ce; border-radius: 10px; padding: 0 15px; margin-top: 4px; }
.profile-editor summary { cursor: pointer; padding: 12px 0; color: #0b725d; font-size: .83rem; font-weight: 750; list-style-position: inside; }
.profile-editor summary span { float: right; }
.profile-fields { padding: 10px 0 16px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; margin-bottom: 12px; }
.checks { display: grid; gap: 10px; }
.check-row { display: flex; align-items: start; gap: 13px; padding: 12px 14px; background: #f8faf9; border: 1px solid #e2ebe7; border-radius: 9px; cursor: pointer; }
.check-row input { margin: 5px 0 0; width: 17px; height: 17px; accent-color: var(--fb-accent); flex: none; }
.check-row span { display: grid; gap: 3px; }
.check-row strong { font-size: .82rem; color: #26454a; }
.check-row small { color: #6c807e; font-size: .74rem; }
.text-button { border: 0; background: none; color: #407568; font-size: .79rem; font-weight: 700; cursor: pointer; padding: 12px 0 0; }
.output-panel { position: sticky; top: calc(var(--real-header-height) + var(--quick-nav-height) + 18px); overflow: hidden; }
.output-header { padding: 26px 27px 16px; display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.output-header h3 { color: var(--ink); margin-top: 6px; font-size: 1.23rem; }
.output-tag { background: #e0f6eb; color: #15674f; border-radius: 6px; font-size: .67rem; padding: 7px 9px; font-weight: 800; max-width: 175px; }
.output-description { display: flex; align-items: center; gap: 10px; color: #69827c; font-size: .74rem; padding: 0 27px 18px; }
.output-code { display: block; width: calc(100% - 40px); margin: 0 20px; min-height: 475px; max-height: 640px; resize: vertical; padding: 22px; border: 1px solid #d5e2dd; border-radius: 9px; background: #10252b; color: #d7efe5; font: .81rem/1.73 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow: auto; }
.output-code::selection { background: #1c7160; color: #fff; }
.output-meta { display: flex; justify-content: space-between; gap: 12px; padding: 11px 26px 14px; color: #728683; font-size: .72rem; }
.output-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 10px; }
.output-actions .btn-primary { flex: 1; }
.status-message { margin: 0 24px 20px; min-height: 19px; color: #267662; font-size: .74rem; }
.output-tip { border-top: 1px solid #e1e9e6; background: #f6faf8; padding: 22px 27px; }
.output-tip strong { color: #285347; font-size: .8rem; }
.output-tip p { font-size: .81rem; line-height: 1.65; color: #647b74; margin-top: 5px; }
.template-tools { display: flex; gap: 20px; align-items: end; justify-content: space-between; }
.search-field { max-width: 410px; width: 100%; }
.template-count { color: #647a73; font-size: .75rem; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.filter-chip { border: 1px solid #c8dcd3; background: #fff; padding: 9px 13px; border-radius: 30px; cursor: pointer; color: #4b6760; font-size: .78rem; font-weight: 750; }
.filter-chip[aria-pressed="true"] { background: #0d6b5a; color: #fff; border-color: #0d6b5a; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.template-card { background: #fff; border: 1px solid #d5e3da; border-radius: 12px; padding: 21px; min-height: 196px; text-align: left; display: flex; flex-direction: column; align-items: start; gap: 10px; cursor: pointer; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.template-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18,84,65,.09); }
.template-card strong { font-size: 1.04rem; }
.template-card > span:not(.eyebrow):not(.template-action) { color: #627974; font-size: .83rem; line-height: 1.55; }
.template-action { color: #0a7c62; font-size: .74rem; font-weight: 800; margin-top: auto; }
.text-link { color: #0b725b; font-weight: 800; font-size: .84rem; white-space: nowrap; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 34px; }
.method-card { padding: 22px 22px 22px 0; border-top: 2px solid #a0d3bf; }
.method-card span { color: #0b8466; font: 700 .83rem ui-monospace, monospace; }
.method-card h3 { margin: 18px 0 9px; color: var(--ink); font-size: 1.16rem; }
.method-card p { color: var(--muted-ink); font-size: .87rem; }
.learn-banner { background: #e3f4ec; border: 1px solid #c8e7db; border-radius: 12px; padding: 28px 32px; margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.learn-banner h3 { color: #204b40; margin-bottom: 7px; }
.learn-banner p { font-size: .85rem; color: #527468; }
.narrow { max-width: 810px; }
.faq { border-bottom: 1px solid #cadaD1; padding: 2px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 19px 0; color: #214d45; font-weight: 800; position: relative; padding-right: 30px; }
.faq summary::after { content: '+'; position: absolute; right: 0; font-size: 1.3rem; font-weight: 400; }
.faq[open] summary::after { content: '−'; }
.faq p { padding: 0 25px 18px 0; font-size: .91rem; }
.privacy-grid { display: grid; grid-template-columns: 1fr .83fr; gap: 60px; align-items: center; }
.privacy-grid h2 { color: var(--ink); font-size: clamp(2rem, 3.3vw, 2.8rem); letter-spacing: -.045em; margin: 8px 0 15px; }
.privacy-grid > div:first-child > p:not(.eyebrow) { margin: 13px 0; color: #58716c; }
.privacy-card { border: 1px solid #d3e2d9; border-radius: 13px; background: #fff; padding: 28px; }
.privacy-card h3 { color: #20493f; margin-bottom: 13px; }
.privacy-card p, .privacy-card li { font-size: .84rem; color: #647b71; }
.privacy-card ol { margin: 14px 0 18px 22px; }
.privacy-card li { margin-bottom: 6px; }
.privacy-card a { font-weight: 800; font-size: .82rem; }
mightora-author { display: block; background: #e7f0ed; }
mightora-author .author-section-overlay { background: #e7f0ed; }
mightora-footer { display: block; background: #101d24; color: #e7f6f1; }
mightora-footer .footer-bottom { display: flex; flex-wrap: wrap; gap: 15px; justify-content: space-between; padding-block: 25px; }
mightora-footer .footer-copy { font-size: .82rem; }
mightora-footer .footer-bottom-links { font-size: .82rem; }
.trust-band { background: #dfece6; padding: 22px 0; border-top: 1px solid #d2e3db; }
.trust-band p { color: #49675b; font-size: .76rem; margin: 0 0 12px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge-row a { display: inline-flex; align-items: center; min-height: 20px; }
.badge-row img { height: 20px; max-width: none; }
.doc-page { background: #f7faf8; min-height: 50vh; }
.doc-hero { padding: 69px 0 52px; background: #0b2630; color: #fff; }
.doc-hero h1 { font-size: clamp(2.5rem, 4.2vw, 4rem); color: #fff; max-width: 800px; letter-spacing: -.05em; margin: 12px 0 15px; }
.doc-hero p:not(.eyebrow) { color: #bfd5d2; max-width: 720px; font-size: 1.05rem; }
.doc-hero .eyebrow { color: #9de4c9; }
.doc-body { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 55px; padding-block: 54px 100px; align-items: start; }
.doc-content { max-width: 800px; }
.doc-content h2 { color: var(--ink); margin: 35px 0 12px; font-size: 1.58rem; }
.doc-content h3 { color: var(--ink); margin: 25px 0 10px; }
.doc-content p, .doc-content li { color: #4b645e; line-height: 1.78; }
.doc-content p { margin-bottom: 14px; }
.doc-content ul, .doc-content ol { margin: 0 0 22px 22px; }
.doc-content pre { background: #10252b; color: #dcf5ea; border-radius: 12px; padding: 22px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; line-height: 1.65; margin-block: 16px 20px; }
.doc-content table { background: #fff; border-collapse: collapse; margin: 20px 0; width: 100%; }
.doc-content th, .doc-content td { padding: 12px; border: 1px solid #d7e5dd; text-align: left; vertical-align: top; font-size: .85rem; }
.doc-content th { background: #e9f4ed; color: #174c40; }
.doc-side { position: sticky; top: calc(var(--real-header-height) + 30px); background: #fff; border: 1px solid #dbe7e1; border-radius: 12px; padding: 22px; }
.doc-side h3 { color: #21483e; font-size: .92rem; margin-bottom: 13px; }
.doc-side a { display: block; font-size: .85rem; padding: 9px 0; border-bottom: 1px solid #e6eee9; }
.doc-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 20px 0 28px; }
.doc-card { border: 1px solid #d7e5dd; border-radius: 10px; background: #fff; padding: 22px; }
.doc-card h3 { margin: 0 0 10px; }
.doc-card p { font-size: .85rem; }
.doc-card a { font-weight: 800; }
[data-offline="true"] .online-only, [data-offline="true"] .badge-row, [data-offline="true"] .trust-band { display: none !important; }
[data-offline="true"] .offline-ribbon { display: block !important; }
.offline-ribbon { display: none; background: #def7e9; color: #0b674f; font-size: .8rem; font-weight: 900; text-align: center; padding: 9px; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-preview { max-width: 680px; transform: none; }
  .builder-grid { grid-template-columns: 1fr; }
  .output-panel { position: static; }
  .privacy-grid { gap: 30px; }
}
@media (max-width: 760px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .section { padding-top: 62px; padding-bottom: 62px; }
  .section-heading { display: block; }
  .section-label { display: none; }
  .hero { padding-top: 65px; padding-bottom: 65px; }
  .hero h1 { font-size: clamp(3rem, 10.5vw, 4.2rem); }
  .preview-top { font-size: .55rem; }
  .prompt-line { grid-template-columns: 20px 77px 1fr; gap: 7px; font-size: .7rem; }
  .prompt-stack { padding: 14px; }
  .template-grid, .method-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .privacy-grid, .doc-body { grid-template-columns: 1fr; }
  .doc-side { position: static; }
  .learn-banner { display: block; }
  .learn-banner .btn { margin-top: 18px; }
  .fallback-header { flex-wrap: wrap; padding-block: 10px; }
}
@media (max-width: 520px) {
  .form-grid, .template-grid, .method-grid, .doc-card-grid { grid-template-columns: 1fr; }
  .hero-proof { gap: 8px; }
  .builder-form { padding: 19px; }
  .output-header { display: block; }
  .output-tag { display: inline-block; margin-top: 12px; }
  .output-code { min-height: 340px; }
  .output-meta { flex-wrap: wrap; }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; }
  .quick-links { gap: 17px; }
  .template-card { min-height: 165px; }
  .fallback-header nav { font-size: .8rem; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
