:root {
  --ink: #101c2d;
  --paper: #f3efe5;
  --sheet: #fffdf5;
  --blue: #2456d8;
  --blue-dark: #173a92;
  --orange: #ff5c3f;
  --yellow: #f2cc4d;
  --mint: #9edcc8;
  --muted: #67707b;
  --line: #101c2d;
  --soft-line: #c9c4b9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 Arial, Helvetica, sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; color: var(--sheet); background: var(--ink); border-bottom: 4px solid var(--orange); }
.header-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; font-weight: 900; letter-spacing: -.035em; text-decoration: none; font-size: 20px; }
.brand-mark { width: 42px; height: 31px; display: grid; place-items: center; color: var(--ink); background: var(--yellow); border: 2px solid currentColor; font: 900 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: -.08em; box-shadow: 4px 4px 0 var(--orange); }
.desktop-nav { display: flex; align-items: center; gap: 30px; font: 700 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; }
.desktop-nav a { text-decoration: none; }
.desktop-nav a:hover { color: var(--yellow); }
.nav-cta { padding: 11px 14px; color: var(--ink); background: var(--yellow); border: 1px solid var(--yellow); }
.desktop-nav .nav-cta:hover { color: var(--ink); background: var(--sheet); }
.menu-button, .mobile-nav { display: none; }
.hero { position: relative; overflow: hidden; background: var(--sheet); border-bottom: 2px solid var(--ink); }
.hero::after { content: "SELL / SHIP / COUNT / REPEAT"; position: absolute; right: -36px; bottom: 72px; padding: 8px 30px; color: var(--sheet); background: var(--orange); font: 900 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; transform: rotate(-90deg) translateX(100%); transform-origin: right bottom; }
.hero-grid { min-height: 640px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 82px; align-items: center; padding-block: 74px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 23px; color: var(--blue); font: 900 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.kicker::before { content: ""; width: 30px; height: 4px; background: var(--orange); }
h1, h2, h3 { margin: 0; line-height: 1; letter-spacing: -.045em; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 { max-width: 760px; font-size: clamp(58px, 7.5vw, 96px); font-weight: 700; }
.hero h1 em { color: var(--blue); font-style: italic; }
.hero p { max-width: 610px; margin: 28px 0 33px; color: #3f4855; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button { min-height: 49px; display: inline-flex; justify-content: center; align-items: center; padding: 0 19px; border: 2px solid var(--ink); color: var(--ink); background: var(--sheet); font: 900 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button-primary { background: var(--yellow); }
.button-secondary { color: var(--sheet); background: var(--blue); }
.profit-card { position: relative; padding: 32px 31px 26px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--blue), 20px 20px 0 var(--orange); transform: rotate(1.2deg); }
.profit-card::before { content: "MP–1048"; position: absolute; top: 12px; right: 14px; color: var(--muted); font: 700 10px/1 ui-monospace, monospace; letter-spacing: .1em; }
.profit-card small { color: var(--blue); font: 900 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.profit-total { margin: 20px 0 30px; font: 900 clamp(54px, 6vw, 76px)/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: -.07em; }
.profit-row { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px dashed var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.profit-row strong.negative { color: #c63c25; }
.profit-card::after { content: "|||| ||| || ||||| ||| ||||"; display: block; overflow: hidden; margin-top: 24px; padding-top: 13px; border-top: 2px solid var(--ink); color: var(--ink); font: 900 17px/1 ui-monospace, monospace; letter-spacing: 3px; white-space: nowrap; }
.ticker { overflow: hidden; padding: 13px 0; color: var(--sheet); background: var(--blue); border-bottom: 2px solid var(--ink); font: 900 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; white-space: nowrap; }
.ticker span { display: block; width: max-content; }
.section { padding: 104px 0; }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: end; margin-bottom: 46px; padding-bottom: 23px; border-bottom: 2px solid var(--ink); }
.section-heading h2 { max-width: 740px; font-size: clamp(44px, 5.5vw, 70px); }
.section-heading p { max-width: 430px; margin: 0; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.tool-card { min-height: 148px; display: grid; grid-template-columns: 48px 1fr auto; gap: 18px; align-items: center; padding: 24px; color: var(--ink); background: var(--sheet); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); text-decoration: none; transition: background .15s, color .15s; }
.tool-card:hover { color: var(--sheet); background: var(--blue); }
.tool-index { align-self: start; color: var(--orange); font: 900 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.tool-icon { width: 48px; height: 48px; display: grid; place-items: center; float: left; margin-right: 15px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); font: 900 16px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.tool-card:hover .tool-icon { background: var(--orange); }
.tool-copy h3 { margin-bottom: 9px; padding-top: 2px; font-size: 21px; }
.tool-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.tool-card:hover .tool-copy p { color: #dbe4ff; }
.arrow { font: 900 22px/1 ui-monospace, monospace; }
.principles { color: var(--sheet); background: var(--ink); border-block: 6px solid var(--orange); }
.principles .section-heading { border-color: var(--sheet); }
.principles .section-heading p { color: #bec8d5; }
.principles .section-heading a { color: var(--yellow); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #677180; border-left: 1px solid #677180; }
.principle { min-height: 280px; padding: 30px; border-right: 1px solid #677180; border-bottom: 1px solid #677180; }
.principle b { display: block; margin-bottom: 48px; color: var(--orange); font: 900 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.principle h3 { max-width: 280px; font: 700 29px/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.principle p { margin: 18px 0 0; color: #bec8d5; }
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 48px; color: var(--sheet); background: var(--orange); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.cta-band h2 { max-width: 700px; font-size: clamp(40px, 5vw, 62px); }
.site-footer { padding: 58px 0 36px; color: var(--sheet); background: var(--ink); border-top: 2px solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; }
.footer-grid p { max-width: 530px; color: #aeb8c5; }
.footer-links { display: flex; align-items: start; gap: 24px; font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a { color: var(--sheet); text-decoration: none; }
.copyright { margin-top: 44px; padding-top: 20px; color: #818b98; border-top: 1px solid #485361; font: 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.tool-hero { padding: 68px 0 42px; background: var(--sheet); border-bottom: 2px solid var(--ink); }
.breadcrumb { margin-bottom: 32px; color: var(--blue); font: 800 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb a { text-decoration: none; }
.tool-title-row { display: grid; grid-template-columns: 82px 1fr; gap: 24px; align-items: center; }
.tool-title-row .tool-icon { width: 82px; height: 82px; margin: 0; float: none; background: var(--orange); font-size: 25px; box-shadow: 6px 6px 0 var(--blue); }
.tool-title-row h1 { font-size: clamp(48px, 6.5vw, 78px); }
.tool-lead { max-width: 760px; margin: 24px 0 0 106px; color: var(--muted); font-size: 18px; }
.utility-bar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--soft-line); }
.utility-bar label { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 800 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; }
.utility-bar select, .utility-actions button { height: 34px; padding: 0 11px; color: var(--ink); background: var(--sheet); border: 1px solid var(--ink); font: 800 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; cursor: pointer; }
.utility-actions { display: flex; align-items: center; gap: 8px; }
.utility-actions button:hover { color: var(--sheet); background: var(--blue); }
#copy-status { min-width: 110px; color: var(--blue); font: 800 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 26px; align-items: start; padding: 48px 0 96px; }
.panel { padding: 30px; background: var(--sheet); border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 29px; padding-bottom: 17px; border-bottom: 1px dashed var(--ink); }
.panel-top h2 { font: 700 28px/1 Georgia, "Times New Roman", serif; }
.text-button { padding: 6px 0; border: 0; color: var(--blue); background: transparent; font: 900 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; cursor: pointer; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 8px; color: var(--ink); font: 800 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .03em; text-transform: uppercase; }
.field input, .field select { width: 100%; min-height: 52px; padding: 0 14px; border: 2px solid var(--ink); color: var(--ink); background: white; border-radius: 0; outline: none; font: 700 15px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: inset 5px 0 0 var(--blue); }
.input-shell { position: relative; }
.input-shell[data-prefix]::before, .input-shell[data-suffix]::after { position: absolute; top: 50%; z-index: 1; color: var(--muted); transform: translateY(-50%); font: 700 13px/1 ui-monospace, monospace; }
.input-shell[data-prefix]::before { content: attr(data-prefix); left: 14px; }
.input-shell[data-prefix] input { padding-left: 30px; }
.input-shell[data-suffix]::after { content: attr(data-suffix); right: 14px; }
.input-shell[data-suffix] input { padding-right: 32px; }
.result-panel { position: sticky; top: 94px; color: var(--sheet); background: var(--blue); border-color: var(--ink); box-shadow: 7px 7px 0 var(--orange); }
.result-eyebrow { color: var(--yellow); font: 900 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.result-value { margin: 12px 0 5px; color: white; font: 900 clamp(48px, 6vw, 70px)/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: -.07em; }
.result-label { color: #d8e1ff; }
.result-items { margin: 29px 0 0; }
.result-items div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px dashed rgba(255,255,255,.55); }
.result-items dt { color: #d8e1ff; }
.result-items dd { margin: 0; font: 800 14px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: right; }
.result-note { margin: 23px 0 0; padding: 14px 15px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); font: 800 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.explain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-bottom: 104px; }
.explain-card { min-height: 260px; padding: 31px; background: var(--sheet); border: 2px solid var(--ink); }
.explain-card + .explain-card { border-left: 0; }
.explain-card h2 { margin-bottom: 20px; font-size: 30px; }
.explain-card p { margin-bottom: 0; color: var(--muted); }
.formula { color: var(--ink) !important; font: 700 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.guide-section { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; padding: 22px 0 104px; }
.guide-copy h2, .faq-heading h2 { font-size: clamp(42px, 5vw, 62px); }
.guide-copy p { max-width: 660px; color: var(--muted); font-size: 18px; }
.checklist { padding: 27px; color: var(--sheet); background: var(--ink); border-top: 7px solid var(--orange); box-shadow: 7px 7px 0 var(--blue); }
.checklist > span { color: var(--yellow); font: 900 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.checklist ol { margin: 25px 0 0; padding: 0; list-style: none; counter-reset: checklist; }
.checklist li { position: relative; padding: 14px 0 14px 42px; border-top: 1px dashed #677180; counter-increment: checklist; }
.checklist li::before { content: "0" counter(checklist); position: absolute; left: 0; color: var(--orange); font: 900 11px/1.6 ui-monospace, monospace; }
.faq-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; padding: 96px 0 116px; border-top: 2px solid var(--ink); }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 2px solid var(--ink); background: var(--sheet); }
.faq-list summary { position: relative; padding: 22px 54px 22px 20px; font: 800 17px/1.35 Arial, Helvetica, sans-serif; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 17px; color: var(--blue); font: 900 26px/1 ui-monospace, monospace; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 54px 24px 20px; color: var(--muted); }
.content-page { width: min(780px, calc(100% - 48px)); margin: auto; padding: 90px 0 120px; }
.content-page h1 { font-size: clamp(50px, 7vw, 76px); }
.content-page h2 { margin: 46px 0 15px; font-size: 31px; }
.content-page p, .content-page li { color: var(--muted); }
@media (max-width: 840px) {
  .desktop-nav { display: none; }
  .menu-button { width: 42px; height: 38px; display: inline-grid; place-items: center; color: var(--ink); background: var(--yellow); border: 2px solid var(--sheet); font-weight: 900; }
  .mobile-nav { position: absolute; top: 70px; left: 0; right: 0; padding: 24px; color: var(--sheet); background: var(--ink); border-bottom: 4px solid var(--orange); }
  .mobile-nav:not([hidden]) { display: grid; gap: 18px; }
  .mobile-nav a { font: 800 12px/1 ui-monospace, monospace; text-decoration: none; text-transform: uppercase; }
  .hero-grid, .calculator-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 58px; padding-block: 65px 90px; }
  .profit-card { width: min(520px, calc(100% - 24px)); transform: none; }
  .hero::after { display: none; }
  .section { padding: 80px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .principle-grid, .explain-grid { grid-template-columns: 1fr; }
  .guide-section, .faq-section { grid-template-columns: 1fr; gap: 36px; }
  .principle { min-height: auto; }
  .principle b { margin-bottom: 25px; }
  .explain-card + .explain-card { border-top: 0; border-left: 2px solid var(--ink); }
  .result-panel { position: static; }
  .tool-lead { margin-left: 0; }
  .cta-band, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 590px) {
  .shell { width: min(100% - 28px, 1160px); }
  .hero-grid { min-height: auto; }
  .hero h1 { font-size: 53px; }
  .hero p { font-size: 16px; }
  .button { width: 100%; }
  .utility-bar { align-items: stretch; flex-direction: column; padding-block: 18px; }
  .utility-bar label { justify-content: space-between; }
  .utility-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .utility-actions button { width: 100%; }
  #copy-status { grid-column: 1 / -1; min-height: 12px; }
  .profit-card { padding: 27px 22px 21px; box-shadow: 8px 8px 0 var(--blue), 14px 14px 0 var(--orange); }
  .profit-total { font-size: 52px; }
  .section-heading h2 { font-size: 45px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 136px; grid-template-columns: 1fr auto; padding: 20px; }
  .tool-icon { width: 42px; height: 42px; }
  .tool-index { display: none; }
  .cta-band { padding: 30px 24px; box-shadow: 7px 7px 0 var(--ink); }
  .tool-title-row { grid-template-columns: 60px 1fr; }
  .tool-title-row .tool-icon { width: 60px; height: 60px; box-shadow: 4px 4px 0 var(--blue); }
  .tool-title-row h1 { font-size: 42px; }
  .calculator-layout { padding-top: 30px; }
  .panel { padding: 22px; box-shadow: 5px 5px 0 var(--ink); }
  .fields { grid-template-columns: 1fr; }
  .guide-section { padding-bottom: 80px; }
  .faq-section { padding: 76px 0 90px; }
  .footer-links { gap: 18px; flex-wrap: wrap; }
}
