:root {
  --bg: #f4f2ee;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #6b6862;
  --line: #e2ded6;
  --accent: #141414;
  --wa: #1fa855;
  --ok: #1f8a4c;
  --warn: #b7791f;
  --bad: #b23b3b;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "Inter", system-ui, sans-serif;
  --r: 14px;
  --g: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--g); }
.label { font: 400 13px/1.4 var(--sans); color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.08; }
h2 { font-size: clamp(28px, 7vw, 40px); }

.preview-bar { background: var(--ink); color: #fff; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-align: center; padding: 8px 12px; }
.preview-bar a { color: #fff; opacity: .7; margin-left: 8px; }
.sec, .hero { scroll-margin-top: 56px; }
@media (max-width: 480px) { .preview-bar .pb-x { display: none; } }

.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { font: italic 600 19px var(--serif); text-decoration: none; letter-spacing: -.01em; }
.top nav { display: flex; gap: 18px; font-size: 13px; }
.top nav a { text-decoration: none; color: var(--muted); }
@media (max-width: 640px) { .top nav .hide-m { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .15s, opacity .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.wa-ico { width: 18px; height: 18px; flex: none; }

.hero { position: relative; min-height: min(86svh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.85) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 44px; width: 100%; }
.hero .label { color: rgba(255,255,255,.75); }
.hero h1 { font-size: clamp(38px, 11vw, 72px); margin: 14px 0 14px; max-width: 12ch; }
.hero p { max-width: 42ch; color: rgba(255,255,255,.85); font-size: 15px; }
.hero .ctas { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.sec { padding: 64px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { margin-top: 10px; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
@media (max-width: 640px) { .arrows { display: none; } }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 78%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); padding: 4px var(--g) 18px; margin: 0 calc(var(--g) * -1); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .rail { grid-auto-columns: calc((100% - 28px - 2 * var(--g)) / 3); } }
.card { scroll-snap-align: start; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); font-size: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 500 12px/1 var(--sans); padding: 6px 8px; border-radius: 6px; background: var(--bg); color: var(--muted); }
.card .foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font: 600 22px var(--sans); letter-spacing: -.02em; }
.price small { font: 500 10px var(--mono); color: var(--muted); margin-left: 3px; }

.split { display: grid; gap: 0; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.split .ph { min-height: 300px; position: relative; }
.split .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split .txt { padding: 28px 22px; display: flex; flex-direction: column; gap: 14px; }
.split h2 { font-size: clamp(28px, 7vw, 36px); }
.steps { list-style: none; display: grid; gap: 10px; margin: 6px 0 8px; counter-reset: s; }
.steps li { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--muted); }
.steps li::before { counter-increment: s; content: "0" counter(s); font: 500 11px var(--mono); color: var(--ink); }

.about { display: grid; gap: 22px; align-items: center; }
@media (min-width: 820px) { .about { grid-template-columns: 340px 1fr; gap: 48px; } }
.about img { border-radius: var(--r); aspect-ratio: 4/5; object-fit: cover; width: 100%; max-width: 340px; }
.about p { color: var(--muted); margin-top: 12px; max-width: 52ch; }

footer { border-top: 1px solid var(--line); padding: 36px 0 90px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.wa-float svg { width: 28px; height: 28px; }

.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: none; align-items: flex-end; justify-content: center; }
.sheet-bg.open { display: flex; }
.sheet { background: var(--surface); width: 100%; max-width: 480px; max-height: 92svh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 22px var(--g) 28px; animation: up .25s ease; }
@media (min-width: 640px) { .sheet-bg { align-items: center; } .sheet { border-radius: 20px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet-h { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.sheet-h h3 { font-size: 24px; }
.x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); flex: none; }

.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea { height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font: inherit; background: var(--bg); width: 100%; }
.field textarea { height: auto; padding: 10px 14px; }
.opt { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 8px; cursor: pointer; }
.opt.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.opt.off { opacity: .5; cursor: not-allowed; }
.opt b { display: block; font-size: 14px; }
.opt small { color: var(--muted); font-size: 12px; }
.box { background: var(--bg); border-radius: 12px; padding: 14px; display: grid; gap: 10px; margin: 6px 0 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.row code { font: 600 13px var(--mono); }
.copy { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 12px; }
.note { font-size: 12px; color: var(--muted); }
.upload { border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; font-size: 13px; color: var(--muted); cursor: pointer; display: block; margin-bottom: 14px; }
.upload.ok { border-color: var(--ok); color: var(--ok); }
.badge { display: inline-block; font: 500 12px/1 var(--sans); padding: 6px 8px; border-radius: 6px; }
.badge.pend { background: #fbf1dd; color: var(--warn); }
.badge.ok { background: #e1f3e8; color: var(--ok); }
.badge.bad { background: #f7e3e3; color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; z-index: 80; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
