/* =========================================================
   OpenCraft — homepage
   Layout: white page, 1240px container, bento cards in brand pastels,
   photos framed inside tinted cards, UI chips floating on top.
   Single light theme by design (brand = clean white).
   ========================================================= */

:root {
  color-scheme: light;

  /* Brand colours (from the OCRAFT Figma design system) */
  --ink: #0B1923;          /* Navy 100 — text, primary buttons */
  --ink-2: #333333;        /* Black 80 — secondary text */
  --muted: #4D4D4D;        /* Black 70 — body muted */
  --soft: #666666;         /* Black 60 — captions */
  --line: #E5E5E5;         /* Black 10 — hairlines */
  --surface: #FFFFFF;
  --surface-2: #F7F7F7;
  --surface-3: #F2F2F2;

  --blue: #268CEF;         /* Blue 50 — accent */
  --blue-text: #2178CD;    /* Blue 60 — accent as text (AA on white) */
  --deep-blue: #0457AB;
  --navy-soft: #507691;

  /* Pastel card tints — card bg / photo bg */
  --lime: #EEFAC9;   --lime-2: #DDF594;   --lime-3: #D5F379;  --lime-ink: #B7D168;
  --coral: #FFD9D7;  --coral-2: #FFC6C2;  --coral-3: #FFECEB;
  --sky: #D4E8FC;    --sky-2: #A8D1F9;    --sky-3: #F2F7FD;
  --teal: #D4EFF5;   --teal-2: #AAE0EB;   --teal-ink: #134E5A;
  --green-bg: #D3F1DC; --green: #146B30;
  --red: #E72929;

  /* Type */
  --font-display: "Lora", Georgia, "Times New Roman", serif;   /* Regular only */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & motion */
  --r-xl: 40px; --r-lg: 32px; --r-md: 24px; --r-sm: 16px; --r-pill: 999px;
  --shadow-float: 0 12px 32px -12px rgba(11, 25, 35, .28);
  --shadow-lift: 0 28px 56px -30px rgba(11, 25, 35, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --container: 1240px;
  --header-h: 98px;      /* measured live by script.js */
  --screen: calc(100vh - var(--header-h));
  --section-gap: clamp(72px, 9vw, 112px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@supports (height: 100svh) { :root { --screen: calc(100svh - var(--header-h)); } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.container.narrow { max-width: 820px; }
/* Every section fills one screen (below the sticky header) and centres its content.
   Taller content simply grows past one screen instead of being clipped. */
main > section {
  min-height: var(--screen);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(32px, 6vh, 72px);
}
main > section > .container { width: 100%; }

/* ---------- Type ---------- */
.display, .h2, .h3, .serif, .stat-num, .stat-num-sm, .ui-big, .sol-title, blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-style: normal;
}
.display { margin: 0; font-size: clamp(42px, 5.4vw, 68px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; text-wrap: balance; }
.h2 { margin: 0; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.14; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance; }
.lead { margin: 0; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 32ch; }
.overline { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-soft); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.text-blue { color: var(--blue-text); }
.center { text-align: center; }



.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.section-head.center { align-items: center; }
.section-head.split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-head.split .h2 { max-width: 640px; }

/* ---------- Buttons, links, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: var(--r-pill);
  font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(11, 25, 35, .6); background: #16303F; }
.btn-dark:active { transform: translateY(0); }
/* OCRAFT blue (Blue 60 keeps white text readable) */
.btn-blue { background: #2178CD; color: #FFFFFF; }
.btn-blue:hover { transform: translateY(-2px); background: #1B65AC; box-shadow: 0 14px 28px -14px rgba(33, 120, 205, .75); }
.btn-blue:active { transform: translateY(0); }
/* Small pulsing dot (used as list bullets) */
.pulse-dot {
  position: relative; flex: none; isolation: isolate; display: block;
  width: 10px; height: 10px; border-radius: 50%; background: var(--lime-3);
}
.pulse-dot::before, .pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; z-index: -1; animation: pulseRing 1.8s cubic-bezier(.2, .8, .2, 1) infinite;
}
.pulse-dot::after { animation-delay: .9s; }
.pulse-dot.is-blue { background: var(--blue); }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.6); opacity: 0; } }
.btn .i-arrow { transition: transform .3s var(--ease); }
.btn:hover .i-arrow { transform: translate(3px, -3px); }

.link-arrowed {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; text-decoration: none; color: var(--ink);
  transition: color .25s;
}
.link-arrowed .link-arrow { opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .35s var(--ease); }
.link-arrowed:hover, .link-arrowed:focus-visible { color: var(--blue-text); }
.link-arrowed:hover .link-arrow, .link-arrowed:focus-visible .link-arrow { opacity: 1; transform: none; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--ink); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background .25s, transform .25s var(--ease), border-color .25s;
}
.chip:hover { background: var(--lime-3); border-color: var(--lime-3); transform: translateY(-2px); }
.chip-lime { background: var(--lime-3); border-color: var(--lime-3); }
.chip-link { cursor: pointer; }
.chips-sm .chip { min-height: 34px; font-size: 14px; border-color: #CCCCCC; padding: 0 14px; }
.chip-plus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 50%;
  transition: transform .4s var(--ease);
}
.chips:hover .chip-plus { transform: rotate(90deg); }

.tag {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  border-radius: var(--r-pill); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.tag-lime { background: var(--lime); } .tag-sky { background: var(--sky); }
.tag-coral { background: var(--coral); } .tag-teal { background: var(--teal); color: var(--teal-ink); }

.ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; }
.ico-sm { width: 28px; height: 28px; }
.ico svg { stroke-width: 2.4; }
.ico-green { background: var(--green-bg); color: var(--green); }
.ico-blue { background: var(--sky); color: var(--deep-blue); }

.badge-dark { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--ink); color: #FFFFFF; font-size: 12px; font-weight: 600; }
.badge-green { padding: 0 8px; border-radius: var(--r-pill); background: var(--green-bg); color: var(--green); font-size: 12px; font-weight: 600; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-block: 16px; }
.nav-pill {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 20px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .3s;
}
.site-header.is-scrolled .nav-pill { box-shadow: 0 16px 40px -24px rgba(11, 25, 35, .35); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 36px; height: 30px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { position: relative; text-decoration: none; padding-block: 6px; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }

/* language switcher (Figma "Country"): flag + code + chevron, small dropdown */
.lang { position: relative; flex: none; }
.nav-pill > .nav-links { margin-inline: auto; }
.nav-pill { gap: 12px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #FFFFFF; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .25s, background .25s;
}
.lang-btn:hover { border-color: #C9D4DE; background: var(--sky-3); }
.lang-chev { fill: currentColor; transition: transform .3s var(--ease); }
.lang.is-open .lang-chev { transform: rotate(180deg); }
.flag { display: inline-block; flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(11, 25, 35, .08); }
.flag-id { background: linear-gradient(#E70011 50%, #FFFFFF 50%); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 112px; margin: 0; padding: 6px; list-style: none;
  border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF; box-shadow: 0 16px 40px -18px rgba(11, 25, 35, .35);
  opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top right; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .25s;
}
.lang.is-open .lang-menu { opacity: 1; transform: none; visibility: visible; }
.lang-menu li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--muted); cursor: pointer; outline: none; transition: background .2s; }
.lang-menu li:hover, .lang-menu li:focus-visible { background: var(--sky-3); }
.lang-menu li[aria-selected="true"] { color: var(--ink); font-weight: 600; }

/* privacy policy modal */
.privacy {
  width: min(680px, calc(100vw - 32px)); max-height: min(82vh, 760px); padding: 0; border: 0; border-radius: 28px;
  background: #FFFFFF; color: var(--ink); box-shadow: 0 40px 100px -30px rgba(11, 25, 35, .45); overflow: hidden;
}
.privacy[open] { display: flex; flex-direction: column; animation: modalIn .35s cubic-bezier(.22, 1, .36, 1); }
.privacy::backdrop { background: rgba(11, 25, 35, .45); backdrop-filter: blur(3px); animation: fadeIn .3s ease; }
.privacy.is-closing { animation: modalOut .2s ease forwards; }
.privacy.is-closing::backdrop { animation: fadeOut .2s ease forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes modalOut { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.privacy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 16px; border-bottom: 1px solid var(--line); }
.privacy-title { margin: 0; font-size: clamp(26px, 4vw, 32px); font-weight: 500; line-height: 1.15; }
.privacy-date { margin: 6px 0 0; font-size: 13px; color: var(--soft); }
.privacy-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--ink); cursor: pointer; transition: transform .3s var(--ease), background .25s; }
.privacy-close svg { fill: currentColor; }
.privacy-close:hover { transform: rotate(90deg); background: var(--sky); }
.privacy-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 28px 24px; font-size: 15px; line-height: 1.6; color: var(--muted); overscroll-behavior: contain; }
.privacy-body h3 { margin: 22px 0 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
.privacy-body p { margin: 10px 0 0; }
.privacy-body ul { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.privacy-body b { color: var(--ink); font-weight: 600; }
.privacy-body a { color: var(--blue-text); }
.privacy-foot { display: flex; justify-content: flex-end; padding: 16px 28px 24px; border-top: 1px solid var(--line); }
html.modal-open { overflow: hidden; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-3); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(16px, 3vh, 40px) clamp(32px, 6vh, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero-copy .lead { max-width: 40ch; }
.hero-points { --card-bg: var(--lime-3); display: flex; flex-direction: column; gap: 10px; }
.hero-points { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); }
.hero-points-intro { margin: 0; font-size: inherit; font-weight: 400; color: inherit; }
.hero-points .checks li { font-weight: 400; color: inherit; }
.checks-dot li { align-items: center; }
.checks-dot li::before { display: none; }
.dot-slot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 1.55em; }
.checks-dot li:nth-child(2) .pulse-dot::before { animation-delay: .3s; }
.checks-dot li:nth-child(2) .pulse-dot::after { animation-delay: 1.2s; }
.checks-dot li:nth-child(3) .pulse-dot::before { animation-delay: .6s; }
.checks-dot li:nth-child(3) .pulse-dot::after { animation-delay: 1.5s; }
.hero-points .checks .muted { font-weight: 400; font-size: inherit; color: inherit; }
.point-stack { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.note-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 8px;
  border-radius: var(--r-pill); background: var(--sky); color: var(--deep-blue);
  font-size: 12px; line-height: 20px; font-weight: 500;
}
.note-pill svg { stroke-width: 2.2; }
.hero-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; height: clamp(440px, calc(var(--screen) - 96px), 640px); }
.bento-photo { position: relative; margin: 0; overflow: hidden; border-radius: 36px; }
.bento-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bento-photo:hover img { transform: scale(1.05); }
.bento-tall { grid-row: span 2; border-radius: 36px 140px 36px 36px; background: var(--lime-3); }
.bento-tall img { object-position: 40% 30%; }
.bento-ops { background: var(--sky-2); }
.bento-ops img { object-position: 50% 25%; }
.bento-chart {
  display: flex; flex-direction: column; gap: 14px; padding: 22px;
  border-radius: 36px; background: var(--sky);
  transition: transform .4s var(--ease);
}
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chart-head .serif { font-size: 22px; }

/* Caption at the bottom of each hero card: white icon + white text on a thin,
   deeper gradient of the card's own hue. One line, sized from the card width. */
.bento-photo, .hero-mid { container-type: inline-size; }
.bento-tall { --cap: 96, 112, 40; }
.bento-ops, .hero-mid { --cap: 22, 86, 150; }
.bento-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 72px 18px 18px;
  background: linear-gradient(to top, rgba(var(--cap), .78) 0%, rgba(var(--cap), .42) 50%, rgba(var(--cap), 0) 100%);
  font-family: var(--font-display); font-weight: 400; line-height: 1.2;
  font-size: clamp(15px, calc((100cqi - 64px) / 13), 22px);
  color: #FFFFFF; text-align: left; white-space: nowrap;
}
.bento-caption > span:last-child { min-width: 0; }
/* narrow cards (tablet bento): readable size, wrap to two lines if needed */
@container (max-width: 240px) {
  .bento-caption { padding: 56px 14px 14px; gap: 6px; align-items: flex-start; font-size: 15px; white-space: normal; text-wrap: balance; }
  .cap-ico svg { width: 18px; height: 18px; margin-top: 1px; }
}
.cap-ico { flex: none; display: inline-flex; color: #FFFFFF; }
.cap-ico svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.cap-chart svg { animation: none; }
.cap-chart rect { transform-box: fill-box; transform-origin: bottom; animation: capBars 2.4s ease-in-out infinite; }
.cap-chart .b2 { animation-delay: .25s; } .cap-chart .b3 { animation-delay: .5s; }
/* Box: flaps open, a parcel drops in, flaps close, small thud */
.cap-box, .cap-paper { overflow: visible; }
.cap-box svg { overflow: visible; animation: boxThud 3s ease-in-out infinite; transform-origin: 50% 100%; }
.cap-box .bx-flap { transform-box: view-box; animation: 3s cubic-bezier(.34, 1.56, .64, 1) infinite; }
.cap-box .bx-l { transform-origin: 3px 10.2px; animation-name: flapL; }
.cap-box .bx-r { transform-origin: 21px 10.2px; animation-name: flapR; }
.cap-box .bx-item { transform-box: view-box; animation: boxItem 3s ease-in infinite; }
@keyframes flapL { 0%, 40% { transform: rotate(-72deg); } 54%, 84% { transform: rotate(0); } 96%, 100% { transform: rotate(-72deg); } }
@keyframes flapR { 0%, 43% { transform: rotate(72deg); } 57%, 84% { transform: rotate(0); } 96%, 100% { transform: rotate(72deg); } }
@keyframes boxItem { 0%, 4% { transform: translateY(-9px); opacity: 0; } 12% { transform: translateY(-8px); opacity: 1; } 34% { transform: translateY(5px); opacity: 1; } 38%, 100% { transform: translateY(5px); opacity: 0; } }
@keyframes boxThud { 0%, 55% { transform: none; } 60% { transform: scale(1.08, .9); } 67%, 100% { transform: none; } }

/* Paper invoice: lines get written one by one, paper gives a little lift, then resets */
.cap-paper svg { overflow: visible; animation: paperLift 3.2s ease-in-out infinite; }
.cap-paper .paper-sheet { fill: currentColor; }
.cap-paper .pl { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: 3.2s ease-in-out infinite; }
.cap-paper .pl1 { animation-name: line1; } .cap-paper .pl2 { animation-name: line2; } .cap-paper .pl3 { animation-name: line3; }
@keyframes line1 { 0%, 8% { transform: scaleX(0); } 24%, 86% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes line2 { 0%, 24% { transform: scaleX(0); } 40%, 86% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes line3 { 0%, 40% { transform: scaleX(0); } 54%, 86% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes paperLift { 0%, 54% { transform: none; } 64% { transform: translateY(-3px) rotate(-8deg); } 76%, 100% { transform: none; } }
@keyframes capBars { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.62); } }
/* looping icon motion, always visible (no in/out) */
.cap-sync svg  { animation: spin 3s linear infinite; }
.cap-money svg { animation: capWobble 2.4s ease-in-out infinite; }
.cap-chat svg  { animation: capBeat 1.8s ease-in-out infinite; }
@keyframes capDrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -3px); } }
@keyframes capBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-6deg); } }
@keyframes capWobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes capBeat { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.15); } }
.hero-mid .mid { position: static; justify-content: flex-start; padding-bottom: 52px; }
.hero-mid .mid-badge { top: 16px; right: 16px; }
.mid-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; animation: kenBurns 16s ease-in-out infinite alternate; }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.04); } }
.float-card, .float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-float);
  font-size: 14px; line-height: 20px;
}
.float-card { left: 16px; right: 16px; bottom: 18px; padding: 12px 14px; }
.float-chip { left: 14px; top: 14px; padding: 8px 14px 8px 8px; }
.float-text { display: flex; flex-direction: column; }
.float-text small { font-size: 12px; color: var(--soft); }
.float-bob { animation: bob 5s ease-in-out infinite; }
.float-bob-late { animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Hero middle card: one big animated 3D object + centred text (data-variant) ---------- */
.hero-mid { position: relative; overflow: hidden; padding: 16px; gap: 0; background: var(--mid-bg, var(--sky)); transition: background .4s; }
.hero-mid[data-variant="flow"]   { --mid-bg: #C9E2FC; }
.hero-mid[data-variant="report"] { --mid-bg: #C9DFF7; }
.hero-mid[data-variant="chat"]   { --mid-bg: #BBD7F6; }
.mid { display: none; position: relative; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 0; text-align: center; }
.hero-mid[data-variant="flow"] .mid-flow,
.hero-mid[data-variant="report"] .mid-report,
.hero-mid[data-variant="chat"] .mid-chat { display: flex; }
.mid-badge { position: absolute; top: 2px; right: 2px; z-index: 2; }
.live { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--ink); color: #FFFFFF; font-size: 12px; font-weight: 600; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-3); animation: livePulse 1.4s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

.obj { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.obj-img {
  position: relative; z-index: 1; width: auto; height: 100%; max-height: 230px; aspect-ratio: 1 / 1; max-width: 100%; object-fit: contain;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  animation: objFloat 6s ease-in-out infinite;
}
.obj-ring {
  position: absolute; left: 50%; top: 50%; width: min(70%, 180px); aspect-ratio: 1 / 1; border-radius: 50%;
  border: 2px dashed rgba(38, 140, 239, .35); transform: translate(-50%, -50%);
  animation: ringSpin 18s linear infinite;
}
.obj-ring::after { content: ""; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(38, 140, 239, .2); }
.report-num { font-variant-numeric: tabular-nums; }

/* per-object motion */
.mid-flow .obj-img { animation: objFloat 6s ease-in-out infinite, objTilt 6s ease-in-out infinite; }
.mid-report .obj-img { animation: objRise 6s cubic-bezier(.34, 1.56, .64, 1) infinite; }
.mid-chat .obj-img { animation: objPop 3s cubic-bezier(.34, 1.56, .64, 1) infinite; }
.mid-chat .obj-ring { animation: ringPulse 3s ease-out infinite; border-style: solid; }
.mid-chat .obj-ring::after { display: none; }
@keyframes objFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes objTilt { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
@keyframes objRise { 0% { transform: translateY(14px) scale(.92); opacity: .6; } 14% { transform: none; opacity: 1; } 50% { transform: translateY(-6px); } 100% { transform: none; } }
@keyframes objPop { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.07) rotate(-2deg); } 16% { transform: scale(.98); } 24% { transform: scale(1); } }
@keyframes ringSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes ringPulse { 0% { transform: translate(-50%, -50%) scale(.85); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0; } }

/* ---------- Live device scene (hero middle card, option 1) ----------
   The photo is "contained" in the card (card bg = photo bg), and the two
   dashboards are HTML laid over the blank screens in % of the photo, so
   their charts can loop. Everything inside a screen is sized in em, and the
   screen's font-size follows its own width (container query units). */
.hero-mid[data-variant="flow"] { --mid-bg: #BFDAEF; }
.mid-flow { padding-bottom: 0 !important; }
.scene { position: absolute; inset: 0; container-type: size; display: flex; align-items: center; justify-content: flex-end; overflow: hidden; }
.scene-box {
  position: relative; flex: none;
  width: max(100cqw, calc(100cqh * 800 / 776));
  height: max(100cqh, calc(100cqw * 776 / 800));
}
.scene-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scr { position: absolute; overflow: hidden; container-type: inline-size; background: #F4F8FD; color: var(--ink); font-family: var(--font-body); line-height: 1.2; }
.scr-laptop { left: 18.52%; top: 17.45%; width: 53.52%; height: 34.89%; border-radius: .4%; }
.scr-phone  { left: 82.73%; top: 32.90%; width: 12.39%; height: 26.46%; border-radius: 12% / 6%; }
.scr img { display: inline-block; }

/* laptop dashboard: 47em wide */
.dl { font-size: 2.13cqi; display: flex; width: 100%; height: 100%; }
.dl-side { width: 8em; flex: none; background: var(--ink); color: #FFFFFF; padding: 1.4em .9em; display: flex; flex-direction: column; gap: .45em; }
.dl-brand { display: flex; align-items: center; gap: .5em; font-weight: 700; font-size: 1.25em; margin-bottom: 1.1em; }
.dl-brand img { width: 1.6em; height: 1.35em; }
.dl-nav { padding: .55em .7em; border-radius: .6em; font-size: .9em; color: #A7BBC8; }
.dl-nav.is-on { background: var(--blue); color: #FFFFFF; font-weight: 600; }
.dl-main { flex: 1; min-width: 0; padding: 1.3em 1.4em; display: flex; flex-direction: column; gap: 1em; }
.dl-top { display: flex; justify-content: space-between; align-items: center; }
.dl-top b { font-size: 1.3em; }
.dl-live { display: inline-flex; align-items: center; gap: .4em; padding: .3em .7em; border-radius: 99em; background: #FFFFFF; font-size: .8em; color: var(--navy-soft); }
.dl-live i { width: .55em; height: .55em; border-radius: 50%; background: #22B852; animation: livePulse 1.4s ease-in-out infinite; }
.dl-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; }
.dl-kpi { background: #FFFFFF; border-radius: .9em; padding: .8em .9em; display: flex; flex-direction: column; gap: .15em; }
.dl-kpi small { font-size: .75em; color: var(--navy-soft); }
.dl-kpi b { font-size: 1.55em; font-variant-numeric: tabular-nums; }
.dl-kpi em { font-style: normal; font-size: .72em; font-weight: 600; color: #1D9E47; }
.dl-row { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: .8em; }
.dl-card { position: relative; background: #FFFFFF; border-radius: .9em; padding: .8em .9em; display: flex; flex-direction: column; gap: .6em; min-height: 0; }
.dl-card small { font-size: .78em; font-weight: 600; }
.dl-bars { flex: 1; display: flex; align-items: flex-end; gap: .55em; }
.dl-bars span, .dp-bars span {
  flex: 1; height: 100%; border-radius: .35em .35em 0 0; background: #D4E8FC;
  transform-origin: bottom; transform: scaleY(var(--a)); animation: barLoop 2.8s ease-in-out infinite; animation-delay: var(--d);
}
.dl-bars span.hi, .dp-bars span.hi { background: var(--blue); }
@keyframes barLoop { 0%, 100% { transform: scaleY(var(--a)); } 50% { transform: scaleY(calc(var(--a) * .55 + .45)); } }
.dl-line { flex: 1; width: 100%; min-height: 0; overflow: visible; }
.dl-line .area { fill: rgba(38, 140, 239, .12); stroke: none; animation: areaFade 4s ease-in-out infinite; }
.dl-line .stroke { fill: none; stroke: var(--blue); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-dasharray: 160; animation: lineDraw 4s ease-in-out infinite; }
.dl-dot { position: absolute; right: .7em; top: 2.2em; width: .7em; height: .7em; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 .35em rgba(38, 140, 239, .2); animation: livePulse 1.4s ease-in-out infinite; }
@keyframes lineDraw { 0% { stroke-dashoffset: 160; } 45%, 100% { stroke-dashoffset: 0; } }
@keyframes areaFade { 0%, 25% { opacity: 0; } 55%, 100% { opacity: 1; } }

/* phone dashboard: 12em wide */
.dp { font-size: 8.33cqi; height: 100%; padding: 2.2em .9em .9em; display: flex; flex-direction: column; gap: .8em; }
.dp-brand { display: flex; align-items: center; gap: .35em; font-weight: 700; font-size: 1.05em; }
.dp-brand img { width: 1.3em; height: 1.1em; }
.dp-hero { background: var(--blue); color: #FFFFFF; border-radius: .9em; padding: .7em .75em .4em; display: flex; flex-direction: column; }
.dp-hero small { font-size: .7em; opacity: .85; }
.dp-hero b { font-size: 1.3em; font-variant-numeric: tabular-nums; }
.dp-spark { width: 100%; height: 1.6em; margin-top: .2em; opacity: .9; }
.dp-spark path { fill: none; stroke: var(--lime-3); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 140; animation: lineDraw 3.2s ease-in-out infinite; }
.dp-bars { height: 4.2em; background: #FFFFFF; border-radius: .9em; padding: .6em .6em 0; display: flex; align-items: flex-end; gap: .4em; }
.dp-ring { display: flex; align-items: center; gap: .6em; background: #FFFFFF; border-radius: .9em; padding: .6em; }
.dp-ring svg { width: 3em; height: 3em; transform: rotate(-90deg); }
.dp-ring circle { fill: none; stroke-width: 4.5; }
.dp-ring .bg { stroke: #E6F0FB; }
.dp-ring .fg { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 88; animation: ringFill 3.6s ease-in-out infinite; }
.dp-ring span { display: flex; flex-direction: column; line-height: 1.15; }
.dp-ring b { font-size: 1em; }
.dp-ring small { font-size: .65em; color: var(--navy-soft); }
@keyframes ringFill { 0%, 100% { stroke-dashoffset: 30; } 50% { stroke-dashoffset: 7; } }


/* ---------- Floating context icons around the hero photos ---------- */
.orbit { position: absolute; z-index: 2; animation: bob 4.6s ease-in-out infinite; }
.orbit-ico {
  position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  width: 30px; height: 30px; color: var(--deep-blue);
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .55));
}
.orbit-ico svg { width: 24px; height: 24px; stroke-width: 2.2; }
/* All icons stacked down the left edge, like the invoice card */
.orbit-1, .orbit-4 { left: 18px; top: 18px; }
.orbit-2, .orbit-5 { left: 18px; top: 58px; }
.orbit-3, .orbit-6 { left: 18px; top: 98px; }
.orbit-1 { animation-delay: -.6s; } .orbit-2 { animation-delay: -2.1s; } .orbit-3 { animation-delay: -3.4s; }
.orbit-4 { animation-delay: -1.2s; } .orbit-5 { animation-delay: -2.6s; } .orbit-6 { animation-delay: -.2s; }

/* receipt printing */
.ic-print svg { animation: printOut 2.4s var(--ease) infinite; }
.ic-print .print-line { stroke-dasharray: 8; animation: printLines 2.4s linear infinite; }
@keyframes printOut { 0% { transform: translateY(-14px); opacity: 0; } 25%, 80% { transform: none; opacity: 1; } 100% { transform: translateY(4px); opacity: 1; } }
@keyframes printLines { 0%, 20% { stroke-dashoffset: 8; } 60%, 100% { stroke-dashoffset: 0; } }
/* coin flip (paid) */
.ic-coin svg { animation: coinFlip 3s ease-in-out infinite; }
@keyframes coinFlip { 0%, 55% { transform: rotateY(0); } 80%, 100% { transform: rotateY(360deg); } }
/* invoice sent */
.ic-send svg { animation: sendFly 2.8s var(--ease) infinite; }
@keyframes sendFly { 0%, 45% { transform: none; opacity: 1; } 70% { transform: translate(16px, -16px); opacity: 0; } 71% { transform: translate(-16px, 16px); opacity: 0; } 100% { transform: none; opacity: 1; } }
/* parcel bounce */
.ic-box svg { animation: boxDrop 2.2s cubic-bezier(.34, 1.56, .64, 1) infinite; }
@keyframes boxDrop { 0% { transform: translateY(-16px); opacity: 0; } 30%, 100% { transform: none; opacity: 1; } }
/* barcode scan */
.scan-line { position: absolute; left: 3px; right: 3px; top: 7px; height: 2px; border-radius: 2px; background: #F29A19; box-shadow: 0 0 6px rgba(242, 154, 25, .8); animation: scanMove 1.6s ease-in-out infinite alternate; }
@keyframes scanMove { from { transform: translateY(0); } to { transform: translateY(15px); } }
/* stock sync */
.ic-sync svg { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Problem: group-chat animation ---------- */
.problem-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.problem-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.problem-copy .lead { max-width: 36ch; }
/* iPhone mockup: white frame that fades into the page at the bottom */
.phone-stage {
  display: flex; justify-content: center; min-width: 0; perspective: 1400px;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
.phone {
  width: min(372px, 100%); height: clamp(520px, calc(var(--screen) - 110px), 680px);
  padding: 10px; border-radius: 56px; background: var(--surface);
  border: 1px solid #E6E9EE;
  box-shadow: 0 2px 0 #F1F3F6 inset, 0 60px 90px -50px rgba(11, 25, 35, .28), 0 20px 40px -30px rgba(38, 140, 239, .25);
  transform-origin: 50% 100%;
}
.phone-screen { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 46px; background: #F6F8FB; }
.island { position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 99px; background: var(--ink); z-index: 3; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 50px 16px 12px; background: rgba(255, 255, 255, .92); border-bottom: 1px solid #EDF0F4; }
.group-av { display: inline-flex; }
.group-av img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid #FFFFFF; }
.group-av img + img { margin-left: -10px; }
.group-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.group-name b { font-size: 14px; font-weight: 600; }
.group-name small { font-size: 11px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-feed { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px 12px 92px; overflow: hidden; }
img.avatar { object-fit: cover; padding: 0; }

/* phone entrance: one calm rise from below, fading in (script.js adds the classes) */
.phone-stage.pre .phone { opacity: 0; transform: translateY(80px); }
.phone-stage.is-in .phone { animation: phoneRise 1s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes phoneRise { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
.island { z-index: 5; }
.msg { position: relative; display: flex; align-items: flex-end; gap: 10px; }
.msg.is-us { justify-content: flex-end; }
.avatar {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--av, var(--surface-3));
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.avatar-us { background: var(--surface); border: 1px solid var(--line); }
.avatar-us img { width: 17px; height: 14px; }
.bubble {
  position: relative; max-width: 86%;
  padding: 8px 12px 6px; border: 1px solid #EDF0F4; border-radius: 18px 18px 18px 6px;
  background: var(--surface); box-shadow: 0 10px 24px -18px rgba(11, 25, 35, .35);
  font-size: 13.5px; line-height: 1.4;
}
.who { display: block; margin-bottom: 1px; font-size: 11px; font-weight: 600; color: var(--navy-soft); }
.meta { display: block; margin-top: 2px; text-align: right; font-size: 10px; color: var(--soft); font-variant-numeric: tabular-nums; }
.is-us .bubble { background: var(--blue); border-color: var(--blue); color: #FFFFFF; border-radius: 20px 20px 6px 20px; box-shadow: 0 18px 36px -18px rgba(38, 140, 239, .7); overflow: hidden; }
.is-us .who, .is-us .meta { color: rgba(255, 255, 255, .82); }
.ticks { margin-left: 2px; letter-spacing: -3px; color: #D4E8FC; }

/* typing indicator */
.bubble.typing { display: inline-flex; align-items: center; gap: 5px; padding: 14px 16px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: #B2B2B2; animation: typingDot 1s ease-in-out infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .14s; } .bubble.typing i:nth-child(3) { animation-delay: .28s; }
.is-us .bubble.typing i { background: #FFFFFF; }
@keyframes typingDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* motion (classes added by script.js) */
.msg.enter { animation: msgIn .52s cubic-bezier(.34, 1.56, .64, 1) both; transform-origin: 0 100%; }
.msg.is-us.enter { transform-origin: 100% 100%; }
.msg.enter .avatar { animation: avatarIn .46s cubic-bezier(.34, 1.56, .64, 1) both; }
.msg.is-us.enter .bubble::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 1.1s .35s ease-out forwards;
}
.msg.leave { animation: msgOut .42s ease-in forwards; animation-delay: calc(var(--i, 0) * 60ms); }
.reaction {
  position: absolute; right: -10px; bottom: -10px; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 6px 14px -8px rgba(11, 25, 35, .4); font-size: 13px; line-height: 1;
  animation: reactIn .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes msgIn { 0% { opacity: 0; transform: translateY(16px) scale(.82); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes avatarIn { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes shine { to { transform: translateX(120%); } }
@keyframes msgOut { to { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes reactIn { 0% { opacity: 0; transform: scale(0) rotate(-30deg); } 100% { opacity: 1; transform: none; } }

/* ---------- Solusi cards ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sol-card {
  display: flex; flex-direction: column; padding: 10px;
  border-radius: var(--r-lg); background: var(--card-bg); color: var(--ink); text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.sol-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.t-lime  { --card-bg: var(--lime);  --photo-bg: var(--lime-2); }
.t-coral { --card-bg: var(--coral); --photo-bg: var(--coral-2); }
.t-sky   { --card-bg: var(--sky);   --photo-bg: var(--sky-2); }
.t-teal  { --card-bg: var(--teal);  --photo-bg: var(--teal-2); }
.sol-media { position: relative; aspect-ratio: 1 / 1; max-width: 100%; width: 100%; overflow: hidden; border-radius: var(--r-md); background: var(--photo-bg); }
.sol-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sol-card:hover .sol-media img { transform: scale(1.05); }
.sol-media .tag { position: absolute; left: 14px; top: 14px; }
.sol-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 12px 10px; }
.sol-title { font-size: clamp(21px, 1.9vw, 24px); line-height: 1.3; }
.arrow-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--ink);
  transition: transform .35s var(--ease), background .35s, color .35s;
}
.sol-card:hover .arrow-btn { background: var(--ink); color: #FFFFFF; transform: rotate(45deg); }

.mini {
  position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px);
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  border-radius: 16px 16px 16px 4px; background: var(--surface); color: var(--ink);
  font-size: 13px; line-height: 18px; box-shadow: var(--shadow-float);
  opacity: 0; animation: miniPop 7s var(--ease) infinite; animation-delay: var(--d, 0s);
}
.mini-text { display: flex; flex-direction: column; }
.mini-text b { font-weight: 600; }
.mini-text small { font-size: 11px; line-height: 14px; color: var(--soft); }
.mini-text small.text-blue { color: var(--blue-text); }
.mini-stack { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.mini-stack .mini { position: static; max-width: 100%; align-self: flex-start; }
.mini-stack .mini-dark { align-self: flex-end; background: var(--ink); color: #FFFFFF; border-radius: 16px 16px 4px 16px; }
.sol-card:hover .mini { animation-play-state: paused; opacity: 1; transform: none; }
@keyframes miniPop { 0% { opacity: 0; transform: translateY(10px) scale(.92); } 7%, 82% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-4px); } }

/* ---------- Case study ---------- */
.case-card { position: relative; display: flex; align-items: flex-end; min-height: clamp(480px, calc(var(--screen) - 120px), 720px); padding: 24px; border-radius: var(--r-xl); overflow: hidden; background: #2AB1CD; }
.case-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.case-card:hover .case-bg { transform: scale(1.04); }
.case-content { position: relative; width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.case-panel { flex: 1 1 420px; max-width: 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px; border-radius: 28px; background: var(--surface); }
.case-panel .h3 { font-size: clamp(28px, 3vw, 36px); }
.case-stats { flex: 0 1 280px; display: flex; flex-direction: column; gap: 12px; }
.case-stat { display: flex; flex-direction: column; padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .92); font-size: 14px; color: var(--muted); transition: transform .35s var(--ease); }
.case-stat:hover { transform: translateX(-6px); }
.case-stat.is-lime { background: var(--lime-3); color: var(--ink-2); }
.stat-num-sm { font-size: 30px; line-height: 1.3; color: var(--ink); }

/* ---------- How it works: photo left, vertical steps right ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
/* video meeting mock (generic UI, light "studio" look) */
.how-grid { align-items: stretch; }
.how-visual { display: flex; flex-direction: column; min-width: 0; }
.how-copy { justify-content: center; }
.call {
  position: relative; margin: 0; flex: 1; min-height: 420px; display: flex; flex-direction: column; gap: 12px;
  padding: 14px; border-radius: var(--r-xl); background: var(--sky-3); border: 1px solid #E3EEF9; color: var(--ink);
}
.call-top { display: flex; align-items: center; gap: 10px; padding: 2px 4px; font-size: 14px; }
.call-logo { width: 24px; height: 20px; flex: none; }
.call-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-live { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #FFFFFF; color: var(--navy-soft); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.call-rec { width: 7px; height: 7px; border-radius: 50%; background: #E72929; animation: livePulse 1.4s ease-in-out infinite; }
.call-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; overflow: hidden; border-radius: 20px; background: #DCE8F5; box-shadow: 0 0 0 0 var(--blue); animation: speaking 6s infinite; animation-delay: calc(var(--i) * 3s); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.is-cam-off { background: linear-gradient(160deg, #E4EEF9, #D2E2F3); }
.tile.is-cam-off .tile-av { width: 72px; height: 72px; margin: -36px 0 0 -36px; font-size: 26px; font-weight: 600; box-shadow: 0 0 0 8px rgba(255, 255, 255, .55); }
.tile.is-muted { animation: none; }
.call.is-in .tile.is-muted { animation: tileIn .7s cubic-bezier(.34, 1.4, .64, 1) both; animation-delay: calc(.3s + var(--i) * .1s); }
.tile-av { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--av); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; }
.tile-name { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 16px); padding: 4px 10px 4px 7px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tile-name small { font-weight: 400; color: var(--soft); overflow: hidden; text-overflow: ellipsis; }
.tile-mic { display: inline-flex; color: var(--blue); }
.tile-mic svg { fill: currentColor; stroke: none; }
.tile-mic.is-off { color: #E5534B; }
@keyframes speaking { 0%, 44% { box-shadow: 0 0 0 3px var(--blue); } 50%, 100% { box-shadow: 0 0 0 0 transparent; } }
.call-bar { align-self: center; display: flex; gap: 8px; padding: 7px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 10px 28px rgba(11, 25, 35, .1); }
.cb { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sky-3); color: var(--ink); }
.cb svg { fill: currentColor; stroke: none; }
.cb-end { width: 56px; border-radius: 999px; background: #E72929; color: #FFFFFF; }

/* entrance (script.js adds .pre, then .is-in when scrolled into view):
   frame settles, tiles pop in one by one, cameras focus, labels + controls slide up */
.call.pre { opacity: 0; transform: translateY(28px) scale(.97); }
.call.pre .tile, .call.pre .tile-name, .call.pre .call-bar, .call.pre .call-top > * { opacity: 0; }
.call.is-in { animation: callIn .8s cubic-bezier(.22, 1, .36, 1) both; }
.call.is-in .call-top > * { animation: nameIn .5s cubic-bezier(.22, 1, .36, 1) both; animation-delay: .25s; }
.call.is-in .tile { animation: tileIn .7s cubic-bezier(.34, 1.4, .64, 1) both, speaking 6s infinite; animation-delay: calc(.3s + var(--i) * .1s), calc(1.6s + var(--i) * 3s); }
.call.is-in .tile img { animation: camOn .7s ease both; animation-delay: calc(.45s + var(--i) * .1s); }
.call.is-in .tile-name { animation: nameIn .45s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(.8s + var(--i) * .1s); }
.call.is-in .call-bar { animation: barIn .6s cubic-bezier(.34, 1.5, .64, 1) both; animation-delay: 1s; }
@keyframes callIn { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes tileIn { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes camOn { from { opacity: 0; filter: blur(6px); transform: scale(1.08); } to { opacity: 1; filter: none; transform: none; } }
@keyframes nameIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes barIn { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
.how-chip {
  position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-float);
}
.how-chip b { display: block; font-size: 16px; font-weight: 600; }
.how-chip small { font-size: 13px; color: var(--soft); }
.how-chip-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lime-3); color: var(--ink); }
.how-chip-ico svg, .how-ico svg { fill: currentColor; stroke: none; }
.how-chip-ico svg { animation: capBeat 1.8s ease-in-out infinite; }
.how-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.how-copy .h2 { font-size: clamp(34px, 3.8vw, 52px); }
.how-steps { position: relative; list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.how-step { position: relative; display: flex; align-items: flex-start; gap: 16px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.how-step b { display: block; margin: 2px 0 2px; font-size: 19px; font-weight: 600; color: var(--ink); }
.how-ico { flex: none; display: inline-flex; width: 30px; height: 30px; margin-top: 0; color: var(--blue); transition: transform .35s var(--ease); }
.how-ico svg { width: 30px; height: 30px; overflow: visible; }
/* step icons take turns moving (one every 2s, 8s loop), transform only */
.how-ico svg { animation: 8s cubic-bezier(.45, 0, .2, 1) infinite; transform-origin: 50% 50%; }
.ico-1 svg { animation-name: icoChat; transform-origin: 20% 90%; }
.ico-2 svg { animation-name: icoSearch; animation-delay: 2s; }
.ico-3 svg { animation-name: icoGear; animation-delay: 4s; }
.ico-4 svg { animation-name: icoShield; animation-delay: 6s; }
@keyframes icoChat { 0%, 14%, 100% { transform: none; } 4% { transform: rotate(-10deg) translateY(-2px); } 9% { transform: rotate(5deg); } }
@keyframes icoSearch { 0%, 16%, 100% { transform: none; } 5% { transform: translate(-3px, -1px) rotate(-8deg); } 11% { transform: translate(3px, 1px) rotate(6deg); } }
@keyframes icoGear { 0% { transform: rotate(0); } 14%, 100% { transform: rotate(120deg); } }
@keyframes icoShield { 0%, 14%, 100% { transform: none; } 5% { transform: scale(1.18); } 10% { transform: scale(.96); } }
.how-step:hover .how-ico { transform: scale(1.12) rotate(-6deg); }

/* ---------- Products (tabs) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: var(--r-pill); background: var(--surface-3); }
.tab {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .3s, color .3s, transform .2s;
}
.tab:hover { background: rgba(11, 25, 35, .06); }
.tab[aria-selected="true"] { background: var(--ink); color: #FFFFFF; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel-visual { display: flex; align-items: center; justify-content: center; min-height: 440px; padding: clamp(24px, 4vw, 40px); border-radius: 36px; background: var(--card-bg); overflow: hidden; }
.panel-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding: clamp(24px, 4vw, 40px); border: 1.5px solid var(--line); border-radius: 36px; min-width: 0; }
.panel-copy .lead { color: var(--ink-2); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; }
.checks li > span { padding-top: 1px; }
.checks li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--card-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1923' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.panel .actions .chip-link { min-height: 48px; }

.ui-card { width: 100%; background: var(--surface); box-shadow: 0 24px 60px -24px rgba(11, 25, 35, .35); transition: transform .5s var(--ease); }
.panel-visual:hover .ui-card { transform: translateY(-6px) rotate(-1deg); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ui-beruang { max-width: 340px; padding: 22px; border-radius: 28px; display: flex; flex-direction: column; gap: 14px; }
.ui-big { font-size: 36px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ui-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13px; line-height: 18px; }
.ui-tile { display: flex; flex-direction: column; padding: 12px; border-radius: 16px; }
.ui-tile.is-lime { background: #F7FDE4; } .ui-tile.is-pink { background: var(--coral-3); }
.ui-tile b, .ui-progress b { font-weight: 600; }
.ui-progress { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.track { display: block; height: 10px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--lime-ink); animation: fillIn 1.2s var(--ease) both; }
@keyframes fillIn { from { width: 0; } }

.ui-browser { position: relative; max-width: 420px; border-radius: 20px; overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--surface-3); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #F17F7F; }
.browser-bar i:nth-child(2) { background: #F7C275; } .browser-bar i:nth-child(3) { background: #7AD497; }
.browser-bar span { flex: 1; height: 10px; margin-left: 10px; border-radius: var(--r-pill); background: var(--line); }
.browser-body { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 230px; padding: 22px; }
.sk { display: block; height: 12px; border-radius: var(--r-pill); background: var(--line); }
.sk.light { height: 10px; background: var(--surface-3); }
.w45 { width: 45%; } .w65 { width: 65%; } .w80 { width: 80%; }
.fake-btn { align-self: flex-start; display: inline-flex; align-items: center; min-height: 40px; margin-top: 8px; padding: 0 18px; border: 2px dashed var(--red); border-radius: var(--r-pill); font-size: 14px; font-weight: 600; }
.pin { position: absolute; display: flex; align-items: center; gap: 8px; }
.pin b { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; background: var(--red); color: #FFFFFF; font-size: 13px; animation: pinDrop 2.4s var(--ease) infinite; }
.pin em { font-style: normal; padding: 8px 12px; border-radius: 12px; background: var(--ink); color: #FFFFFF; font-size: 13px; line-height: 16px; }
.pin-1 { left: 132px; top: 120px; }
.pin-2 { right: 22px; top: 26px; } .pin-2 b { background: var(--blue); animation-delay: .6s; }
@keyframes pinDrop { 0%, 100% { transform: translateY(0); } 12% { transform: translateY(-6px); } 24% { transform: translateY(0); } }

.ui-prompt { max-width: 380px; padding: 20px; border-radius: 24px; display: flex; flex-direction: column; gap: 10px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-row span { padding: 0 12px; border-radius: var(--r-pill); background: var(--surface-3); font-size: 13px; line-height: 28px; }
.filter-row .is-on { background: var(--ink); color: #FFFFFF; }
.prompt-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); font-size: 14px; transition: transform .3s var(--ease); }
.prompt-row:hover { transform: translateX(4px); }
.prompt-row b { color: var(--blue-text); font-weight: 600; }
.prompt-row.is-dark { background: var(--ink); color: #FFFFFF; }
.prompt-row.is-dark b { color: var(--lime-3); }

/* ---------- Testimonials (3 layouts via data-layout) ---------- */
.testi-title { display: none; margin-bottom: 48px; text-align: center; }
.testi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.testi-card { margin: 0; display: flex; gap: 12px; padding: 12px; border-radius: var(--r-lg); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.testi-card.is-light { background: var(--surface-2); color: var(--ink); }
.testi-card.is-dark { background: var(--ink); color: #FFFFFF; }
.testi-photo { flex: 0 0 200px; width: 200px; min-height: 300px; border-radius: var(--r-md); object-fit: cover; }
.testi-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 20px 16px; }
.testi-body blockquote { margin: 0; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.38; }
.testi-body figcaption { display: flex; flex-direction: column; line-height: 1.35; }
.testi-body figcaption b { font-weight: 600; }
.testi-body figcaption span { font-size: 14px; color: var(--soft); }
.is-dark .testi-body figcaption span { color: #B2B2B2; }
.is-dark .tag { color: var(--ink); }

/* avatar */
[data-layout="avatar"] .testi-card { flex-direction: column-reverse; justify-content: flex-end; padding: 32px; gap: 24px; background: #FFFFFF; color: var(--ink); border: 1.5px solid var(--line); }
[data-layout="avatar"] .testi-card:hover { border-color: transparent; }
[data-layout="avatar"] .testi-body figcaption span { color: var(--soft); }
[data-layout="avatar"] .testi-photo { border-color: var(--lime-3); }
[data-layout="avatar"] .testi-photo { flex: none; width: 64px; height: 64px; min-height: 0; border-radius: 50%; border: 3px solid var(--lime-3); }
[data-layout="avatar"] .testi-body { padding: 0; }
[data-layout="avatar"] .testi-body .tag { display: none; }
[data-layout="avatar"] .testi-body blockquote { font-size: clamp(24px, 2.4vw, 30px); }

/* polaroid */
[data-layout="polaroid"] .testi-title { display: block; }
[data-layout="polaroid"] .testi-grid { gap: 40px; }
[data-layout="polaroid"] .testi-card { background: transparent; color: var(--ink); padding: 0; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
[data-layout="polaroid"] .testi-card:hover { transform: none; box-shadow: none; }
[data-layout="polaroid"] .testi-photo {
  flex: none; width: 200px; height: 244px; min-height: 0; padding: 10px 10px 34px; border-radius: 10px;
  background: var(--surface); box-shadow: 0 18px 40px -16px rgba(11, 25, 35, .35);
  transform: rotate(-4deg); transition: transform .5s var(--ease);
}
[data-layout="polaroid"] .is-dark .testi-photo { transform: rotate(3deg); }
[data-layout="polaroid"] .testi-card:hover .testi-photo { transform: rotate(0) scale(1.04); }
[data-layout="polaroid"] .testi-body { flex: 1 1 220px; max-width: 300px; padding: 0; gap: 12px; }
[data-layout="polaroid"] .testi-body .tag { display: none; }
[data-layout="polaroid"] .testi-body blockquote { padding: 22px 24px; border-radius: 28px 28px 28px 6px; background: var(--lime); font-size: 22px; }
[data-layout="polaroid"] .is-dark blockquote { background: var(--sky); }
[data-layout="polaroid"] .testi-body figcaption span { color: var(--soft); }

/* ---------- FAQ ---------- */
.faq .h2 { margin-bottom: 28px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { border-radius: var(--r-md); background: var(--surface-2); transition: background .3s; }
.faq-list details:hover { background: var(--surface-3); }
.faq-list details[open] { background: var(--sky-3); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-size: 18px; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1923' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .35s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: 0; padding: 0 24px 22px; color: var(--soft); }
.faq-list details[open] p { animation: faqIn .4s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- CTA (3 layouts via data-layout) ---------- */
.cta-grid { display: grid; gap: 16px; }
.cta-media { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-xl); background: #51A3F2; min-height: 320px; }
.cta-media { container-type: size; background: linear-gradient(#A0C1DB, #B3CEE4); }
.cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: transform 1.2s var(--ease); }
.cta-media:hover img { transform: scale(1.04); }
.cta-head { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cta-form { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3.5vw, 36px); border-radius: var(--r-xl); background: var(--sky-3); min-width: 0; }

/* split: photo left; heading + form in one card on the right */
[data-layout="split"] .cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "media head" "media form"; column-gap: 16px; row-gap: 0; }
[data-layout="split"] .cta-media { grid-area: media; min-height: clamp(420px, calc(var(--screen) - 140px), 640px); }
[data-layout="split"] .cta-head { grid-area: head; padding: clamp(24px, 3.5vw, 36px) clamp(24px, 3.5vw, 36px) 0; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--sky-3); }
[data-layout="split"] .cta-head .h2 { font-size: clamp(32px, 3.4vw, 44px); }
[data-layout="split"] .cta-head .muted { display: none; }
[data-layout="split"] .cta-form { grid-area: form; border-radius: 0 0 var(--r-xl) var(--r-xl); }
/* stacked: heading row full width, then photo + form */
[data-layout="stacked"] .cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head head" "media form"; }
[data-layout="stacked"] .cta-head { grid-area: head; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 16px; }
[data-layout="stacked"] .cta-head .h2 { max-width: 720px; }
[data-layout="stacked"] .cta-head .muted { max-width: 300px; margin: 0; }
[data-layout="stacked"] .cta-media { grid-area: media; min-height: clamp(360px, calc(var(--screen) - 300px), 520px); }
[data-layout="stacked"] .cta-form { grid-area: form; }
/* banner: short wide photo on top, heading left + form right */
[data-layout="banner"] .cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "media media" "head form"; }
[data-layout="banner"] .cta-media { grid-area: media; min-height: 0; height: 300px; }
[data-layout="banner"] .cta-media img { object-position: 50% 45%; }
[data-layout="banner"] .cta-head { grid-area: head; justify-content: center; padding: 24px 8px; }
[data-layout="banner"] .cta-form { grid-area: form; }

.choice-set { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.choice-set legend { padding: 0; margin-bottom: 14px; font-size: 20px; font-weight: 600; line-height: 1.4; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  border: 1.5px solid #CCCCCC; border-radius: var(--r-pill); background: var(--surface);
  font-weight: 500; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.choice:hover span { border-color: var(--ink); transform: translateY(-2px); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid #CCCCCC; background: var(--surface); color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 400; transition: border-color .25s, box-shadow .25s;
}
.field input { min-height: 52px; padding: 0 18px; border-radius: var(--r-pill); }
.field textarea { padding: 14px 18px; border-radius: 22px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(38, 140, 239, .18); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: #A61E1E; font-weight: 500; }
.other-field { animation: panelIn .4s var(--ease); }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.form-status { margin: 0; padding: 14px 18px; border-radius: var(--r-sm); background: var(--green-bg); color: var(--green); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer .container { padding-block: 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 40px; border-top: 1px solid var(--line); font-size: 15px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid nav b { font-weight: 600; }
.footer-grid nav a { color: var(--muted); text-decoration: none; width: fit-content; transition: color .25s, transform .25s var(--ease); }
.footer-grid nav a:hover { color: var(--blue-text); transform: translateX(3px); }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand p { margin: 0; }
.copyright { margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--soft); }
.copyright a { color: var(--soft); text-decoration: none; transition: color .25s; }
.copyright a:hover { color: var(--blue-text); }

/* ---------- Dev preview panel (remove before launch) ---------- */

/* ---------- Fit-to-screen sizing on wide screens ---------- */
@media (min-width: 1081px) {
  .faq .container.narrow { max-width: var(--container); }
  .faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .panel-visual { min-height: clamp(340px, calc(var(--screen) - 300px), 480px); }
  }

/* ---------- Reveal on load / scroll (classes added by script.js) ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--rv, 0) * 80ms); }
.rv.rv-in { opacity: 1; transform: none; }
.rv-img { clip-path: inset(6% 6% 6% 6% round 32px); transition: clip-path 1s var(--ease), opacity .7s var(--ease), transform .8s var(--ease); }
.rv-img.rv-in { clip-path: inset(0 0 0 0 round 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .nav-links {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
    border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-lift);
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s, transform .3s var(--ease); }
  .nav-links a:not(.btn) { padding: 12px 14px; border-radius: 14px; }
  .nav-links a:not(.btn):hover { background: var(--surface-2); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 6px; }
  .nav-cta { display: none; }
  .lang { margin-left: auto; }
  .burger { display: inline-block; }

  /* Tablet: keep every left/right layout, just tighter */
  .hero-grid { gap: 28px; }
  .hero-bento { height: clamp(420px, calc(var(--screen) - 120px), 560px); gap: 12px; }
  .problem-grid, .how-top, .how-grid { gap: 32px; }
  .how-step b { font-size: 17px; }
    .call { min-height: 380px; padding: 12px; gap: 10px; }
    .call-title { font-size: 13px; }
  .tile-name small { display: none; }
  .panel-visual { min-height: 340px; padding: 24px; }
  .panel-copy { padding: 24px; }
  .testi-photo { flex-basis: 150px; width: 150px; }
  .chips, .checks { max-width: none; }
}

@media (max-width: 640px) {
  .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

  /* Phone: stack top/bottom and centre the copy */
  .hero-grid, .how-top, .how-grid, .panel, .testi-grid, .problem-grid { grid-template-columns: minmax(0, 1fr); }
    .call { flex: none; min-height: 0; aspect-ratio: 4 / 4.3; }
    .tile-name small { display: none; }
  .tile-av { width: 44px; height: 44px; margin: -22px 0 0 -22px; font-size: 16px; }
  .how-copy { align-items: center; text-align: center; }
  .how-steps { text-align: left; width: fit-content; max-width: 100%; margin-inline: auto; }
  [data-layout] .cta-grid { grid-template-columns: minmax(0, 1fr); }
  [data-layout="split"] .cta-grid { grid-template-areas: "media" "head" "form"; row-gap: 0; }
  [data-layout="split"] .cta-media { min-height: 300px; margin-bottom: 16px; }
  [data-layout="split"] .cta-head { border-radius: var(--r-xl) var(--r-xl) 0 0; }
  [data-layout="stacked"] .cta-grid { grid-template-areas: "head" "media" "form"; }
  [data-layout="stacked"] .cta-media { min-height: 300px; }
  [data-layout="stacked"] .cta-head { flex-direction: column; align-items: center; }
  [data-layout="banner"] .cta-grid { grid-template-areas: "media" "head" "form"; }
  [data-layout="banner"] .cta-media { height: 220px; }
  .panel-visual { min-height: 320px; }

  .hero-copy, .problem-copy, .cta-head, .panel-copy, .testi-body, .case-panel { align-items: center; text-align: center; }
  .hero-copy .lead, .problem-copy .lead, .cta-head .muted { margin-inline: auto; }
  .hero-points { align-items: center; }
  .hero-points .checks, .panel-copy .checks { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
  .actions { justify-content: center; }
  .section-head.split { flex-direction: column; align-items: center; text-align: center; }
  .how-top .h2 { text-align: center; }
  .choice-set legend { text-align: center; width: 100%; }
  .choices { justify-content: center; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .case-panel .chips { justify-content: center; }
  .step { align-items: center; text-align: center; }

  .hero-bento { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; height: auto; }
  .bento-tall { grid-row: auto; height: 400px; }
  .bento-chart { height: 280px; }
  .bento-ops { height: 320px; }
  .bento-tall { border-radius: 28px 80px 28px 28px; }
  .bento-chart { padding: 16px; border-radius: 28px; }
  .bento-photo { border-radius: 28px; }
  .float-card { left: 10px; right: 10px; bottom: 10px; padding: 10px; font-size: 13px; }
  .orbit-ico { width: 26px; height: 26px; }
  .orbit-ico svg { width: 20px; height: 20px; }
  .orbit-1, .orbit-2, .orbit-3, .orbit-4, .orbit-5, .orbit-6 { left: 14px; }
  .orbit-1, .orbit-4 { top: 14px; } .orbit-2, .orbit-5 { top: 48px; } .orbit-3, .orbit-6 { top: 82px; }
  .scan-line { left: 2px; right: 2px; top: 6px; }
  .sol-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .case-card { min-height: 0; padding: 12px; padding-top: 220px; }
  .case-panel { padding: 22px; flex-basis: 100%; }
  .case-stats { flex-basis: 100%; flex-direction: row; }
  .case-stat { flex: 1; }
  .stat-num-sm { font-size: 22px; }
  .testi-card { flex-direction: column; }
  .testi-photo { flex-basis: auto; width: 100%; height: 280px; min-height: 0; }
  [data-layout="avatar"] .testi-photo { width: 64px; height: 64px; }
  [data-layout="polaroid"] .testi-card { flex-direction: row; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mini { opacity: 1; }
  .rv { opacity: 1; transform: none; clip-path: none; }
  .call.pre, .call.pre .tile, .call.pre .tile-name, .call.pre .call-bar, .call.pre .call-top > * { opacity: 1; transform: none; }
  .how-ico svg { animation: none !important; }
  .cap-paper .pl { transform: none; }
  .cap-box .bx-flap { transform: none; }
  .cap-box .bx-item { opacity: 0; }
  .dl-line .stroke, .dp-spark path { stroke-dashoffset: 0; }
  .dl-line .area { opacity: 1; }
  .phone-stage.pre .phone { opacity: 1; transform: none; }
}

/* ---------- Solusi: fit exactly one screen on every device ----------
   wide (>=900px): 3 x 2 grid that stretches to the screen height
   tablet portrait (641-899px, tall): 2 x 3 grid, same idea
   phone: one row of swipeable cards, sized to the screen */
@media (min-width: 641px) and (min-height: 600px) {
  .solusi { height: var(--screen); min-height: 0; padding-block: clamp(16px, 3vh, 36px); }
  .solusi > .container { height: 100%; display: flex; flex-direction: column; }
  .solusi .section-head { margin-bottom: clamp(14px, 2.4vh, 28px); flex: none; }
  .solusi .h2 { font-size: clamp(30px, 3.2vw, 44px); max-width: none; }
  .sol-grid { flex: 1; min-height: 0; }
  .sol-card { min-height: 0; }
  .sol-media { flex: 1; min-height: 0; aspect-ratio: auto; height: auto; }
  .sol-foot { padding: 12px 10px 4px; }
  .sol-card { container-type: inline-size; }
  .sol-title { font-size: clamp(14px, calc((100cqi - 92px) / 14), 22px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .sol-card .arrow-btn { width: 40px; height: 40px; }
}
@media (min-width: 900px) and (min-height: 600px) {
  .sol-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 641px) and (max-width: 899px) and (min-height: 600px) {
  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .sol-media .tag { font-size: 12px; min-height: 26px; }
  .mini { font-size: 12px; padding: 7px 10px; }
}
@media (max-width: 640px) {
  .solusi { height: var(--screen); min-height: 0; padding-block: 20px; }
  .solusi > .container { height: 100%; display: flex; flex-direction: column; }
  .solusi .section-head { margin-bottom: 18px; flex: none; }
  .solusi .h2 { font-size: 32px; }
  .sol-grid {
    flex: 1; min-height: 0;
    grid-template-columns: none; grid-template-rows: minmax(0, 1fr);
    grid-auto-flow: column; grid-auto-columns: 84%;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 6px 16px 10px; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .sol-grid::-webkit-scrollbar { display: none; }
  .sol-card { scroll-snap-align: start; min-height: 0; }
  .sol-card:hover { transform: none; }
  .sol-media { flex: 1; min-height: 0; aspect-ratio: auto; height: auto; }
  .sol-title { font-size: 20px; }
}
@media (max-width: 640px) and (max-height: 560px) {
  .solusi { height: auto; }
  .sol-media { flex: none; height: 300px; }
}
.privacy-title:focus { outline: none; }

/* Approved Bento Duo testimonial section. */
[data-layout="bento-duo"] .testi-title { display: block; margin-bottom: 32px; }
[data-layout="bento-duo"] .testi-card { flex-direction: column; padding: 12px; gap: 24px; background: var(--card-bg); color: var(--ink); }
[data-layout="bento-duo"] .testi-person { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: var(--r-md); background: var(--photo-bg); text-align: left; }
[data-layout="bento-duo"] .testi-photo { flex: none; width: 104px; height: 132px; min-height: 0; border-radius: 18px; }
[data-layout="bento-duo"] .testi-person b { display: block; font-weight: 600; }
[data-layout="bento-duo"] .testi-person span:not(.tag) { display: block; margin: 2px 0 12px; color: var(--muted); font-size: 14px; }
[data-layout="bento-duo"] .testi-person .tag { font-size: 12px; font-weight: 500; }
[data-layout="bento-duo"] blockquote { margin: 0; padding: 0 16px 20px; font-size: clamp(23px, 2.1vw, 30px); line-height: 1.38; letter-spacing: -.015em; }
/* Display type remains Lora Regular throughout the website. */
.display, .h2, .h3, .serif, .stat-num, .stat-num-sm, .ui-big, .sol-title, blockquote, .bento-caption { font-weight: 400; font-style: normal; font-synthesis: none; }
@media (max-width: 600px) {
  [data-layout="bento-duo"] .testi-person { gap: 12px; padding: 10px; }
  [data-layout="bento-duo"] .testi-photo { width: 72px; height: 90px; }
  [data-layout="bento-duo"] .testi-person .tag { font-size: 11px; padding: 6px 10px; }
  [data-layout="bento-duo"] .testi-person span:not(.tag) { font-size: 12px; margin-bottom: 9px; }
  [data-layout="bento-duo"] blockquote { padding: 0 12px 18px; }
}

/* Latest visual refinements */
.fill-icon,.fill-icon path { fill:currentColor; stroke:none; }
.fill-icon { flex:none; }
.nav-cta,.nav-cta-mobile { gap:8px; }
.bento-devices { border-radius:36px; background:var(--sky2); --cap:22,86,150; }
.sol-category { gap:7px; }
.sol-category-icon { animation:category-breathe 4s ease-in-out infinite; transform-origin:center; }
.sol-card:nth-child(2n) .sol-category-icon { animation-delay:-1.5s; }
@keyframes category-breathe { 0%,70%,100% {transform:translateY(0) rotate(0)} 35%{transform:translateY(-2px) rotate(-6deg)} }
.sol-title { white-space:normal; overflow:visible; font-size:clamp(17px,1.5vw,22px); line-height:1.3; }
.sol-foot { flex:none; min-height:62px; }
[data-layout="bento-duo"] blockquote { font-family:var(--font-body); font-size:clamp(18px,1.7vw,23px); line-height:1.6; letter-spacing:0; }
[data-layout="bento-duo"] .testi-person b { font-family:var(--font-display); font-size:22px; font-weight:400; }
.faq .h2 { margin-bottom:12px; }
.faq-intro { max-width:56ch; text-align:center; margin:0 auto 28px; color:var(--muted); line-height:1.65; }
.choice-set legend { font-size:15px; }
.choice > span { gap:8px; padding:0 14px; min-height:44px; font-size:13px; }
.choice-check { font-style:normal; opacity:0; font-size:12px; }
.choice input:checked + span .choice-check { opacity:1; }
.choice input:focus-visible + span { outline:3px solid var(--blue); outline-offset:3px; }
[data-pills="pastel"] .choice:nth-child(3n+1) { --pill:#e9f5c9; }
[data-pills="pastel"] .choice:nth-child(3n+2) { --pill:#d4e8fc; }
[data-pills="pastel"] .choice:nth-child(3n) { --pill:#ffdedb; }
[data-pills="pastel"] .choice span { background:var(--pill); border-color:transparent; }
[data-pills="pastel"] .choice input:checked + span { color:var(--ink); border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink); }
[data-pills="outline"] .choice input:checked + span { background:#e6f2ff; color:#1764ad; border-color:#268cef; }
[data-pills="solid"] .choice span { background:#172c3b; border-color:#172c3b; color:white; }
[data-pills="solid"] .choice input:checked + span { background:#227bd0; border-color:#227bd0; }
.footer-brand p { max-width:48ch; font-size:14px; line-height:1.8; }
[data-layout="split"] .cta-media img { object-position:50% 72%; }
.is-language-loading main :is(h1,h2,h3,p,blockquote,legend,.sol-title,.testi-person b) { color:transparent!important; background:linear-gradient(100deg,#edf0f2 20%,#f8fafb 45%,#edf0f2 70%); background-size:200% 100%; border-radius:8px; animation:language-shimmer .7s linear infinite; }
.is-language-loading main :is(h1,h2,h3,p,blockquote,legend,.sol-title,.testi-person b) * { color:transparent!important; }
@keyframes language-shimmer {to {background-position:-200% 0}}
.dashboard-motion { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; stroke:none; }
.dashboard-motion text { fill:#17334d; stroke:none; font-family:Inter,sans-serif; }
.dashboard-motion .dash-bar { fill:#398ce3; stroke:none; transform-box:fill-box; transform-origin:center bottom; animation:dash-rise 7s ease-in-out infinite; }
.dashboard-motion .dash-bar:nth-child(3n) { animation-delay:-2s; }
.dashboard-motion .dash-bar:nth-child(3n+1) { animation-delay:-4s; }
@keyframes dash-rise {0%,100%{transform:scaleY(.65);opacity:.65}50%{transform:scaleY(1);opacity:1}}
@media (min-width:981px) and (max-width:1200px) { .nav-links { gap:17px; font-size:14px; } }
@media(prefers-reduced-motion:reduce) { .sol-category-icon,.dashboard-motion .dash-bar,.is-language-loading main :is(h1,h2,h3,p,blockquote,legend,.sol-title,.testi-person b) { animation:none; } }
.call-bar button.cb { border:0; cursor:pointer; transition:background .2s,transform .2s; position:relative; }
.call-bar button.cb:hover { transform:translateY(-2px); background:#d4e8fc; }
.call-bar button.cb:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.call-bar button[aria-pressed="false"] { background:#ffe1df; color:#c53732; }
.call-bar button[aria-pressed="false"]::after { content:""; position:absolute; width:24px; height:2px; background:currentColor; transform:rotate(45deg); box-shadow:0 0 0 1px #ffe1df; }
.owner-tile img { transition:opacity .35s,transform .5s; }
.owner-tile.is-cam-off img { opacity:0; transform:scale(1.04); }
.owner-wave { position:absolute; right:12px; top:12px; display:flex; gap:3px; align-items:center; padding:7px; border-radius:12px; background:#ffffffdd; z-index:2; transition:opacity .25s; }
.owner-wave i { width:3px; height:15px; background:var(--blue); border-radius:3px; animation:voice-wave 1s ease-in-out infinite alternate; }
.owner-wave i:nth-child(2){animation-delay:-.4s}
.owner-wave i:nth-child(3){animation-delay:-.7s}
.owner-tile.is-muted .owner-wave { opacity:0; }
.owner-tile.is-muted .owner-wave i { animation-play-state:paused; }
@keyframes voice-wave {from{transform:scaleY(.3)}to{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){.owner-wave i{animation:none}.owner-tile img{transition:none}}
.call .owner-tile.is-cam-off img { opacity:0!important; animation:none!important; }
.call.is-in .owner-tile.is-muted { box-shadow:none; }
[data-pills="pastel"] .choice input:checked + span { background:var(--pill); }
/* Keep the photograph and screen overlay in the same coordinate system. */
.bento-devices:hover > img { transform:none; }
.dashboard-motion .dash-bar { animation-name:dashboard-bars; animation-duration:3.6s; }
@keyframes dashboard-bars { 0%,100% {transform:scaleY(.35);opacity:.7} 50% {transform:scaleY(1);opacity:1} }
.dashboard-motion .dash-line { fill:none; stroke:#398ce3; stroke-width:6; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:330; animation:dashboard-line 4s ease-in-out infinite; }
@keyframes dashboard-line {0%,100%{stroke-dashoffset:280;opacity:.5}55%,75%{stroke-dashoffset:0;opacity:1}}
@media(prefers-reduced-motion:reduce){.dashboard-motion .dash-line{animation:none}}
/* Static branded dashboard and Inter hero captions. */
.dashboard-motion .dash-bar,
.dashboard-motion .dash-line {
  animation: none;
  transform: none;
  opacity: 1;
  stroke-dashoffset: 0;
}
.bento-caption { font-family: var(--font-body); font-weight: 400; }

/* Service-card titles use Inter. */
.sol-title { font-family:var(--font-body); font-weight:400; }

/* Portfolio: Focus Gallery */
.portfolio { overflow:hidden; padding-block:clamp(48px,6vw,88px); }
.portfolio-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:20px; }
.portfolio-heading .h2 { max-width:680px; margin:0; }
.portfolio-eyebrow { font-size:12px; font-weight:600; letter-spacing:.14em; color:var(--blue); }
.portfolio-heading p { max-width:250px; margin:0 0 4px; color:var(--muted); font-size:15px; }
.portfolio-rail { --portfolio-width:min(76vw,760px); display:flex; gap:24px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; padding:22px max(24px,calc((100% - var(--portfolio-width))/2)) 32px; scrollbar-width:none; cursor:grab; }
.portfolio-rail::-webkit-scrollbar { display:none; }
.portfolio-rail.is-dragging { cursor:grabbing; scroll-snap-type:none; user-select:none; }
.portfolio-card { display:block; flex:0 0 var(--portfolio-width); min-width:0; background:var(--card-bg,var(--sky)); border-radius:32px; padding:12px; text-decoration:none; color:var(--ink); scroll-snap-align:center; transform:scale(.93); opacity:.62; transition:transform .4s var(--ease),opacity .4s,box-shadow .4s; }
.portfolio-card.is-focused { transform:scale(1); opacity:1; }
.portfolio-card:focus-visible { outline:3px solid var(--blue); outline-offset:5px; opacity:1; }
.portfolio-preview { position:relative; overflow:hidden; border-radius:23px; aspect-ratio:16/9; background:var(--photo-bg,var(--sky2)); }
.portfolio-preview img { width:100%; height:100%; object-fit:cover; object-position:top; display:block; transition:transform .6s var(--ease); }
.portfolio-preview-label { position:absolute; left:50%; bottom:18px; transform:translate(-50%,10px); opacity:0; background:#fff; color:var(--ink); padding:10px 16px; border-radius:999px; font-size:13px; font-weight:500; white-space:nowrap; transition:opacity .25s,transform .25s; box-shadow:0 4px 20px #0b192320; }
.portfolio-card-foot { padding:18px 12px 10px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.portfolio-category { font-size:13px; color:var(--muted); }
.portfolio-card h3 { font-family:var(--font-body); font-weight:500; font-size:clamp(20px,2.4vw,28px); line-height:1.25; margin:5px 0 0; }
.portfolio-open { background:#fff; border-radius:50%; width:44px; height:44px; display:grid; place-items:center; font-size:24px; flex:none; transition:background .25s,color .25s; }
@media(hover:hover){.portfolio-card:hover{opacity:1;box-shadow:0 14px 30px #0b192318}.portfolio-card:hover .portfolio-preview img{transform:scale(1.025)}.portfolio-card:hover .portfolio-preview-label{opacity:1;transform:translate(-50%,0)}.portfolio-card:hover .portfolio-open{background:var(--blue);color:#fff}}
.portfolio-card:focus-visible .portfolio-preview-label { opacity:1; transform:translate(-50%,0); }
.portfolio-controls { display:flex; justify-content:center; align-items:center; gap:22px; }
.portfolio-nav { width:46px; height:46px; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--ink); font-size:22px; cursor:pointer; }
.portfolio-nav:hover:not(:disabled) { background:var(--sky); }
.portfolio-nav:disabled { opacity:.3; cursor:default; }
.portfolio-count { color:var(--soft); font-size:13px; font-variant-numeric:tabular-nums; }
.portfolio-count [data-portfolio-index] { color:var(--ink); font-weight:600; }
.portfolio-modal { width:min(1280px,calc(100vw - 40px)); max-width:none; height:calc(100dvh - 40px); max-height:none; padding:0; border:0; border-radius:24px; background:#fff; color:var(--ink); overflow:hidden; margin:auto; box-shadow:0 24px 80px #0004; }
.portfolio-modal[open] { display:flex; flex-direction:column; }
.portfolio-modal::backdrop { background:#071725a6; backdrop-filter:blur(7px); }
.portfolio-modal-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 18px; border-bottom:1px solid var(--line); flex:none; }
.portfolio-modal-bar h2 { font-family:var(--font-body); font-size:17px; font-weight:600; margin:0; min-width:0; }
.portfolio-modal-actions { display:flex; align-items:center; gap:16px; flex:none; }
.portfolio-external { color:var(--blue); font-size:13px; font-weight:500; text-decoration:none; }
.portfolio-close { width:40px; height:40px; border:0; border-radius:50%; background:var(--sky3); color:var(--ink); font-size:28px; cursor:pointer; }
.portfolio-frame-wrap { flex:1; min-height:0; position:relative; }
.portfolio-frame { display:block; width:100%; height:100%; border:0; background:white; }
.portfolio-loading { position:absolute; inset:0; display:grid; place-items:center; margin:0; background:var(--sky3); color:var(--muted); pointer-events:none; }
.portfolio-loading[hidden],.portfolio-slow[hidden] { display:none; }
.portfolio-slow { position:absolute; z-index:1; bottom:16px; left:16px; right:16px; width:fit-content; margin:0 auto; background:#fff; color:var(--muted); border:1px solid var(--line); border-radius:16px; padding:12px 18px; font-size:13px; }
@media(max-width:640px){.portfolio-heading{display:block}.portfolio-heading p{max-width:none;margin-top:16px}.portfolio-rail{--portfolio-width:84vw;gap:12px;padding-top:14px;padding-bottom:24px}.portfolio-card{padding:8px;border-radius:24px}.portfolio-preview{border-radius:18px}.portfolio-card-foot{padding:14px 8px 8px}.portfolio-category{font-size:11px}.portfolio-open{width:36px;height:36px;font-size:21px}.portfolio-modal{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:18px}.portfolio-modal-bar{padding:10px;gap:8px}.portfolio-modal-bar h2{font-size:13px}.portfolio-modal-actions{gap:8px}.portfolio-external{font-size:11px}.portfolio-close{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){.portfolio-card,.portfolio-preview img,.portfolio-preview-label,.portfolio-open{transition:none}}

/* Opening loader — Three Promises */
body.loader-active { overflow:hidden; }
.site-loader {
  position:fixed; inset:0; z-index:9999; display:grid; place-items:center;
  background:var(--ink); color:#fff; overflow:hidden;
  transition:opacity .58s var(--ease), visibility .58s;
}
.site-loader.is-leaving { opacity:0; visibility:hidden; pointer-events:none; }
.site-loader-word {
  position:absolute; font-family:var(--font-body); font-size:clamp(42px,7vw,88px);
  font-weight:700; line-height:1; letter-spacing:-.055em; opacity:0; filter:blur(7px);
  will-change:opacity,transform,filter;
}
.site-loader .word-the { color:var(--sky-2); animation:loaderWordOne 4.8s var(--ease) both; }
.site-loader .word-intelligent { color:var(--lime-3); animation:loaderWordTwo 4.8s var(--ease) both; }
.site-loader .word-consultant { color:var(--coral-2); animation:loaderWordThree 4.8s var(--ease) both; }
.site-loader-brand {
  position:absolute; display:flex; align-items:center; gap:14px; font-size:clamp(24px,3.2vw,38px);
  font-weight:700; letter-spacing:-.035em; opacity:0; filter:blur(5px);
  animation:loaderBrand 4.8s var(--ease) both;
}
.site-loader-brand img { width:clamp(43px,5vw,60px); height:auto; }
@keyframes loaderWordOne {
  0%,3%{opacity:0;transform:translateY(18px);filter:blur(7px)}
  10%,19%{opacity:1;transform:none;filter:blur(0)}
  25%,100%{opacity:0;transform:translateY(-15px);filter:blur(6px)}
}
@keyframes loaderWordTwo {
  0%,28%{opacity:0;transform:translateY(18px);filter:blur(7px)}
  35%,45%{opacity:1;transform:none;filter:blur(0)}
  51%,100%{opacity:0;transform:translateY(-15px);filter:blur(6px)}
}
@keyframes loaderWordThree {
  0%,54%{opacity:0;transform:translateY(18px);filter:blur(7px)}
  61%,71%{opacity:1;transform:none;filter:blur(0)}
  77%,100%{opacity:0;transform:translateY(-15px);filter:blur(6px)}
}
@keyframes loaderBrand {
  0%,79%{opacity:0;transform:scale(.95);filter:blur(5px)}
  86%,96%{opacity:1;transform:scale(1);filter:blur(0)}
  100%{opacity:1;transform:scale(1);filter:blur(0)}
}
@media(prefers-reduced-motion:reduce){
  .site-loader-word{display:none}
  .site-loader-brand{animation:none;opacity:1;filter:none}
}

/* Solutions — full-width horizontal rail with uncropped imagery */
.solusi { height:auto; min-height:var(--screen); overflow:hidden; padding-block:clamp(44px,6vh,72px); }
.solusi > .container { max-width:none; height:auto; padding-inline:0; display:block; }
.solusi .section-head {
  width:min(var(--container),100%); margin:0 auto 28px; padding-inline:max(24px,env(safe-area-inset-left,0px));
}
.sol-grid {
  display:grid; grid-template-columns:none; grid-template-rows:none; grid-auto-flow:column;
  grid-auto-columns:clamp(380px,40vw,520px); gap:20px; min-height:0;
  overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory;
  padding:8px max(24px,calc((100vw - var(--container))/2 + 24px)) 30px;
  scroll-padding-inline:max(24px,calc((100vw - var(--container))/2 + 24px));
  margin:0; scrollbar-width:none; cursor:grab;
}
.sol-grid::-webkit-scrollbar { display:none; }
.sol-grid.is-dragging { cursor:grabbing; scroll-snap-type:none; user-select:none; }
.sol-card { min-height:0; scroll-snap-align:center; padding:12px; border-radius:36px; container-type:normal; }
.sol-media { flex:none; width:100%; height:auto; min-height:0; aspect-ratio:16/10; border-radius:26px; isolation:isolate; }
.sol-media::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(115deg,var(--photo-bg),color-mix(in srgb,var(--photo-bg) 78%,white)); }
.sol-media img { object-fit:cover; object-position:center center!important; transform:none; }
.sol-card[data-service="finance"] .sol-media img,
.sol-card[data-service="stock"] .sol-media img { object-position:center 58%!important; }
.sol-card[data-service="service"] .sol-media img,
.sol-card[data-service="payroll"] .sol-media img { object-position:center 32%!important; }
.sol-card[data-service="sales"] .sol-media img { object-position:center 48%!important; }
.sol-card[data-service="rules"] .sol-media img { object-position:center 34%!important; }
.sol-card:hover .sol-media img { transform:scale(1.015); }
.sol-foot { min-height:92px; padding:18px 12px 10px; }
.sol-title { font-size:clamp(20px,1.7vw,24px); white-space:normal; overflow:visible; text-overflow:clip; }
.sales-chat-title { font-size:clamp(17px,1.45vw,21px); line-height:1.4; }
.wa-chat { position:absolute; z-index:3; top:74px; right:14px; width:45%; display:flex; flex-direction:column; gap:5px; pointer-events:none; }
.wa-bubble { display:block; width:fit-content; max-width:100%; padding:7px 9px 5px; border-radius:13px; font-size:10px; line-height:1.35; box-shadow:0 6px 16px rgba(11,25,35,.15); }
.wa-customer { align-self:flex-start; background:#fff; border-bottom-left-radius:5px; }
.wa-seller { align-self:flex-end; background:#dff8c9; border-bottom-right-radius:5px; }
.wa-time { display:block; margin-top:3px; color:#68747a; font-size:8px; line-height:1; text-align:right; }
.wa-ticks { color:var(--blue-text); font-weight:700; letter-spacing:-2px; }
.sol-controls { display:flex; align-items:center; justify-content:center; gap:18px; margin-top:4px; }
.sol-nav { width:46px; height:46px; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--ink); font:500 21px/1 var(--font-body); cursor:pointer; transition:background .25s,color .25s,transform .25s var(--ease); }
.sol-nav:hover:not(:disabled) { background:var(--blue); color:#fff; transform:translateY(-2px); }
.sol-nav:disabled { opacity:.3; cursor:default; }
.sol-count { min-width:54px; color:var(--soft); font-size:13px; text-align:center; font-variant-numeric:tabular-nums; }
.sol-count strong { color:var(--ink); font-weight:600; }
@media(max-width:640px){
  .solusi { height:auto; min-height:var(--screen); padding-block:36px; }
  .solusi > .container { height:auto; }
  .solusi .section-head { margin-bottom:20px; }
  .sol-grid { grid-template-columns:none; grid-template-rows:none; grid-auto-flow:column; grid-auto-columns:88vw; gap:14px; margin:0; padding:6px 16px 24px; scroll-padding-inline:16px; }
  .sol-card { padding:9px; border-radius:28px; }
  .sol-media { height:auto; aspect-ratio:16/10; border-radius:21px; }
  .sol-foot { min-height:88px; padding:15px 10px 8px; }
  .sol-title { font-size:20px; }
  .sales-chat-title { font-size:17px; }
  .wa-chat { top:58px; right:10px; width:48%; gap:4px; }
  .wa-bubble { max-width:100%; padding:6px 8px 5px; font-size:9px; }
  .sol-controls { margin-top:0; }
}

/* Desktop/tablet: vertical page scroll drives both horizontal card rails. */
@media (min-width:641px) and (prefers-reduced-motion:no-preference) {
  .scroll-horizontal-section.is-scroll-driven {
    height:calc(100vh + var(--scroll-distance, 0px));
    min-height:calc(100vh + var(--scroll-distance, 0px));
    padding-block:0;
    overflow:visible;
  }
  .scroll-horizontal-section.is-scroll-driven > .scroll-stage {
    position:sticky;
    top:0;
    width:100%;
    height:100vh;
    min-height:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    overflow:hidden;
    padding-block:clamp(24px,4vh,48px);
  }
  .solusi.is-scroll-driven > .scroll-stage { max-width:none; padding-inline:0; }
  .solusi.is-scroll-driven .section-head { margin-bottom:clamp(14px,2.5vh,26px); }
  .solusi.is-scroll-driven .sol-grid { flex:none; scroll-snap-type:none; }
  .portfolio.is-scroll-driven .portfolio-heading { margin-bottom:8px; }
  .portfolio.is-scroll-driven .portfolio-rail {
    --portfolio-width:min(70vw,700px,calc((100vh - 250px) * 1.55));
    padding-top:12px;
    padding-bottom:18px;
    scroll-snap-type:none;
  }
  .portfolio.is-scroll-driven .portfolio-controls { flex:none; }
}

/* Minimal blue dot cursor — desktop mouse only, with a quiet ambient pulse. */
.custom-cursor { display:none; }
@media (hover:hover) and (pointer:fine) {
  html.has-custom-cursor, html.has-custom-cursor * { cursor:none!important; }
  .custom-cursor {
    position:fixed; left:0; top:0; z-index:100000; display:block; width:10px; height:10px;
    margin:-5px 0 0 -5px; border-radius:50%; background:var(--blue); box-shadow:none;
    pointer-events:none; opacity:0; transform:translate3d(-40px,-40px,0);
    transition:opacity .15s ease; will-change:transform;
  }
  .custom-cursor.is-visible { opacity:1; }
  .custom-cursor::before {
    content:""; position:absolute; left:50%; top:50%; width:18px; height:18px;
    margin:-10px 0 0 -10px; border:1px solid rgba(38,140,239,.42); border-radius:50%;
    opacity:.45; transform:scale(.72); animation:cursorAmbient 1.9s ease-in-out infinite;
  }
  .custom-cursor::after {
    content:""; position:absolute; left:50%; top:50%; width:24px; height:24px;
    margin:-13px 0 0 -13px; border:1.5px solid var(--blue); border-radius:50%;
    opacity:0; transform:scale(.35);
  }
  .custom-cursor.is-clicking::after { animation:cursorPulse .38s var(--ease) both; }
  @keyframes cursorAmbient { 0%,100%{opacity:.22;transform:scale(.72)} 50%{opacity:.48;transform:scale(1)} }
  @keyframes cursorPulse { 0%{opacity:.8;transform:scale(.3)} 100%{opacity:0;transform:scale(1.35)} }
}
@media(prefers-reduced-motion:reduce){.custom-cursor::before,.custom-cursor::after{animation:none!important}}
