/* =========================================================
   OneQR - Design System & Stylesheet
   Based on the Moss & Clay system from project/website
   Fonts (Sora + Inter) are loaded via <link> in index.html
========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* ---------- Design Tokens ---------- */
:root {
  --ink: #22261f;
  --ink-soft: #5c6154;
  --ink-faint: #92917e;
  --bg: #f3efe8;
  --bg-alt: #eae2d2;
  --surface: #fcfaf4;
  --border: #ded2b8;

  --primary: #3e5c3a;
  --primary-600: #354f31;
  --primary-dark: #253620;
  --primary-light: #6b8a63;
  --primary-tint: #e1e8da;

  --accent: #c1653d;
  --accent-dark: #a34f2e;
  --accent-deep: #8a4125;
  --accent-tint: #f3dfce;

  --gold: #b08628;
  --gold-tint: #f1e6c8;

  --teal: #2e5c52;
  --olive: #6b7a4f;
  --rust: #8c4a38;
  --umber: #6b4a34;
  --wine: #6e3f3a;

  --whatsapp: #1fa855;
  --veg: #2e8b3e;
  --nonveg: #a3392b;

  /* Third-party brand colours, used only for the Ask AI logos */
  --brand-ai-dark: #0d0d0d;
  --brand-claude: #d97757;
  --brand-perplexity: #20808d;

  --dark: #1c2117;
  --dark-alt: #262c1e;
  --dark-border: #3a4230;
  --on-dark: #f3efe8;
  --on-dark-soft: #b7b9a2;

  --grad-dark: linear-gradient(160deg, #262c1e 0%, #1c2117 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(34, 38, 31, 0.08);
  --shadow-md: 0 12px 30px rgba(34, 38, 31, 0.1);
  --shadow-lg: 0 24px 60px rgba(34, 38, 31, 0.16);
  --shadow-glow: 0 16px 40px rgba(163, 79, 46, 0.32);

  --container: 1180px;
  --header-h: 84px;
}

/* ---------- Base ---------- */
body {
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, .font-display {
  font-family: "Sora", sans-serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { color: var(--ink-soft); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
section[id] { scroll-margin-top: 80px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--grad-dark); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark p { color: var(--on-dark-soft); }

.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-tint);
  padding: 7px 16px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
/* line-height + align-self keep the dot on the first line when the label wraps on small screens */
.eyebrow { line-height: 1.5; text-align: left; text-wrap: balance; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; align-self: flex-start; margin-top: calc(0.75em - 3px); }
.section-dark .eyebrow { background: rgba(255, 255, 255, 0.08); color: var(--primary-light); }
.text-gradient { color: var(--accent); }
.lead { font-size: 1.1rem; color: var(--ink-soft); margin-top: 16px; }

/* Small CSS-drawn separator dot (keeps the markup free of special characters) */
.sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; margin: 0 6px; vertical-align: middle; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.96rem; white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow-glow); font-weight: 700; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-3px); box-shadow: 0 22px 46px rgba(138, 65, 37, 0.38); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.btn-light { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.28); }
.btn-light:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-3px); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { filter: brightness(0.94); transform: translateY(-3px); }
.btn-sm { padding: 10px 20px; font-size: 0.86rem; }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; }

/* ---------- Header / Nav ---------- */
/* No backdrop-filter: blurring the animated hero on every frame was a major scroll cost */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  display: flex; align-items: center; z-index: 1000;
  background: rgba(18, 16, 12, 0.45);
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}
.site-header .container { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header.scrolled {
  height: 68px; background: rgba(252, 250, 244, 0.97);
  box-shadow: 0 4px 24px rgba(26, 21, 35, 0.06); border-bottom: 1px solid var(--border);
}
.site-header:not(.scrolled) .brand { color: var(--on-dark); }
.site-header:not(.scrolled) .brand-text > span { color: var(--primary-light); }
.site-header:not(.scrolled) .nav-links a { color: rgba(243, 239, 232, 0.85); }
.site-header:not(.scrolled) .nav-links a:hover { color: var(--on-dark); }
.site-header:not(.scrolled) .nav-toggle { border-color: rgba(243, 239, 232, 0.35); color: var(--on-dark); }

.brand { display: flex; align-items: center; gap: 10px; font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--ink); transition: color 0.35s ease; }
.brand-logo { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text > span { color: var(--primary); transition: color 0.35s ease; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 0.93rem; color: var(--ink-soft); position: relative; padding-block: 6px; transition: color 0.35s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.25s ease; border-radius: 2px; }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-trial .t-short { display: none; }
.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1.5px solid var(--border); transition: color 0.35s ease, border-color 0.35s ease; flex-shrink: 0; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-drawer-close, .nav-overlay, .mobile-drawer { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; contain: layout paint;
  padding-top: calc(var(--header-h) + 56px); padding-bottom: 96px;
  background:
    radial-gradient(70% 80% at 90% 30%, rgba(193, 101, 61, 0.55) 0%, transparent 60%),
    radial-gradient(60% 70% at 60% 90%, rgba(176, 134, 40, 0.4) 0%, transparent 60%),
    radial-gradient(50% 60% at 15% 20%, rgba(62, 92, 58, 0.5) 0%, transparent 65%),
    var(--dark);
  overflow: hidden;
}
/* The canvas starts after page load and fades in over the CSS gradient above */
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; opacity: 0; transition: opacity 0.8s ease; }
.hero-gl.ready { opacity: 1; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--on-dark); margin-bottom: 20px; }
.hero h1 .text-gradient { color: var(--gold); display: block; }
.hero .eyebrow { background: rgba(243, 239, 232, 0.14); color: var(--on-dark); }
.hero .lead { color: var(--on-dark-soft); max-width: 540px; }
.hero .btn-outline { color: var(--on-dark); border-color: rgba(243, 239, 232, 0.3); }
.hero .btn-outline:hover { border-color: var(--on-dark); color: var(--on-dark); background: rgba(243, 239, 232, 0.08); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 10px 22px; margin-top: 36px; flex-wrap: wrap; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); font-size: 0.9rem; font-weight: 500; }
.hero-points svg { width: 18px; height: 18px; color: var(--gold); }
.hero-train { display: flex; align-items: center; gap: 14px; max-width: 500px; margin-top: 28px; padding: 12px 18px 12px 12px; border-radius: var(--radius-md); background: rgba(176, 134, 40, 0.16); border: 1px solid rgba(176, 134, 40, 0.45); text-align: left; }
.hero-train .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-train .ic svg { width: 24px; height: 24px; }
.hero-train strong { display: block; font-family: "Sora", sans-serif; font-size: 0.98rem; color: var(--on-dark); }
.hero-train span { display: block; font-size: 0.86rem; color: var(--on-dark-soft); line-height: 1.45; }

.hero-visual { position: relative; height: 600px; display: flex; align-items: center; justify-content: center; }
.hero-visual .phone { animation: float 7s ease-in-out infinite; }

.floating-card {
  position: absolute; z-index: 2;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink); white-space: nowrap;
  animation: float 5.5s ease-in-out infinite;
}
.floating-card small { display: block; font-weight: 500; color: var(--ink-faint); font-size: 0.72rem; }
.floating-card .ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; font-weight: 800; }
.floating-card .ic svg { width: 18px; height: 18px; }
.fc-1 { top: 70px; right: -6px; animation-delay: 0.3s; }
.fc-1 .ic { background: var(--gold); }
.fc-2 { bottom: 120px; left: -10px; animation-delay: 1s; }
.fc-2 .ic { background: var(--whatsapp); }
.fc-3 { top: 46%; right: -18px; animation-delay: 0.6s; }
.fc-3 .ic { background: var(--primary); }
.fc-qr { top: 40px; left: 0; padding: 10px; flex-direction: column; gap: 6px; animation-delay: 1.4s; }
.fc-qr .qr-box { width: 76px; height: 76px; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Decorative animations pause while their section is off screen (set by script.js) */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative; width: 280px; height: 576px; flex-shrink: 0;
  background: #12150f; border-radius: 44px; padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(255, 255, 255, 0.08) inset;
}
.phone::before { content: ""; position: absolute; top: 17px; left: 50%; transform: translateX(-50%); width: 78px; height: 20px; border-radius: var(--radius-pill); background: #12150f; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; font-size: 12px; }

/* Status bar reserves the notch area so it never covers the live page */
.phone-status { height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 2px 24px 0 28px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--bg-alt); }
.ps-icons { display: flex; align-items: center; gap: 5px; }
.ps-icons svg { height: 10px; width: 15px; fill: currentColor; }
.ps-icons svg + svg { width: 22px; }
.phone-screen iframe { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; display: block; background: var(--surface); }

.ps-head { padding: 42px 16px 16px; color: #fff; position: relative; }
.ps-head.c-rest { background: var(--rust); }
.ps-head.c-salon { background: var(--wine); }
.ps-head.c-prop { background: var(--teal); }
.ps-brand { display: flex; align-items: center; gap: 10px; }
.ps-logo { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, 0.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ps-logo svg { width: 20px; height: 20px; }
.ps-brand strong { font-family: "Sora", sans-serif; font-size: 15px; display: block; line-height: 1.2; }
.ps-brand small { display: flex; align-items: center; font-size: 10.5px; opacity: 0.88; white-space: nowrap; }
.ps-brand small svg { width: 10px; height: 10px; margin-right: 3px; color: var(--gold-tint); }
.ps-links { display: flex; gap: 6px; margin-top: 12px; }
.ps-links span { flex: 1; text-align: center; background: rgba(255, 255, 255, 0.14); border-radius: 8px; padding: 6px 0; font-size: 9.5px; font-weight: 600; }
.ps-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; overflow: hidden; }
.ps-chips { display: flex; gap: 6px; overflow: hidden; }
.ps-chips span { padding: 5px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border); font-size: 10px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.ps-chips span.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ps-item { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px; }
.ps-thumb { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--accent-tint); color: var(--accent-dark); }
.ps-thumb svg { width: 24px; height: 24px; }
.ps-thumb.t2 { background: var(--gold-tint); color: var(--umber); }
.ps-thumb.t3 { background: var(--primary-tint); color: var(--primary); }
.ps-info { flex: 1; min-width: 0; }
.ps-info strong { display: block; font-size: 11.5px; color: var(--ink); line-height: 1.25; }
.ps-info small { display: block; font-size: 9.5px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-info b { font-size: 11px; color: var(--ink); }
.ps-add { font-size: 10px; font-weight: 700; color: var(--accent-dark); border: 1px solid var(--accent); border-radius: 8px; padding: 4px 10px; flex-shrink: 0; }
.ps-cart { margin: 0 12px 14px; background: var(--primary); color: #fff; border-radius: 14px; padding: 11px 14px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; }
.ps-cart span { display: inline-flex; align-items: center; gap: 4px; }
.ps-cart.wa { background: var(--whatsapp); justify-content: center; gap: 8px; }
.ps-cart svg { width: 14px; height: 14px; }
.ps-pack { background: var(--wine); color: #fff; border-radius: 12px; padding: 10px 12px; }
.ps-pack strong { font-family: "Sora", sans-serif; font-size: 12px; display: block; }
.ps-pack small { font-size: 9.5px; opacity: 0.85; display: block; }
.ps-pack .tag { display: inline-flex; align-items: center; margin-top: 6px; background: var(--gold); border-radius: var(--radius-pill); padding: 2px 8px; font-size: 9px; font-weight: 700; }
.ps-hero-img { height: 112px; border-radius: 12px; background: var(--teal); position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.ps-hero-img svg { width: 150px; height: 96px; color: rgba(255, 255, 255, 0.85); }
.ps-hero-img .tag { position: absolute; top: 8px; left: 8px; background: var(--gold); color: #fff; font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill); }
.ps-price { display: flex; justify-content: space-between; align-items: baseline; }
.ps-price strong { font-family: "Sora", sans-serif; font-size: 15px; }
.ps-price small { font-size: 9.5px; color: var(--ink-faint); }
.ps-amen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ps-amen span { background: var(--primary-tint); color: var(--primary-dark); border-radius: 10px; padding: 7px 2px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9px; font-weight: 600; }
.ps-amen svg { width: 15px; height: 15px; }
.ps-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 12px 14px; }
.ps-two span { border-radius: 12px; padding: 10px 0; text-align: center; font-size: 10.5px; font-weight: 700; }
.ps-two .a { background: var(--whatsapp); color: #fff; }
.ps-two .b { border: 1px solid var(--border); color: var(--ink); }

/* ---------- Marquee ---------- */
.logos-strip { padding-block: 40px; border-bottom: 1px solid var(--border); }
.logos-strip .label { text-align: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; color: var(--ink-faint); margin-bottom: 22px; }
.marquee { overflow: hidden; width: 100%; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-group { display: flex; gap: 52px; padding-right: 52px; flex-shrink: 0; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--ink-faint); white-space: nowrap; }
.marquee-track span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.icon-badge { width: 54px; height: 54px; border-radius: 15px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.icon-badge svg { width: 26px; height: 26px; }
.card:nth-child(2n) .icon-badge { background: var(--accent-tint); color: var(--accent-dark); }
.card:nth-child(3n) .icon-badge { background: var(--gold-tint); color: var(--umber); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.proj-cat { display: inline-block; align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); background: var(--primary-tint); padding: 4px 12px; border-radius: var(--radius-pill); }

/* ---------- Industry tabs ---------- */
.tab-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
.tab-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill); border: 1.5px solid var(--border);
  font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); background: var(--surface);
  transition: all 0.2s ease;
}
.tab-btn svg { width: 18px; height: 18px; }
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); border-color: transparent; color: var(--on-dark); box-shadow: 0 12px 28px rgba(62, 92, 58, 0.28); }

.ind-panel { display: none; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.ind-panel.active { display: grid; animation: panelIn 0.5s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ind-visual { display: flex; justify-content: center; position: relative; }
.ind-visual::before { content: ""; position: absolute; width: min(340px, 88vw); height: min(340px, 88vw); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; }
.ind-panel[data-ind="restaurant"] .ind-visual::before { background: var(--accent-tint); }
.ind-panel[data-ind="salon"] .ind-visual::before { background: var(--gold-tint); }
.ind-panel[data-ind="property"] .ind-visual::before { background: var(--primary-tint); }
.ind-visual .phone { z-index: 1; }
.ind-copy .proj-cat { margin-bottom: 14px; }
.ind-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.ind-copy > p { font-size: 1.02rem; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 26px 0 30px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--ink-soft); }
.check-list svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }

/* ---------- Process ---------- */
.process-grid { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.process-step { position: relative; padding-top: 8px; }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 0.85rem;
  color: var(--primary); background: var(--primary-tint);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.process-step:last-child::before { background: var(--accent-dark); color: #fff; }
.process-step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.process-step p { font-size: 0.93rem; }
.process-grid .process-step:not(:last-child)::after {
  content: ""; position: absolute; top: 30px; left: 64px; width: calc(100% - 52px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
}
.train-band { margin-top: 56px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; background: var(--grad-dark); border-radius: var(--radius-lg); padding: 32px 36px; box-shadow: var(--shadow-md); }
.tb-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; }
.tb-icon svg { width: 34px; height: 34px; }
.tb-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-tint); background: rgba(176, 134, 40, 0.22); padding: 4px 12px; border-radius: var(--radius-pill); }
.tb-copy h3 { color: var(--on-dark); margin: 10px 0 6px; font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.tb-copy p { color: var(--on-dark-soft); font-size: 0.93rem; max-width: 560px; }
.tb-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tb-roles li { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--dark-border); color: var(--on-dark); font-size: 0.84rem; font-weight: 600; white-space: nowrap; }
.tb-roles svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.process-note { text-align: center; margin-top: 40px; font-size: 0.95rem; }
.process-note strong { color: var(--ink); }

/* ---------- Live demo ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr auto; gap: 72px; align-items: center; }
.demo-try { display: grid; gap: 14px; margin: 28px 0 34px; }
.demo-try li { display: flex; gap: 14px; align-items: flex-start; }
.demo-try .n { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--gold); font-family: "Sora", sans-serif; font-weight: 700; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.demo-try strong { color: var(--on-dark); display: block; font-size: 0.98rem; }
.demo-try span { color: var(--on-dark-soft); font-size: 0.9rem; }
.demo-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.demo-scan { display: flex; gap: 18px; align-items: center; margin-top: 36px; padding: 16px; border: 1px solid var(--dark-border); border-radius: var(--radius-md); max-width: 420px; }
.demo-scan .qr-box { width: 92px; height: 92px; padding: 6px; border-radius: 10px; flex-shrink: 0; }
.demo-scan strong { color: var(--on-dark); display: block; font-family: "Sora", sans-serif; font-size: 0.98rem; }
.demo-scan span { color: var(--on-dark-soft); font-size: 0.86rem; }
.demo-phone { position: relative; }
.demo-phone .phone { width: 340px; height: 700px; }
.badge-live { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 8px; background: var(--accent-dark); color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-pill); box-shadow: var(--shadow-md); white-space: nowrap; }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.demo-hint { text-align: center; color: var(--on-dark-soft); font-size: 0.8rem; margin-top: 14px; }

/* Lightweight placeholder shown until the live demo loads (it only loads while the section is on screen) */
.demo-poster { position: absolute; inset: 38px 0 0; z-index: 2; display: flex; flex-direction: column; gap: 12px; padding: 14px; background: var(--surface); transition: opacity 0.4s ease; }
.demo-poster i { display: block; border-radius: 12px; background: var(--bg-alt); animation: pulseSoft 1.6s ease-in-out infinite; }
.demo-poster .p-hero { height: 170px; background: var(--rust); opacity: 0.85; }
.demo-poster .p-cta { height: 52px; background: var(--accent); opacity: 0.7; }
.demo-poster .p-row { height: 56px; }
.demo-poster small { margin-top: auto; padding-bottom: 6px; text-align: center; color: var(--ink-faint); font-size: 12px; font-weight: 600; }
.phone-screen.is-live .demo-poster { opacity: 0; pointer-events: none; }
.phone-screen.is-live .demo-poster i { animation: none; }
@keyframes pulseSoft { 50% { opacity: 0.55; } }

/* ---------- QR ---------- */
.qr-box { background: #fff; border-radius: 8px; padding: 5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qr-box img { width: 100%; height: 100%; display: block; }

/* ---------- Template studio ---------- */
/* The --tp-* colours are set on #studio by script.js from the visitor's picks */
.studio {
  --tp-brand: var(--rust); --tp-accent: var(--gold); --tp-bg: var(--dark-alt); --tp-surface: var(--dark-alt);
  --tp-ink: var(--on-dark); --tp-muted: var(--on-dark-soft); --tp-line: var(--dark-border);
  --tp-on-brand: #fff; --tp-on-accent: #fff; --tp-brand-tint: var(--dark-border); --tp-accent-tint: var(--dark-border);
  --tp-brand-ink: var(--on-dark); --tp-accent-ink: var(--gold);
  /* Fixed preview column so colour changes never resize the layout; empty 1fr rows centre the left side on the phone */
  display: grid; grid-template-columns: minmax(0, 1fr) 352px; grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: ". preview" "controls preview" "info preview" ". preview";
  column-gap: 56px;
}
.studio-controls { grid-area: controls; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.studio-label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.studio-label { display: flex; align-items: center; gap: 10px; font-family: "Sora", sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink); }
.studio-step > .studio-label { margin-bottom: 12px; }
.studio-label b { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.78rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.tpl-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl-opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--surface); border: 1.5px solid var(--border); text-align: left; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.tpl-opt:hover { border-color: var(--primary-light); }
.tpl-opt.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.tpl-opt strong { display: block; font-family: "Sora", sans-serif; font-size: 0.92rem; color: var(--ink); line-height: 1.25; }
.tpl-opt small { display: block; font-size: 0.74rem; color: var(--ink-faint); }
/* Tiny page icon in each template's default colours (--c1 brand, --c2 accent, --c3 neutral) */
.tpl-opt .mini { width: 26px; height: 34px; border-radius: 6px; flex-shrink: 0; position: relative; overflow: hidden; background: var(--c3); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.tpl-opt .mini::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: var(--c1); }
.tpl-opt .mini::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 5px; height: 4px; border-radius: 3px; background: var(--c2); }

.studio-actions { display: flex; align-items: center; gap: 14px; }
.reset-btn { font-size: 0.84rem; font-weight: 600; color: var(--ink-faint); text-decoration: underline; text-underline-offset: 3px; }
.reset-btn:hover { color: var(--ink); }
.surprise-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-dark); font-weight: 700; font-size: 0.86rem; transition: transform 0.2s ease, background 0.2s ease; }
.surprise-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.surprise-btn svg { width: 18px; height: 18px; }
.surprise-btn.rolling svg { animation: diceRoll 0.55s ease; }
@keyframes diceRoll { 40% { transform: rotate(200deg) scale(1.15); } to { transform: rotate(360deg); } }

.color-rows { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 6px 16px; }
.color-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; }
.color-row + .color-row { border-top: 1px dashed var(--border); }
.cr-name { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; min-width: 0; }
.cr-name strong { font-size: 0.92rem; color: var(--ink); }
.cr-name small { font-size: 0.76rem; color: var(--ink-faint); }
.cr-swatches { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sw { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); position: relative; flex-shrink: 0; transition: transform 0.15s ease; }
.sw:hover { transform: scale(1.12); }
.sw[aria-pressed="true"], .sw-custom.on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
/* Colour-wheel swatch opens the native picker; the gradient is a universal "any colour" cue */
.sw-custom { display: flex; align-items: center; justify-content: center; cursor: pointer; background: conic-gradient(#e2504c, #e8b23a, #5cb85c, #3fa7d6, #7b5fc9, #d6519a, #e2504c); color: #fff; }
.sw-custom.on { background: var(--sw); }
.sw-custom svg { width: 14px; height: 14px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4)); pointer-events: none; }
.sw-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.sw-custom:focus-within { outline: 3px solid var(--primary-light); outline-offset: 3px; }

.studio-preview { grid-area: preview; position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 36px 0; }
.studio-preview::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; top: 296px; left: 50%; transform: translate(-50%, -50%); background: color-mix(in srgb, var(--tp-brand) 22%, transparent); transition: background-color 0.35s ease; }
.studio-preview .phone { z-index: 1; }
.studio-palette { position: relative; display: flex; justify-content: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 18px; font-size: 0.76rem; color: var(--ink-soft); }
.studio-palette span { display: inline-flex; align-items: center; gap: 6px; }
.studio-palette i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.studio-palette code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; color: var(--ink); }

.studio-info { grid-area: info; margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 12px 12px 20px; }
.si-text { flex: 1 1 220px; min-width: 0; }
.si-text strong { display: flex; align-items: center; gap: 10px; font-family: "Sora", sans-serif; font-size: 1.05rem; color: var(--ink); }
.si-text .proj-cat { font-size: 0.66rem; padding: 3px 10px; }
.tpl-best { margin-top: 2px; font-size: 0.84rem; color: var(--ink-faint); }
.tpl-best b { color: var(--ink-soft); font-weight: 600; }
.studio-info .btn { padding: 12px 22px; }
.tpl-note { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 40px; text-align: center; font-size: 0.92rem; color: var(--ink-soft); }
.tpl-note svg { width: 18px; height: 18px; color: var(--primary); }

/* Preview screens (phone mockup), all coloured from the --tp-* variables */
.tp { background: var(--tp-bg); color: var(--tp-ink); }
.tp, .tp * { transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, fill 0.35s ease; }
.tp-screen { display: none; flex-direction: column; height: 100%; }
.tp-screen.active { display: flex; animation: panelIn 0.45s ease; }
.tp-top { padding: 40px 14px 10px; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tp-top.center { flex-direction: column; text-align: center; gap: 4px; padding-bottom: 12px; }
.tp-logo { width: 36px; height: 36px; border-radius: 11px; background: var(--tp-brand); color: var(--tp-on-brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tp-logo.round { border-radius: 50%; margin-bottom: 4px; }
.tp-logo svg { width: 20px; height: 20px; }
.tp-top strong, .tp-brand strong { font-family: "Sora", sans-serif; font-size: 14px; display: block; line-height: 1.2; }
.tp-top small, .tp-brand small { display: flex; align-items: center; font-size: 10px; color: var(--tp-muted); white-space: nowrap; }
.tp small svg { width: 10px; height: 10px; margin-right: 3px; color: var(--tp-accent-ink); }
.tp-head { background: var(--tp-brand); color: var(--tp-on-brand); padding: 40px 14px 14px; flex-shrink: 0; }
.tp-head .tp-logo { background: color-mix(in srgb, var(--tp-on-brand) 16%, transparent); color: inherit; }
.tp-head small, .tp-head small svg { color: inherit; opacity: 0.88; }
.tp-brand { display: flex; align-items: center; gap: 10px; }
.tp-links { display: flex; gap: 6px; margin-top: 12px; }
.tp-links span { flex: 1; text-align: center; background: color-mix(in srgb, var(--tp-on-brand) 14%, transparent); border-radius: 8px; padding: 6px 0; font-size: 9.5px; font-weight: 600; }
.tp-offer { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; background: var(--tp-accent); color: var(--tp-on-accent); border-radius: 10px; padding: 8px 10px; font-size: 10.5px; font-weight: 700; }
.tp-body { flex: 1; min-height: 0; overflow: hidden; padding: 10px 14px; display: flex; flex-direction: column; gap: 9px; }
.tp-body.flush { padding: 0; gap: 0; }
.tp-pad { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.tp-chips { display: flex; gap: 6px; overflow: hidden; flex-shrink: 0; }
.tp-chips span { padding: 5px 10px; border-radius: var(--radius-pill); border: 1px solid var(--tp-line); font-size: 10px; font-weight: 600; color: var(--tp-muted); white-space: nowrap; }
.tp-chips span.on { background: var(--tp-accent); border-color: var(--tp-accent); color: var(--tp-on-accent); }
.tp-item { display: flex; gap: 10px; align-items: center; background: var(--tp-surface); border: 1px solid var(--tp-line); border-radius: 12px; padding: 8px; flex-shrink: 0; }
.tp-item.soft { border-color: transparent; }
.tp-thumb { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--tp-brand-tint); color: var(--tp-brand-ink); }
.tp-thumb.alt { background: var(--tp-accent-tint); color: var(--tp-accent-ink); }
.tp-thumb.round { border-radius: 50%; }
.tp-item.big .tp-thumb { width: 58px; height: 50px; }
.tp-thumb svg { width: 22px; height: 22px; }
.tp-info { flex: 1; min-width: 0; }
.tp-info strong { display: block; font-size: 11.5px; line-height: 1.25; color: var(--tp-ink); }
.tp-info small { display: block; font-size: 9.5px; color: var(--tp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-info b, .tp-row > b { font-size: 11px; color: var(--tp-accent-ink); }
.tp-add { font-size: 10px; font-weight: 700; color: var(--tp-accent-ink); border: 1px solid var(--tp-accent); border-radius: 8px; padding: 4px 9px; flex-shrink: 0; }
.tp-tag { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; background: var(--tp-accent); color: var(--tp-on-accent); font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill); }
.tp-photo { height: 118px; border-radius: 14px; background: var(--tp-brand); color: var(--tp-on-brand); position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tp-photo svg { width: 62px; height: 62px; opacity: 0.85; }
.tp-row { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px dashed var(--tp-line); flex-shrink: 0; }
.tp-row i { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.tp-row i::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tp-row i.veg { color: var(--veg); }
.tp-row i.nv { color: var(--nonveg); }
.tp-combo { background: var(--tp-accent-tint); border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; flex-shrink: 0; }
.tp-combo strong { color: var(--tp-ink); }
.tp-combo span { font-weight: 700; color: var(--tp-accent-ink); }
.tp-banner { background: var(--tp-brand); color: var(--tp-on-brand); border-radius: 14px; padding: 12px; flex-shrink: 0; }
.tp-banner small { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.tp-banner strong { display: block; font-family: "Sora", sans-serif; font-size: 13px; line-height: 1.3; margin-top: 2px; }
.tp-banner b { display: inline-block; margin-top: 8px; background: var(--tp-accent); color: var(--tp-on-accent); border-radius: var(--radius-pill); padding: 2px 9px; font-size: 10px; }
.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-tile { background: var(--tp-surface); border: 1px solid var(--tp-line); border-radius: 12px; padding: 6px 6px 8px; }
.tp-tile .im { height: 58px; border-radius: 8px; background: var(--tp-brand-tint); color: var(--tp-brand-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.tp-tile .im.alt { background: var(--tp-accent-tint); color: var(--tp-accent-ink); }
.tp-tile .im svg { width: 26px; height: 26px; }
.tp-tile strong { display: block; font-size: 10.5px; color: var(--tp-ink); padding-inline: 2px; }
.tp-tile b { font-size: 10px; color: var(--tp-accent-ink); padding-inline: 2px; }
.tp-pack { background: var(--tp-brand); color: var(--tp-on-brand); border-radius: 12px; padding: 12px; flex-shrink: 0; }
.tp-pack strong { font-family: "Sora", sans-serif; font-size: 12.5px; display: block; }
.tp-pack small { font-size: 9.5px; opacity: 0.85; display: block; }
.tp-pack .tp-tag { position: static; margin-top: 8px; }
.tp-intro { font-size: 11px; color: var(--tp-muted); text-align: center; padding: 0 8px 4px; line-height: 1.5; }
.tp-label { font-family: "Sora", sans-serif; font-weight: 700; font-size: 11px; color: var(--tp-ink); margin-top: 4px; }
.tp-people { display: flex; justify-content: space-between; gap: 8px; }
.tp-people span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 600; color: var(--tp-muted); }
.tp-people i { width: 44px; height: 44px; border-radius: 50%; background: var(--tp-brand-tint); color: var(--tp-brand-ink); display: flex; align-items: center; justify-content: center; font-style: normal; font-family: "Sora", sans-serif; font-weight: 800; font-size: 11px; }
.tp-people span:nth-child(2) i { background: var(--tp-accent-tint); color: var(--tp-accent-ink); }
.tp-bar { margin: 0 12px 14px; background: var(--tp-brand); color: var(--tp-on-brand); border-radius: 14px; padding: 11px 14px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.tp-bar.center { justify-content: center; }
.tp-bar.wa { background: var(--whatsapp); color: #fff; justify-content: center; gap: 8px; }
.tp-bar span { display: inline-flex; align-items: center; gap: 4px; }
.tp-bar svg { width: 14px; height: 14px; }
.tp-gallery { height: 196px; background: var(--tp-brand); color: var(--tp-on-brand); position: relative; display: flex; align-items: flex-end; justify-content: center; flex-shrink: 0; }
.tp-gallery > svg { width: 170px; height: 109px; opacity: 0.9; }
.tp-gallery .win { fill: var(--tp-brand); }
.tp-gallery .tp-tag { top: 42px; left: 12px; }
.tp-dots { position: absolute; top: 46px; right: 14px; display: flex; gap: 4px; }
.tp-dots i { width: 5px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--tp-on-brand) 45%, transparent); }
.tp-dots i.on { width: 12px; background: var(--tp-on-brand); }
.tp-title strong { font-family: "Sora", sans-serif; font-size: 14px; display: block; color: var(--tp-ink); }
.tp-title small { display: flex; align-items: center; font-size: 10px; color: var(--tp-muted); }
.tp-price { display: flex; justify-content: space-between; align-items: baseline; }
.tp-price strong { font-family: "Sora", sans-serif; font-size: 14px; color: var(--tp-accent-ink); }
.tp-price small { font-size: 9.5px; color: var(--tp-muted); }
.tp-amen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tp-amen span { background: var(--tp-brand-tint); color: var(--tp-brand-ink); border-radius: 10px; padding: 7px 2px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9px; font-weight: 600; }
.tp-amen svg { width: 15px; height: 15px; }
.tp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: auto 12px 14px; flex-shrink: 0; }
.tp-two span { border-radius: 12px; padding: 10px 0; text-align: center; font-size: 10.5px; font-weight: 700; }
.tp-two .a { background: var(--tp-brand); color: var(--tp-on-brand); }
.tp-two .b { border: 1px solid var(--tp-line); color: var(--tp-ink); }
.bg-primary { background: var(--primary); } .bg-accent { background: var(--accent); } .bg-gold { background: var(--gold); }

/* ---------- Multilingual ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.lang-chips span { padding: 7px 14px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.lang-demo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.lang-switch { display: flex; gap: 6px; padding: 14px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.lang-switch::-webkit-scrollbar { display: none; }
.lang-btn { padding: 8px 14px; border-radius: var(--radius-pill); font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; border: 1.5px solid transparent; transition: all 0.2s ease; }
.lang-btn:hover { color: var(--primary); }
.lang-btn.active { background: var(--primary-tint); color: var(--primary-dark); border-color: var(--primary-light); }
.lang-body { padding: 22px; display: grid; gap: 14px; transition: opacity 0.25s ease; }
.lang-body.fading { opacity: 0; }
.lang-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); color: var(--ink-faint); font-size: 0.9rem; }
.lang-search svg { width: 16px; height: 16px; }
.lang-cat { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.lang-item { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.lang-item .ps-thumb { width: 58px; height: 58px; border-radius: 14px; }
.lang-item .ps-thumb svg { width: 30px; height: 30px; }
.lang-item .info { flex: 1; min-width: 0; }
.lang-item strong { display: block; font-size: 0.98rem; }
.lang-item small { display: block; color: var(--ink-faint); font-size: 0.82rem; line-height: 1.4; }
.lang-item b { display: block; margin-top: 4px; font-size: 0.92rem; }
.lang-item .ps-add { font-size: 0.8rem; padding: 7px 14px; border-radius: 10px; }

/* ---------- Insights ---------- */
.dash { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; }
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.dash-top strong { font-family: "Sora", sans-serif; font-size: 1rem; }
.dash-top strong small { font-family: "Inter", sans-serif; font-weight: 500; color: var(--ink-faint); font-size: 0.82rem; margin-left: 6px; }
.dash-top span { font-size: 0.75rem; color: var(--ink-faint); background: var(--bg-alt); padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; }
.kpi small { display: block; font-size: 0.72rem; color: var(--ink-faint); font-weight: 600; }
.kpi strong { display: block; font-family: "Sora", sans-serif; font-size: 1.35rem; margin-top: 2px; }
.kpi strong.sm { font-size: 1.02rem; padding-top: 4px; }
.kpi em { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 0.72rem; color: var(--primary); font-weight: 700; }
.kpi em svg { width: 12px; height: 12px; }
.mock-chart { margin-top: 16px; height: 150px; border-radius: var(--radius-sm); background: var(--primary-tint); display: flex; align-items: flex-end; gap: 10px; padding: 16px 16px 0; }
.mock-chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.mock-chart i { width: 100%; background: var(--primary); border-radius: 6px 6px 0 0; transform-origin: bottom; transform: scaleY(0); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.mock-chart i.hi { background: var(--accent); }
.in-view .mock-chart i { transform: scaleY(1); }
.mock-chart small { font-size: 0.68rem; color: var(--ink-faint); padding-bottom: 6px; }
.lang-split { margin-top: 16px; }
.lang-split .bar { display: flex; height: 12px; border-radius: var(--radius-pill); overflow: hidden; }
.lang-split .bar i:nth-child(1) { background: var(--primary); }
.lang-split .bar i:nth-child(2) { background: var(--accent); }
.lang-split .bar i:nth-child(3) { background: var(--gold); }
.lang-split .legend { display: flex; gap: 16px; margin-top: 8px; font-size: 0.75rem; color: var(--ink-soft); flex-wrap: wrap; }
.lang-split .legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.insight-list { display: grid; gap: 18px; margin-top: 28px; }
.insight-list li { display: flex; gap: 16px; align-items: flex-start; }
.insight-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.insight-list li:nth-child(2) .ic { background: var(--accent-tint); color: var(--accent-dark); }
.insight-list li:nth-child(3) .ic { background: var(--gold-tint); color: var(--umber); }
.insight-list .ic svg { width: 22px; height: 22px; }
.insight-list strong { display: block; font-family: "Sora", sans-serif; color: var(--ink); }
.insight-list span { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- Physical QR materials ---------- */
.mat-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mat-visual { height: 250px; display: flex; align-items: center; justify-content: center; position: relative; }
.mat-visual.v1 { background: var(--accent-tint); gap: 22px; }
.mat-visual.v2 { background: var(--gold-tint); }
.mat-visual.v3 { background: var(--primary-tint); }
.mat-body { padding: 26px 30px 30px; }
.mat-body h3 { margin: 12px 0 8px; }
.mat-body ul { margin-top: 14px; display: grid; gap: 8px; }
.mat-body li { display: flex; gap: 8px; font-size: 0.88rem; color: var(--ink-soft); }
.mat-body li svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }

.tent { width: 128px; background: var(--rust); color: #fff; border-radius: 14px 14px 4px 4px; padding: 14px 12px 16px; text-align: center; box-shadow: var(--shadow-md); transform: perspective(500px) rotateX(8deg); }
.tent .qr-box { width: 84px; height: 84px; margin: 8px auto; }
.tent strong { font-family: "Sora", sans-serif; font-size: 0.88rem; display: block; }
.tent small { font-size: 0.64rem; opacity: 0.85; display: block; line-height: 1.3; }
.tent .tbl { margin-top: 6px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; background: rgba(255, 255, 255, 0.16); border-radius: var(--radius-pill); padding: 3px 0; }
.tent-base { width: 146px; height: 10px; background: var(--umber); border-radius: 4px; margin: 0 auto; opacity: 0.6; }

.sticker { width: 116px; height: 116px; border-radius: 50%; background: var(--surface); border: 6px solid var(--rust); box-shadow: var(--shadow-md); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; transform: rotate(-8deg); flex-shrink: 0; }
.sticker .qr-box { width: 52px; height: 52px; padding: 3px; }
.sticker strong { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; color: var(--rust); text-transform: uppercase; }
.sticker small { font-size: 0.5rem; font-weight: 600; color: var(--ink-soft); }

.a6 { position: absolute; width: 132px; height: 186px; background: var(--wine); color: #fff; border-radius: 10px; padding: 14px 12px; text-align: center; box-shadow: var(--shadow-md); display: flex; flex-direction: column; align-items: center; }
.a6 strong { font-family: "Sora", sans-serif; font-size: 0.86rem; }
.a6 small { font-size: 0.6rem; opacity: 0.85; line-height: 1.3; }
.a6 .qr-box { width: 78px; height: 78px; margin: 10px 0 8px; }
.a6.back { transform: rotate(-9deg) translate(-46px, 6px); background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.a6.back small { color: var(--ink-soft); }
.a6.front { transform: rotate(6deg) translate(40px, -4px); }
.a6 .a6-tag { margin-top: auto; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.board { width: 200px; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.board-top { background: var(--teal); color: #fff; padding: 12px 14px; }
.board-top strong { font-family: "Sora", sans-serif; font-size: 0.9rem; display: block; }
.board-top small { display: flex; align-items: center; font-size: 0.64rem; opacity: 0.85; }
.board-mid { display: flex; gap: 10px; padding: 12px 14px; align-items: center; }
.board-mid .qr-box { width: 72px; height: 72px; border: 1px solid var(--border); }
.board-mid p { font-size: 0.68rem; line-height: 1.4; color: var(--ink-soft); }
.board-mid p b { color: var(--ink); font-size: 0.74rem; display: block; margin-bottom: 2px; }
.board-pole { width: 10px; height: 34px; background: var(--umber); margin: 0 auto; opacity: 0.55; border-radius: 0 0 3px 3px; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--accent-dark); border-radius: var(--radius-lg); padding: 64px 48px; text-align: center; position: relative; overflow: hidden; max-width: var(--container); margin-inline: auto; }
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255, 255, 255, 0.86); max-width: 540px; margin-inline: auto; }
.cta-banner .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta-banner .btn-primary { background: #fff; color: var(--accent-deep); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18); }
.cta-banner .btn-primary:hover { background: var(--on-dark); }
.cta-banner::before, .cta-banner::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.12); }
.cta-banner::before { width: 300px; height: 300px; top: -150px; right: -80px; }
.cta-banner::after { width: 220px; height: 220px; bottom: -120px; left: -60px; }

/* ---------- Pricing ---------- */
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 38px 32px; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.price-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent-dark); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); white-space: nowrap; }
.price-head h3 { margin-bottom: 6px; }
.price-head p { font-size: 0.9rem; min-height: 44px; }
.price-amount { margin: 20px 0 22px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-amount span { font-family: "Sora", sans-serif; font-weight: 800; font-size: 2.3rem; color: var(--ink); letter-spacing: -0.02em; }
.price-amount small { font-size: 0.85rem; color: var(--ink-faint); }
.price-features { margin-top: 26px; display: grid; gap: 13px; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--ink-soft); }
.price-features li b { color: var(--ink); font-weight: 600; }
.price-features li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.price-features li.muted { color: var(--ink-faint); }
.price-features li.muted svg { color: var(--border); }
.plan-switch { display: none; }
.price-foot { text-align: center; margin-top: 40px; font-size: 0.92rem; }
.price-foot strong { color: var(--ink); }
.price-foot a { color: var(--primary); font-weight: 700; }

/* ---------- Ask AI ---------- */
.ai-box { max-width: 1000px; margin-inline: auto; }
.ai-prompt { max-width: 860px; margin-inline: auto; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 28px 24px; box-shadow: var(--shadow-sm); }
.ai-prompt .lbl { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; display: block; }
.ai-prompt blockquote { font-family: "Sora", sans-serif; font-size: clamp(1rem, 1.8vw, 1.18rem); font-weight: 600; color: var(--ink); line-height: 1.55; }
.ai-prompt .copy-btn { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; color: var(--primary); padding: 8px 14px; border-radius: var(--radius-pill); background: var(--primary-tint); }
.ai-prompt .copy-btn svg { width: 16px; height: 16px; }
.ai-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.ai-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; min-height: 72px; box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.ai-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.ai-mark { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.ai-mark svg { width: 24px; height: 24px; }
.ai-openai { background: #fff; color: var(--brand-ai-dark); box-shadow: inset 0 0 0 1px var(--border); }
.ai-claude { background: var(--brand-claude); }
.ai-grok { background: var(--brand-ai-dark); }
.ai-perplexity { background: var(--brand-perplexity); }
.ai-card strong { display: block; font-family: "Sora", sans-serif; font-size: 0.98rem; }
.ai-card div > span { font-size: 0.8rem; color: var(--ink-faint); white-space: nowrap; }
.ai-card .arr { margin-left: auto; width: 18px; height: 18px; color: var(--ink-faint); transition: transform 0.2s ease; flex-shrink: 0; }
.ai-card:hover .arr { transform: translateX(3px); color: var(--primary); }
.ai-note { text-align: center; margin-top: 22px; font-size: 0.86rem; color: var(--ink-faint); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); transition: box-shadow 0.25s ease; }
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.25s ease, background 0.25s ease; }
.faq-item summary .pm svg { width: 16px; height: 16px; }
.faq-item[open] summary .pm { transform: rotate(45deg); background: var(--accent-dark); color: #fff; }
.faq-item .faq-a { padding: 0 24px 22px; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Trial form ---------- */
.contact-grid { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; position: relative; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.field label .req { color: var(--accent-dark); }
.field label .opt { color: var(--ink-faint); font-weight: 500; }
.field input, .field select { width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--bg); font-size: 0.95rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint); }
.field.error input, .field.error select, .field.error .phone-input-wrapper { border-color: var(--accent-dark); }
.field .error-msg { display: none; color: var(--accent-dark); font-size: 0.78rem; margin-top: 6px; }
.field.error .error-msg { display: block; }
.field.valid .phone-input-wrapper { border-color: var(--primary-light); }
.form-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 14px; text-align: center; }
.form-success { display: none; align-items: flex-start; gap: 12px; background: var(--primary-tint); color: var(--primary-dark); padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; margin-bottom: 20px; }
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

/* Country code picker (adapted from project/website) */
.phone-input-wrapper { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); transition: border-color 0.2s ease, box-shadow 0.2s ease; position: relative; }
.phone-input-wrapper:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint); }
.country-selector { display: flex; align-items: center; gap: 7px; padding: 0 10px 0 12px; border-right: 1.5px solid var(--border); border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-size: 0.94rem; font-weight: 600; color: var(--ink); white-space: nowrap; transition: background 0.2s ease; }
.country-selector:hover { background: var(--bg-alt); }
.flag { font-size: 1.2rem; line-height: 1; }
.selector-chevron { width: 16px; height: 16px; color: var(--ink-faint); transition: transform 0.2s ease; }
.country-selector[aria-expanded="true"] .selector-chevron { transform: rotate(180deg); }
.field .phone-input-wrapper input[type="tel"] { flex: 1; min-width: 0; border: none; background: transparent; box-shadow: none; padding: 13px 14px; }
.field .phone-input-wrapper input[type="tel"]:focus { box-shadow: none; }
.country-dropdown { position: absolute; top: calc(100% + 6px); left: 0; width: 290px; max-width: calc(100vw - 48px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); z-index: 100; display: none; flex-direction: column; overflow: hidden; }
.country-dropdown.show { display: flex; animation: dropdownFade 0.15s ease-out; }
@keyframes dropdownFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dropdown-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg); }
.dropdown-search svg { width: 16px; height: 16px; color: var(--ink-faint); flex-shrink: 0; }
.field .dropdown-search input { flex: 1; border: none; background: transparent; padding: 2px 0; font-size: 0.9rem; box-shadow: none; }
.field .dropdown-search input:focus { box-shadow: none; }
.country-list { max-height: 260px; overflow-y: auto; padding: 4px 0; overscroll-behavior: contain; }
.country-list li { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; font-size: 0.9rem; color: var(--ink); }
.country-list li:hover, .country-list li.active { background: var(--primary-tint); color: var(--primary-dark); }
.country-list li[aria-selected="true"] { font-weight: 700; }
.country-list .country-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-list .dial-code { color: var(--ink-faint); font-size: 0.85rem; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.country-list .divider { height: 1px; background: var(--border); margin: 4px 0; padding: 0; cursor: default; }
.country-list .no-results { justify-content: center; color: var(--ink-faint); cursor: default; }
.country-list .no-results:hover { background: none; }
.country-list::-webkit-scrollbar { width: 6px; }
.country-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.info-card { background: var(--grad-dark); color: var(--on-dark); border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; }
.info-card h3 { color: var(--on-dark); }
.info-card > p { color: var(--on-dark-soft); margin-top: 8px; font-size: 0.95rem; }
.info-list { margin: 28px 0; display: grid; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; color: var(--gold); font-family: "Sora", sans-serif; font-weight: 800; font-size: 0.9rem; }
.info-item strong { display: block; font-size: 0.95rem; color: var(--on-dark); margin-bottom: 2px; }
.info-item span { font-size: 0.88rem; color: var(--on-dark-soft); }
.info-card .btn { margin-top: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-soft); padding-top: 72px; }
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; padding-bottom: 48px; border-bottom: 1px solid var(--dark-border); }
.footer-brand .brand { color: var(--on-dark); }
.footer-brand .brand-text > span { color: var(--primary-light); }
.footer-brand p { margin-top: 16px; color: var(--on-dark-soft); max-width: 300px; font-size: 0.92rem; }
.footer-col h4 { color: var(--on-dark); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 0.9rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 34px rgba(31, 168, 85, 0.4); transition: transform 0.25s ease; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.6); opacity: 0; } }
.wa-float .tip { position: absolute; right: 72px; background: var(--ink); color: var(--on-dark); font-size: 0.82rem; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-pill); white-space: nowrap; opacity: 0; transform: translateX(8px); transition: all 0.25s ease; pointer-events: none; }
.wa-float:hover .tip { opacity: 1; transform: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.card.reveal, .price-card.reveal, .ai-card.reveal { transition: opacity 0.7s ease, transform 0.35s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card.reveal.in-view:hover, .price-card.reveal.in-view:hover { transform: translateY(-6px); }

/* ---------- Swipe rows (dots are added by script.js; both only show on small screens) ---------- */
.snap-dots { display: none; }
.ai-card.reveal.in-view:hover { transform: translateY(-4px); }
.price-card.featured.reveal.in-view { transform: scale(1.03); }
.price-card.featured.reveal.in-view:hover { transform: scale(1.03) translateY(-6px); }

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 1024px) {
  .grid-4, .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-grid .process-step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-train { margin-inline: auto; }
  .train-band { grid-template-columns: auto minmax(0, 1fr); }
  .tb-roles { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
  .hero-visual { display: none; }
  .demo-grid { grid-template-columns: 1fr; gap: 56px; }
  .demo-copy { text-align: center; }
  .demo-copy .section-head { margin-inline: auto; }
  .demo-try { max-width: 440px; margin-inline: auto; text-align: left; }
  .demo-actions { justify-content: center; }
  .demo-scan { margin-inline: auto; text-align: left; }
  .demo-phone { justify-self: center; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .ind-panel { grid-template-columns: 1fr; gap: 40px; }
  .ind-copy { max-width: 640px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .nav-drawer-close { display: flex; align-items: center; justify-content: center; position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); color: var(--ink-soft); }
  .nav-drawer-close svg { width: 18px; height: 18px; }
  .mobile-drawer {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 0; right: 0; bottom: 0; width: min(80vw, 320px);
    background: var(--surface); padding: 90px 28px 32px; gap: 4px;
    box-shadow: -12px 0 40px rgba(18, 16, 12, 0.18); border-left: 1px solid var(--border);
    z-index: 1100; transform: translateX(100%); transition: transform 0.35s ease;
  }
  .mobile-drawer.mobile-open { transform: translateX(0); }
  .mobile-drawer a { width: 100%; padding-block: 12px; font-weight: 600; font-size: 1.02rem; color: var(--ink-soft); border-bottom: 1px solid var(--bg-alt); }
  .mobile-drawer a:hover { color: var(--ink); }
  .mobile-drawer .btn, .mobile-drawer .btn:hover { margin-top: 20px; border-bottom: none; color: #fff; justify-content: center; }
  .mobile-drawer .btn-wa { margin-top: 10px; }
  .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(18, 16, 12, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease; z-index: 1099; }
  .nav-overlay.open { opacity: 1; visibility: visible; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .price-card.featured, .price-card.featured.reveal.in-view { transform: none; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Swipe rows: features, pricing and print materials scroll sideways instead of stacking */
  .grid.snap-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(80%, 340px);
    gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: -24px; padding: 8px 24px 24px; scroll-padding-inline: 24px; scrollbar-width: none;
  }
  .grid.snap-row::-webkit-scrollbar { display: none; }
  .snap-row > * { scroll-snap-align: center; }
  /* Cards are already on screen when swiped in, and a hover lift sticks after a tap */
  .snap-row > .reveal, .snap-row > .reveal.in-view:hover, .snap-row > .price-card.featured.reveal.in-view:hover { opacity: 1; transform: none; }
  .pricing-grid.snap-row { padding-top: 22px; }
  .snap-dots { display: flex; justify-content: center; gap: 8px; margin-top: -4px; }
  .snap-dots button { position: relative; width: 8px; height: 8px; padding: 0; border-radius: var(--radius-pill); background: var(--border); transition: width 0.25s ease, background 0.25s ease; }
  .snap-dots button::before { content: ""; position: absolute; inset: -12px -5px; }
  .snap-dots button.on { width: 24px; background: var(--primary); }
  .plan-switch { display: flex; position: sticky; top: 80px; z-index: 5; width: fit-content; margin: -28px auto 4px; padding: 5px; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); box-shadow: var(--shadow-md); }
  .plan-switch button { display: flex; flex-direction: column; align-items: center; padding: 7px 18px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.86rem; line-height: 1.25; color: var(--ink-soft); transition: background 0.2s ease, color 0.2s ease; }
  .plan-switch small { font-size: 0.72rem; font-weight: 600; color: var(--ink-faint); }
  .plan-switch button.on { background: var(--primary); color: #fff; }
  .plan-switch button.on small { color: rgba(255, 255, 255, 0.8); }

  /* Template studio: controls, then live preview, then details */
  .studio { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "controls" "preview" "info"; row-gap: 24px; }
  .studio-info { margin-top: 0; }
  .tpl-picker { display: flex; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: -24px; padding: 4px 24px 8px; scroll-padding-inline: 24px; scrollbar-width: none; }
  .tpl-picker::-webkit-scrollbar { display: none; }
  .tpl-opt { flex: 0 0 auto; scroll-snap-align: start; padding-right: 18px; }
  .studio-info { max-width: 560px; width: 100%; justify-self: center; }
}

@media (max-width: 560px) {
  :root { --header-h: 70px; }
  .container { padding-inline: 16px; }
  .site-header .container { gap: 10px; }
  .nav-actions { gap: 8px; }
  .nav-trial { padding: 10px 14px; font-size: 0.8rem; }
  .nav-trial .t-long { display: none; }
  .nav-trial .t-short { display: inline; }
  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 64px; }
  .hero-actions .btn { width: 100%; }
  .floating-card { display: none; }
  .grid.snap-row { grid-auto-columns: 84%; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .tpl-picker { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .plan-switch button { padding: 7px 14px; }
  .cr-name small { display: none; }
  .color-rows { padding: 4px 14px; }
  .cr-swatches { gap: 6px; flex-wrap: nowrap; }
  .sw { width: 28px; height: 28px; }
  .studio-preview { padding-inline: 0; }
  .studio-preview .phone, .ind-visual .phone { zoom: 0.86; }
  .studio-preview::before { top: 256px; width: 290px; height: 290px; }
  .studio-info { padding: 14px; }
  .studio-info .btn { flex: 1 1 auto; }

  /* Ask AI: 2 x 2 logo grid */
  .ai-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ai-card { padding: 12px; gap: 10px; min-height: 0; }
  .ai-card .arr { display: none; }
  .ai-mark { width: 38px; height: 38px; border-radius: 11px; }
  .ai-mark svg { width: 22px; height: 22px; }

  /* Process: vertical timeline */
  .process-grid { grid-template-columns: 1fr; row-gap: 0; }
  .process-step { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding-bottom: 26px; }
  .process-step::before { grid-row: 1 / span 2; margin-bottom: 0; }
  .process-step h3 { margin: 10px 0 4px; }
  .process-grid .process-step:not(:last-child)::after { display: block; top: 56px; left: 21px; width: 2px; height: calc(100% - 52px); background: repeating-linear-gradient(180deg, var(--border) 0 6px, transparent 6px 12px); }
  .check-list { grid-template-columns: 1fr; }
  .hero-train { padding: 10px 14px 10px 10px; gap: 12px; }
  .hero-train .ic { width: 40px; height: 40px; }
  .train-band { grid-template-columns: 1fr; padding: 26px 20px; margin-top: 40px; }
  .tb-icon { width: 52px; height: 52px; border-radius: 15px; }
  .tb-icon svg { width: 28px; height: 28px; }
  .tb-roles { display: grid; grid-template-columns: 1fr 1fr; }
  .tb-roles li { white-space: normal; padding: 9px 10px; font-size: 0.8rem; }
  .tab-btn { padding: 10px 16px; font-size: 0.86rem; }
  .tab-btn svg { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 48px 22px; border-radius: var(--radius-md); }
  .cta-banner .btn { width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-card, .info-card { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .demo-phone .phone { width: 300px; height: 620px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:last-child { grid-column: span 2; }
  .card { padding: 26px; }
  .price-card { padding: 34px 24px; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .faq-item summary { padding: 18px; font-size: 0.96rem; }
  .faq-item .faq-a { padding: 0 18px 20px; }
  .country-dropdown { width: calc(100vw - 32px); max-width: none; }
}

@media (max-width: 380px) {
  .site-header .brand-text { display: none; }
  .phone { width: 260px; height: 536px; }
  .demo-phone .phone { width: 280px; height: 580px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .mock-chart i { transform: none; }
  .hero-gl { opacity: 1; }
}
