/* ============================================================================
   LiaforaStudio international website — global styles
   Plain static + jQuery stack: no build tooling, this file can be <link>ed straight in
   Structure: design tokens → reset → layout containers → components → sections → responsive
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --brand-600: #5b46e8;
  --brand-500: #6d5efc;
  --brand-400: #8b7bfd;
  --blue-500: #4a7cf7;
  --violet-300: #c4b5fd;
  --grad-brand: linear-gradient(135deg, #6d5efc 0%, #4a7cf7 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(109, 94, 252, .10) 0%, rgba(74, 124, 247, .10) 100%);

  --ink-900: #101024;
  --ink-700: #2c2c44;
  --ink-500: #565673;
  --ink-400: #7a7a97;
  --ink-300: #a3a3bb;

  --bg: #ffffff;
  --bg-soft: #f7f7fc;
  --bg-deep: #12122a;
  --line: #e8e8f2;
  --line-soft: #f0f0f7;

  --gold-500: #e0a300;
  --green-500: #16a34a;
  --red-500: #d4314a;

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-pill: 999px;

  --shadow-s: 0 2px 10px rgba(18, 18, 42, .06);
  --shadow-m: 0 10px 30px rgba(18, 18, 42, .08);
  --shadow-l: 0 24px 60px rgba(18, 18, 42, .12);

  --maxw: 1180px;
  --header-h: 68px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang TC",
    "Microsoft JhengHei", "Noto Sans TC", Roboto, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(109, 94, 252, .45); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout containers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--tight { padding: 60px 0; }
.stack { display: flex; flex-direction: column; }
.center { text-align: center; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-500);
}
.section-title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 12px; }
.section-sub { font-size: clamp(15px, 1.4vw, 18px); color: var(--ink-500); max-width: 720px; }
.section-head.center .section-sub { margin: 0 auto; }
.lede { font-size: 18px; color: var(--ink-500); }
.small { font-size: 13px; color: var(--ink-400); }
.accent { color: var(--brand-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px rgba(109, 94, 252, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(109, 94, 252, .34); }
.btn-green { background: #16a34a; color: #fff; box-shadow: 0 8px 22px rgba(22, 163, 74, .26); }
.btn-green:hover { background: #15803d; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(22, 163, 74, .32); }
.btn-outline { border-color: var(--line); color: var(--ink-700); background: #fff; }
.btn-outline:hover { border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-2px); }
.btn-ghost-dark { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.10); }
.btn-lg { height: 54px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(18,18,42,.05); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.brand-mark { width: auto; height: 26px; display: block; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a.nav-link { padding: 9px 14px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 500; color: var(--ink-700); transition: color .18s, background .18s; }
.nav a.nav-link:hover { color: var(--brand-600); background: rgba(109,94,252,.07); }
.nav a.nav-link.is-active { color: var(--brand-600); background: rgba(109,94,252,.10); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
/* Language menu: the language list lives in LANGS in site.js, the page only holds the container;
   without JS it degrades to the single .lang-static link */
.lang-menu { position: relative; }
.lang-static {
  display: inline-flex; align-items: center; height: 34px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--ink-500);
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--ink-700);
  transition: border-color .18s ease, color .18s ease;
}
.lang-btn:hover, .lang-menu.is-open .lang-btn { border-color: var(--brand-400); color: var(--brand-600); }
.lang-btn > svg { width: 15px; height: 15px; color: var(--brand-500); }
.lang-btn .chev { width: 12px; height: 12px; color: var(--ink-400); transition: transform .2s ease; }
.lang-menu.is-open .lang-btn .chev { transform: rotate(180deg); }
.lang-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  min-width: 208px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-m); display: none;
}
.lang-menu.is-open .lang-panel { display: block; }
.lang-panel a,
.lang-panel span { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--ink-700); }
.lang-panel a:hover { background: var(--grad-brand-soft); color: var(--brand-600); }
.lang-panel svg { width: 15px; height: 15px; color: var(--brand-500); flex: none; }
.lang-panel [aria-current] { font-weight: 600; }
.lang-panel .is-soon { color: var(--ink-300); cursor: default; }
.lang-panel .is-soon em { margin-left: auto; font-style: normal; font-size: 11px; letter-spacing: .02em; }
/* Block language list inside the mobile drawer: no popover, it just expands;
   overrides the full-width .mobile-drawer a styles so rows stay like the desktop ones */
.m-lang .lang-menu--block .lang-panel {
  position: static; display: block; min-width: 0; padding: 6px 0 0;
  border: 0; box-shadow: none; background: transparent;
}
.m-lang .lang-panel a {
  display: flex; padding: 9px 10px; border-bottom: 0;
  font-size: 14px; font-weight: 500;
}
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-left: auto; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink-700); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink-700); transition: transform .2s ease; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-drawer { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-drawer.is-open { display: block; }
.mobile-drawer ul { padding: 10px 0 18px; }
.mobile-drawer a { display: block; padding: 13px 24px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.mobile-drawer .m-lang { display: flex; gap: 10px; padding: 16px 24px 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 64px; background:
  radial-gradient(1200px 520px at 12% -10%, rgba(109,94,252,.16), transparent 60%),
  radial-gradient(900px 420px at 92% 8%, rgba(74,124,247,.14), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-s); font-size: 13px; color: var(--ink-500); margin-bottom: 22px; }
.hero-badge svg { width: 16px; height: 16px; flex: none; color: var(--brand-500); }
.hero-badge b { color: var(--brand-600); }
h1.hero-title { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.14; font-weight: 800; letter-spacing: -.03em; }
h1.hero-title .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 20px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-500); max-width: 560px; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-400); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--green-500); }

/* App window mockup in the hero (pure SVG/CSS, no external images) */
.hero-art { position: relative; min-width: 0; }
.app-window { border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-l); overflow: hidden; animation: hero-float 7s ease-in-out infinite; }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.app-window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); background: #fbfbfe; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #dcdce8; }
.dot.r { background: #ff6058; } .dot.y { background: #ffbd2e; } .dot.g { background: #28ca42; }
.app-window-title { margin-left: 8px; font-size: 12px; color: var(--ink-400); }
.app-window-body { display: grid; grid-template-columns: 64px minmax(0, 1fr); min-height: 420px; }

/* Sidebar: brand L + nav icons */
.app-side { border-right: 1px solid var(--line-soft); padding: 14px 0; background: #fbfbfe; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.side-logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(160deg, #e8433f, #b21e1e); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(178,30,30,.3); }
.side-ic { width: 26px; height: 26px; border-radius: 8px; background: #e7e9f3; }
.side-ic.is-on { background: var(--grad-brand); animation: side-pulse 3s ease-in-out infinite; }
@keyframes side-pulse { 0%, 100% { box-shadow: 0 4px 10px rgba(109,94,252,.35); } 50% { box-shadow: 0 4px 16px rgba(109,94,252,.6); } }
.side-ic.side-gear { margin-top: auto; }

/* Main area */
.app-main { padding: 14px 16px 16px; min-width: 0; }
.app-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.app-pill { flex: none; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; color: var(--brand-600); background: var(--grad-brand-soft); padding: 4px 10px; border-radius: 999px; }
.app-head strong { font-size: 14px; letter-spacing: -.01em; color: var(--ink-700); white-space: nowrap; }
.app-hint { margin-left: auto; font-size: 9.5px; color: var(--ink-400); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%; }

/* 8 tool cards (mirrors the app home grid); a travelling cursor lights them up in turn */
.app-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.app-tile { border: 1px solid var(--line-soft); border-radius: 12px; background: #fff; padding: 8px 8px 9px; box-shadow: var(--shadow-s); animation: tile-pick 8s ease-in-out infinite; }
.app-grid .app-tile:nth-of-type(2) { animation-delay: 1s; }
.app-grid .app-tile:nth-of-type(3) { animation-delay: 2s; }
.app-grid .app-tile:nth-of-type(4) { animation-delay: 3s; }
.app-grid .app-tile:nth-of-type(5) { animation-delay: 4s; }
.app-grid .app-tile:nth-of-type(6) { animation-delay: 5s; }
.app-grid .app-tile:nth-of-type(7) { animation-delay: 6s; }
.app-grid .app-tile:nth-of-type(8) { animation-delay: 7s; }
@keyframes tile-pick {
  0%, 12.5%, 100% { transform: none; border-color: var(--line-soft); box-shadow: var(--shadow-s); }
  3%, 9.5% { transform: translateY(-3px) scale(1.04); border-color: var(--brand-400); box-shadow: 0 12px 26px rgba(109,94,252,.18); }
}
.thumb { position: relative; display: block; height: 58px; border-radius: 8px; overflow: hidden; background: #f3f5fb; margin-bottom: 7px; }
.app-tile b { display: block; font-size: 10px; font-weight: 700; color: var(--ink-700); text-align: center; white-space: nowrap; }
.app-tile u { display: block; text-decoration: none; font-size: 8.5px; color: var(--ink-400); text-align: center; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Travelling cursor */
.mock-cursor { position: absolute; z-index: 3; left: 12.5%; top: 25%; width: 14px; height: 14px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; border: 2.5px solid var(--brand-500); box-shadow: 0 2px 8px rgba(0,0,0,.25); pointer-events: none; animation: cursor-roam 8s ease-in-out infinite; }
@keyframes cursor-roam {
  0%, 9% { left: 12.5%; top: 25%; }
  12.5%, 21.5% { left: 37.5%; top: 25%; }
  25%, 34% { left: 62.5%; top: 25%; }
  37.5%, 46.5% { left: 87.5%; top: 25%; }
  50%, 59% { left: 87.5%; top: 75%; }
  62.5%, 71.5% { left: 62.5%; top: 75%; }
  75%, 84% { left: 37.5%; top: 75%; }
  87.5%, 96.5% { left: 12.5%; top: 75%; }
  100% { left: 12.5%; top: 25%; }
}

/* Per-tool card thumbnails (pure CSS mini illustrations) */
.t-cutout .thumb { background: repeating-conic-gradient(#e9ebf4 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.t-cutout .p { position: absolute; left: 50%; bottom: 8px; width: 22px; height: 13px; margin-left: -11px; border-radius: 8px 8px 3px 3px; background: #ffb26b; animation: bob 3s ease-in-out infinite; }
.t-cutout .p::before { content: ""; position: absolute; left: 50%; top: -12px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #ffc98c; }
.t-cutout .ring { position: absolute; inset: 4px; border: 1.5px dashed var(--brand-400); border-radius: 8px; opacity: 0; animation: ring-flash 3s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ring-flash { 0%, 20% { opacity: 0; } 35%, 70% { opacity: 1; } 85%, 100% { opacity: 0; } }

.t-enhance .thumb { background: linear-gradient(180deg, #8fc3ff, #dcecff 55%, #f2f8ff); animation: enh 4s ease-in-out infinite; }
.t-enhance .sun { position: absolute; right: 7px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #ffd166; z-index: 1; }
.t-enhance .mtn { position: absolute; bottom: 0; width: 100%; height: 55%; background: #6d8cff; clip-path: polygon(0 100%, 38% 12%, 72% 100%); }
.t-enhance .mtn.m2 { background: #4a5fd8; height: 70%; clip-path: polygon(45% 100%, 78% 0, 100% 100%); }
@keyframes enh { 0%, 15% { filter: blur(2.5px) saturate(.7); } 55%, 85% { filter: blur(0) saturate(1.15); } 100% { filter: blur(2.5px) saturate(.7); } }

.t-wm .thumb { background: linear-gradient(180deg, #bfe9ff 0 42%, #17b3a6 42% 100%); }
.t-wm .sun2 { position: absolute; right: 12px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #ffe08a; box-shadow: 0 0 0 3px rgba(255,224,138,.35); animation: sun-pulse 2.6s ease-in-out infinite; }
@keyframes sun-pulse { 50% { box-shadow: 0 0 0 6px rgba(255,224,138,.16); } }

.t-rep .thumb { background: #e94b3f; animation: hue-cycle 6s linear infinite; }
.t-rep .man { position: absolute; left: 50%; bottom: 0; width: 18px; height: 22px; margin-left: -9px; border-radius: 8px 8px 0 0; background: #fff; }
.t-rep .man::before { content: ""; position: absolute; left: 50%; top: -9px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; }
@keyframes hue-cycle { 0%, 100% { filter: hue-rotate(0); } 50% { filter: hue-rotate(140deg); } }

.t-old .thumb { background: #cfd3da; }
.t-old .film { position: absolute; inset: 8px 6px; border-radius: 4px; background: repeating-linear-gradient(180deg, #6a6f7a 0 6px, #565b66 6px 12px); }
.t-old .film::before, .t-old .film::after { content: ""; position: absolute; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #ffd166; }
.t-old .film::before { top: 8px; animation: dot-run 2.8s ease-in-out infinite; }
.t-old .film::after { top: 26px; animation: dot-run 2.8s ease-in-out .9s infinite; }
@keyframes dot-run { 0%, 100% { transform: translateX(-10px); opacity: .5; } 50% { transform: translateX(10px); opacity: 1; } }

.t-anime .thumb, .t-style .thumb { display: flex; align-items: center; justify-content: center; gap: 6px; background: #f3f5fb; }
.t-anime .thumb i, .t-style .thumb i { width: 26px; height: 34px; border-radius: 7px; }
.t-anime .thumb em, .t-style .thumb em { font-style: normal; color: var(--ink-400); font-size: 10px; }
.t-anime .a1 { background: linear-gradient(180deg, #c3cedd, #dbe4ee); }
.t-anime .a2 { background: linear-gradient(180deg, #6fc3ff, #aee3ff); animation: chip-swap 3.2s ease-in-out infinite; }
@keyframes chip-swap { 0%, 30%, 100% { transform: scale(1); } 45%, 85% { transform: scale(1.12); box-shadow: 0 4px 12px rgba(111,195,255,.55); } }
.t-style .s1 { background: linear-gradient(135deg, #8a93a8, #c6cddc); }
.t-style .s2 { background: linear-gradient(135deg, #ff7ad9, #7cf0ff); animation: hue-spin 5s linear infinite; }
@keyframes hue-spin { to { filter: hue-rotate(360deg); } }

.t-refine .thumb { background: #fff; border: 1px solid var(--line-soft); }
.t-refine .blob { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #cdd6ff, var(--brand-400)); filter: blur(6px); animation: blob-breathe 3s ease-in-out infinite; }
@keyframes blob-breathe { 50% { transform: scale(1.25); opacity: .8; } }

/* Our Guarantees strip */
.app-guarantee { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; background: #fbfbfe; }
.app-guarantee span { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.app-guarantee i { width: 20px; height: 20px; border-radius: 50%; }
.app-guarantee u { display: block; width: 70%; height: 5px; border-radius: 3px; background: #e7e9f3; text-decoration: none; }
.g1 { background: linear-gradient(135deg, #7c5cff, #5a3fe0); }
.g2 { background: linear-gradient(135deg, #ff5c8a, #e0326e); }
.g3 { background: linear-gradient(135deg, #ffb03a, #f07f13); }
.g4 { background: linear-gradient(135deg, #22c55e, #0e9f4f); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; position: relative; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 20px; box-shadow: var(--shadow-s); }
.stat-num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 13.5px; color: var(--ink-500); margin-top: 2px; }

/* ---------- Card grid ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 24px; box-shadow: var(--shadow-s);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: #dcdcf0; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-500); }
.icon-box { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--grad-brand-soft); }
.icon-box svg { width: 21px; height: 21px; color: var(--brand-600); }
.tag { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: rgba(109,94,252,.10); color: var(--brand-600); }
.tag--vip { background: rgba(224,163,0,.12); color: var(--gold-500); }
.tag--free { background: rgba(22,163,74,.10); color: var(--green-500); }
.tag--local { background: rgba(74,124,247,.10); color: var(--blue-500); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head .icon-box { margin-bottom: 0; }
.bullets { margin-top: 14px; display: grid; gap: 8px; }
.bullets li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-500); }
.bullets li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-400); }

/* ---------- Feature comparison / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: -18px; left: 24px;
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 16px;
  display: grid; place-items: center; box-shadow: var(--shadow-s);
}
.step h3 { margin: 10px 0 6px; font-size: 17px; }
.step p { font-size: 14.5px; color: var(--ink-500); }

/* ---------- Membership / plans ---------- */
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; box-shadow: var(--shadow-s); }
.plan.is-featured { border-color: var(--brand-400); box-shadow: 0 18px 44px rgba(109,94,252,.16); }
.plan-flag { position: absolute; top: -12px; left: 26px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--grad-brand); color: #fff; font-size: 12px; font-weight: 700; }
.plan-name { font-size: 18px; font-weight: 800; }
.plan-price { margin: 10px 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.plan-price small { font-size: 14px; font-weight: 600; color: var(--ink-400); }
.plan-note { font-size: 13px; color: var(--ink-400); min-height: 20px; }
.plan-list { margin: 18px 0 24px; display: grid; gap: 10px; }
.plan-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-700); }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(109,94,252,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b46e8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 10.4 8 14.5 16 5.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan-foot { margin-top: auto; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; width: 100%; text-align: left; border: 0; background: transparent; font-size: 16px; font-weight: 600; color: var(--ink-900); }
.faq-q .chev { flex: none; width: 22px; height: 22px; color: var(--brand-500); transition: transform .25s ease; }
.faq-item.is-open .faq-q .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 20px; color: var(--ink-500); font-size: 15px; }
.faq-a p + p { margin-top: 10px; }
/* 锚点定位展开时的引导动效：品牌色高亮渐隐 */
@keyframes faqFlash { 0% { background-color: rgba(109, 94, 252, .14); } 100% { background-color: transparent; } }
.faq-item.faq-flash { animation: faqFlash 1.4s ease-out 1; }

/* ---------- Notice bar / disclaimer ---------- */
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius-m); background: var(--grad-brand-soft); border: 1px solid rgba(109,94,252,.18); }
.notice svg { flex: none; width: 20px; height: 20px; color: var(--brand-600); margin-top: 2px; }
.notice p { font-size: 14.5px; color: var(--ink-700); }
.disclaimer { font-size: 13px; color: var(--ink-400); }

/* ---------- Footer CTA ---------- */
.cta-band { padding: 70px 0; background: linear-gradient(135deg, #171740 0%, #24246a 55%, #1b3a86 100%); color: #fff; }
.cta-band .section-title, .cta-band .eyebrow { color: #fff; }
.cta-band .eyebrow { opacity: .75; }
.cta-band p.section-sub { color: rgba(255,255,255,.78); }
.cta-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: rgba(255,255,255,.72); padding: 60px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand { color: #fff; font-size: 19px; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { box-shadow: none; }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: .02em; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.5); }
.social-row { display: flex; gap: 10px; }

/* ---------- Breadcrumb / page header ---------- */
.page-head { padding: 58px 0 30px; background:
  radial-gradient(900px 380px at 15% -20%, rgba(109,94,252,.14), transparent 60%),
  var(--bg-soft); border-bottom: 1px solid var(--line-soft); }
.crumbs { font-size: 13px; color: var(--ink-400); margin-bottom: 14px; }
.crumbs a:hover { color: var(--brand-600); }
.crumbs span { margin: 0 6px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 14.5px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.compare thead th { background: #fbfbfe; font-size: 13px; letter-spacing: .02em; color: var(--ink-700); }
table.compare tbody th { font-weight: 600; color: var(--ink-900); width: 42%; }
table.compare td { color: var(--ink-500); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--green-500); font-weight: 700; }
.no { color: var(--ink-300); }

/* ---------- Legal body copy (Terms / Privacy) ---------- */
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
.legal-toc {
  position: sticky; top: calc(var(--header-h) + 20px);
  border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 20px; background: #fff; box-shadow: var(--shadow-s);
}
.legal-toc-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); }
.legal-toc ol { margin-top: 12px; display: grid; gap: 9px; }
.legal-toc a { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-500); }
.legal-toc a:hover { color: var(--brand-600); }
.legal-toc-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-400); }
.legal-toc-foot a { color: var(--brand-600); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 34px 0 10px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { font-size: 15.5px; line-height: 1.8; color: var(--ink-500); }
.legal-body a { color: var(--brand-600); text-decoration: underline; }

/* ---------- Demo-mode toast (until the CDN / checkout are wired up) ---------- */
.demo-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 90;
  transform: translate(-50%, 20px);
  max-width: min(560px, calc(100% - 36px));
  padding: 14px 18px; border-radius: var(--radius-m);
  background: var(--ink-900); color: #fff; font-size: 14.5px; line-height: 1.5;
  box-shadow: var(--shadow-l); opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.demo-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animations (only when reduced motion is off) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Tool card mini demos ---------- */
.tool-demo { position: relative; height: 96px; border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: var(--grad-brand-soft); }
.tool-demo :where(i, span) { display: block; }

/* Cutout: the subject lifts + a dashed selection, transparency checkerboard underneath */
.d-cutout { background: repeating-conic-gradient(#edeff5 0 25%, #ffffff 0 50%) 0 0 / 18px 18px; }
.c-subject { position: absolute; left: 32%; top: 16%; width: 36%; height: 68%; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #ffc46b, #ff6d5c 72%); box-shadow: 0 12px 24px rgba(255,109,92,.38); animation: cut-lift 3.6s ease-in-out infinite; }
.c-ring { position: absolute; left: 27%; top: 10%; width: 46%; height: 80%; border: 2px dashed var(--brand-500); border-radius: 50%; opacity: 0; animation: cut-ring 3.6s ease-in-out infinite; }
@keyframes cut-lift { 0%,12% { transform: scale(.92); } 45%,75% { transform: scale(1.07) translateY(-4px); } 100% { transform: scale(.92); } }
@keyframes cut-ring { 0%,12% { opacity: 0; transform: scale(1.18); } 35%,80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }

/* Enhance: a blurry photo becomes sharp */
.e-scene { position: absolute; inset: 0; background: linear-gradient(180deg, #7db8ff 0%, #cfe4ff 52%, #eef6ff 100%); animation: enhance-sharp 4.2s ease-in-out infinite; }
.e-sun { position: absolute; right: 14%; top: 16%; width: 20px; height: 20px; border-radius: 50%; background: #ffd166; }
.e-mtn { position: absolute; bottom: 0; width: 100%; height: 52%; background: #6d8cff; clip-path: polygon(0 100%, 30% 18%, 62% 100%); opacity: .85; }
.e-mtn.m2 { background: #4a5fd8; height: 62%; clip-path: polygon(38% 100%, 72% 0, 100% 100%); }
@keyframes enhance-sharp { 0%,18% { filter: blur(4px) saturate(.65); } 55%,82% { filter: blur(0) saturate(1.15); } 100% { filter: blur(4px) saturate(.65); } }
.e-hd { position: absolute; right: 8px; bottom: 8px; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #fff; background: rgba(15,19,34,.78); padding: 2px 8px; border-radius: 20px; animation: hd-pop 4.2s infinite; }
@keyframes hd-pop { 0%,18% { opacity: .4; } 55%,82% { opacity: 1; transform: scale(1.06); } 100% { opacity: .4; } }

/* De-watermark: an eraser sweeps across and the watermark disappears */
.w-photo { position: absolute; inset: 0; background: linear-gradient(140deg, #9be15d, #00e3ae 60%, #38f9d7); }
.w-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-14deg); font-size: 15px; font-weight: 800; letter-spacing: .18em; color: rgba(255,255,255,.75); animation: wm-fade 4.4s ease-in-out infinite; }
.w-eraser { position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-500); box-shadow: 0 2px 8px rgba(0,0,0,.2); opacity: 0; animation: wm-erase 4.4s ease-in-out infinite; }
@keyframes wm-erase { 0% { opacity: 0; left: 6%; } 10% { opacity: 1; left: 12%; } 45% { opacity: 1; left: 46%; } 55% { opacity: 0; left: 60%; } 100% { opacity: 0; left: 6%; } }
@keyframes wm-fade { 0%,40% { opacity: .75; } 60%,85% { opacity: 0; } 100% { opacity: .75; } }

/* Replace BG: the background hue rotates + swatches light up */
.d-replace { background: linear-gradient(135deg, #ffd8a8, #ffb3ba); animation: rep-hue 6s linear infinite; }
.r-subject { position: absolute; left: 50%; bottom: -16%; transform: translateX(-50%); width: 32%; height: 62%; background: #fff; border-radius: 42% 42% 10px 10px; box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.r-subject::before { content: ""; position: absolute; left: 50%; top: -34%; transform: translateX(-50%); width: 46%; padding-top: 46%; border-radius: 50%; background: #fff; }
.sw { position: absolute; bottom: 8px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,255,255,.5); opacity: .35; animation: sw-glow 6s infinite; }
.sw:nth-child(2) { left: 42%; } .sw:nth-child(3) { left: 50%; } .sw:nth-child(4) { left: 58%; }
.sw:nth-child(3) { animation-delay: -2s; } .sw:nth-child(4) { animation-delay: -4s; }
@keyframes rep-hue { 0%,100% { filter: hue-rotate(0); } 33% { filter: hue-rotate(120deg); } 66% { filter: hue-rotate(240deg); } }
@keyframes sw-glow { 0%,28% { opacity: .35; transform: scale(1); } 36%,60% { opacity: 1; transform: scale(1.25); } 72%,100% { opacity: .35; transform: scale(1); } }

/* Old Photo: a scan line sweeps across and black and white turns colour */
.o-photo { position: absolute; inset: 0; background: linear-gradient(180deg, #ffd28f 0%, #ff9a76 45%, #7a6ff0 100%); filter: grayscale(1) contrast(.92) brightness(1.04); animation: old-color 4.6s ease-in-out infinite; }
.o-sun { position: absolute; right: 16%; top: 14%; width: 18px; height: 18px; border-radius: 50%; background: #ffdd57; }
.o-mtn { position: absolute; left: 0; right: 0; bottom: 0; height: 56%; background: linear-gradient(180deg, #8a7bff, #5a48d8); clip-path: polygon(0 100%, 34% 10%, 68% 78%, 100% 30%, 100% 100%); }
.o-scan { position: absolute; top: 0; bottom: 0; left: -18%; width: 14%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent); animation: old-scan 4.6s ease-in-out infinite; }
@keyframes old-scan { 0%,8% { left: -18%; } 55%,100% { left: 104%; } }
@keyframes old-color { 0%,8% { filter: grayscale(1) contrast(.92); } 60%,88% { filter: grayscale(0) contrast(1.02) saturate(1.12); } 100% { filter: grayscale(1) contrast(.92); } }

/* Anime: the realistic photo cross-fades into anime colour blocks */
.a-real { position: absolute; inset: 0; background: linear-gradient(180deg, #b8c6d8 0%, #dbe4ee 60%, #f0f4f8 100%); }
.a-real::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: #97a6ba; clip-path: polygon(0 100%, 32% 14%, 64% 72%, 100% 26%, 100% 100%); }
.a-cartoon { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, #6fc3ff 0%, #aee3ff 55%, #ffe9f0 100%); animation: anime-fade 5s ease-in-out infinite; }
.a-sun { position: absolute; right: 12%; top: 12%; width: 26px; height: 26px; border-radius: 50%; background: #ff5c8a; box-shadow: 0 0 0 6px rgba(255,92,138,.25); }
.a-cloud { position: absolute; left: 12%; top: 18%; width: 34px; height: 12px; border-radius: 20px; background: #fff; box-shadow: 30px 8px 0 -2px #fff; }
.a-hill { position: absolute; left: 0; right: 0; bottom: 0; height: 44%; background: #37d67a; clip-path: polygon(0 100%, 30% 12%, 60% 70%, 100% 20%, 100% 100%); }
.a-badge { position: absolute; right: 8px; bottom: 8px; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #fff; background: rgba(15,19,34,.78); padding: 2px 8px; border-radius: 20px; opacity: .35; animation: anime-fade 5s ease-in-out infinite; }
@keyframes anime-fade { 0%,20% { opacity: 0; } 50%,85% { opacity: 1; } 100% { opacity: 0; } }

/* Style Change: abstract painting hues keep cycling */
.s-art { position: absolute; inset: 0; background:
  radial-gradient(circle at 25% 30%, #ff7ad9 0 18%, transparent 40%),
  radial-gradient(circle at 75% 25%, #7cf0ff 0 16%, transparent 38%),
  radial-gradient(circle at 60% 75%, #ffe066 0 20%, transparent 45%),
  linear-gradient(135deg, #6d5efc, #4a7cf7);
  animation: style-hue 7s linear infinite; }
@keyframes style-hue { to { filter: hue-rotate(360deg); } }

/* AI Refine: the parameter sliders adjust themselves */
.d-refine { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 16px; }
.rf { display: flex; align-items: center; gap: 10px; }
.rf span { font-size: 10px; font-weight: 600; color: var(--ink-500); width: 52px; letter-spacing: .02em; }
.rf i { position: relative; flex: 1; height: 4px; border-radius: 4px; background: #edeff5; }
.rf b { position: absolute; left: 8%; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 1px 4px rgba(109,94,252,.5); animation: refine-slide 3.2s ease-in-out infinite; }
.d-refine .rf:nth-child(2) b { animation-delay: -1.1s; }
.d-refine .rf:nth-child(3) b { animation-delay: -2.2s; }
@keyframes refine-slide { 0%,100% { left: 8%; } 50% { left: 78%; } }
.rf-spark { position: absolute; right: 10px; top: 10px; color: var(--brand-500); font-size: 14px; animation: spark-blink 2.2s infinite; }
@keyframes spark-blink { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---------- Shared scene motifs ---------- */
/* Photo collage */
.d-collage { background: linear-gradient(135deg, #eef0ff, #f7f4ff); }
.d-collage i { position: absolute; border-radius: 8px; box-shadow: 0 6px 14px rgba(30,30,80,.16); animation: col-float 4.4s ease-in-out infinite; }
.d-collage .p1 { left: 10%; top: 20%; width: 32%; height: 44%; background: linear-gradient(140deg, #ff9a76, #ff5c8a); }
.d-collage .p2 { left: 35%; top: 36%; width: 32%; height: 44%; background: linear-gradient(140deg, #7cf0ff, #4a7cf7); animation-delay: -1.4s; }
.d-collage .p3 { left: 58%; top: 14%; width: 30%; height: 40%; background: linear-gradient(140deg, #ffe066, #ff9f43); animation-delay: -2.8s; }
@keyframes col-float { 0%,100% { transform: translateY(4px) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }

/* Vertical short video */
.d-reel { background: linear-gradient(160deg, #ffe9f2, #e8edff); }
.d-reel::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 8px; width: 54px; transform: translateX(-50%); border-radius: 9px; background: linear-gradient(180deg, #6d5efc, #4a7cf7); border: 2px solid #fff; box-shadow: 0 6px 16px rgba(40,40,100,.22); animation: reel-zoom 5s ease-in-out infinite; }
.d-reel::after { content: ""; position: absolute; left: 50%; bottom: 13px; height: 3px; width: 8px; transform: translateX(-50%); border-radius: 2px; background: rgba(255,255,255,.9); animation: reel-bar 5s ease-in-out infinite; }
@keyframes reel-zoom { 0%,100% { transform: translateX(-50%) scale(.97); } 50% { transform: translateX(-50%) scale(1.03); } }
@keyframes reel-bar { 0% { width: 6px; } 70%,100% { width: 28px; } }
.rl-card { position: absolute; left: 50%; top: 34px; width: 26px; height: 26px; margin-left: -13px; border-radius: 6px; background: #fff; box-shadow: 0 4px 10px rgba(20,20,60,.25); }
.rl-card::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 5px; height: 3px; border-radius: 2px; background: #ff5c8a; }
.rl-price { position: absolute; left: 50%; top: 30px; width: 30px; height: 24px; margin-left: -15px; border-radius: 5px; background: #fff; box-shadow: 0 4px 10px rgba(20,20,60,.25); }
.rl-price::before { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border-radius: 3px; background: #ffd166; }
.rl-price::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 5px; height: 4px; border-radius: 2px; background: #ff5c8a; animation: price-tag 2.6s ease-in-out infinite; }
@keyframes price-tag { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.rl-pin { position: absolute; left: 50%; top: 44%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 4px 8px rgba(0,0,0,.3); animation: pin-pulse 2.4s ease-out infinite; }
@keyframes pin-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.85), 0 4px 8px rgba(0,0,0,.3); } 70%,100% { box-shadow: 0 0 0 18px rgba(255,255,255,0), 0 4px 8px rgba(0,0,0,.3); } }
.rl-web { position: absolute; left: 50%; top: 30px; width: 40px; height: 28px; margin-left: -20px; border-radius: 5px; background: #fff; box-shadow: 0 4px 10px rgba(20,20,60,.22); }
.rl-web::before { content: ""; position: absolute; left: 5px; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: #ff6d5c; box-shadow: 7px 0 0 #ffc46b, 14px 0 0 #37d67a; }
.rl-web::after { content: ""; position: absolute; left: 5px; right: 5px; top: 15px; height: 3px; border-radius: 2px; background: #dfe4f2; box-shadow: 0 6px 0 #dfe4f2; }
.rl-apps { position: absolute; left: 50%; top: 30px; width: 12px; height: 12px; margin-left: -15px; border-radius: 4px; background: #fff; box-shadow: 18px 0 0 #ffd166, 0 18px 0 #7cf0ff, 18px 18px 0 #ff9ac1; animation: apps-pop 3.6s ease-in-out infinite; }
@keyframes apps-pop { 0%,100% { transform: scale(.94); } 50% { transform: scale(1.07); } }

/* Text to video */
.d-type { background: linear-gradient(135deg, #101528, #1b2240); }
.ty-caret { position: absolute; left: 14px; top: 42px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.35); animation: ty-grow 4s steps(6) infinite; }
.ty-caret::after { content: ""; position: absolute; right: -6px; top: -5px; width: 2px; height: 17px; background: #7cf0ff; animation: caret-blink .8s steps(1) infinite; }
@keyframes ty-grow { 0% { width: 6px; } 70%,100% { width: 38px; } }
@keyframes caret-blink { 50% { opacity: 0; } }
.ty-frames { position: absolute; right: 12px; top: 24px; width: 36px; height: 48px; border-radius: 5px; background: linear-gradient(160deg, #6d5efc, #4a7cf7); box-shadow: 0 6px 14px rgba(60,60,160,.4); opacity: 0; animation: ty-out 4s ease-in-out infinite; }
@keyframes ty-out { 0%,55% { opacity: 0; transform: translateY(6px) scale(.92); } 75%,95% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Multiple aspect ratios */
.d-ratio { background: linear-gradient(135deg, #f2f0ff, #e9f1ff); display: flex; align-items: center; justify-content: center; gap: 10px; }
.d-ratio .ra { border-radius: 5px; background: #fff; border: 2px solid rgba(109,94,252,.25); box-shadow: 0 4px 10px rgba(40,50,100,.14); animation: ratio-glow 4.5s ease-in-out infinite; }
.d-ratio .a1 { width: 44px; height: 26px; }
.d-ratio .a2 { width: 22px; height: 38px; animation-delay: -1.5s; }
.d-ratio .a3 { width: 30px; height: 30px; animation-delay: -3s; }
@keyframes ratio-glow { 0%,100% { border-color: rgba(109,94,252,.25); transform: translateY(2px); } 50% { border-color: rgba(109,94,252,.9); transform: translateY(-2px); } }

/* Document paper */
.d-paper { background: linear-gradient(135deg, #eef1f8, #f8f9fd); }
.d-paper::before { content: ""; position: absolute; left: 50%; top: 12px; width: 56px; height: 72px; margin-left: -28px; border-radius: 6px; background: #fff; box-shadow: 0 6px 16px rgba(30,40,80,.13); }
.d-paper::after { content: ""; position: absolute; left: calc(50% - 20px); top: 24px; width: 40px; height: 3px; border-radius: 2px; background: #dbe1ee; box-shadow: 0 9px 0 #dbe1ee, 0 18px 0 #dbe1ee, 0 27px 0 #dbe1ee; animation: dp-lines 4s ease-in-out infinite; }
@keyframes dp-lines { 0%,35% { opacity: 1; } 55%,85% { opacity: .35; } 100% { opacity: 1; } }
.dp-badge { position: absolute; right: 10px; bottom: 10px; width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; background: #4a7cf7; box-shadow: 0 4px 10px rgba(30,50,120,.25); }
.dp-badge.w { background: #2b579a; }
.dp-badge.x { background: #1d6f42; }
.dp-badge.swap { animation: badge-swap 6s steps(1) infinite; }
@keyframes badge-swap { 0%,33% { background: #2b579a; } 34%,66% { background: #1d6f42; } 67%,100% { background: #6d5efc; } }
.d-paper--lang .dp-badge { right: 10px; top: 14px; bottom: auto; width: auto; height: auto; background: transparent; box-shadow: none; }
.d-paper--lang .dp-badge b { position: absolute; right: 0; top: 0; font-size: 9px; padding: 2px 6px; border-radius: 20px; background: var(--brand-500); color: #fff; animation: lang-flip 3.6s ease-in-out infinite; }
.d-paper--lang .dp-badge b:last-child { animation-delay: -1.8s; }
@keyframes lang-flip { 0%,42% { opacity: 1; } 50%,92% { opacity: 0; } 100% { opacity: 1; } }
.dp-grid { position: absolute; left: calc(50% - 20px); top: 50px; width: 40px; height: 24px; background:
  repeating-linear-gradient(90deg, #cfd8ea 0 1px, transparent 1px 10px),
  repeating-linear-gradient(180deg, #cfd8ea 0 1px, transparent 1px 8px); animation: grid-in 4s ease-in-out infinite; }
@keyframes grid-in { 0%,25% { opacity: 0; } 50%,85% { opacity: 1; } 100% { opacity: 0; } }
.dp-shot { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 26px; border-radius: 4px; background: linear-gradient(140deg, #ffd166, #ff7a9c); box-shadow: 0 6px 12px rgba(60,40,90,.25); opacity: 0; animation: shot-pop 4.2s ease-in-out infinite; }
@keyframes shot-pop { 0%,30% { opacity: 0; transform: translate(6px,6px) scale(.8); } 55%,85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(6px,6px) scale(.8); } }

/* Video player */
.d-player { background: linear-gradient(180deg, #12162a, #1d2440); }
.d-player::before { content: ""; position: absolute; inset: 9px 9px 22px; border-radius: 7px; background: linear-gradient(135deg, #6d5efc, #4a7cf7); }
.d-player::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 9px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); }
.pl-prog { position: absolute; left: 9px; bottom: 9px; height: 3px; border-radius: 2px; background: #7cf0ff; box-shadow: 0 0 8px rgba(124,240,255,.6); animation: play-prog 5s linear infinite; }
@keyframes play-prog { 0% { width: 8%; } 88%,100% { width: calc(100% - 18px); } }
.pl-tag { position: absolute; right: 8px; bottom: 16px; font-size: 10px; font-weight: 800; color: #0f1322; background: #7cf0ff; padding: 2px 7px; border-radius: 20px; animation: hd-pop 4.2s infinite; }
.d-player--sharp::before { animation: enhance-sharp 4.2s ease-in-out infinite; }
.d-player--zip .pl-size { position: absolute; right: 12px; top: 14px; width: 7px; height: 44px; border-radius: 3px; background: #fff; transform-origin: bottom; animation: size-shrink 5s ease-in-out infinite; }
.d-player--zip .pl-size::after { content: ""; position: absolute; left: -13px; top: 0; width: 7px; height: 44px; border-radius: 3px; background: #7cf0ff; transform-origin: bottom; animation: size-shrink 5s ease-in-out .1s infinite; }
@keyframes size-shrink { 0%,15% { transform: scaleY(1); } 55%,100% { transform: scaleY(.32); } }
.d-player--audio::before { background: linear-gradient(135deg, #3c4470, #2a3152); animation: audio-dim 5s ease-in-out infinite; }
@keyframes audio-dim { 0%,100% { filter: brightness(.85); } 45%,75% { filter: brightness(.42); } }
.pl-wave { position: absolute; left: 50%; top: 38%; width: 44px; height: 26px; margin-left: -22px; display: flex; align-items: flex-end; gap: 4px; }
.pl-wave b { flex: 1; height: 8px; border-radius: 2px; background: #7cf0ff; box-shadow: 0 0 6px rgba(124,240,255,.8); transform-origin: bottom; animation: wave-jump .9s ease-in-out infinite; }
.pl-wave b:nth-child(2) { animation-delay: -.15s; } .pl-wave b:nth-child(3) { animation-delay: -.3s; }
.pl-wave b:nth-child(4) { animation-delay: -.45s; } .pl-wave b:nth-child(5) { animation-delay: -.6s; }
@keyframes wave-jump { 0%,100% { height: 6px; } 50% { height: 24px; } }
.d-player--merge::before { background: linear-gradient(90deg, #ff9a76 0 49.5%, #7cf0ff 50.5% 100%); animation: merge-join 4.6s ease-in-out infinite; }
@keyframes merge-join { 0%,12% { clip-path: inset(0 50% 0 0); } 50%,100% { clip-path: inset(0 0 0 0); } }
.pl-sub { position: absolute; left: 50%; bottom: 17px; width: 60px; height: 14px; margin-left: -30px; }
.pl-sub b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 8.5px; font-weight: 700; color: #0f1322; background: rgba(255,255,255,.94); border-radius: 3px; opacity: 0; }
.pl-sub b:nth-child(1) { animation: sub-a 6s infinite; }
.pl-sub b:nth-child(2) { animation: sub-b 6s infinite; }
.pl-sub b:nth-child(3) { animation: sub-c 6s infinite; }
@keyframes sub-a { 0%,33% { opacity: 1; } 34%,100% { opacity: 0; } }
@keyframes sub-b { 0%,33% { opacity: 0; } 34%,66% { opacity: 1; } 67%,100% { opacity: 0; } }
@keyframes sub-c { 0%,66% { opacity: 0; } 67%,100% { opacity: 1; } }

/* ---------- Store: coupons ---------- */
.micro { font-size: 12.5px; color: var(--ink-400); }
.page-title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.page-sub { margin-top: 14px; font-size: 16.5px; color: var(--ink-500); max-width: 760px; }
.btn-sm { padding: 7px 13px; font-size: 13.5px; border-radius: 10px; }
.btn.is-busy { opacity: .65; cursor: progress; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

.coupon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.coupon-group + .coupon-group { margin-top: 34px; }
.coupon-group .coupon-grid { margin-top: 0; }
.group-title { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.group-title svg { width: 17px; height: 17px; color: var(--brand-600); }
.cc-sub { margin: -6px 0 12px; font-size: 13px; line-height: 1.5; color: var(--ink-400); }

/* Skeleton card while products load (placeholder before the API responds; keeps the list from collapsing and the order button from being clicked by accident) */
.coupon-card.is-skeleton { pointer-events: none; }
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #eef0f6 25%, #f7f8fc 37%, #eef0f6 63%); background-size: 400% 100%; animation: sk-shimmer 1.4s ease infinite; }
.sk--tag { width: 84px; }
.sk--name { height: 20px; width: 62%; margin: 0 0 14px; }
.sk--line { margin-bottom: 10px; }
.sk--short { width: 58%; }
.sk--price { width: 74px; height: 18px; margin-left: auto; }
.sk--hero { height: 88px; margin: -22px -22px 18px; border-radius: 0; }
@keyframes sk-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
#order-form.is-loading .order-picked, #order-form.is-loading .field, #order-form.is-loading .agree { opacity: .55; }
.coupon-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 22px 0; box-shadow: var(--shadow-s); overflow: hidden; }
.coupon-card.is-featured { border-color: rgba(109,94,252,.45); box-shadow: 0 10px 30px rgba(109,94,252,.14); }
/* No illustration on top of a coupon card: the type row (icon + type name) shares a line with the badge, keeping the card light */

.cc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cc-type { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--brand-600); }
.cc-type svg { width: 15px; height: 15px; }
.cc-name { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 12px; }
.cc-benefits { display: grid; gap: 8px; flex: 1; }
.cc-benefits li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink-500); }
.cc-benefits li svg { position: absolute; left: 0; top: 3px; width: 14px; height: 14px; color: var(--ink-400); }
.cc-benefits .bn--grain svg { color: var(--brand-500); }
.cc-benefits .bn--cloud svg { color: var(--blue-500); }
.cc-benefits .bn--vip svg { color: var(--gold-500); }
.cc-benefits .bn--cash svg { color: var(--green-500); }
.cc-stub { position: relative; margin: 18px -22px 0; padding: 16px 22px; border-top: 2px dashed var(--line); display: flex; align-items: center; gap: 12px; background: #fbfbff; }
.cc-stub::before, .cc-stub::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.cc-stub::before { left: -11px; }
.cc-stub::after { right: -11px; }
/* Icon in front of the stub value: makes “500 Computinglets / 2 GB / $5.00” readable at a glance */
.cc-stub-icon { display: inline-flex; align-items: center; flex: none; }
.cc-stub-icon svg { width: 22px; height: 22px; }
.cc-stub-icon--particle svg { color: var(--brand-500); }
.cc-stub-icon--space_capacity svg { color: var(--blue-500); }
.cc-stub-icon--membership svg { color: var(--gold-500); }
.cc-stub-icon--money svg { color: var(--green-500); }
.cc-stub-icon--combo svg { color: var(--brand-600); }
.cc-stub-value { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--brand-600); line-height: 1; }
.cc-stub-unit { font-size: 12.5px; color: var(--ink-400); margin-left: -4px; }
.cc-stub-label { font-size: 13px; font-weight: 700; color: var(--brand-600); }
.cc-price { margin-left: auto; text-align: right; font-size: 17px; font-weight: 800; }
.cc-price s { display: block; font-size: 12px; font-weight: 500; color: var(--ink-400); }
.coupon-card .js-pick { flex: none; }

.order-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; margin-top: 34px; align-items: start; }
.order-picked { display: grid; gap: 5px; padding: 14px 16px; margin-bottom: 22px; border: 1px solid rgba(109,94,252,.22); border-radius: var(--radius-s); background: var(--grad-brand-soft); }
.order-picked strong { font-size: 17px; }
.field { margin-bottom: 18px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: 7px; }
.input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-s); font: inherit; font-size: 15px; color: var(--ink-900); background: #fff; }
.input:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(109,94,252,.12); }
.field-hint { margin-top: 6px; font-size: 12.5px; color: var(--ink-400); }
.field-row { display: flex; gap: 16px; align-items: flex-end; }
.field-row select.input { flex: 1; }
.order-total { text-align: right; }
.order-total strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-500); margin: 4px 0 18px; }
.agree input { margin-top: 2px; }
.form-note { min-height: 20px; margin-top: 10px; font-size: 13.5px; color: var(--ink-500); }
.form-note.is-error { color: #d92d20; }
.order-side h3 { font-size: 18px; margin-bottom: 18px; }
.pickup-steps { display: grid; gap: 16px; }
.pickup-steps li { display: flex; gap: 12px; }
.step-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--grad-brand); }
.pickup-steps strong { font-size: 15px; }
.pickup-steps p { font-size: 13.5px; color: var(--ink-500); margin-top: 2px; }
.order-side .notice { margin-top: 20px; }
.order-side .notice div { font-size: 13.5px; color: var(--ink-700); }
.order-done { margin-top: 22px; text-align: center; padding: 34px 24px; }
.done-icon { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); }
.done-icon svg { width: 26px; height: 26px; color: #fff; }
.order-done h3 { font-size: 22px; margin-bottom: 10px; }
.order-done p { max-width: 640px; margin: 0 auto; color: var(--ink-500); }
.done-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
/* Coupon code shown after a successful payment */
.done-code { margin-top: 14px !important; font-size: 15px; font-weight: 700; color: var(--ink-900) !important;
  letter-spacing: .08em; background: var(--bg-soft, #f4f3ff); border: 1px dashed var(--brand-500);
  border-radius: var(--radius-s, 10px); padding: 10px 16px; display: inline-block; }
/* Products not purchasable on the website (backend buyrule=false) */
.coupon-card.is-off { opacity: .55; }
.coupon-card.is-off .js-pick { background: var(--ink-400); border-color: var(--ink-400); cursor: not-allowed; }
.notice-card { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; }
.notice-card h3 { font-size: 18px; margin-bottom: 8px; }
.notice-card p { color: var(--ink-500); max-width: 640px; }
.notice-art { flex: none; width: 44px; height: 44px; color: var(--brand-500); }

@media (max-width: 1024px) {
  .coupon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .coupon-grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; align-items: stretch; }
  .order-total { text-align: left; }
  .notice-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- Order dialog ---------- */
[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(12,14,26,.55); backdrop-filter: blur(3px); animation: fade-in .18s ease; }
.modal-card { position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 18px; padding: 28px 26px 24px; box-shadow: 0 30px 70px rgba(12,14,26,.28); animation: modal-in .22s cubic-bezier(.2,.8,.3,1); }
.modal-close { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; font-size: 22px; line-height: 1; color: var(--ink-400); cursor: pointer; }
.modal-close:hover { background: #f4f5fa; color: var(--ink-700); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }

.ck-steps { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.ck-steps li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-400); }
.ck-steps b { width: 20px; height: 20px; flex: none; border-radius: 50%; background: #eef0f6; color: var(--ink-400); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.ck-steps li.is-active { color: var(--brand-600); font-weight: 700; }
.ck-steps li.is-active b { background: var(--grad-brand); color: #fff; }
.ck-steps li.is-done b { background: #d8f3e3; color: #1a7f4b; }

.ck-panel[hidden] { display: none; }
.ck-title { font-size: 19px; font-weight: 800; letter-spacing: -.015em; margin-bottom: 12px; }
.ck-sub { font-size: 13.5px; color: var(--ink-500); margin-bottom: 14px; }
.ck-note { font-size: 12.5px; color: var(--ink-400); margin: 12px 0 18px; }
.ck-error { min-height: 18px; font-size: 12.5px; color: #d0342c; margin: 8px 0 0; }

.ck-summary { margin: 0 0 4px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ck-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.ck-summary > div:last-child { border-bottom: 0; }
.ck-summary dt { color: var(--ink-400); }
.ck-summary dd { margin: 0; font-weight: 600; color: var(--ink-700); text-align: right; word-break: break-all; }
.ck-summary .is-total { background: #f7f8fc; }
.ck-summary .is-total dd { font-size: 17px; font-weight: 800; }

.ck-captcha { position: relative; margin-bottom: 12px; }
.cpt-frame { display: block; width: 100%; height: 380px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ck-cpt-loading { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 12.5px; color: var(--ink-400); background: #fff; border-radius: 12px; }
.ck-cpt-loading .ck-spinner { width: 24px; height: 24px; }
.ck-refresh { position: absolute; right: 8px; top: 8px; z-index: 3; width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--ink-500); font-size: 16px; cursor: pointer; box-shadow: var(--shadow-s); }
.ck-refresh:hover { color: var(--brand-600); }
.ck-busy { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(255,255,255,.94); border-radius: 18px; }
.ck-busy strong { font-size: 13.5px; font-weight: 600; color: var(--ink-500); }
.ck-busy-cancel { border: 0; background: transparent; color: var(--ink-400); font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.ck-busy-cancel[hidden] { display: none; }

/* Pending-payment bar shown after the dialog is closed */
.order-pending { margin: 24px 0 0; padding: 16px 18px; border: 1px dashed var(--brand-500); border-radius: var(--radius-m); background: #f6f5ff; }
.order-pending[hidden] { display: none; }
.order-pending p { margin: 0; font-size: 13.5px; color: var(--ink-500); }
.order-pending .ck-actions { margin-top: 12px; justify-content: flex-start; }
.order-pending .ck-actions .btn-primary { margin-left: 0; }

.ck-code { display: flex; gap: 8px; margin-bottom: 4px; }
.ck-box { width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 22px; font-weight: 700; text-align: center; color: var(--ink-700); }
.ck-box:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(109,94,252,.14); }
.ck-demo { font-size: 12.5px; color: #1a7f4b; background: #eafaf1; border-radius: 8px; padding: 7px 10px; margin: 8px 0 0; }

.ck-spinner { width: 40px; height: 40px; margin: 6px auto 16px; border-radius: 50%; border: 3px solid #e8eaf3; border-top-color: var(--brand-500); animation: ck-spin .8s linear infinite; }
@keyframes ck-spin { to { transform: rotate(360deg); } }
.ck-panel[data-ck-panel="4"] { text-align: center; }
.ck-panel[data-ck-panel="4"] .ck-sub { margin-bottom: 0; }

/* Step 5: waiting for payment (centred, spinner, polling status, two equal-width buttons) */
.ck-panel[data-ck-panel="5"] { text-align: center; }
.ck-panel[data-ck-panel="5"] .ck-sub { margin-bottom: 6px; }
.ck-poll { font-size: 12.5px; color: var(--ink-400); margin: 0; }
.ck-poll[hidden] { display: none; }
.ck-panel[data-ck-panel="5"] .ck-error { margin-top: 10px; }
.ck-panel[data-ck-panel="5"] .ck-actions { justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.ck-panel[data-ck-panel="5"] .ck-actions .btn { flex: 1 1 auto; min-width: 150px; }
.ck-panel[data-ck-panel="5"] .ck-actions .btn-primary { margin-left: 0; }
.ck-panel[data-ck-panel="5"] .ck-note { margin: 16px 0 0; }

.ck-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.ck-actions .btn-primary { margin-left: auto; }
.ck-actions .btn-text { border: 0; background: transparent; color: var(--ink-400); font-size: 12.5px; padding: 0; cursor: pointer; }
.ck-actions .btn-text:disabled { cursor: default; opacity: .8; }
.qty-fixed { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-700); }
.qty-fixed em { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; font-style: normal; color: var(--ink-400); }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .section { padding: 72px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; max-width: 560px; }
  .app-hint { display: none; }
  .stats { margin-top: 8px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; }
}
@media (max-width: 860px) {
  .nav, .header-actions .lang-menu { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .app-window-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { flex-direction: row; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line-soft); gap: 10px; }
  .app-side .side-gear { margin-top: 0; margin-left: auto; }
  .app-side { display: flex; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 10px; }
  .app-side i { width: 40px; margin: 0; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 52px 0; }
  .plan { padding: 24px 20px; }
}

/* Term help marker: the small question mark next to a Computinglet mention; shows a one-line explanation on hover or focus (tap on touch screens) */
.cl-help { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin: 0 2px; vertical-align: 2px; border-radius: var(--radius-pill);
  border: 1px solid var(--brand-500); color: var(--brand-600); background: rgba(109,94,252,.07);
  font-size: 10px; font-weight: 700; line-height: 1; cursor: help; transition: background .15s, color .15s; }
.cl-help:hover, .cl-help:focus { background: var(--brand-500); color: #fff; outline: none; }
.cl-help-pop { position: absolute; left: 50%; bottom: calc(100% + 9px); z-index: 30;
  transform: translate(-50%, 4px); width: max-content; max-width: min(270px, 74vw);
  padding: 10px 12px; border-radius: var(--radius-s); background: var(--ink-900); color: #fff;
  font-size: 12.5px; font-weight: 500; line-height: 1.55; text-align: left; letter-spacing: 0;
  box-shadow: var(--shadow-l); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s, transform .16s; }
.cl-help-pop::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px;
  border: 5px solid transparent; border-top-color: var(--ink-900); }
.cl-help:hover .cl-help-pop, .cl-help:focus .cl-help-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Term tooltip layer: fixed-positioned on body so a coupon card’s overflow:hidden cannot clip it */
.cl-help-pop.is-floating { position: fixed; left: 0; top: 0; bottom: auto; z-index: 400; margin: 0;
  max-width: min(280px, 84vw); opacity: 0; visibility: hidden; pointer-events: none;
  transform: none; transition: opacity .16s; }
.cl-help-pop.is-floating.is-on { opacity: 1; visibility: visible; }
.cl-help-pop.is-floating::after { content: ""; position: absolute; left: var(--ax, 50%);
  margin-left: -5px; top: 100%; border: 5px solid transparent; border-top-color: var(--ink-900); }
.cl-help-pop.is-floating.is-below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ink-900); }
.has-clhelp .cl-help > .cl-help-pop { display: none; }
