:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f0f;
  --card: #141414;
  --card-2: #1b1b1b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f2eee8;
  --muted: #a8a29a;
  --dim: #6f6a64;
  --accent: #ece6dc;
  --accent-ink: #111111;
  --accent-soft: rgba(236, 230, 220, 0.08);
  --metal: linear-gradient(100deg, #7d7871 0%, #f4efe7 32%, #a9a39b 52%, #ece6dc 72%, #6f6a64 100%);
  --ok: #4ade80;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --display: "Michroma", "Sora", ui-sans-serif, system-ui, sans-serif;
  --head: "Sora", ui-sans-serif, system-ui, sans-serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--head);
  --mono: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --code: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

em, .serif { font-style: normal; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Grain + glow background ───────────────────────── */
.bg-glow {
  position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(600px 380px at 78% 18%, rgba(236, 230, 220, 0.10), transparent 70%),
    radial-gradient(700px 500px at 10% 0%, rgba(120, 120, 255, 0.07), transparent 70%);
}
.bg-grid {
  position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.5;
}

/* ── Buttons ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -8px rgba(236,230,220,.45); }
.btn-primary:hover { box-shadow: 0 12px 40px -8px rgba(236,230,220,.6); }
.btn-ghost { border-color: var(--line-2); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.is-done { background: var(--ok); color: #052e12; border-color: transparent; }

/* ── Nav ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(8, 8, 10, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px;
}
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ── Hero ───────────────────────── */
.hero { position: relative; padding: 72px 0 40px; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.02);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 84px); line-height: 1.08; letter-spacing: -0.045em; font-weight: 600;
  margin: 24px 0 24px;
}
.hero h1 em { font-size: 1em; }
.hero p.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 560px; margin: 0 0 36px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 32px; font-size: 14px; color: var(--dim); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--accent); }

.hero-visual { position: relative; height: 560px; }
.phone {
  position: absolute; width: 260px; aspect-ratio: 390 / 844; border-radius: 40px; padding: 9px;
  background: linear-gradient(160deg, #2a2a30, #121215 40%, #1c1c21);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 50px 100px -30px rgba(0,0,0,.9), 0 30px 60px -40px rgba(236,230,220,.25);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.hero-visual .phone { left: 50%; top: 10px; transform: translateX(-50%) rotate(-3deg); }
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 16px; font-size: 13px; line-height: 1.35;
  background: rgba(24,24,29,.82); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-weight: 600; }
.float-card small { color: var(--muted); font-size: 12px; }
.float-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 18px; height: 18px; }
.fc-1 { left: -4px; top: 110px; }
.fc-1 .ic { background: var(--accent-soft); color: var(--accent); }
.fc-2 { right: -8px; bottom: 120px; animation-delay: -3s; }
.fc-2 .ic { background: rgba(74,222,128,.12); color: var(--ok); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { height: 520px; max-width: 440px; width: 100%; margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero { padding-top: 48px; }
  .hero-visual { height: 470px; }
  .hero-visual .phone { width: 220px; }
  .fc-1 { left: 0; top: 70px; }
  .fc-2 { right: 0; bottom: 70px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ── Tech strip ───────────────────────── */
.strip { border-block: 1px solid var(--line); padding: 22px 0; margin-top: 56px; overflow: hidden; position: relative; }
.strip-track { display: flex; gap: 56px; width: max-content; animation: scroll 40s linear infinite; }
.strip span { font-family: var(--mono); font-size: 13px; color: var(--dim); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.strip span::after { content: "✦"; color: var(--line-2); }
.strip::before, .strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; }
.strip::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.strip::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── Sections ───────────────────────── */
section { position: relative; }
.section { padding: 120px 0; }
@media (max-width: 700px) { .section { padding: 80px 0; } }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: block; }
h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 600; margin: 0; max-width: 720px; }
.sec-head p { color: var(--muted); max-width: 400px; margin: 0; }

/* ── Projects ───────────────────────── */
.case {
  display: grid; grid-template-columns: 1fr 1.1fr; border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(180deg, var(--card), var(--bg-2)); overflow: hidden; margin-bottom: 28px;
}
.case-info { padding: 48px; display: flex; flex-direction: column; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.tag.hl { border-color: rgba(236,230,220,.3); color: var(--accent); background: var(--accent-soft); }
.case h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 16px; font-weight: 600; }
.case p { color: var(--muted); margin: 0 0 28px; }
.feat { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.feat li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; color: #d4d4d8; }
.feat svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.case-foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--dim); }

.case-visual { position: relative; min-height: 560px; overflow: hidden; background:
  radial-gradient(500px 300px at 60% 40%, rgba(236,230,220,.08), transparent 70%), var(--bg-2);
  border-left: 1px solid var(--line); }
.phones { position: absolute; inset: 0; }
.phones .phone { width: 210px; padding: 7px; border-radius: 32px; }
.phones .phone img { border-radius: 26px; }
.phones .p1 { left: 6%; top: 70px; transform: rotate(-6deg); }
.phones .p2 { left: 50%; top: 36px; transform: translateX(-50%); z-index: 2; }
.phones .p3 { right: 6%; top: 70px; transform: rotate(6deg); }

@media (max-width: 980px) {
  .case { grid-template-columns: 1fr; }
  .case-visual { border-left: 0; border-top: 1px solid var(--line); min-height: 500px; }
  .case.flip .case-visual { order: 2; }
}
@media (max-width: 600px) {
  .case-info { padding: 28px 22px; }
  .case-visual { min-height: 420px; }
  .phones .phone { width: 170px; }
  .phones .p1 { left: -10%; } .phones .p3 { right: -10%; }
}

/* Delta mock (browser windows) */
.browser {
  position: absolute; border-radius: 14px; overflow: hidden; background: #0f0f12;
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
}
.browser-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #17171b; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c33; }
.browser-bar .url { margin-left: 10px; flex: 1; height: 20px; border-radius: 6px; background: #0e0e11; font-family: var(--mono); font-size: 10.5px; color: var(--muted); display: flex; align-items: center; padding: 0 10px; gap: 6px; white-space: nowrap; overflow: hidden; }
.browser-bar .url svg { width: 10px; height: 10px; color: var(--ok); flex: none; }
.b-panel { left: 7%; top: 60px; width: 78%; }
.b-site { right: 6%; bottom: 46px; width: 52%; z-index: 2; }

.panel { display: grid; grid-template-columns: 92px 1fr; height: 300px; }
.panel aside { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; gap: 8px; align-content: start; }
.panel aside span { height: 8px; border-radius: 4px; background: #222228; }
.panel aside span.on { background: var(--accent); width: 70%; }
.panel main { padding: 14px; }
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 11px; color: var(--muted); }
.panel-top b { color: var(--text); font-size: 13px; }
.agenda { display: grid; grid-template-columns: 34px repeat(3, 1fr); gap: 5px; font-size: 9.5px; color: var(--dim); }
.agenda .h { text-align: center; color: var(--muted); padding-bottom: 4px; }
.agenda .t { font-family: var(--mono); }
.agenda .c { height: 28px; border-radius: 6px; background: #16161a; }
.agenda .c.b { background: rgba(236,230,220,.14); border-left: 2px solid var(--accent); color: #e7ffa0; padding: 3px 6px; line-height: 1.25; }
.agenda .c.g { background: rgba(120,140,255,.14); border-left: 2px solid #8b9bff; color: #c7cfff; padding: 3px 6px; line-height: 1.25; }

.site-mini { padding: 18px; background: linear-gradient(160deg, #1a1612, #0f0f12); }
.site-mini small { font-family: var(--mono); font-size: 9px; color: #c9a27a; letter-spacing: .1em; text-transform: uppercase; }
.site-mini h4 { margin: 6px 0 12px; font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; }
.site-mini h4 em { color: #e8b98c; }
.slots { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.slots span { font-family: var(--mono); font-size: 10px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.slots span.on { background: #e8b98c; color: #1a1209; border-color: transparent; }
.site-mini .cta { height: 30px; border-radius: 8px; background: #e8b98c; color: #1a1209; font-size: 11px; font-weight: 600; display: grid; place-items: center; }

@media (max-width: 600px) {
  .b-panel { left: 4%; width: 92%; top: 36px; }
  .b-site { right: 4%; width: 78%; bottom: 24px; }
  .slots span:nth-child(4) { display: none; }
  .case.flip .case-visual { min-height: 460px; }
  .panel { height: 250px; grid-template-columns: 56px 1fr; }
}

.case-cta {
  border: 1px dashed var(--line-2); border-radius: 28px; padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.012) 14px 28px);
}
.case-cta h3 { margin: 0 0 6px; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; font-weight: 600; }
.case-cta p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .case-cta { padding: 28px 22px; } .case-cta .btn { width: 100%; } }

/* ── Services ───────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr; } }
.svc {
  position: relative; padding: 36px 32px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--card); display: flex; flex-direction: column; transition: border-color .3s, transform .3s;
}
.svc:hover { border-color: var(--line-2); transform: translateY(-3px); }
.svc .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 28px; }
.svc .ic svg { width: 24px; height: 24px; }
.svc h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.025em; font-weight: 600; }
.svc > p { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.svc ul { list-style: none; padding: 20px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; color: #d4d4d8; }
.svc li { display: flex; gap: 10px; }
.svc li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 9px; flex: none; }
.svc .ideal { margin-top: 20px; font-size: 13px; color: var(--dim); }
.svc .ideal b { color: var(--muted); font-weight: 500; }

/* ── Process ───────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { padding: 36px 28px 40px; border-right: 1px solid var(--line); background: var(--bg-2); }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step h3 { margin: 40px 0 10px; font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .step h3 { margin-top: 20px; }
}

/* ── Payment ───────────────────────── */
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .pay { grid-template-columns: 1fr; } }
.pay-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; background: var(--card); }
.pay-card h3 { margin: 18px 0 8px; font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.pay-card p { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.pay-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(50, 188, 173, .12); color: #32bcad; }
.pay-card .ic.card { background: rgba(0, 158, 227, .12); color: #4cc3ff; }
.pay-card .ic svg { width: 24px; height: 24px; }
.pay-band {
  margin-top: 20px; border-radius: var(--radius); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(100deg, rgba(236,230,220,.10), rgba(236,230,220,.02)); border: 1px solid rgba(236,230,220,.2);
}
.pay-band p { margin: 0; color: #e4e4e7; }
.pay-band p span { color: var(--muted); display: block; font-size: 14px; }
.secure { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px; font-size: 13px; color: var(--dim); }
.secure span { display: inline-flex; gap: 8px; align-items: center; }
.secure svg { width: 15px; height: 15px; }
@media (max-width: 600px) { .pay-card { padding: 28px 22px; } .pay-band { padding: 24px 22px; } .pay-band .btn { width: 100%; } }

/* ── FAQ ───────────────────────── */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 32px; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--muted); transition: transform .3s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 620px; }

/* ── Final CTA ───────────────────────── */
.final {
  position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: 96px 24px;
  border: 1px solid var(--line); background:
    radial-gradient(600px 300px at 50% 0%, rgba(236,230,220,.16), transparent 70%), var(--card);
}
.final h2 { margin: 0 auto 20px; font-size: clamp(36px, 5.4vw, 68px); }

.final p { color: var(--muted); max-width: 520px; margin: 0 auto 36px; font-size: 18px; }
.final .hero-ctas { justify-content: center; }
@media (max-width: 600px) { .final { padding: 64px 20px; border-radius: 24px; } }

/* ── Footer ───────────────────────── */
footer { padding: 56px 0 40px; color: var(--dim); font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot a:hover { color: var(--text); }

/* ── Reveal ───────────────────────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Payment page ───────────────────────── */
.pay-page { min-height: 100vh; display: flex; flex-direction: column; }
.pay-page main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px 64px; position: relative; z-index: 1; }
.checkout { width: 100%; max-width: 480px; }
.checkout-card { border: 1px solid var(--line-2); border-radius: 28px; background: rgba(19,19,23,.9); backdrop-filter: blur(10px); overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); }
.co-head { padding: 32px 32px 28px; border-bottom: 1px solid var(--line); }
.co-head .hi { color: var(--muted); font-size: 15px; margin: 0 0 4px; }
.co-head .desc { font-size: 17px; font-weight: 500; margin: 0 0 20px; letter-spacing: -0.01em; }
.co-amount { font-size: 48px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.co-amount small { font-size: 14px; color: var(--muted); letter-spacing: 0; font-weight: 400; display: block; margin-bottom: 8px; }
.amount-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 14px; padding: 0 16px; background: var(--bg-2); }
.amount-input span { font-size: 22px; color: var(--muted); }
.amount-input input { flex: 1; min-width: 0; height: 60px; border: 0; outline: 0; background: transparent; color: var(--text); font: 600 28px var(--sans); letter-spacing: -0.02em; }
.amount-input:focus-within { border-color: var(--accent); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; margin: 24px 32px 0; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.tabs button { height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, color .2s; }
.tabs button svg { width: 16px; height: 16px; }
.tabs button[aria-selected="true"] { background: var(--card-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }
.co-body { padding: 28px 32px 32px; }
.qr-box { width: 220px; max-width: 100%; aspect-ratio: 1; margin: 0 auto 20px; padding: 14px; background: #fff; border-radius: 18px; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-box svg rect[fill="#ffffff"] { fill: #fff; }
.co-hint { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.code-field { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.code-field code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-block { width: 100%; }
.co-steps { margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--muted); counter-reset: s; }
.co-steps li { display: flex; gap: 12px; counter-increment: s; }
.co-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 11px; flex: none; color: var(--text); }
.co-foot { padding: 20px 32px; border-top: 1px solid var(--line); background: var(--bg-2); }
.notice { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; font-size: 14px; background: rgba(250, 204, 21, .08); border: 1px solid rgba(250, 204, 21, .25); color: #fde68a; }
.trust { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; font-size: 12.5px; color: var(--dim); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 14px; height: 14px; }
@media (max-width: 480px) {
  .co-head, .co-body { padding-left: 22px; padding-right: 22px; }
  .tabs { margin-left: 22px; margin-right: 22px; }
  .co-foot { padding-left: 22px; padding-right: 22px; }
  .co-amount { font-size: 40px; }
}

/* Form (gerador de link) */
.form { display: grid; gap: 18px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.field input { width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); padding: 0 14px; font: 15px var(--sans); outline: 0; }
.field input:focus { border-color: var(--accent); }
.field small { display: block; margin-top: 6px; color: var(--dim); font-size: 12.5px; }
.result > *, .co-body, .checkout { min-width: 0; }
.result { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .row-2 { grid-template-columns: 1fr; } }

/* ── Atlas: case largo com janelas de desktop ───────────────────────── */
.case.wide { grid-template-columns: 1fr; }
.case.wide .case-info { padding-bottom: 8px; }
.wide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.wide-grid .feat { margin: 4px 0 0; }
.case.wide .case-visual.desk { border-left: 0; min-height: 0; padding: 32px 48px 0; display: grid; grid-template-columns: 1fr 300px; gap: 20px; background:
  radial-gradient(700px 320px at 40% 100%, rgba(236,230,220,.09), transparent 70%); }
.win { border-radius: 14px 14px 0 0; overflow: hidden; border: 1px solid var(--line-2); border-bottom: 0; background: #0f0f12; box-shadow: 0 -20px 60px -30px rgba(0,0,0,.8); }
.win .browser-bar { height: 28px; }
.win img { width: 100%; height: auto; }
.w-main { grid-row: span 2; }
.w-side { border-radius: 12px; border-bottom: 1px solid var(--line-2); align-self: start; }
.w-side .browser-bar { height: 22px; }
.w-side .browser-bar i { width: 7px; height: 7px; }
.w-b { align-self: end; border-radius: 12px 12px 0 0; border-bottom: 0; }
.wide-foot { margin: 0; padding: 20px 48px; border-top: 1px solid var(--line); }
@media (max-width: 980px) {
  .wide-grid { grid-template-columns: 1fr; gap: 0; }
  .case.wide .case-visual.desk { grid-template-columns: 1fr 1fr; padding: 24px 24px 0; border-top: 1px solid var(--line); }
  .w-main { grid-row: auto; grid-column: 1 / -1; border-radius: 12px; border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 600px) {
  .case.wide .case-visual.desk { padding: 20px 16px 0; gap: 12px; }
  .wide-foot { padding: 18px 22px; }
}

.rest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 32px 48px 48px; }
.rest-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line-2); }
@media (max-width: 860px) { .rest-grid { grid-template-columns: 1fr; padding: 24px 22px 28px; } }

/* ── Painel e página do cliente ───────────────────────── */
.app { min-height: 100vh; position: relative; }
.app main { position: relative; z-index: 1; padding: 32px 0 80px; }
.app .nav-in { gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.panel-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 28px; }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-title h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.035em; font-weight: 600; line-height: 1.1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 20px; }
.stat small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.stat b { font-size: 26px; letter-spacing: -0.03em; font-weight: 600; }
.stat.hl { border-color: rgba(236,230,220,.3); background: linear-gradient(160deg, rgba(236,230,220,.10), var(--card) 70%); }
.stat.hl b { color: var(--accent); }
.stat.bad b { color: #f87171; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

.list { display: grid; gap: 12px; }
.client { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.client-head { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; background: none; border: 0; text-align: left; }
.client-head:hover { background: rgba(255,255,255,.02); }
.client-head h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.client-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.chip.ok { color: #86efac; border-color: rgba(74,222,128,.3); background: rgba(74,222,128,.08); }
.chip.warn { color: #fde68a; border-color: rgba(250,204,21,.3); background: rgba(250,204,21,.07); }
.chip.bad { color: #fca5a5; border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.08); }
.chip.acc { color: var(--accent); border-color: rgba(236,230,220,.3); background: var(--accent-soft); }
.client-body { border-top: 1px solid var(--line); padding: 18px 20px 20px; display: grid; gap: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.charges { width: 100%; border-collapse: collapse; font-size: 14px; }
.charges td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.charges tr:first-child td { border-top: 0; }
.charges td.v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.charges td.a { text-align: right; white-space: nowrap; }
.link-btn { background: none; border: 0; padding: 4px 6px; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.link-btn.danger:hover { color: #f87171; }
@media (max-width: 600px) {
  .client-head { grid-template-columns: 1fr; }
  .chips { justify-content: flex-start; }
  .charges td.d { display: none; }
}

.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--muted); }

/* Formulário do painel */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.sheet-in { width: 100%; max-width: 560px; height: 100%; overflow-y: auto; background: var(--bg-2); border-left: 1px solid var(--line-2); padding: 28px; }
.sheet h2 { font-size: 26px; margin: 0 0 4px; }
.fs { border: 0; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.fs legend { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } .sheet-in { padding: 22px 16px; } }
.field select { width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); padding: 0 12px; font: 15px var(--sans); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.seg button { height: 40px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--card-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }
.preview { border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; font-size: 14px; }
.preview div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.preview div:first-child { border-top: 0; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.3); color: #fca5a5; font-size: 14px; }
.sheet-foot { display: flex; gap: 10px; margin-top: 28px; position: sticky; bottom: -28px; padding: 16px 0 28px; background: linear-gradient(transparent, var(--bg-2) 30%); }
.sheet-foot .btn { flex: 1; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); }

/* Página do cliente */
.bill { width: 100%; max-width: 520px; margin: 0 auto; display: grid; gap: 16px; }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary .stat b { font-size: 20px; }
.due-list { display: grid; }
.due { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.due:first-child { border-top: 0; }
.due b { display: block; font-weight: 500; font-size: 15px; }
.due .r { text-align: right; display: grid; gap: 4px; justify-items: end; }
.qr-img { width: 220px; max-width: 100%; aspect-ratio: 1; margin: 0 auto 20px; padding: 12px; background: #fff; border-radius: 18px; display: grid; place-items: center; }
.qr-img img { width: 100%; height: 100%; image-rendering: pixelated; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #ddd; border-top-color: #111; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }
.due span.muted { display: block; font-size: 13px; }

/* Ficha do cliente */
.client.open { border-color: var(--line-2); }
.fsec { border-top: 1px solid var(--line); padding-top: 16px; }
.fsec h4 { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fsec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fsec-head h4 { margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 20px; margin: 0; }
.facts dt { font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 14px; word-break: break-word; }
.facts a { text-decoration: underline; text-underline-offset: 3px; }
.docs, .notes { list-style: none; margin: 0; padding: 0; display: grid; }
.docs li { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.docs li:first-child { border-top: 0; }
.doc-name { font-size: 14px; font-weight: 500; flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-name:hover { text-decoration: underline; }
.switch.small { font-size: 13px; color: var(--muted); gap: 6px; }
.switch.small input { width: 15px; height: 15px; }
.note-form { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 8px; }
.note-form textarea, .field textarea { flex: 1; width: 100%; min-width: 0; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); padding: 12px 14px; font: 14px/1.5 var(--sans); resize: vertical; outline: 0; }
.note-form textarea:focus, .field textarea:focus { border-color: var(--accent); }
.notes li { padding: 10px 0; border-top: 1px solid var(--line); }
.notes li p { margin: 4px 0 0; font-size: 14px; white-space: pre-wrap; }
@media (max-width: 600px) { .note-form { flex-direction: column; align-items: stretch; } }

/* ── Identidade Beskar ───────────────────────── */
h1, h2, h3, .co-amount, .stat b, .page-title h1 { font-family: var(--head); }
.hero h1 { font-weight: 600; letter-spacing: -0.04em; }
.kicker, .eyebrow, .strip span, .step .n, .fsec h4, .fs legend { font-family: var(--sans); letter-spacing: .18em; font-weight: 500; }
.kicker { color: var(--muted); }
.kicker::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--metal); vertical-align: middle; margin-right: 12px; }
.code-field code, .browser-bar .url, .agenda .t, .slots span, .case-foot, .site-mini small { font-family: var(--code); }
.brand { gap: 12px; }
.brand-logo { width: 36px; height: 36px; flex: none; object-fit: contain; }
.brand-word { height: 16px; width: auto; flex: none; }
@media (max-width: 380px) { .brand-word { height: 13px; } }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px rgba(236,230,220,.35); }
.btn-primary:hover { background: #fff; box-shadow: 0 14px 40px -12px rgba(236,230,220,.5); }
.bg-glow { background:
  radial-gradient(700px 420px at 80% 10%, rgba(236,230,220,.07), transparent 70%),
  radial-gradient(600px 400px at 0% 0%, rgba(150,145,138,.06), transparent 70%); }
.bg-grid { opacity: .3; }
.dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(236,230,220,.12); }
.svc .ic, .float-card .ic { background: rgba(236,230,220,.06); color: var(--accent); border: 1px solid var(--line-2); }
.fc-2 .ic { color: var(--ok); }
.feat svg, .hero-note svg { color: var(--accent); }
.svc li::before { background: var(--metal); }
.tag.hl { color: var(--accent); }
.stat.hl b { color: transparent; background: var(--metal); -webkit-background-clip: text; background-clip: text; }

/* Arco metálico (como na identidade) */
.metal-arc { position: absolute; pointer-events: none; z-index: 0; }
.hero .metal-arc { right: -12%; bottom: -8%; width: 70%; max-width: 980px; opacity: .55; }
.final .metal-arc { right: -20%; bottom: -30%; width: 80%; opacity: .35; }
.final > *:not(.metal-arc) { position: relative; z-index: 1; }
@media (max-width: 980px) { .hero .metal-arc { width: 120%; right: -40%; bottom: 0; opacity: .35; } }
