:root {
    --paper: #FFFCF9;
    --rule: #F0D9C8;
    --rule-strong: #E0B89A;
    --ink: #2C2416;
    --muted: #6B5E52;
    --pine: #C2410C;
    --pine-dark: #9A3412;
    --pine-wash: #FFF4EC;
    --flame: #E85D04;
    --ok: #1F6B45;
    --seal: #B3261E;
    --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --sans: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --measure: 36em;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.75 var(--sans);
}

a { color: var(--pine); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* Header */
.top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(251, 251, 248, .94);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 18px/1 var(--serif); letter-spacing: 1px; }
.brand-mark { width: 26px; height: 26px; border: 2px solid var(--pine); border-radius: 4px; position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; left: 4px; right: 4px; height: 2px; background: var(--pine); }
.brand-mark::before { top: 7px; }
.brand-mark::after { top: 13px; right: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--pine); }
.actions { display: flex; gap: 10px; }
.menu-toggle { display: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 6px;
    border: 1.5px solid var(--pine);
    font: 600 15px/1 var(--sans);
    text-decoration: none;
    cursor: pointer;
}
.btn-solid { background: var(--pine); color: #fff; }
.btn-solid:hover { background: var(--pine-dark); border-color: var(--pine-dark); }
.btn-line { background: transparent; color: var(--pine); }
.btn-line:hover { background: var(--pine-wash); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); margin: 0; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.22; letter-spacing: .5px; }
h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.3; }
h3 { font-size: 20px; line-height: 1.4; }
p { margin: 0; }
.lead { font-size: 18px; color: var(--muted); max-width: var(--measure); }
.prose p + p { margin-top: 12px; }
.prose { max-width: var(--measure); }
.num { font-variant-numeric: tabular-nums; }

section { padding: 88px 0; }
section + section { border-top: 1px solid var(--rule); }
.section-head { max-width: var(--measure); margin-bottom: 40px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 11em; }
.hero .lead { margin-top: 20px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* The quotation slip */
.slip {
    position: relative;
    background:
        repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule) 35px 36px),
        #fff;
    border: 1.5px solid var(--rule-strong);
    border-radius: 4px;
    padding: 22px 26px 26px;
    box-shadow: 6px 6px 0 var(--pine-wash), 6px 6px 0 1.5px var(--rule);
    border-top: 4px solid var(--flame);
    font-size: 15px;
}
.slip-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.slip-title { font: 700 22px/1 var(--serif); letter-spacing: 8px; }
.slip-no { color: var(--seal); font: 600 15px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.slip-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin: 10px 0 6px; color: var(--muted); line-height: 36px; }
.slip-meta b { color: var(--ink); font-weight: 600; }
.slip table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.slip th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; line-height: 36px; border-bottom: 1px solid var(--rule-strong); }
.slip td { line-height: 36px; }
.slip td:last-child, .slip th:last-child { text-align: right; }
.slip sup { color: var(--pine); font-weight: 700; margin-left: 2px; }
.slip-total { display: flex; justify-content: space-between; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 6px; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.slip-notes { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.slip-notes span { color: var(--pine); font-weight: 700; }
.stamp {
    position: absolute;
    right: 26px;
    bottom: 64px;
    width: 104px;
    height: 104px;
    border: 3px solid var(--seal);
    border-radius: 50%;
    color: var(--seal);
    display: grid;
    place-items: center;
    font: 700 20px/1.1 var(--serif);
    letter-spacing: 3px;
    text-align: center;
    transform: rotate(-14deg);
    opacity: .82;
    mix-blend-mode: multiply;
}
.stamp small { display: block; font: 500 11px/1.4 var(--sans); letter-spacing: 1px; }
@media (prefers-reduced-motion: no-preference) {
    .stamp { animation: stamp .5s cubic-bezier(.2, .9, .3, 1.2) .9s both; }
    @keyframes stamp {
        from { transform: rotate(-14deg) scale(1.8); opacity: 0; }
        to { transform: rotate(-14deg) scale(1); opacity: .82; }
    }
}

/* Three promises: deliberately unequal layout */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.promise { padding: 28px 28px 8px 0; }
.promise + .promise { padding-left: 28px; border-left: 1px solid var(--rule); }
.promise p { margin-top: 10px; color: var(--muted); }
.promise .eg { margin-top: 18px; padding: 12px 14px; background: #fff; border: 1px solid var(--rule); border-radius: 4px; font-size: 14px; line-height: 1.7; color: var(--ink); }
.promise .eg em { font-style: normal; color: var(--pine); font-weight: 600; }

/* Sequence strip: real steps, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); counter-reset: step; border: 1.5px solid var(--rule-strong); border-radius: 4px; background: #fff; }
.steps li { counter-increment: step; padding: 20px 16px 22px; position: relative; }
.steps li + li { border-left: 1px dashed var(--rule-strong); }
.steps li::before { content: counter(step); display: block; color: var(--seal); font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.steps b { display: block; font: 700 17px/1.4 var(--serif); }
.steps span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.steps.steps-vertical { grid-template-columns: 1fr; }
.steps.steps-vertical li { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; }
.steps.steps-vertical li::before { grid-row: span 2; margin: 3px 0 0; }
.steps.steps-vertical li + li { border-left: 0; border-top: 1px dashed var(--rule-strong); }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.split.flip > :first-child { order: 2; }
.split > *, .price > * { min-width: 0; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--rule); position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 6px; border-left: 2px solid var(--pine); border-bottom: 2px solid var(--pine); transform: rotate(-45deg); }

.board { width: 100%; border-collapse: collapse; background: #fff; border: 1.5px solid var(--rule-strong); font-variant-numeric: tabular-nums; font-size: 15px; }
.board caption { text-align: left; font: 700 17px/1 var(--serif); padding: 0 0 12px; }
.board th, .board td { padding: 11px 14px; border-bottom: 1px solid var(--rule); text-align: right; }
.board th:first-child, .board td:first-child { text-align: left; }
.board th { color: var(--muted); font-weight: 600; font-size: 13px; background: var(--pine-wash); }
.board .gap { color: var(--seal); font-weight: 600; }
.board .ok { color: var(--ok); font-weight: 600; }

.chat { background: #fff; border: 1.5px solid var(--rule-strong); border-radius: 4px; padding: 18px; display: grid; gap: 12px; font-size: 15px; }
.chat p { max-width: 90%; padding: 10px 14px; border-radius: 6px; line-height: 1.65; }
.chat .me { justify-self: end; background: var(--pine); color: #fff; }
.chat .ai { background: var(--pine-wash); border: 1px solid var(--rule); }
.chat .ai small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

/* Plan band */
.band { background: var(--pine); color: #fff; }
.band h2, .band a { color: #fff; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band p { margin-top: 10px; color: #FFE8D6; max-width: var(--measure); }
.band .btn-solid { background: #fff; color: var(--pine); border-color: #fff; }
.band .btn-solid:hover { background: var(--pine-wash); }

/* Simple content pages */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--rule); }
.page-head .lead { margin-top: 16px; }
.facts { display: grid; grid-template-columns: 220px 1fr; gap: 0; border-top: 2px solid var(--ink); }
.facts dt, .facts dd { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 700 17px/1.6 var(--serif); padding-right: 24px; }
.facts dd { color: var(--ink); }
.facts dd p + p { margin-top: 8px; }

.price { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.price-card { background: #fff; border: 1.5px solid var(--rule-strong); border-radius: 4px; padding: 28px; }
.price-card .amount { font: 700 44px/1 var(--serif); font-variant-numeric: tabular-nums; margin: 12px 0 4px; }
.price-card .amount small { font: 500 16px/1 var(--sans); color: var(--muted); margin-left: 4px; }
.price-card .btn { width: 100%; margin-top: 20px; }

.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: var(--pine); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: var(--measure); }

.sample { display: inline-block; margin-bottom: 8px; color: var(--seal); font-size: 13px; font-weight: 600; }
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.industries a { display: block; padding: 22px 20px 22px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.industries a strong { display: block; font: 700 18px/1.4 var(--serif); }
.industries a span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news-list li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.news-list a { color: var(--ink); text-decoration: none; font: 700 22px/1.4 var(--serif); }
.news-list a:hover { color: var(--pine); }
.news-list p { margin-top: 8px; color: var(--muted); max-width: var(--measure); }
.article { max-width: 40em; }
.article p { margin-top: 16px; }

/* Footer */
.foot { border-top: 2px solid var(--ink); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h3 { font-size: 15px; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 3px 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--pine); text-decoration: underline; }
.foot .legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot .legal a { color: inherit; }

/* Responsive */
@media (max-width: 960px) {
    .hero .wrap, .split, .price { grid-template-columns: 1fr; gap: 40px; }
    .split.flip > :first-child { order: 0; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .steps li:nth-child(4) { border-left: 0; }
    .steps li:nth-child(n+4) { border-top: 1px dashed var(--rule-strong); }
}
@media (max-width: 760px) {
    section { padding: 64px 0; }
    .board { font-size: 13px; }
    .board th, .board td { padding: 9px 6px; }
    .nav, .actions .btn-line { display: none; }
    .menu-toggle { display: inline-flex; align-items: center; line-height: 1; cursor: pointer; margin-left: auto; background: none; border: 1.5px solid var(--rule-strong); border-radius: 6px; min-height: 40px; padding: 0 12px; font: 500 15px var(--sans); color: var(--ink); }
    .top.open .nav { display: grid; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 20px 16px; gap: 0; }
    .top.open .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
    .actions { margin-left: 0; }
    .promises { grid-template-columns: 1fr; }
    .promise, .promise + .promise { padding: 24px 0 8px; border-left: 0; }
    .promise + .promise { border-top: 1px solid var(--rule); }
    .steps { grid-template-columns: 1fr 1fr; }
    .steps li:nth-child(odd) { border-left: 0; }
    .steps li:nth-child(n+3) { border-top: 1px dashed var(--rule-strong); }
    .steps li:nth-child(4) { border-left: 1px dashed var(--rule-strong); }
    .slip { padding: 18px; }
    .slip-meta { grid-template-columns: 1fr; }
    .stamp { width: 84px; height: 84px; font-size: 16px; right: 14px; bottom: 70px; }
    .industries { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr; }
    .facts dt { padding-bottom: 0; border-bottom: 0; }
    .foot .wrap { grid-template-columns: 1fr; }
}
