/* ===== Seliq website =====
 * Direction: Apple-style minimal. One loud moment (the hero headline gets
 * "selected" and the real bar pops above it); everything else stays quiet.
 * Motif: the macOS text-selection highlight (--selection).
 */
:root {
  --paper: #ffffff;
  --mist: #f5f6f8;       /* panels, window chrome */
  --ink: #16181d;
  --graphite: #5d6271;
  --hairline: #e3e5ea;
  --selection: #c3d8ff;  /* macOS-style selection highlight */
  --blue: #2f62e8;       /* Seliq blue, from the app icon */
  --seg-bg: #e9eaee;
  --seg-on: #ffffff;
  --shadow-window: 0 1px 1px rgba(22,24,29,.04), 0 24px 48px -12px rgba(22,24,29,.18), 0 60px 120px -40px rgba(47,98,232,.22);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --measure: 36em;
}
body[data-mode="dark"] {
  --paper: #000000;
  --mist: #15171c;
  --ink: #f2f3f6;
  --graphite: #9097a6;
  --hairline: #262a33;
  --selection: #2b4a8e;
  --blue: #6b97ff;
  --seg-bg: #1c1f26;
  --seg-on: #3a3e49;
  --shadow-window: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px -20px rgba(0,0,0,.8), 0 60px 140px -40px rgba(70,110,255,.28);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
body[data-lang="ko"] {
  font-family: "Pretendard Variable", Pretendard, var(--font);
}
::selection { background: var(--selection); color: inherit; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .88em; background: var(--mist); padding: .08em .38em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ===== ambient background: aurora + scroll particles ===== */
/* --sp = scroll progress 0..1, set by app.js; the aurora drifts as you scroll */
#bg-fx {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none;
  --sp: 0;
  background:
    radial-gradient(60vw 50vh at calc(88% - var(--sp) * 40%) calc(8% + var(--sp) * 45%), rgba(156, 192, 255, .26), transparent 70%),
    radial-gradient(55vw 45vh at calc(6% + var(--sp) * 30%) calc(72% - var(--sp) * 40%), rgba(206, 188, 255, .2), transparent 70%),
    radial-gradient(45vw 40vh at calc(50% + var(--sp) * 20%) 108%, rgba(128, 206, 255, .12), transparent 70%);
}
body[data-mode="dark"] #bg-fx {
  background:
    radial-gradient(60vw 50vh at calc(88% - var(--sp) * 40%) calc(8% + var(--sp) * 45%), rgba(53, 101, 232, .22), transparent 70%),
    radial-gradient(55vw 45vh at calc(6% + var(--sp) * 30%) calc(72% - var(--sp) * 40%), rgba(124, 92, 255, .16), transparent 70%),
    radial-gradient(45vw 40vh at calc(50% + var(--sp) * 20%) 108%, rgba(40, 150, 230, .1), transparent 70%);
}

/* ===== buttons & links ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  transition: background-color .2s ease, transform .15s ease;
  cursor: pointer;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2552d0; }
body[data-mode="dark"] .btn-primary { color: #04102e; }
body[data-mode="dark"] .btn-primary:hover { background: #8aadff; }
.btn-sm { padding: 6px 14px; font-size: 13.5px; }
.text-link { color: var(--blue); font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  max-width: 1080px; margin: 0 auto; padding: 10px 24px;
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.brand img { border-radius: 6px; }
.nav-links { display: flex; gap: 24px; font-size: 13.5px; color: var(--graphite); }
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: 999px; border: 0;
  background: transparent; color: var(--graphite);
  font: inherit; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--mist); color: var(--ink); }
.lang-select { appearance: none; -webkit-appearance: none; padding: 0 12px; text-align: center; }
.lang-select option { color: var(--ink); background: var(--paper); }
.ic-sun { display: none; }
body[data-mode="dark"] .ic-sun { display: block; }
body[data-mode="dark"] .ic-moon { display: none; }

/* ===== hero ===== */
.hero {
  max-width: 1080px; margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) 24px clamp(40px, 6vw, 72px);
  text-align: center;
}
.hero-icon {
  display: block; margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px -8px rgba(47,98,232,.45);
}
.hero-title {
  /* room above the first line for the bar that pops out of it */
  margin-top: clamp(76px, 9vw, 96px);
  font-size: clamp(50px, 8.6vw, 104px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.045em;
}
.hero-sel-wrap { position: relative; display: inline-block; }
.hero-sel {
  /* the selection highlight sweeps across on load */
  background: linear-gradient(var(--selection), var(--selection)) left center / 0% 100% no-repeat;
  border-radius: .1em;
  padding: 0 .06em;
  margin: 0 -.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: sel-sweep .75s cubic-bezier(.65, 0, .35, 1) .35s forwards;
}
@keyframes sel-sweep { to { background-size: 100% 100%; } }
/* the product name in the headline: Seliq blue→violet, with one sheen that
   passes over it right after the bar pops (ties in with the sparkles) */
.brand-name {
  --b1: #2f62e8; --b2: #7a5cf5; --sheen: #c9d6ff;
  background: linear-gradient(100deg, var(--b1) 0%, var(--b2) 40%, var(--sheen) 50%, var(--b2) 60%, var(--b1) 100%) 100% 0 / 250% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: name-sheen 1.4s cubic-bezier(.45, 0, .2, 1) 1.7s forwards;
}
body[data-mode="dark"] .brand-name { --b1: #7ea2ff; --b2: #b49bff; --sheen: #ffffff; }
@keyframes name-sheen { to { background-position: 0% 0; } }
/* 광택이 지나간 끝에서 반짝 */
.brand-name { position: relative; }
.brand-name::after {
  content: "✦"; position: absolute; top: -.26em; inset-inline-end: -.6em;
  font-size: .42em; line-height: 1;
  /* 제목의 좁은 자간(-.045em)을 물려받으면 글리프가 칸보다 넓어져 오른쪽이 잘린다 — 자간 0 + 여유 칸 */
  letter-spacing: 0; padding: .12em;
  --spark: #ffb800;
  /* 금속 광택: 진한 금 → 흰 하이라이트 → 진한 금 그라디언트가 흐름 */
  background: linear-gradient(120deg, #e08a00 0%, var(--spark) 35%, #fff8d6 50%, var(--spark) 65%, #e08a00 100%) 100% 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: 0; transform: scale(0) rotate(-45deg);
  animation:
    name-twinkle .9s cubic-bezier(.3, 1.6, .5, 1) 2.9s forwards,
    name-glow 2.4s ease-in-out 3.8s infinite,
    spark-gloss 2.4s linear 3.8s infinite;
}
@keyframes spark-gloss { from { background-position: 100% 0; } to { background-position: -50% 0; } }
body[data-mode="dark"] .brand-name::after { --spark: #ffd75e; }
@keyframes name-twinkle {
  60% { opacity: 1; transform: scale(1.3) rotate(15deg); }
  to  { opacity: 1; transform: scale(1) rotate(0); }
}
/* 등장 후 은은하게 빛나며 숨쉬기 */
@keyframes name-glow {
  0%, 100% { opacity: 1; transform: scale(1);    filter: drop-shadow(0 0 2px var(--spark)) drop-shadow(0 0 6px rgba(255, 184, 0, .5)); }
  50%      { opacity: 1; transform: scale(1.15) rotate(12deg); filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 14px var(--spark)); }
}
.hero .lead {
  max-width: var(--measure); margin: 28px auto 0;
  font-size: clamp(19px, 2vw, 22px); line-height: 1.45;
  color: var(--graphite); letter-spacing: -.01em;
}
.cta-row { display: flex; gap: 28px; align-items: center; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ===== shared block rhythm ===== */
.block { max-width: 1080px; margin: 0 auto; padding: clamp(88px, 12vw, 152px) 24px 0; }
.block-head { max-width: 760px; margin: 0 auto; text-align: center; }
.block-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06; font-weight: 700; letter-spacing: -.035em;
}
.block-sub {
  max-width: var(--measure); margin: 18px auto 0;
  font-size: 19px; line-height: 1.5; color: var(--graphite); letter-spacing: -.005em;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
/* 소개 문단은 한 줄에 한 문장 (app.js가 문장마다 .sentence로 감쌈) */
.sentence { display: block; }
/* 언어별 줄바꿈 규칙 */
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; } /* 어절 단위 */
:lang(ja) { word-break: auto-phrase; line-break: strict; }    /* 문절 단위(Chrome 119+), 금칙 처리 */
:lang(zh) { line-break: strict; }                              /* 금칙 처리 */
:lang(de) :is(p, h1, h2, h3, li) { hyphens: auto; }            /* 긴 합성어 하이픈 */
:lang(ja) .hero-title, :lang(zh) .hero-title,
:lang(ja) .block-head h2, :lang(zh) .block-head h2 { letter-spacing: -.01em; }

/* ===== live demo window ===== */
.mac-window {
  max-width: 940px; margin: 56px auto 0;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow-window);
  overflow: hidden;
  text-align: start;
}
.mac-titlebar {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 40px; background: var(--mist);
  border-bottom: 1px solid var(--hairline);
}
.lights { position: absolute; left: 16px; display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; }
.lights .r { background: #ff5f57; } .lights .y { background: #febc2e; } .lights .g { background: #28c840; }
.mac-title { font-size: 13px; font-weight: 600; color: var(--graphite); }
.mac-body {
  padding: clamp(28px, 5vw, 56px) clamp(24px, 6vw, 72px) clamp(32px, 5vw, 60px);
  font-size: clamp(17px, 1.7vw, 20px); line-height: 1.65;
}
.mac-body p { max-width: 38em; }
.mac-body p + p { margin-top: 1em; }
.try-result { color: var(--graphite); font-size: .85em; padding-top: .6em; }
.try-result input {
  margin-inline-start: 6px; padding: 7px 12px; border-radius: 8px; width: min(260px, 100%);
  border: 1px solid var(--hairline); background: var(--mist); color: var(--ink);
  font: inherit; font-size: 15px;
}
.try-result input:focus { outline: 3px solid color-mix(in srgb, var(--blue) 30%, transparent); border-color: var(--blue); }

/* ===== two benefits ===== */
.benefits {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px);
  max-width: 940px;
}
.benefit h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.benefit p { margin-top: 12px; color: var(--graphite); max-width: 30em; }
.benefit .text-link { display: inline-block; margin-top: 14px; }

/* ===== customize: one stage, two controls ===== */
.stage {
  position: relative;
  max-width: 940px; margin: 56px auto 0;
  padding: clamp(56px, 8vw, 88px) 24px clamp(48px, 7vw, 72px);
  border-radius: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  overflow: hidden;
  /* a calm macOS-wallpaper wash so Glass has something to blur */
  background:
    radial-gradient(90% 120% at 0% 0%, #cddfff 0%, transparent 60%),
    radial-gradient(80% 120% at 100% 100%, #ecdcff 0%, transparent 60%),
    radial-gradient(60% 80% at 92% 8%, #ffe7d6 0%, transparent 55%),
    #eef1f8;
}
body[data-mode="dark"] .stage {
  background:
    radial-gradient(90% 120% at 0% 0%, #1b2f66 0%, transparent 60%),
    radial-gradient(80% 120% at 100% 100%, #34205e 0%, transparent 60%),
    radial-gradient(60% 80% at 92% 8%, #3b2a2a 0%, transparent 55%),
    #0d0f16;
}
.skeleton { width: min(520px, 100%); display: flex; flex-direction: column; gap: 14px; }
.sk-row { display: flex; justify-content: center; align-items: center; gap: 8px; }
.sk-row i { height: 10px; border-radius: 5px; background: rgba(22,24,29,.13); }
.sk-row b { width: 20%; height: 24px; border-radius: 5px; background: var(--selection); box-shadow: inset 0 0 0 1px rgba(47,98,232,.25); }
body[data-mode="dark"] .sk-row i { background: rgba(255,255,255,.14); }

/* 라벨 | 선택 묶음 2열 격자 — 라벨은 오른쪽, 묶음은 왼쪽 끝을 맞춘다(subgrid로 줄이 열을 공유). 묶음은 한 줄(줄바꿈 없음) */
.controls { max-width: 100%; margin: 32px auto 0; display: grid; grid-template-columns: max-content max-content; justify-content: center; align-items: center; column-gap: 16px; row-gap: 14px; }
.control-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; scroll-margin-top: 120px; }
.control-row > .segmented, .control-main { justify-self: start; }
.control-row .segmented { flex-wrap: nowrap; justify-content: flex-start; }
.control-main { display: flex; align-items: center; gap: 14px; }
.control-label { justify-self: end; text-align: end; font-size: 13.5px; font-weight: 600; color: var(--graphite); }
.segmented { display: inline-flex; flex-wrap: wrap; justify-content: center; max-width: 100%; padding: 3px; gap: 2px; border-radius: 10px; background: var(--seg-bg); }
.seg {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border: 0; border-radius: 8px;
  background: transparent; color: var(--graphite);
  font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1;
  cursor: pointer; transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.seg:hover { color: var(--ink); }
.seg[aria-selected="true"], .seg[aria-pressed="true"] {
  background: var(--seg-on); color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.06);
}
.swatch { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.swatch-auto { background: linear-gradient(135deg, #fff 0 50%, #1a1f33 50% 100%); box-shadow: inset 0 0 0 1px rgba(120,135,170,.45); }
.swatch-glass { background: linear-gradient(180deg, #fff, #dfe6f4); box-shadow: inset 0 0 0 1px rgba(120,135,170,.45); }
.swatch-midnight { background: linear-gradient(180deg, #2a3150, #0f1326); }
.swatch-chrome { background: linear-gradient(180deg, #fff 0%, #c6ccdc 48%, #9aa2ba 52%, #eef1f8 100%); box-shadow: inset 0 0 0 1px rgba(120,135,170,.5); }
.replay {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--blue);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.replay:hover { background: color-mix(in srgb, var(--blue) 10%, transparent); }
.replay:active svg { transform: rotate(-90deg); transition: transform .2s ease; }
.control-note { grid-column: 2 / -1; justify-self: start; max-width: 34em; margin-top: -6px; text-align: start; font-size: 14px; color: var(--graphite); }
.control-note:empty { display: none; }

/* ===== the seliq bar (mirrors the app: BarView / BarBackground) ===== */
/* .sb = wrapper (tooltip + capsule), .seliq-bar = the capsule, .sb-row = 6 cells of 36x30 pt.
   Theme tokens come from body[data-bar] = the resolved theme (auto -> glass / midnight by page mode). */
body[data-bar="glass"] {
  --sb-bg: rgba(255,255,255,.62); --sb-fg: #1c1c1e; --sb-blur: blur(20px) saturate(1.8);
  --sb-shadow: 0 8px 24px rgba(20,30,60,.18), inset 0 0 0 .5px rgba(255,255,255,.8), inset 0 1px 0 rgba(255,255,255,.7);
  --sb-hl: rgba(0,0,0,.12); --sb-hl-shadow: none;
  --sb-shine-band: linear-gradient(90deg, transparent, rgba(77,148,255,.55), rgba(255,255,255,.95), rgba(77,148,255,.55), transparent);
  --sb-shine-rim: rgb(77,148,255);
  --gv-dark: rgba(0,0,0,.18); --gv-light: rgba(255,255,255,.7);
}
body[data-bar="glass"][data-mode="dark"] {
  --sb-bg: rgba(52,54,64,.55); --sb-fg: #f5f5f7;
  --sb-shadow: 0 8px 24px rgba(0,0,0,.42), inset 0 0 0 .5px rgba(255,255,255,.22), inset 0 1px 0 rgba(255,255,255,.16);
  --sb-hl: rgba(255,255,255,.12);
  --sb-shine-band: linear-gradient(90deg, transparent, rgba(255,255,255,.85), #fff, rgba(255,255,255,.85), transparent);
  --sb-shine-rim: #fff;
  --gv-dark: rgba(0,0,0,.45); --gv-light: rgba(255,255,255,.14);
}
body[data-bar="midnight"] {
  --sb-bg: rgba(14,17,30,.8); --sb-fg: #f5f5f7; --sb-blur: blur(24px) saturate(1.4);
  --sb-shadow: 0 8px 24px rgba(0,0,0,.42), inset 0 0 0 .5px rgba(255,255,255,.14);
  --sb-hl: rgba(255,255,255,.18); --sb-hl-shadow: none;
  --sb-shine-band: linear-gradient(90deg, transparent, rgba(255,255,255,.85), #fff, rgba(255,255,255,.85), transparent);
  --sb-shine-rim: #fff;
  --gv-dark: rgba(0,0,0,.45); --gv-light: rgba(255,255,255,.14);
}
body[data-bar="chrome"] {
  --sb-bg: linear-gradient(180deg, #fcfcff 0%, #dbe0e8 49%, #b8bfcc 51%, #e0e6ed 100%); --sb-fg: #1c1c1e; --sb-blur: none;
  --sb-shadow: 0 2px 5px rgba(0,0,0,.22);
  --sb-hl: linear-gradient(180deg, #6bb3ff 0%, #1f73f2 50%, #0d57d1 100%); --sb-hl-shadow: inset 0 0 0 .5px rgba(255,255,255,.45);
  --sb-shine-band: linear-gradient(90deg, transparent, rgba(77,148,255,.55), rgba(255,255,255,.95), rgba(77,148,255,.55), transparent);
  --sb-shine-rim: rgb(77,148,255);
  --gv-dark: rgba(89,102,122,.45); --gv-light: rgba(255,255,255,.9);
}

.sb {
  position: relative; display: inline-flex; flex-direction: column; align-items: flex-start;
  font-family: var(--font); font-size: 13px; font-weight: 500; line-height: 1.2; letter-spacing: normal;
  white-space: nowrap; user-select: none; -webkit-user-select: none;
}
body[data-lang="ko"] .sb { font-family: "Pretendard Variable", Pretendard, var(--font); }
.seliq-bar, .sb-tip {
  background: var(--sb-bg); color: var(--sb-fg);
  -webkit-backdrop-filter: var(--sb-blur); backdrop-filter: var(--sb-blur);
  box-shadow: var(--sb-shadow);
}
.seliq-bar {
  position: relative; display: flex; align-items: center;
  /* push: the capsule widens by --push (set by app.js) while the cells stay put */
  margin-inline: calc(var(--push, 0px) / -2); padding-inline: calc(4px + var(--push, 0px) / 2);
  height: var(--bh, 36px); border-radius: var(--br, 18px); transform-origin: 50% 100%;
  transition: width .4s cubic-bezier(.3,.9,.3,1), height .4s cubic-bezier(.3,.9,.3,1), border-radius .4s cubic-bezier(.3,.9,.3,1), background .25s ease, color .25s ease, box-shadow .25s ease,
    margin-inline var(--spring-push-dur, .4s) var(--spring-push, cubic-bezier(.34,1.4,.64,1)),
    padding-inline var(--spring-push-dur, .4s) var(--spring-push, cubic-bezier(.34,1.4,.64,1));
}
.sb-row { position: relative; display: flex; align-items: center; height: 36px; transition: opacity .15s ease; }
.sb-item {
  position: relative; flex: none; width: 36px; height: 30px; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: scale .08s ease-out;
}
.sb-cell {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  transition: translate var(--spring-push-dur, .4s) var(--spring-push, cubic-bezier(.34,1.4,.64,1)), transform .2s ease-out;
}
.sb-glyph {
  display: inline-flex; transition: scale var(--spring-glyph-dur, .4s) var(--spring-glyph, cubic-bezier(.34,1.4,.64,1)), transform .2s ease-out, color .12s ease;
}
.sb-glyph svg { display: block; }
body[data-bar="chrome"] .sb-item.is-hover .sb-glyph { color: #fff; }

/* sliding highlight pill (BarHighlight) */
.sb-hl {
  position: absolute; left: 0; top: 3px; height: 30px; width: var(--hw, 36px); border-radius: 999px;
  background: var(--sb-hl); box-shadow: var(--sb-hl-shadow); opacity: 0; overflow: hidden; pointer-events: none;
  translate: var(--hx, 0px) var(--hy, 0px); scale: var(--hs, 1);
  transition: translate .18s cubic-bezier(.25,.9,.3,1), width .18s cubic-bezier(.25,.9,.3,1), scale .08s ease-out, opacity .18s ease-out, transform .2s ease-out;
}
/* hover: shine (ShineRing + ShineSweep) */
.sb-hl.is-shine { box-shadow: var(--sb-hl-shadow), inset 0 0 0 1px rgba(255,255,255,.9), inset 0 0 6px 1px rgba(10,122,255,.55); }
.sb-hl::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 22.5%; width: 55%; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
}
.sb-hl.fx-sweep::after { animation: sb-sweep .5s linear forwards; }
@keyframes sb-sweep { from { opacity: 1; translate: -164% 0; } to { opacity: 1; translate: 164% 0; } }

/* hover: bounce / wiggle (glyph) and jelly (cell + pill) — keyframes from GlyphFX / CellFX */
.fx-bounce { animation: sb-bounce .45s forwards; }
@keyframes sb-bounce {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-5px) scale(1.18); }
  55% { transform: translateY(1px) scale(.96); }
  75% { transform: translateY(-2px) scale(1.06); }
  100% { transform: translateY(0) scale(1.08); }
}
.fx-wiggle { animation: sb-wiggle .5s forwards; }
@keyframes sb-wiggle {
  0% { transform: rotate(0) scale(1.12); }
  20% { transform: rotate(-12deg) scale(1.15); }
  40% { transform: rotate(10deg) scale(1.15); }
  60% { transform: rotate(-6deg) scale(1.13); }
  80% { transform: rotate(3deg) scale(1.12); }
  100% { transform: rotate(0) scale(1.12); }
}
.fx-jelly { animation: sb-jelly .55s forwards; }
@keyframes sb-jelly {
  0% { transform: scale(1, 1); }
  25% { transform: scale(1.25, .85); }
  50% { transform: scale(.88, 1.18); }
  70% { transform: scale(1.1, .95); }
  85% { transform: scale(.97, 1.04); }
  100% { transform: scale(1.08, 1.08); }
}

/* tooltip capsule (24pt, 11pt text, 4pt above the bar) */
.sb-tip {
  position: absolute; bottom: calc(100% + 4px); left: 0; z-index: 3;
  display: flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500; line-height: 1; pointer-events: none;
  opacity: 0; transition: opacity .12s ease-out;
}
.sb-tip.on { opacity: 1; }
.sb-tip { translate: -50% var(--tipy, 0px); }
.sb-tip.lift { translate: -50% calc(var(--tipy, 0px) - 8px); }
.sb-below .sb-tip { bottom: auto; top: calc(100% + 4px); }
.sb-below .sb-tip.lift { translate: -50% 8px; }
body[data-bar="chrome"] .sb-tip { box-shadow: var(--sb-shadow), inset 0 0 0 .75px #a5abb8; }

/* mirror chrome: silver rim + inner top highlight (ChromeCapsule) */
body[data-bar="chrome"] .seliq-bar::before, body[data-bar="chrome"] .seliq-bar::after {
  content: ""; position: absolute; border-radius: inherit; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
body[data-bar="chrome"] .seliq-bar::before { inset: 0; padding: .75px; background: linear-gradient(#ccd1db, #8c94a3); }
body[data-bar="chrome"] .seliq-bar::after { inset: .75px; padding: 1px; background: linear-gradient(rgba(255,255,255,.95), rgba(255,255,255,0) 50%); }


/* color tile icons (ActionTile): 24pt rounded tile, id-keyed palette colour, white glyph */
.sb-item[data-act="cut"] { --tile: #e6a814; }
.sb-item[data-act="copy"] { --tile: #eb5e9e; }
.sb-item[data-act="paste"] { --tile: #4085f5; }
.sb-item[data-act="search"] { --tile: #e6a814; }
.sb-item[data-act="translate"] { --tile: #4abd66; }
.sb-item[data-act="speak"] { --tile: #33b8bd; }
.sb-item[data-act="history"] { --tile: #8c66ed; }
.sb-item[data-act="note"] { --tile: #f79433; }
body[data-tiles="on"] .sb-item:not(.is-label):not(.is-sep) .sb-glyph {
  width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 7px; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tile) 85%, transparent), var(--tile));
}
body[data-tiles="on"] .sb-item:not(.is-label):not(.is-sep) .sb-glyph svg { width: 14px; height: 14px; }

/* click ripple + click shine, clipped to the pressed pill */
.sb-fxclip { position: absolute; top: 3px; height: 30px; border-radius: 999px; overflow: hidden; pointer-events: none; z-index: 6; }
.sb-fxclip i { position: absolute; display: block; }
.sb-ripple {
  width: 64px; height: 64px; border-radius: 50%;
  background: color-mix(in srgb, var(--sb-fg) 30%, transparent);
  animation: sb-ripple-s .4s cubic-bezier(.3,.6,.4,1) both, sb-ripple-o .4s linear both;
}
@keyframes sb-ripple-s { from { transform: scale(.1); } to { transform: scale(1); } }
@keyframes sb-ripple-o { from { opacity: 1; } to { opacity: 0; } }
.sb-shine {
  left: calc(50% - var(--w) * .25); top: calc(50% - var(--h) * 1.2); width: calc(var(--w) * .5); height: calc(var(--h) * 2.4);
  background: var(--sb-shine-band); rotate: 20deg;
  animation: sb-shine .35s linear both;
}
@keyframes sb-shine { from { translate: calc(var(--w) * -1.2) 0; } to { translate: calc(var(--w) * 1.2) 0; } }
.sb-rim { inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--sb-shine-rim); animation: sb-rim .25s linear both; }
@keyframes sb-rim { from { opacity: 1; } to { opacity: 0; } }

/* ✓ feedback (live bar): cells fade out, an accent check scales in */
.sb-check {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #0a7aff; opacity: 0; scale: .6; pointer-events: none;
  transition: opacity .15s ease, scale .2s cubic-bezier(.34,1.56,.64,1);
}
body[data-mode="dark"] .sb-check { color: #409cff; }
body[data-bar="midnight"] .sb-check { color: #409cff; }
body[data-bar="chrome"] .sb-check { color: #0a7aff; }
.show-check .sb-row { opacity: 0; }
.show-check .sb-check { opacity: 1; scale: 1; }

/* hero bar: sits above the selected words, waits for the sweep (delay set in app.js) */
.hero-bar { position: absolute; left: 50%; bottom: calc(100% + 14px); translate: -50% 0; }
.sb-pending .seliq-bar { opacity: 0; }

/* entrance motions (BarModel): data-anim is set by app.js; --d = start delay, --id = per-cell delay.
   Springs use --spring-* (linear() curves generated from the app's spring parameters). */
@keyframes sb-op { from { opacity: 0; } to { opacity: 1; } }
@keyframes sb-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes sb-spring { from { transform: scale(.6) translateY(-6px); } to { transform: scale(1) translateY(0); } }
@keyframes sb-reveal { from { clip-path: circle(0px at var(--ox) var(--oy)); } to { clip-path: circle(var(--R) at var(--ox) var(--oy)); } }
@keyframes sb-cell-spread { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
@keyframes sb-cell-stagger { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.seliq-bar[data-anim="spring"] {
  animation: sb-op .1s ease-out var(--d, 0s) backwards,
    sb-spring var(--spring-bar-dur, .8s) var(--spring-bar, cubic-bezier(.34,1.56,.64,1)) var(--d, 0s) backwards;
}
.seliq-bar[data-anim="spread"] { animation: sb-op .1s ease-out var(--d, 0s) backwards, sb-reveal .3s ease-out var(--d, 0s) backwards; }
.seliq-bar[data-anim="spread"] .sb-item { transform-origin: 50% 100%; animation: sb-cell-spread var(--spring-spread-dur, .6s) var(--spring-spread, cubic-bezier(.34,1.4,.64,1)) var(--id, 0s) backwards; }
.seliq-bar[data-anim="stagger"] { animation: sb-op .18s ease-out var(--d, 0s) backwards; }
.seliq-bar[data-anim="stagger"] .sb-item { transform-origin: 50% 100%; animation: sb-cell-stagger var(--spring-stagger-dur, .5s) var(--spring-stagger, cubic-bezier(.34,1.3,.64,1)) var(--id, 0s) backwards; }
.seliq-bar[data-anim="none"] { animation: sb-show 0s linear var(--d, 0s) backwards; }
.seliq-bar[data-anim="fade"] { animation: sb-op .12s ease-out var(--d, 0s) backwards; }

/* ===== floating selection bar ===== */
#seliq-bar { position: absolute; z-index: 100; translate: -50% calc(-100% - 12px); }
#seliq-bar.sb-below { translate: -50% 12px; }
#seliq-bar[hidden] { display: none; }

/* ===== extensions ===== */
.spotlight {
  display: flex; align-items: center; gap: 12px;
  max-width: 640px; margin: 48px auto 0; padding: 0 20px;
  height: 60px; border-radius: 16px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 0 0 1px var(--hairline), 0 18px 40px -16px rgba(22,24,29,.25);
  color: var(--graphite);
  cursor: text;
  transition: box-shadow .2s ease;
}
.spotlight:focus-within { box-shadow: 0 0 0 1px var(--blue), 0 0 0 5px color-mix(in srgb, var(--blue) 18%, transparent), 0 18px 40px -16px rgba(22,24,29,.25); }
#ext-search {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: none; background: transparent;
  font: inherit; font-size: 20px; letter-spacing: -.01em; color: var(--ink);
}
#ext-search::placeholder { color: var(--graphite); opacity: .75; }
.ext-meta { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; }
#ext-category {
  appearance: none; -webkit-appearance: none;
  padding: 6px 14px; border-radius: 999px; border: 0;
  background: var(--seg-bg); color: var(--ink);
  font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.ext-count { font-size: 13.5px; color: var(--graphite); }
.ext-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 4px 20px; margin-top: 36px;
}
.ext-cell {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  transition: background-color .15s ease;
  animation: sb-fade .3s ease both;
}
.ext-cell:hover { background: var(--mist); }
.ext-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: 15px; font-weight: 700; color: var(--blue);
  overflow: hidden;
}
.ext-icon img { width: 100%; height: 100%; object-fit: contain; }
.ext-name { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.ext-desc { font-size: 12.5px; color: var(--graphite); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ext-more { margin-top: 24px; text-align: center; font-size: 14px; color: var(--graphite); }
.ext-more a, .ext-error a { color: var(--blue); font-weight: 500; }
.ext-error { grid-column: 1 / -1; text-align: center; color: var(--graphite); padding: 32px 0; }

/* ===== facts ===== */
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  max-width: 940px; margin: 48px auto 0; padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.fact h3 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.fact p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--graphite); }

/* ===== footer ===== */
.footer {
  max-width: 940px; margin: clamp(96px, 12vw, 152px) auto 0;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--hairline);
  text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--graphite);
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 650; color: var(--ink); }
.footer-brand img { border-radius: 5px; }
.footer p + p { margin-top: 8px; }
.footer a { color: var(--blue); }

/* ===== responsive ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .benefits { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav-inner { gap: 10px; padding: 8px 16px; }
  .hero, .block { padding-left: 16px; padding-right: 16px; }
  .stage { padding-left: 12px; padding-right: 12px; }
  .seg { padding: 7px 10px; gap: 5px; white-space: nowrap; }
  .facts-grid { grid-template-columns: 1fr; }
  .try-result input { margin: 8px 0 0; display: block; }
}

/* ===== reduced motion: show end states, skip the travel ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}

/* ===== pricing & policy pages (pricing.html, terms.html, privacy.html, refund.html) ===== */
[data-l][hidden] { display: none !important; }
.doc { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) 24px 0; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.doc .updated { margin-top: 8px; font-size: 14px; color: var(--graphite); }
.doc h2 { margin-top: 40px; font-size: 21px; font-weight: 650; letter-spacing: -.015em; }
.doc p, .doc li { margin-top: 12px; font-size: 16px; color: var(--ink); }
.doc ul { padding-inline-start: 1.3em; }
.doc li { margin-top: 6px; }
.doc a { color: var(--blue); }
.doc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc .note { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--mist); font-size: 14.5px; color: var(--graphite); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; margin: 40px auto 0; padding: 0 24px; }
.plan { display: flex; flex-direction: column; padding: 26px 24px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--paper); }
.plan.featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow-window); }
.plan h2 { margin: 0; font-size: 19px; font-weight: 650; }
.plan .price { margin-top: 10px; font-size: 38px; font-weight: 700; letter-spacing: -.03em; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--graphite); letter-spacing: 0; }
.plan .tagline { margin-top: 4px; font-size: 14.5px; color: var(--graphite); }
.plan ul { margin: 18px 0 22px; padding-inline-start: 1.2em; font-size: 15px; flex: 1; }
.plan li { margin-top: 6px; }
.plan .btn { width: 100%; }
.btn-ghost { border: 1px solid var(--hairline); color: var(--ink); }
.btn-ghost:hover { background: var(--mist); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.footer-legal a { margin: 0 6px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 460px; } }
@media (max-width: 560px) { .doc, .plans { padding-left: 16px; padding-right: 16px; } }

/* 미리보기 바 확대: 칸·호버·물결 계산은 36pt 기준 그대로, 그리기만 키운다(app.js가 scale을 되돌려 계산) */
.stage-bar { scale: 1.5; margin-block: 9px; }
@media (max-width: 560px) { .stage-bar { scale: 1.2; margin-block: 4px; } }

/* grid layout (preview bar): equal 36pt cells, 4pt top/bottom padding, 14pt corners — GridLayout */
.sb[data-layout="grid"] .sb-row {
  display: grid; grid-template-columns: repeat(var(--cols, 3), 36px); grid-auto-rows: 36px; height: auto; padding-block: 4px; align-items: stretch;
}
.sb[data-layout="grid"] .sb-item { height: 36px; }
.stage-bar { transition: margin-block .4s cubic-bezier(.3,.9,.3,1); }
.stage-bar[data-layout="grid"] { margin-block: 20px; }
@media (max-width: 560px) { .stage-bar[data-layout="grid"] { margin-block: 8px; } }

/* labelled items (text width + 20pt) and the etched-groove separator (SeparatorGroove: 11pt slot, 1pt dark line + 1pt highlight, faded ends) */
.sb-item.is-label { width: auto; padding: 0 10px; }
.sb-text { white-space: nowrap; }
.sb-item.is-sep { width: 11px; pointer-events: none; cursor: default; }
.sb-groove { display: flex; gap: .5px; height: 18px; }
.sb-groove::before, .sb-groove::after { content: ""; width: 1px; border-radius: 1px; }
.sb-groove::before { background: linear-gradient(180deg, transparent, var(--gv-dark), transparent); }
.sb-groove::after { background: linear-gradient(180deg, transparent, var(--gv-light), transparent); }
.sb[data-layout="grid"] .sb-groove { height: 20px; }
/* grid: every cell is as wide as the widest item; the separator takes one cell with a centred groove */
.sb[data-layout="grid"] .sb-row { grid-template-columns: repeat(var(--cols, 3), var(--cw, 36px)); }
.sb[data-layout="grid"] .sb-item, .sb[data-layout="grid"] .sb-item.is-label, .sb[data-layout="grid"] .sb-item.is-sep { width: var(--cw, 36px); padding: 0; }
/* the groove unfolds vertically as the bar appears */
@keyframes sb-groove-in { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }
.seliq-bar[data-anim="spread"] .sb-item.is-sep, .seliq-bar[data-anim="stagger"] .sb-item.is-sep { transform-origin: 50% 50%; animation: sb-groove-in .25s ease-out var(--id, 0s) backwards; }
.hero-bar, #seliq-bar { transform-origin: 50% 100%; }

/* 좁은 폭(호버 효과 7개 줄이 한 줄에 안 들어감): 라벨 위·선택 묶음 아래로 가운데 쌓기 */
@media (max-width: 1000px) {
  .controls { display: flex; flex-direction: column; align-items: center; }
  .control-row { display: flex; flex-direction: column; gap: 8px; }
  .control-row .segmented { flex-wrap: wrap; justify-content: center; }
  .control-main { flex-direction: column; gap: 8px; }
  .control-label { text-align: center; justify-self: auto; }
  .control-note { margin-top: 0; text-align: center; }
}

/* ===== Arabic (rtl): font, joined letterforms, mirrored directional icons ===== */
body[data-lang="ar"] { font-family: "Noto Sans Arabic Variable", "Noto Sans Arabic", var(--font); }
body[data-lang="ar"] *, body[data-lang="ar"] *::before, body[data-lang="ar"] *::after { letter-spacing: 0 !important; }
html[dir="rtl"] .replay svg { scale: -1 1; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { line-height: 1.25; }
html[dir="rtl"] .hero-title { line-height: 1.15; }
html[dir="rtl"] a[href^="mailto:"], html[dir="rtl"] .brand-name, html[dir="rtl"] code { unicode-bidi: isolate; }
/* 아랍어 글꼴은 위아래 여백(content area)이 매우 커서, 인라인 강조가 아랫줄까지 덮는다 — 줄 높이만큼만 칠하고, 오른쪽에서부터 칠한다 */
html[dir="rtl"] .hero-sel { display: inline-block; line-height: 1.12; padding-block: .02em .08em; background-position: right center; }

/* ===== FAQ (faq.html) ===== */
.doc.faq [id] { scroll-margin-top: 80px; }
.doc.faq .faq-toc { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--mist); }
.doc.faq .faq-toc ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.doc.faq .faq-toc li { margin: 0; }
.doc.faq .faq-toc a { display: inline-block; padding: 4px 12px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--paper); font-size: 14px; color: var(--ink); }
.doc.faq .faq-toc a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.doc.faq details { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.doc.faq summary { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; list-style: none; }
.doc.faq summary::-webkit-details-marker { display: none; }
.doc.faq summary::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .6em; border-right: 2px solid var(--graphite); border-bottom: 2px solid var(--graphite); transform: rotate(-45deg); transition: transform .15s ease; }
[dir="rtl"] .doc.faq details:not([open]) > summary::before { transform: rotate(135deg); }
.doc.faq details[open] > summary::before { transform: rotate(45deg); }
.doc.faq h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.45; }
.doc.faq .faq-a { padding-inline-start: 17px; }
.doc.faq .faq-a > p:first-child, .doc.faq .faq-a > ul:first-child { margin-top: 6px; }
.doc.faq .ex { margin-top: 12px; padding: 10px 14px 12px; border-radius: 12px; background: var(--mist); border-inline-start: 3px solid var(--blue); font-size: 14.5px; color: var(--graphite); }
.doc.faq .ex-label { display: block; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.doc.faq .ex-row { margin-top: 5px; overflow-wrap: anywhere; }
.doc.faq code { padding: 1px 5px; border: 1px solid var(--hairline); border-radius: 5px; background: var(--paper); font-family: var(--mono); font-size: .9em; color: var(--ink); }
.doc.faq kbd { padding: 1px 6px; margin: 0 1px; border: 1px solid var(--hairline); border-bottom-width: 2px; border-radius: 5px; background: var(--paper); font-family: var(--mono); font-size: .85em; color: var(--ink); }
.doc.faq pre { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--paper); overflow-x: auto; direction: ltr; text-align: left; font-size: 13px; line-height: 1.55; color: var(--ink); }
.doc.faq pre code { padding: 0; border: 0; background: none; font-size: inherit; }

/* ===== account page (account.html, assets/account.js) ===== */
.acct { margin-top: 20px; }
.acct-lead { color: var(--graphite); }
.acct-form { display: grid; gap: 14px; max-width: 420px; margin-top: 22px; }
.acct-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.acct-field input {
  width: 100%; min-width: 0; padding: 11px 14px;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 12px;
}
.acct-field input::placeholder { color: var(--graphite); opacity: .7; }
.acct-field input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.acct-form .btn { width: 100%; }
.acct .btn:disabled { opacity: .55; pointer-events: none; }
.acct .btn-sm { text-decoration: none; }
.doc .acct a.btn:hover { text-decoration: none; }
.doc .acct a.btn-ghost { color: var(--ink); }
.acct-msg { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; color: #b42318; background: color-mix(in srgb, #d92d20 10%, transparent); }
body[data-mode="dark"] .acct-msg { color: #ff9d94; }
.doc .acct-msg { margin-top: 10px; }
.acct-lost { margin-top: 28px; max-width: 520px; }
.acct-lost summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--blue); }
.acct-lost p { font-size: 15px; }
.acct-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.doc .acct-who { color: var(--graphite); font-size: 15px; overflow-wrap: anywhere; min-width: 0; }
.acct-card { margin-top: 16px; padding: 22px 22px 18px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--paper); }
.acct-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.acct-card h3 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.acct-card h4 { margin: 20px 0 0; font-size: 15px; font-weight: 650; }
.acct-card .btn { margin-top: 14px; }
.doc .acct-meta { list-style: none; margin: 10px 0 0; padding: 0; }
.doc .acct-meta li { margin-top: 4px; font-size: 15px; color: var(--graphite); }
.acct-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; --c: #17743f; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.acct-badge::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.acct-badge.is-warn { --c: #9a6700; }
.acct-badge.is-cancel { --c: #c2570c; }
.acct-badge.is-gray { --c: #5d6271; }
.acct-badge.is-refund { --c: #7a4fd1; }
.acct-badge.is-bad { --c: #b42318; }
body[data-mode="dark"] .acct-badge { --c: #5fd08c; }
body[data-mode="dark"] .acct-badge.is-warn { --c: #f0b84d; }
body[data-mode="dark"] .acct-badge.is-cancel { --c: #ff9a5c; }
body[data-mode="dark"] .acct-badge.is-gray { --c: #9097a6; }
body[data-mode="dark"] .acct-badge.is-refund { --c: #b49bff; }
body[data-mode="dark"] .acct-badge.is-bad { --c: #ff9d94; }
.doc .acct-list { list-style: none; margin: 8px 0 0; padding: 0; }
.doc .acct-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 0; padding: 12px 0; border-top: 1px solid var(--hairline); }
.doc .acct-list .acct-row:first-child { border-top: 0; }
.acct-row-info { display: grid; gap: 2px; min-width: 0; }
.acct-row-info strong { unicode-bidi: plaintext; font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
.acct-row-info span { font-size: 14px; color: var(--graphite); }
.acct-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-row-actions .btn, .acct-card .acct-row .btn { margin-top: 0; }
.acct-row .acct-msg { flex-basis: 100%; }
.doc .acct-row-link { font-size: 14.5px; }
.btn-danger { background: #d92d20; color: #fff; }
.btn-danger:hover { background: #b42318; }
.doc .acct .acct-empty { color: var(--graphite); font-size: 15px; }
.doc .acct .acct-hint { margin-top: 10px; font-size: 13.5px; color: var(--graphite); }
.acct .btn-ghost.btn-sm { font-weight: 550; }
.acct-notice { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; color: #067647; background: color-mix(in srgb, #12b76a 12%, transparent); }
body[data-mode="dark"] .acct-notice { color: #75e0a7; }
.doc .acct-notice { margin-top: 10px; }
.acct-danger { margin-top: 44px; padding: 20px 22px 22px; border: 1px solid color-mix(in srgb, #d92d20 38%, transparent); border-radius: 18px; background: color-mix(in srgb, #d92d20 5%, transparent); }
.doc .acct-danger h2 { margin-top: 0; font-size: 19px; color: #b42318; }
body[data-mode="dark"] .doc .acct-danger h2 { color: #ff9d94; }
.doc .acct-danger p { font-size: 15px; color: var(--graphite); }
.acct-danger .btn { margin-top: 6px; }
.acct-del-form { display: grid; gap: 14px; max-width: 420px; margin-top: 16px; }
.acct-del-form .acct-row-actions .btn { margin-top: 0; }
.acct-del-form .acct-msg { margin-top: 0; }

/* ===== account: Google button (Google branding: official G, 40px, light/dark), key reveal, orders, sign-in methods ===== */
.acct-or { display: flex; align-items: center; gap: 12px; max-width: 420px; margin: 18px 0 14px; color: var(--graphite); font-size: 13.5px; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.doc .acct a.gbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 420px; min-height: 40px; padding: 0 12px;
  border: 1px solid #747775; border-radius: 20px;
  background: #fff; color: #1f1f1f;
  font: 500 14px/20px Roboto, var(--font); letter-spacing: .01em; text-decoration: none;
  transition: background-color .2s ease;
}
.doc .acct a.gbtn:hover { background: #f1f1f2; text-decoration: none; }
.doc .acct a.gbtn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.gbtn svg { flex: none; }
body[data-mode="dark"] .doc .acct a.gbtn { background: #131314; border-color: #8e918f; color: #e3e3e3; }
body[data-mode="dark"] .doc .acct a.gbtn:hover { background: #26272a; }
.acct-keybox { margin-top: 14px; }
.acct-keybox .btn { margin-top: 0; }
.acct-keybox .acct-msg { margin-top: 10px; }
.doc .acct-key { display: block; margin-bottom: 10px; padding: 11px 14px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--mist); font: 500 14.5px/1.45 var(--mono); overflow-wrap: anywhere; user-select: all; text-align: start; }
.acct-row .acct-sub { flex-basis: 100%; margin-top: 4px; padding-inline-start: 14px; border-inline-start: 2px solid var(--hairline); }
.doc .acct-sub h4 { margin: 0 0 2px; font-size: 13.5px; font-weight: 600; color: var(--graphite); }
.doc .acct-sub .acct-list .acct-row { padding: 9px 0; }
.acct-row .acct-hint { flex-basis: 100%; margin-top: 0; }
.acct-row-actions { align-items: center; }

/* pricing-sub */
.plans.plans-4 { grid-template-columns: repeat(4, 1fr); max-width: 1180px; }
@media (max-width: 1100px) { .plans.plans-4 { grid-template-columns: repeat(2, 1fr); max-width: 760px; } }
@media (max-width: 860px) { .plans.plans-4 { grid-template-columns: 1fr; max-width: 460px; } }
.plan .price-alt { margin-top: 6px; font-size: 15px; color: var(--graphite); }
.plan .price-alt strong { color: var(--ink); font-weight: 650; }
.plan-badge { display: inline-block; margin-inline-start: 4px; padding: 2px 9px; border-radius: 999px; background: var(--mist); color: var(--blue); font-size: 12.5px; font-weight: 600; }
.plan .plan-note { margin: -10px 0 18px; font-size: 13.5px; color: var(--graphite); }

/* ===== sense (AI) section ===== */
.sense .block-head { max-width: 900px; }
.sense .block-head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.sense-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; padding: 5px 13px 5px 11px;
  border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
}
.sense-demo {
  max-width: 640px; margin: 44px auto 0; padding: 30px 20px 22px; border-radius: 24px;
  background: var(--mist); border: 1px solid var(--hairline);
  display: flex; flex-direction: column; align-items: center; gap: 22px; overflow: hidden;
}
.sd-text { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.sd-text i { display: block; height: 8px; border-radius: 4px; background: rgba(22,24,29,.12); }
body[data-mode="dark"] .sd-text i { background: rgba(255,255,255,.14); }
.sd-sel { padding: 3px 9px; border-radius: 6px; background: var(--selection); color: var(--ink); font: 500 15px/1.4 var(--mono); white-space: nowrap; }
.sd-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 16px; }
.sd-bar {
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 15px; background: var(--paper);
  box-shadow: 0 8px 24px rgba(20,30,60,.14), inset 0 0 0 .5px var(--hairline);
}
.sd-bar > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--graphite); }
.sd-bar > .sd-spark { color: #fff; background: linear-gradient(180deg, #5b8cff, var(--blue)); margin-inline-end: 3px; }
body[data-mode="dark"] .sd-bar > .sd-spark { color: #04102e; background: linear-gradient(180deg, #9db9ff, var(--blue)); }
.sd-circles { display: flex; gap: 8px; }
.sd-circle {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--graphite);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline), 0 4px 12px rgba(20,30,60,.08);
}
.sd-circles .sd-circle:nth-child(n+2) { opacity: .62; }
.sd-circle.sd-main { color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 5px color-mix(in srgb, var(--blue) 14%, transparent); animation: sd-pulse 2.6s ease-in-out infinite; }
@keyframes sd-pulse { 50% { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 9px color-mix(in srgb, var(--blue) 6%, transparent); } }
.sd-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); }
.sense-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.sense-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px;
  border: 1px solid var(--hairline); background: var(--paper);
}
.sense-card .sc-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.sense-card h3 { font-size: 18px; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.sense-card p { font-size: 15px; line-height: 1.55; color: var(--graphite); }
.sense-card .sc-ex { margin-top: auto; padding: 9px 12px; border-radius: 10px; background: var(--mist); color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.sense-foot { max-width: 760px; margin: 36px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sense-privacy { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 15.5px; font-weight: 550; text-align: start; }
.sense-privacy svg { flex: none; margin-top: .22em; color: var(--blue); }
.sense-note { font-size: 14.5px; color: var(--graphite); }
@media (max-width: 960px) { .sense-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .sense-grid { grid-template-columns: 1fr; }
  .sense-demo { padding: 24px 14px 18px; }
  .sd-sel { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .sd-circle.sd-main { animation: none; } }

/* ===== pricing: recommended yearly subscription card ===== */
.plan { position: relative; }
.plan.plan-annual { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow-window); }
@media (min-width: 1101px) { .plan.plan-annual { transform: translateY(-10px); } }
.plan-ribbon {
  position: absolute; top: -12px; inset-inline-start: 22px; padding: 3px 12px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 650; letter-spacing: .01em;
}
body[data-mode="dark"] .plan-ribbon { color: #04102e; }
.plan.plan-annual .price-alt { color: var(--ink); }
.plan .plan-save { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--blue); }
.plan .btn-lg { padding: 14px 20px; font-size: 16px; font-weight: 650; }
.plan .plan-monthly { margin-top: 12px; text-align: center; font-size: 13px; color: var(--graphite); }
.plan .plan-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.plan .plan-link[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* nav: very narrow phones (375px) — keep the header inside the viewport in every language */
@media (max-width: 420px) {
  .nav-inner { gap: 6px; padding: 8px 12px; }
  .nav-actions { gap: 4px; }
  .lang-select { padding: 0 6px; max-width: 96px; text-overflow: ellipsis; }
  .nav-actions .btn-sm { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
}
/* when the plans stack, show the recommended yearly subscription first */
@media (max-width: 1100px) { .plan.plan-annual { order: -1; } }
.plan.plan-annual .plan-badge { display: block; width: fit-content; margin: 8px 0 0; border-radius: 12px; line-height: 1.4; }
