:root {
  --navy: #06254d;
  --navy-deep: #031a36;
  --orange: #ff4d0a;
  --orange-soft: #fff0e8;
  --cream: #f8f4eb;
  --paper: #fffdf8;
  --ink: #10233b;
  --muted: #657184;
  --line: #dedbd2;
  --yellow: #ffc62f;
  --white: #fff;
  --shadow: 0 22px 60px rgba(6, 37, 77, 0.11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 9%, rgba(255, 77, 10, 0.07) 0 5px, transparent 6px) 0 0 / 29px 29px,
    var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand-mark {
  width: 43px; height: 43px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: white; font-weight: 900; font-size: 22px;
  box-shadow: inset -5px -5px 0 rgba(255,255,255,.08);
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 15px; letter-spacing: .01em; }
.brand-copy small { color: var(--muted); font-size: 11px; margin-top: 5px; }

.header-contact {
  display: flex; align-items: center; gap: 9px; padding: 11px 16px; border: 1px solid rgba(6,37,77,.16);
  border-radius: 999px; text-decoration: none; color: var(--navy); font-size: 13px; font-weight: 750;
  background: rgba(255,255,255,.6); transition: .2s ease;
}
.header-contact:hover { transform: translateY(-2px); background: white; box-shadow: 0 8px 24px rgba(6,37,77,.08); }
.status-dot { width: 8px; height: 8px; background: #1fb867; border-radius: 50%; box-shadow: 0 0 0 4px rgba(31,184,103,.13); }

.hero {
  min-height: 390px; padding: 60px 68px 42px; background: var(--navy); color: white; border-radius: 36px;
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center;
  box-shadow: var(--shadow);
}
.hero::before {
  content: ""; position: absolute; width: 350px; height: 350px; border-radius: 50%; right: -125px; top: -180px;
  border: 50px solid rgba(255,255,255,.035);
}
.hero::after {
  content: ""; position: absolute; width: 120px; height: 120px; left: -45px; bottom: -45px;
  background: var(--orange); border-radius: 28px; transform: rotate(16deg);
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .step-label {
  margin: 0 0 17px; color: var(--orange); font-weight: 850; text-transform: uppercase; letter-spacing: .12em; font-size: 12px;
}
.eyebrow span { color: var(--yellow); margin-right: 6px; }
h1 { margin: 0; max-width: 690px; font-size: clamp(48px, 6.2vw, 76px); line-height: .95; letter-spacing: -.055em; font-weight: 900; }
h1 em { color: var(--orange); font-style: normal; }
.hero-lead { max-width: 590px; margin: 25px 0 0; color: #c5d3e3; font-size: 17px; line-height: 1.65; }

.hero-art { position: relative; height: 270px; z-index: 1; }
.book { position: absolute; width: 180px; height: 238px; border-radius: 8px 18px 18px 8px; transform-origin: center; }
.book-back { right: 14px; top: 10px; background: var(--orange); transform: rotate(11deg); box-shadow: 16px 18px 0 rgba(0,0,0,.14); }
.book-front { right: 65px; top: 20px; background: var(--paper); color: var(--navy); transform: rotate(-7deg); padding: 35px 26px; box-shadow: 12px 20px 38px rgba(0,0,0,.25); }
.book-front::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 3px; background: #e2ded4; }
.book-front span { font-size: 27px; font-weight: 950; line-height: .92; letter-spacing: -.04em; }
.book-front i { display: block; width: 55px; height: 7px; margin-top: 19px; background: var(--orange); }
.spark { position: absolute; color: var(--yellow); font-size: 31px; }
.spark-one { right: 15px; top: -9px; }
.spark-two { left: 15px; bottom: 16px; font-size: 21px; }

.mode-switch {
  position: relative; z-index: 3; margin: -29px 32px 24px; padding: 16px 18px 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: var(--paper); border: 1px solid rgba(6,37,77,.1); border-radius: 22px; box-shadow: var(--shadow);
}
.mode-switch-copy { display: grid; flex: 0 0 auto; }
.mode-switch-copy .step-label { margin-bottom: 3px; font-size: 9px; }
.mode-switch-copy strong { color: var(--navy); font-size: 16px; letter-spacing: -.02em; }
.mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(185px, 1fr)); gap: 7px; padding: 4px; background: #eceae4; border-radius: 16px; }
.mode-tab { min-height: 61px; padding: 8px 14px; border: 0; border-radius: 12px; display: flex; align-items: center; gap: 11px; color: var(--navy); background: transparent; cursor: pointer; text-align: left; transition: .2s ease; }
.mode-tab:hover { background: rgba(255,255,255,.65); }
.mode-tab.is-active { background: var(--navy); color: white; box-shadow: 0 6px 17px rgba(6,37,77,.2); }
.mode-tab-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(6,37,77,.08); color: var(--orange); font-size: 18px; font-weight: 900; }
.mode-tab.is-active .mode-tab-icon { background: rgba(255,255,255,.1); color: var(--yellow); }
.mode-tab > span:last-child { display: grid; }
.mode-tab b { font-size: 13px; }
.mode-tab small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.mode-tab.is-active small { color: #9db0c6; }
.mode-tab:focus-visible { outline: 3px solid rgba(255,77,10,.35); outline-offset: 2px; }
.calculator-panel[hidden] { display: none; }

.size-warning, .prepress-info {
  position: relative; z-index: 2; margin: 0 32px 42px; padding: 21px 27px; display: flex; align-items: center; gap: 17px;
  color: var(--navy-deep); border-radius: 22px; box-shadow: 0 12px 30px rgba(124,88,0,.12);
}
.size-warning { background: var(--yellow); }
.prepress-info { background: var(--orange-soft); border: 1px solid rgba(255,77,10,.22); box-shadow: 0 12px 30px rgba(255,77,10,.08); }
.prepress-info .warning-icon { background: var(--orange); }
.warning-icon { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; background: var(--navy); color: white; border-radius: 50%; font-weight: 900; }
.size-warning strong, .prepress-info strong { font-size: 15px; }
.size-warning p, .prepress-info p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; opacity: .8; }

.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(320px, .72fr); gap: 24px; align-items: start; }
.calculator-card, .summary-card { background: var(--paper); border: 1px solid rgba(6,37,77,.09); border-radius: 28px; box-shadow: var(--shadow); }
.calculator-card { overflow: hidden; }
.card-heading { padding: 35px 38px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.step-label { display: block; margin-bottom: 8px; }
h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; color: var(--navy); }

.service-toggle { display: grid; grid-template-columns: repeat(2, 1fr); background: #eceae4; padding: 4px; border-radius: 15px; min-width: 270px; }
.service-option input { position: absolute; opacity: 0; pointer-events: none; }
.service-option span { min-height: 56px; padding: 8px 16px; display: grid; place-items: center; align-content: center; border-radius: 12px; cursor: pointer; transition: .2s ease; }
.service-option b { color: var(--navy); font-size: 14px; }
.service-option b i { color: var(--orange); font-style: normal; }
.service-option small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.service-option input:checked + span { background: var(--navy); box-shadow: 0 5px 15px rgba(6,37,77,.18); }
.service-option input:checked + span b { color: white; }
.service-option input:checked + span small { color: #b7c8db; }
.service-option input:focus-visible + span { outline: 3px solid rgba(255,77,10,.35); }

.form-section { border-top: 1px solid var(--line); padding: 34px 38px 38px; }
.section-title { margin-bottom: 22px; }
.input-grid { display: grid; gap: 12px; }
.field-card { min-height: 84px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 17px; display: flex; align-items: center; gap: 14px; background: white; transition: .2s ease; }
.field-card:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,77,10,.09); }
.field-icon { flex: 0 0 auto; width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center; }
.field-icon.navy { color: var(--navy); background: #eaf0f7; }
.field-icon.orange { color: var(--orange); background: var(--orange-soft); }
.field-icon svg, .addon-icon svg, .time-icon svg, .copy-button svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field-copy { display: grid; margin-right: auto; }
.field-copy b { color: var(--navy); font-size: 14px; }
.field-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.number-control { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #faf9f5; }
.number-control input { width: 48px; border: 0; outline: 0; text-align: center; font-weight: 800; color: var(--navy); background: transparent; appearance: textfield; }
.number-control input::-webkit-inner-spin-button { appearance: none; }
.number-button { width: 34px; height: 36px; border: 0; background: transparent; color: var(--navy); cursor: pointer; font-weight: 800; font-size: 18px; transition: .15s ease; }
.number-button:hover { color: var(--orange); background: white; }
.number-button:focus-visible { outline: 2px solid var(--orange); outline-offset: -3px; }
.number-control.compact { overflow: visible; border: 0; gap: 6px; background: transparent; }
.number-control.compact input { width: 75px; height: 42px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: #faf9f5; }
.number-control.compact span { font-size: 11px; color: var(--muted); }

fieldset { margin: 0; min-width: 0; border: 0; border-top: 1px solid var(--line); }
.add-ons legend { width: 100%; padding: 0; margin-bottom: 20px; }
.legend-title { display: block; font-size: 25px; font-weight: 750; letter-spacing: -.035em; color: var(--navy); }
.addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.addon-option { position: relative; min-height: 95px; padding: 18px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.addon-icon { flex: 0 0 auto; width: 39px; height: 39px; border-radius: 12px; background: #eaf0f7; color: var(--navy); display: grid; place-items: center; }
.addon-option > span:not(.addon-icon):not(.number-control):not(.included-badge), .cd-option label > span:last-child { display: grid; }
.addon-option b { color: var(--navy); font-size: 14px; }
.addon-option small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.included-addon { border-color: rgba(255,77,10,.55); background: #fffaf6; }
.included-badge { position: absolute; top: 10px; right: 10px; padding: 4px 7px; border-radius: 999px; background: var(--orange); color: white; font-size: 8px; line-height: 1; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.cd-option { justify-content: space-between; }
.cd-option label { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.number-control.mini { flex: 0 0 auto; }
.number-control.mini input { width: 29px; }
.number-control.mini .number-button { width: 28px; }

.prepress-services legend { width: 100%; padding: 0; margin-bottom: 20px; }
.prepress-option-grid { display: grid; gap: 10px; }
.prepress-option { display: block; cursor: pointer; }
.prepress-option > input { position: absolute; opacity: 0; pointer-events: none; }
.prepress-option-ui { min-height: 78px; padding: 13px 46px 13px 15px; display: flex; align-items: center; gap: 13px; position: relative; border: 1px solid var(--line); border-radius: 16px; background: white; transition: .2s ease; }
.prepress-option:hover .prepress-option-ui { border-color: rgba(255,77,10,.45); transform: translateY(-1px); }
.prepress-option input:checked + .prepress-option-ui { border-color: var(--orange); background: #fffaf6; box-shadow: 0 0 0 3px rgba(255,77,10,.08); }
.prepress-option input:focus-visible + .prepress-option-ui { outline: 3px solid rgba(255,77,10,.3); outline-offset: 2px; }
.prepress-option-ui .addon-icon { font-size: 20px; font-weight: 850; }
.prepress-option-copy { display: grid; margin-right: auto; }
.prepress-option-copy b { color: var(--navy); font-size: 14px; }
.prepress-option-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.prepress-option-ui > strong { flex: 0 0 auto; color: var(--orange); font-size: 14px; }
.radio-ui { position: absolute; right: 15px; width: 18px; height: 18px; border: 1px solid #bebdb8; border-radius: 50%; }
.prepress-option input:checked + .prepress-option-ui .radio-ui { border: 5px solid var(--orange); }
.prepress-summary .receipt { min-height: 89px; display: flex; align-items: center; }
.prepress-summary .receipt-line { width: 100%; }

.summary-card { position: sticky; top: 22px; padding: 34px; background: var(--navy); color: white; overflow: hidden; }
.summary-card::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; border: 34px solid rgba(255,255,255,.035); right: -85px; top: -65px; }
.summary-top { position: relative; padding-bottom: 27px; border-bottom: 1px dashed rgba(255,255,255,.25); }
.summary-kicker { color: var(--yellow); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.total-price { margin-top: 9px; font-size: clamp(38px, 4vw, 49px); font-weight: 950; letter-spacing: -.055em; color: white; }
.summary-top p { margin: 6px 0 0; color: #9db0c6; font-size: 12px; }
.receipt { padding: 15px 0; }
.receipt-line { padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.receipt-line span { display: grid; }
.receipt-line b { font-size: 12px; color: #dce7f3; }
.receipt-line small { margin-top: 4px; color: #8298b1; font-size: 10px; }
.receipt-line strong { flex: 0 0 auto; font-size: 12px; }
.is-hidden { display: none; }
.time-card { margin: 4px 0 18px; padding: 14px; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; }
.time-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--yellow); background: rgba(255,198,47,.12); }
.time-card span:last-child { display: grid; }
.time-card small { color: #91a8c1; font-size: 10px; }
.time-card b { margin-top: 2px; font-size: 13px; }
.copy-button { width: 100%; min-height: 51px; border: 0; border-radius: 13px; background: var(--orange); color: white; display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 850; cursor: pointer; transition: .2s ease; }
.copy-button:hover { background: #ff6229; transform: translateY(-2px); box-shadow: 0 9px 25px rgba(255,77,10,.27); }
.copy-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.copy-button svg { width: 18px; }
.summary-note { margin: 15px 6px 0; text-align: center; color: #7188a2; font-size: 9px; line-height: 1.5; }

.price-reference { margin: 26px 0 80px; padding: 38px; display: grid; grid-template-columns: .65fr 1.35fr; gap: 44px; align-items: center; background: rgba(255,255,255,.56); border: 1px solid rgba(6,37,77,.08); border-radius: 28px; }
.price-table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; color: var(--navy); }
th, td { padding: 12px 15px; border-bottom: 1px solid var(--line); text-align: right; font-size: 12px; }
th { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }
th:first-child, td:first-child { text-align: left; }
td:not(:first-child) { font-weight: 850; }
td small { color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }

footer { padding: 25px 4px 38px; border-top: 1px solid rgba(6,37,77,.13); display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
footer p { margin: 0; }
footer div { display: flex; gap: 10px; }
footer a { color: var(--navy); text-decoration: none; font-weight: 700; }

.toast { position: fixed; z-index: 20; bottom: 24px; left: 50%; transform: translate(-50%, 30px); padding: 13px 18px; border-radius: 999px; background: var(--navy-deep); color: white; box-shadow: 0 12px 35px rgba(0,0,0,.22); font-size: 12px; font-weight: 750; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 50px 42px; }
  .hero-art { position: absolute; right: -15px; bottom: -52px; opacity: .25; transform: scale(.8); }
  .hero-copy { max-width: 680px; }
  .calculator-grid { grid-template-columns: 1fr; }
  .summary-card { position: relative; top: 0; }
  .price-reference { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 22px, 1180px); }
  .site-header { height: 75px; }
  .brand-copy small { display: none; }
  .header-contact { padding: 10px 12px; font-size: 0; }
  .header-contact::after { content: "WhatsApp"; font-size: 11px; }
  .hero { min-height: 390px; padding: 44px 25px; border-radius: 25px; }
  h1 { font-size: 47px; }
  .hero-lead { font-size: 14px; line-height: 1.55; }
  .hero-art { right: -82px; }
  .mode-switch { margin: -22px 10px 20px; padding: 15px; align-items: stretch; flex-direction: column; gap: 13px; }
  .mode-switch-copy { padding: 0 4px; }
  .mode-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .mode-tab { min-height: 57px; padding: 8px 9px; gap: 7px; }
  .mode-tab-icon { width: 28px; height: 28px; font-size: 14px; }
  .mode-tab b { font-size: 11px; }
  .mode-tab small { font-size: 8px; }
  .size-warning, .prepress-info { margin: 0 12px 27px; padding: 18px; align-items: flex-start; }
  .warning-icon { width: 27px; height: 27px; }
  .size-warning strong, .prepress-info strong { font-size: 13px; }
  .size-warning p, .prepress-info p { font-size: 11px; }
  .calculator-card, .summary-card { border-radius: 22px; }
  .card-heading { padding: 28px 22px; align-items: stretch; flex-direction: column; }
  .service-toggle { min-width: 0; width: 100%; }
  .form-section { padding: 28px 22px; }
  .field-card { padding: 13px 12px; }
  .field-icon { width: 37px; height: 37px; }
  .field-copy b { font-size: 12px; }
  .field-copy small { font-size: 9px; }
  .number-control.compact input { width: 59px; }
  .addon-grid { grid-template-columns: 1fr; }
  .prepress-option-ui { padding-left: 12px; gap: 10px; }
  .prepress-option-ui > strong { font-size: 12px; }
  .prepress-option-copy b { font-size: 12px; }
  .prepress-option-copy small { font-size: 8px; }
  .summary-card { padding: 28px 24px; }
  .price-reference { padding: 27px 21px; margin-bottom: 45px; }
  th, td { padding: 11px 7px; }
  footer { align-items: center; flex-direction: column; gap: 10px; }
}

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