:root {
    --ink: #182720;
    --muted: #74695e;
    --paper: #fffdf8;
    --canvas: #f4eee4;
    --line: #d9cdbd;
    --brand: #087f73;
    --brand-dark: #075e57;
    --brand-soft: #dff4ed;
    --blue: #285bc5;
    --blue-soft: #e8eefc;
    --gold: #b77908;
    --gold-soft: #fff2d7;
    --rust: #b34a29;
    --rust-soft: #fae7df;
    --shadow: 0 26px 70px rgba(63, 49, 35, 0.16);
    --header-height: 68px;
    --nav-height: 64px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--canvas);
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 14% 12%, rgba(8, 127, 115, 0.08), transparent 25rem),
        radial-gradient(circle at 88% 82%, rgba(40, 91, 197, 0.08), transparent 30rem),
        var(--canvas);
}

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

button {
    font: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 1rem;
    color: white;
    background: var(--ink);
    border-radius: 0.5rem;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.deck-header {
    position: fixed;
    z-index: 40;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.5rem;
    background: rgba(255, 253, 248, 0.92);
    border-bottom: 1px solid rgba(217, 205, 189, 0.8);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 166px;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.deck-tools {
    display: flex;
    gap: 0.5rem;
}

.tool-button,
.nav-button,
.close-button {
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    cursor: pointer;
}

.tool-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border-radius: 0.7rem;
}

.tool-button:hover,
.nav-button:hover,
.close-button:hover {
    color: var(--brand);
    border-color: var(--brand);
}

.tool-button svg {
    width: 18px;
    height: 18px;
}

.progress {
    position: fixed;
    z-index: 45;
    top: calc(var(--header-height) - 3px);
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
}

.progress-value {
    display: block;
    width: 10%;
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--blue), var(--gold), var(--rust));
    transform-origin: left center;
    transition: width 300ms ease;
}

.slides {
    width: 100%;
}

.slide {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: calc(var(--header-height) + clamp(2rem, 4vh, 3.5rem)) clamp(1.5rem, 6vw, 7.5rem) calc(var(--nav-height) + 3.25rem);
    overflow: hidden;
}

.js .slides {
    height: 100vh;
    overflow: hidden;
}

.js .slide {
    position: absolute;
    inset: 0;
    min-height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(2rem, 0, 0);
    transition:
        opacity 360ms ease,
        transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1),
        visibility 0s linear 420ms;
}

.js .slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
}

.slide::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(255, 253, 248, 0.98), rgba(247, 242, 233, 0.93)),
        var(--canvas);
}

.slide::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 34rem;
    height: 34rem;
    right: -12rem;
    bottom: -18rem;
    border: 1px solid rgba(8, 127, 115, 0.13);
    border-radius: 50%;
    box-shadow:
        0 0 0 4rem rgba(40, 91, 197, 0.035),
        0 0 0 9rem rgba(183, 121, 8, 0.025);
}

.slide-heading {
    max-width: 64rem;
    margin-bottom: clamp(2rem, 5vh, 4.75rem);
}

.slide-heading.compact {
    margin-bottom: clamp(1.4rem, 3vh, 2.6rem);
}

.slide-heading h2,
.slide-copy h2,
.final-copy h2 {
    max-width: 18ch;
    margin: 0.25rem 0 0.75rem;
    font-size: clamp(2rem, 4.2vw, 4.9rem);
    line-height: 0.99;
    letter-spacing: -0.045em;
}

.slide-heading p:last-child,
.lead-small {
    max-width: 54rem;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.35vw, 1.3rem);
    line-height: 1.55;
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.lead {
    max-width: 43rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.65vw, 1.45rem);
    line-height: 1.55;
}

.slide-hero {
    display: grid;
    grid-template-columns: minmax(22rem, 0.82fr) minmax(34rem, 1.18fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
}

.slide-hero::before {
    background:
        linear-gradient(100deg, rgba(255, 253, 248, 0.99) 0 43%, rgba(235, 246, 241, 0.8) 72%, rgba(232, 238, 252, 0.6) 100%),
        var(--canvas);
}

.hero-copy h1 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(3rem, 5.75vw, 7.2rem);
    line-height: 0.9;
    letter-spacing: -0.065em;
}

.hero-copy h1 span {
    color: var(--brand);
}

.feature-pills,
.final-points,
.system-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    list-style: none;
}

.process-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin: 1.4rem 0 1rem;
}

.process-legend > div {
    display: grid;
    gap: 0.22rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(8, 127, 115, 0.25);
    border-radius: 0.8rem;
    background: rgba(223, 244, 237, 0.8);
}

.process-legend .process-legend-out {
    border-color: rgba(40, 91, 197, 0.25);
    background: rgba(232, 238, 252, 0.85);
}

.process-legend strong {
    color: var(--brand-dark);
    font-size: 0.87rem;
}

.process-legend-out strong {
    color: #234caa;
}

.process-legend span {
    color: var(--muted);
    font-size: 0.74rem;
}

.feature-pills {
    margin: 1.4rem 0 1rem;
}

.feature-pills li,
.final-points span,
.system-chips span {
    padding: 0.5rem 0.75rem;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid rgba(8, 127, 115, 0.22);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 750;
}

.microcopy,
.hero-foot,
.data-note {
    color: var(--muted);
    font-size: 0.82rem;
}

.hero-foot {
    position: absolute;
    left: clamp(1.5rem, 6vw, 7.5rem);
    right: clamp(1.5rem, 6vw, 7.5rem);
    bottom: calc(var(--nav-height) + 1.1rem);
    display: flex;
    justify-content: space-between;
}

.product-shot {
    position: relative;
    margin: 0;
}

.product-shot::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 7% -3% -8% 9%;
    background: linear-gradient(135deg, rgba(8, 127, 115, 0.17), rgba(40, 91, 197, 0.13));
    border-radius: 1.8rem;
    filter: blur(20px);
}

.product-shot figcaption {
    margin-top: 0.65rem;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.image-button {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(117, 104, 88, 0.32);
    border-radius: 1rem;
    background: var(--paper);
    box-shadow: var(--shadow);
    cursor: zoom-in;
}

.image-button img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
    object-position: top left;
}

.image-button:hover img {
    transform: scale(1.012);
}

.image-button img {
    transition: transform 220ms ease;
}

.product-shot-hero {
    transform: perspective(85rem) rotateY(-2deg) rotateX(1deg);
}

.product-shot-hero .image-button img {
    aspect-ratio: 8 / 5;
}

.slide-process {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.process-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2.5rem);
}

.process-lane {
    padding: clamp(1rem, 1.8vw, 1.65rem);
    border: 1px solid rgba(8, 127, 115, 0.24);
    border-top: 5px solid var(--brand);
    border-radius: 1rem;
    background: rgba(255, 253, 248, 0.88);
    box-shadow: 0 16px 42px rgba(63, 49, 35, 0.08);
}

.process-lane-out {
    border-color: rgba(40, 91, 197, 0.24);
    border-top-color: var(--blue);
}

.process-lane header {
    min-height: 5.4rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
}

.process-badge,
.benefit-process {
    display: inline-flex;
    width: max-content;
    margin-bottom: 0.55rem;
    padding: 0.3rem 0.55rem;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.process-lane-out .process-badge,
.benefit-out .benefit-process {
    color: #234caa;
    background: var(--blue-soft);
}

.process-lane h3 {
    max-width: 34rem;
    margin: 0;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    line-height: 1.25;
}

.process-lane ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
    counter-reset: lane-step;
}

.process-lane li {
    position: relative;
    min-height: 4.5rem;
    display: grid;
    align-content: center;
    gap: 0.18rem;
    padding: 0.65rem 0.65rem 0.65rem 2.2rem;
    background: rgba(223, 244, 237, 0.48);
    border-radius: 0.65rem;
    counter-increment: lane-step;
}

.process-lane-out li {
    background: rgba(232, 238, 252, 0.58);
}

.process-lane li::before {
    content: counter(lane-step);
    position: absolute;
    top: 0.75rem;
    left: 0.7rem;
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 900;
}

.process-lane-out li::before {
    color: var(--blue);
}

.process-lane li strong {
    font-size: 0.84rem;
}

.process-lane li span {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.lane-result {
    min-height: 2.4rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.lane-result strong {
    color: var(--ink);
}

.process-separation {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.83rem;
    text-align: center;
}

.process-separation strong {
    color: var(--ink);
}

.process-eyebrow {
    display: inline-flex;
    width: max-content;
    padding: 0.36rem 0.58rem;
    border-radius: 999px;
    letter-spacing: 0.11em;
}

.process-eyebrow-in {
    background: var(--brand-soft);
}

.process-eyebrow-out {
    color: #234caa;
    background: var(--blue-soft);
}

.process-eyebrow-shared {
    color: #91570a;
    background: var(--gold-soft);
}

.process-flow {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.process-flow li {
    position: relative;
    min-height: 17rem;
    padding: 1.3rem 1.05rem 1rem;
    border-top: 2px solid var(--line);
}

.process-flow li::before {
    content: "";
    position: absolute;
    top: -0.45rem;
    left: 1rem;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--brand);
    border: 4px solid var(--paper);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--brand);
}

.process-flow li:nth-child(2)::before,
.process-flow li:nth-child(5)::before {
    background: var(--blue);
    box-shadow: 0 0 0 1px var(--blue);
}

.process-flow li:nth-child(3)::before,
.process-flow li:nth-child(6)::before {
    background: var(--gold);
    box-shadow: 0 0 0 1px var(--gold);
}

.process-flow li:nth-child(4)::before {
    background: var(--rust);
    box-shadow: 0 0 0 1px var(--rust);
}

.step-number {
    display: block;
    margin-bottom: 3.2rem;
    color: var(--brand);
    font-size: clamp(2.3rem, 3.2vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.05em;
}

.process-flow h3,
.visual-callouts h3,
.benefit-grid h3,
.format-cards h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
}

.process-flow p,
.visual-callouts p,
.benefit-grid p,
.format-cards p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.48;
}

.statement {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.statement strong {
    color: var(--ink);
    font-size: 1.25rem;
}

.slide-split,
.slide-einvoice,
.slide-security {
    display: grid;
    grid-template-columns: minmax(25rem, 0.86fr) minmax(34rem, 1.14fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 7rem);
}

.slide-copy {
    max-width: 42rem;
}

.check-list {
    display: grid;
    gap: 0.8rem;
    margin: 1.7rem 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.8rem;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.45;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    top: 0.05rem;
    left: 0;
    width: 1.15rem;
    height: 1.15rem;
    display: grid;
    place-items: center;
    color: white;
    background: var(--brand);
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 900;
}

.compact-list {
    gap: 0.55rem;
}

.fact-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.fact-row div {
    display: grid;
    gap: 0.25rem;
}

.fact-row strong {
    color: var(--brand);
    font-size: clamp(1.25rem, 2vw, 2rem);
}

.fact-row span {
    color: var(--muted);
    font-size: 0.76rem;
}

.visual-stack {
    position: relative;
    padding: 0 3rem 3rem 0;
}

.product-shot-mini {
    position: absolute;
    width: 47%;
    right: -1%;
    bottom: -2%;
}

.product-shot-mini .image-button {
    border-radius: 0.75rem;
    box-shadow: 0 18px 46px rgba(46, 35, 25, 0.22);
}

.product-shot-mini figcaption {
    padding: 0.3rem 0.55rem;
    margin-top: 0.3rem;
    color: var(--ink);
    background: var(--paper);
    border-radius: 999px;
}

.slide-budget,
.slide-organization,
.slide-erp {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-erp .slide-heading h2 {
    max-width: 24ch;
    font-size: clamp(2rem, 3.5vw, 4rem);
}

.wide-visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 19rem;
    align-items: center;
    gap: 1.5rem;
}

.wide-visual .product-shot .image-button img {
    aspect-ratio: 8 / 4.35;
}

.visual-callouts {
    display: grid;
    gap: 0.75rem;
}

.visual-callouts article {
    padding: 1rem;
    background: rgba(255, 253, 248, 0.82);
    border-left: 3px solid var(--brand);
    box-shadow: 0 10px 30px rgba(69, 52, 35, 0.08);
}

.visual-callouts article:nth-child(2) {
    border-color: var(--blue);
}

.visual-callouts article:nth-child(3) {
    border-color: var(--gold);
}

.visual-callouts article > span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.1em;
}

.visual-callouts-short article > span {
    font-size: 1.65rem;
    letter-spacing: -0.03em;
}

.erp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.55fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
}

.erp-grid .product-shot .image-button img {
    aspect-ratio: 8 / 4.85;
}

.erp-facts {
    padding-left: 2rem;
    border-left: 1px solid var(--line);
}

.system-chips span:nth-child(2) {
    color: #234caa;
    background: var(--blue-soft);
    border-color: rgba(40, 91, 197, 0.22);
}

.system-chips span:nth-child(3) {
    color: #91570a;
    background: var(--gold-soft);
    border-color: rgba(183, 121, 8, 0.25);
}

.security-note {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding: 0.9rem;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid rgba(8, 127, 115, 0.18);
    border-radius: 0.7rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.security-note svg {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.format-cards {
    display: grid;
    gap: 0.65rem;
    margin: 1.6rem 0;
}

.format-cards article {
    display: grid;
    grid-template-columns: 4.4rem 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--line);
}

.format-cards article:last-child {
    border-bottom: 1px solid var(--line);
}

.format-mark {
    min-height: 3.25rem;
    display: grid;
    place-items: center;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 0.65rem;
    font-size: 0.72rem;
    font-weight: 900;
}

.format-cards article:nth-child(2) .format-mark {
    color: #234caa;
    background: var(--blue-soft);
}

.product-shot-tall .image-button img {
    aspect-ratio: 8 / 5;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.8rem 0;
}

.security-grid article {
    padding: 0.9rem;
    border-top: 3px solid var(--brand);
    background: rgba(255, 253, 248, 0.72);
}

.security-grid article:nth-child(2) {
    border-color: var(--blue);
}

.security-grid article:nth-child(3) {
    border-color: var(--gold);
}

.security-grid strong,
.security-grid span {
    display: block;
}

.security-grid strong {
    font-size: 1.7rem;
}

.security-grid span {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.3;
}

.slide-benefits {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.benefit-grid article {
    min-height: 11.5rem;
    padding: 1.3rem;
    background: rgba(255, 253, 248, 0.95);
}

.benefit-grid-separated .benefit-in {
    box-shadow: inset 0 4px 0 var(--brand);
}

.benefit-grid-separated .benefit-out {
    box-shadow: inset 0 4px 0 var(--blue);
}

.benefit-grid-separated .benefit-index {
    margin-bottom: 0.55rem;
}

.benefit-grid-separated .benefit-process {
    margin-bottom: 1.15rem;
}

.benefit-index {
    display: block;
    margin-bottom: 2rem;
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.benefit-grid article:nth-child(2) .benefit-index,
.benefit-grid article:nth-child(5) .benefit-index {
    color: var(--blue);
}

.benefit-grid article:nth-child(3) .benefit-index,
.benefit-grid article:nth-child(6) .benefit-index {
    color: var(--gold);
}

.slide-final {
    display: grid;
    place-items: center;
    text-align: center;
}

.slide-final::before {
    background:
        radial-gradient(circle at center, rgba(223, 244, 237, 0.8), transparent 29rem),
        linear-gradient(135deg, #fffdf8, #f2eee7);
}

.final-mark {
    position: absolute;
    z-index: -1;
    color: rgba(8, 127, 115, 0.04);
    font-size: min(70vw, 54rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.15em;
    transform: translateX(-0.05em);
}

.final-copy {
    max-width: 58rem;
}

.final-copy > img {
    width: min(19rem, 60vw);
    margin-bottom: 2rem;
}

.final-copy h2 {
    max-width: 15ch;
    margin-right: auto;
    margin-left: auto;
}

.final-copy .lead {
    margin-right: auto;
    margin-left: auto;
}

.final-routes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1.6rem auto 2rem;
}

.final-routes > div {
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
    text-align: left;
    border: 1px solid rgba(8, 127, 115, 0.25);
    border-radius: 0.85rem;
    background: rgba(223, 244, 237, 0.82);
}

.final-routes .final-route-out {
    border-color: rgba(40, 91, 197, 0.25);
    background: rgba(232, 238, 252, 0.86);
}

.final-routes strong {
    color: var(--brand-dark);
    font-size: 0.88rem;
}

.final-route-out strong {
    color: #234caa;
}

.final-routes span {
    color: var(--muted);
    font-size: 0.78rem;
}

.final-points {
    justify-content: center;
    margin: 1.6rem 0 2rem;
}

.closing-line {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 750;
}

.data-note {
    position: absolute;
    right: clamp(1.5rem, 6vw, 7.5rem);
    bottom: calc(var(--nav-height) + 1rem);
    left: clamp(1.5rem, 6vw, 7.5rem);
}

.deck-navigation {
    position: fixed;
    z-index: 42;
    right: 1.5rem;
    bottom: 1rem;
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem;
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid rgba(217, 205, 189, 0.9);
    border-radius: 999px;
    box-shadow: 0 12px 38px rgba(63, 49, 35, 0.13);
    backdrop-filter: blur(16px);
}

.nav-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.nav-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.nav-button svg,
.close-button svg {
    width: 21px;
    height: 21px;
}

.slide-counter {
    min-width: 4.1rem;
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.current-slide {
    color: var(--ink);
    font-weight: 800;
}

.slide-index {
    position: fixed;
    z-index: 60;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: min(31rem, 92vw);
    padding: 1.5rem;
    overflow-y: auto;
    background: rgba(255, 253, 248, 0.98);
    border-left: 1px solid var(--line);
    box-shadow: -30px 0 70px rgba(63, 49, 35, 0.16);
    transform: translateX(104%);
    visibility: hidden;
    transition: transform 260ms ease, visibility 0s linear 260ms;
}

.slide-index.is-open {
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
}

.index-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.index-head h2 {
    margin: 0;
    font-size: 2rem;
}

.close-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.index-list {
    display: grid;
    gap: 0;
    margin: 1rem 0;
    padding: 0;
    list-style-position: inside;
}

.index-list button {
    width: 100%;
    padding: 0.85rem 0.3rem;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(217, 205, 189, 0.8);
    cursor: pointer;
    text-align: left;
}

.index-list button:hover,
.index-list button[aria-current="true"] {
    color: var(--brand);
}

.index-list button[aria-current="true"] {
    font-weight: 800;
}

.index-help {
    color: var(--muted);
    font-size: 0.78rem;
}

.image-dialog {
    width: min(96vw, 112rem);
    max-width: none;
    max-height: 94vh;
    padding: 0.5rem;
    overflow: visible;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 35px 90px rgba(22, 19, 16, 0.34);
}

.image-dialog::backdrop {
    background: rgba(14, 23, 19, 0.72);
    backdrop-filter: blur(8px);
}

.image-dialog img {
    display: block;
    max-width: 100%;
    max-height: calc(94vh - 1rem);
    margin: auto;
    border-radius: 0.65rem;
}

.dialog-close {
    position: absolute;
    z-index: 2;
    top: -1.1rem;
    right: -1.1rem;
    color: white;
    background: var(--ink);
    border-color: var(--ink);
}

.noscript-note {
    position: fixed;
    z-index: 100;
    right: 1rem;
    bottom: 1rem;
    max-width: 28rem;
    padding: 1rem;
    color: white;
    background: var(--rust);
}

@media (max-width: 1100px) {
    .slide {
        padding-right: 2.2rem;
        padding-left: 2.2rem;
    }

    .slide-hero,
    .slide-split,
    .slide-einvoice,
    .slide-security {
        grid-template-columns: minmax(20rem, 0.8fr) minmax(28rem, 1.2fr);
        gap: 2rem;
    }

    .process-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 2rem;
    }

    .process-lane header {
        min-height: 6rem;
    }

    .process-flow li {
        min-height: 11.5rem;
    }

    .step-number {
        margin-bottom: 1.5rem;
    }

    .wide-visual {
        grid-template-columns: minmax(0, 1fr);
    }

    .visual-callouts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .erp-grid {
        grid-template-columns: minmax(0, 1fr) 18rem;
        gap: 2rem;
    }
}

@media (max-width: 800px) {
    :root {
        --header-height: 58px;
        --nav-height: 58px;
    }

    body {
        overflow: auto;
    }

    .deck-header {
        padding: 0 0.85rem;
    }

    .brand {
        width: 138px;
    }

    .tool-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .tool-button {
        width: 40px;
        justify-content: center;
        padding: 0;
    }

    .js .slides {
        height: auto;
        overflow: visible;
    }

    .slide,
    .js .slide,
    .js .slide.is-active {
        position: relative;
        inset: auto;
        min-height: auto;
        display: block;
        padding: calc(var(--header-height) + 2rem) 1rem calc(var(--nav-height) + 2.8rem);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .js .slide:not(.is-active) {
        display: none;
    }

    .slide-hero,
    .slide-split,
    .slide-einvoice,
    .slide-security {
        display: block;
    }

    .hero-copy h1 {
        font-size: clamp(2.35rem, 10.6vw, 5rem);
    }

    .product-shot-hero,
    .product-shot-tall,
    .visual-stack {
        margin-top: 2rem;
        transform: none;
    }

    .hero-foot {
        position: static;
        margin-top: 1.5rem;
    }

    .key-hint {
        display: none;
    }

    .process-flow,
    .process-comparison,
    .benefit-grid,
    .erp-grid,
    .wide-visual {
        grid-template-columns: 1fr;
    }

    .process-lane header {
        min-height: auto;
    }

    .process-flow li {
        min-height: auto;
        padding-bottom: 1.4rem;
    }

    .visual-callouts {
        grid-template-columns: 1fr;
    }

    .erp-facts {
        padding: 1.5rem 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .product-shot-mini {
        position: static;
        width: 72%;
        margin: 1rem 0 0 auto;
    }

    .visual-stack {
        padding: 0;
    }

    .benefit-grid article {
        min-height: auto;
    }

    .fact-row,
    .security-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .deck-navigation {
        right: 50%;
        bottom: 0.55rem;
        min-height: var(--nav-height);
        transform: translateX(50%);
    }

    .data-note {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 520px) {
    .feature-pills,
    .final-points,
    .system-chips {
        gap: 0.35rem;
    }

    .feature-pills li,
    .final-points span,
    .system-chips span {
        font-size: 0.73rem;
    }

    .fact-row,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .statement {
        display: grid;
    }

    .product-shot-mini {
        width: 90%;
    }

    .process-legend,
    .process-lane ol,
    .final-routes {
        grid-template-columns: 1fr;
    }
}

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

@media print {
    @page {
        size: A4 landscape;
        margin: 0;
    }

    .deck-header,
    .progress,
    .deck-navigation,
    .slide-index,
    .image-dialog,
    .skip-link {
        display: none !important;
    }

    body,
    .slides,
    .js .slides {
        height: auto;
        overflow: visible;
        background: white;
    }

    .slide,
    .js .slide,
    .js .slide.is-active,
    .js .slide:not(.is-active) {
        position: relative;
        inset: auto;
        width: 297mm;
        height: 210mm;
        min-height: 210mm;
        display: grid;
        padding: 18mm;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        break-after: page;
    }

    .image-button {
        box-shadow: none;
        cursor: default;
    }

    .hero-foot,
    .data-note {
        bottom: 10mm;
    }
}
