:root {
  --bg: #faf7f2; --bg2: #f3ede4; --surface: #ffffff; --text: #231a14; --muted: #6f6258; --line: #e9e0d5;
  --accent: #b4532a; --accent2: #8f3d1b; --soft: #f6e8de; --green: #3f7764;
  --head: 'Fraunces', Georgia, serif; --body: 'Inter', system-ui, sans-serif; --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.015em; line-height: 1.1; margin: 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 21px; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--accent); }
.nav .sp { flex: 1; }
.nav .links { display: flex; gap: 22px; font-size: 15px; color: var(--muted); }
.nav .links a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s; white-space: nowrap; font-family: inherit; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgb(60 30 10 / .08); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgb(180 83 42 / .7); }
.btn.primary:hover { background: var(--accent2); }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16.5px; border-radius: 14px; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--soft); color: var(--accent2); font-size: 13.5px; font-weight: 600; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 18px 0 18px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.proof span::before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 7px; }
.url-demo { margin-top: 26px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line); font-size: 14.5px; color: var(--muted); }
.url-demo b { color: var(--text); }
.url-demo i { font-style: normal; color: var(--accent); font-weight: 700; }

.phone-wrap { position: relative; display: grid; place-items: center; }
.phone-wrap::before { content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, #f2d4bf, transparent); filter: blur(10px); }
.phone { position: relative; width: min(330px, 82vw); aspect-ratio: 9 / 18.6; border-radius: 44px; padding: 10px; background: #1f1a17; box-shadow: 0 40px 80px -30px rgb(60 30 10 / .45), inset 0 0 0 2px #3a322c; animation: float 7s ease-in-out infinite; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 35px; background: var(--bg); display: block; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* sections */
section.block { padding: 76px 0; }
.block.alt { background: var(--bg2); }
.head { max-width: 680px; margin-bottom: 36px; }
.head .eyebrow { margin-bottom: 14px; }
.head h2 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 12px; }
.head p { color: var(--muted); margin: 0; font-size: 17px; }
.center { text-align: center; margin-inline: auto; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: transform .25s var(--ease), box-shadow .25s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -16px rgb(60 30 10 / .25); }
.feature .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--soft); color: var(--accent); font-size: 22px; margin-bottom: 16px; }
.feature h3 { font-family: var(--body); font-size: 18px; letter-spacing: 0; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--head); font-size: 18px; box-shadow: 0 10px 20px -8px rgb(180 83 42 / .7); }
.step h3 { font-family: var(--body); font-size: 19px; letter-spacing: 0; margin: 10px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.dish-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dish-mosaic img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.dish-mosaic img:nth-child(2) { transform: translateY(18px); }
.dish-mosaic img:nth-child(5) { transform: translateY(18px); }
.checks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; color: var(--muted); }
.checks li::before { content: '✓'; color: var(--green); font-weight: 800; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 10px 0 0; }

.final { padding: 90px 0; text-align: center; background: linear-gradient(160deg, #2b1d16, #4a2a1b); color: #fbefe6; }
.final h2 { font-size: clamp(32px, 4.4vw, 52px); max-width: 760px; margin: 0 auto 14px; }
.final p { color: #d9c3b4; margin: 0 0 30px; font-size: 18px; }
footer { padding: 30px 0 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a:hover { color: var(--text); }

/* reveal */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* auth pages */
.auth { min-height: calc(100dvh - 68px); display: grid; place-items: center; padding: 30px 20px 60px; }
.auth-card { width: min(480px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; box-shadow: 0 30px 70px -40px rgb(60 30 10 / .45); }
.auth-card h1 { font-size: clamp(28px, 5vw, 36px); }
.auth-card .sub { color: var(--muted); margin: 6px 0 22px; }
.fld { display: grid; gap: 6px; margin-bottom: 15px; }
.fld > span { font-size: 14px; font-weight: 500; color: var(--muted); }
.fld input { height: 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px; font: inherit; color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
.fld input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(180 83 42 / .14); }
.slug { font-size: 13.5px; color: var(--muted); margin: -6px 0 16px; word-break: break-all; }
.slug b { color: var(--text); }
.slug .ok { color: var(--green); font-weight: 600; }
.slug .warn { color: var(--accent); font-weight: 600; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.seg2 button { text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font: inherit; color: var(--text); }
.seg2 button b { display: block; font-size: 14.5px; }
.seg2 button small { color: var(--muted); font-size: 12.5px; }
.seg2 button.on { border-color: var(--accent); background: var(--soft); }
.auth-card .btn { width: 100%; }
.err { color: #b42318; min-height: 22px; font-size: 14px; margin: 10px 0 0; }
.alt-link { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14.5px; }
.alt-link a { color: var(--accent); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 900px) {
  .hero .wrap, .showcase { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .nav .links { display: none; }
}
@media (max-width: 600px) {
  .features, .steps { grid-template-columns: 1fr; }
  .steps { gap: 30px; }
  .ctas .btn { flex: 1; }
  .nav .login { display: none; }
  section.block { padding: 56px 0; }
  .wrap { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } .rv { opacity: 1; transform: none; } }

/* template gallery */
.tgal-wrap { position: relative; }
.tgal { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(20px, calc((100% - 1140px) / 2)) 22px; scrollbar-width: none; scroll-padding-inline: max(20px, calc((100% - 1140px) / 2)); }
.tgal::-webkit-scrollbar { display: none; }
.tcard { flex: none; width: 196px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 2px; transition: transform .25s var(--ease); }
.tcard:hover { transform: translateY(-4px); }
.tcard img { width: 100%; height: auto; aspect-ratio: 300 / 530; object-fit: cover; object-position: top; border-radius: 22px; border: 6px solid #1f1a17; background: var(--bg2); box-shadow: 0 18px 34px -20px rgb(60 30 10 / .5); margin-bottom: 10px; }
.tcard b { font-size: 16px; }
.tcard small { color: var(--muted); font-size: 13.5px; }
.tnav { position: absolute; top: calc(50% - 50px); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 26px; line-height: 1; cursor: pointer; color: var(--text); box-shadow: 0 10px 24px -10px rgb(60 30 10 / .4); display: grid; place-items: center; padding-bottom: 3px; }
.tnav.prev { left: 14px; } .tnav.next { right: 14px; }
@media (max-width: 760px) { .tnav { display: none; } .tcard { width: 156px; } .tgal { gap: 12px; padding-inline: 16px; scroll-padding-inline: 16px; } }

/* ---------- service landing ---------- */
.btn.wa { background: #25d366; border-color: #25d366; color: #062e16; box-shadow: 0 10px 24px -12px rgb(18 140 70 / .8); }
.btn.wa:hover { background: #1fc05c; }
.btn svg { flex: none; }
.eyebrow svg { flex: none; }
.lead b { color: var(--text); font-weight: 600; }
.feature .ic svg { width: 24px; height: 24px; }
.features.four { grid-template-columns: repeat(4, 1fr); }
.features.four .feature { padding: 22px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.h2 { font-size: clamp(30px, 3.8vw, 44px); margin: 14px 0 12px; }
.sub2 { color: var(--muted); margin: 0; font-size: 17px; }

.hero-nfc { position: absolute; left: max(0px, calc(50% - 250px)); bottom: 70px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--surface); box-shadow: 0 20px 40px -18px rgb(60 30 10 / .45); font-size: 13px; color: var(--muted); animation: float 6s ease-in-out infinite reverse; }
.hero-nfc svg { color: #fff; background: var(--accent); border-radius: 11px; padding: 7px; width: 38px; height: 38px; }
.hero-nfc b { display: block; color: var(--text); font-size: 14px; }

.nfc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.nfc-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.nfc-visual::before { content: ''; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, #f2d4bf, transparent); }
.nfc-card { position: relative; width: min(360px, 88%); aspect-ratio: 85.6 / 54; border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; color: #fbefe6; background: linear-gradient(140deg, #3a251b, #1f1612 70%); box-shadow: 0 34px 60px -28px rgb(40 20 10 / .7), inset 0 0 0 1px rgb(255 255 255 / .06); transform: rotate(-6deg); }
.nfc-card.back { position: absolute; background: linear-gradient(140deg, #c86a3c, #b4532a); transform: rotate(7deg) translate(30px, -14px); box-shadow: 0 20px 40px -24px rgb(40 20 10 / .6); }
.nc-top { display: flex; justify-content: space-between; align-items: center; font: 700 22px var(--head); }
.nc-top svg { color: #f2c29f; }
.nc-mid { font-size: 15px; line-height: 1.35; color: #e9d6c8; }
.nc-bot { display: flex; justify-content: space-between; align-items: flex-end; font-size: 11.5px; color: #c9b2a3; }
.nc-bot img { width: 58px; height: 58px; border-radius: 8px; background: #fff; padding: 4px; }

.final .btn.wa { font-size: 18px; }
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #062e16; box-shadow: 0 14px 30px -10px rgb(18 140 70 / .7); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgb(37 211 102 / .5); animation: ping 2.6s ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 16px rgb(37 211 102 / 0); } }
.checks li::before { flex: none; }

@media (max-width: 1080px) { .features.four, .steps.four { grid-template-columns: 1fr 1fr; } .steps.four { row-gap: 34px; } }
@media (max-width: 900px) { .nfc { grid-template-columns: 1fr; gap: 30px; } .hero-nfc { left: 8px; bottom: 40px; } }
@media (max-width: 600px) {
  .features.four, .steps.four { grid-template-columns: 1fr; }
  .nav .wa { padding: 0 12px; }
  .nfc-visual { min-height: 250px; }
  .hero-nfc { display: none; }
  .wa-float { width: 56px; height: 56px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* ---------- pricing ---------- */
.pricing .pack { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--accent); border-radius: 20px; padding: 30px 26px 26px; box-shadow: 0 26px 50px -30px rgb(180 83 42 / .55); }
.pricing .pack h3 { font-size: 25px; }
.pricing .pack-sub { margin: 6px 0 0; color: var(--muted); }
.pricing .pack-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 0; }
.pricing .pack-price b { font: 700 46px/1 var(--head); letter-spacing: -.02em; color: var(--accent); }
.pricing .pack-price span { color: var(--muted); font-size: 14px; }
.pricing .pack-adj { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.pricing .pack-adj-label { flex: 1 1 100%; font-weight: 600; font-size: 15px; }
.pricing .pack-stepper { display: flex; align-items: center; gap: 10px; }
.pricing .pack-stepper .btn { width: 44px; height: 44px; padding: 0; font-size: 22px; line-height: 1; border-radius: 12px; }
.pricing .pack-stepper .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.pricing .pack-stepper output { min-width: 36px; text-align: center; font: 700 22px var(--body); }
.pricing .pack-adj-unit { color: var(--muted); font-size: 14px; }
.pricing .pack-total { margin: 16px 0 0; font: 700 21px var(--body); }
.pricing .pack-note { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.pricing .pack-list { list-style: none; padding: 18px 0 0; margin: 18px 0 22px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.pricing .pack-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); }
.pricing .pack-list li::before { content: '✓'; flex: none; color: var(--green); font-weight: 800; }
.pricing .pack .btn.wa { width: 100%; }
.pricing .pack-trust { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; }
.pricing .pack-foot { text-align: center; color: var(--muted); margin: 24px 0 0; font-size: 15px; }
