/* ID Photo Box — a warm photographic studio for the web.
   One design system, no external fonts, no icon CDNs. */

:root {
  --page: #f7f4ed;
  --paper: #fffdf8;
  --card: #fffefa;
  --card-strong: #ffffff;
  --sunken: #f0ece3;
  --hover: #f5f0e7;
  --ink: #181a22;
  --text: #494a52;
  --muted: #66666e;
  --faint: #8c8981;
  --line: #e7e1d5;
  --line-strong: #d7cebf;
  --accent: #3150c7;
  --accent-hover: #233fa8;
  --accent-ink: #1d2e76;
  --accent-soft: #edf0ff;
  --accent-softer: #f5f6ff;
  --on-accent: #ffffff;
  --on-violet: #ffffff;
  --on-signal: #ffffff;
  --signal: #bc6240;
  --signal-hover: #a14e30;
  --signal-soft: #fbeee7;
  --violet: #7450b7;
  --violet-soft: #f2ecfc;
  --green: #1c7550;
  --green-soft: #e9f6ef;
  --amber: #9a5a09;
  --amber-soft: #fff4de;
  --err: #b23532;
  --err-soft: #fff0ef;
  --hero-bg: #f3ede1;
  --hero-line: #e4dac9;
  --dark: #171922;
  --dark-2: #20232f;
  --dark-text: #e8e3d9;
  --dark-muted: #aaa79f;
  --shadow: 0 1px 2px rgba(35, 28, 18, .05), 0 8px 26px -20px rgba(35, 28, 18, .28);
  --shadow-lg: 0 26px 70px -32px rgba(35, 28, 18, .38), 0 4px 14px -8px rgba(35, 28, 18, .12);
  --shadow-photo: 0 30px 70px -24px rgba(35, 28, 18, .34);
  --radius: 12px;
  --radius-card: 20px;
  --radius-sm: 8px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Noto Sans SC", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.8 12.6l4.6 4.6 9.8-10' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #11110f;
    --paper: #181714;
    --card: #1b1a17;
    --card-strong: #201f1b;
    --sunken: #23211d;
    --hover: #26231f;
    --ink: #f5f1e8;
    --text: #d6d1c7;
    --muted: #a7a29a;
    --faint: #7e7a73;
    --line: #302c26;
    --line-strong: #453f36;
    --accent: #99a9ff;
    --accent-hover: #b6c1ff;
    --accent-ink: #d8ddff;
    --accent-soft: #23284d;
    --accent-softer: #1c1e31;
    --on-accent: #14151d;
    --on-violet: #191322;
    --on-signal: #24120c;
    --signal: #f0a17b;
    --signal-hover: #ffba9a;
    --signal-soft: #35211a;
    --violet: #c7a6ff;
    --violet-soft: #2d2140;
    --green: #6edba0;
    --green-soft: #122b1e;
    --amber: #f5bd5e;
    --amber-soft: #35280f;
    --err: #ff9a92;
    --err-soft: #3a1917;
    --hero-bg: #151410;
    --hero-line: #302b22;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 30px -22px rgba(0, 0, 0, .9);
    --shadow-lg: 0 30px 80px -34px rgba(0, 0, 0, .95), 0 4px 16px -8px rgba(0, 0, 0, .6);
    --shadow-photo: 0 30px 80px -26px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --page: #11110f;
  --paper: #181714;
  --card: #1b1a17;
  --card-strong: #201f1b;
  --sunken: #23211d;
  --hover: #26231f;
  --ink: #f5f1e8;
  --text: #d6d1c7;
  --muted: #a7a29a;
  --faint: #7e7a73;
  --line: #302c26;
  --line-strong: #453f36;
  --accent: #99a9ff;
  --accent-hover: #b6c1ff;
  --accent-ink: #d8ddff;
  --accent-soft: #23284d;
  --accent-softer: #1c1e31;
  --on-accent: #14151d;
  --on-violet: #191322;
  --on-signal: #24120c;
  --signal: #f0a17b;
  --signal-hover: #ffba9a;
  --signal-soft: #35211a;
  --violet: #c7a6ff;
  --violet-soft: #2d2140;
  --green: #6edba0;
  --green-soft: #122b1e;
  --amber: #f5bd5e;
  --amber-soft: #35280f;
  --err: #ff9a92;
  --err-soft: #3a1917;
  --hero-bg: #151410;
  --hero-line: #302b22;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 30px -22px rgba(0, 0, 0, .9);
  --shadow-lg: 0 30px 80px -34px rgba(0, 0, 0, .95), 0 4px 16px -8px rgba(0, 0, 0, .6);
  --shadow-photo: 0 30px 80px -26px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--page);
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-weight: 750; line-height: 1.14; letter-spacing: -.025em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.035em; }
h1 { font-size: clamp(38px, 5vw, 66px); }
h2 { font-size: clamp(30px, 3.8vw, 48px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap--wide { max-width: 1280px; }
.wrap--narrow { max-width: 820px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.grow { flex: 1 1 auto; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- header ---------- */
.sh-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}
.sh-in { max-width: 1240px; height: 68px; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -.035em; margin-right: 16px; }
.brand:hover { color: var(--ink); }
.brand svg { width: 31px; height: 31px; display: block; flex: none; }
.brand small { display: block; font-size: 10px; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 1px; }
.nav-link { display: inline-flex; align-items: center; min-height: 68px; padding: 0 12px; color: var(--text); font-size: 13.5px; font-weight: 620; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-link:hover { color: var(--accent); }
.nav-link.on { color: var(--accent); border-bottom-color: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.free-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--paper) 76%, transparent); color: var(--muted); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.free-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--text); cursor: pointer; font-size: 12.5px; font-weight: 700; }
.menu-btn:hover { border-color: var(--line-strong); color: var(--ink); background: var(--card); }
.menu-btn svg { width: 17px; height: 17px; }
.menu-wrap { position: relative; }
.site-menu { position: absolute; right: 0; top: calc(100% + 9px); z-index: 95; width: 292px; padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: var(--shadow-lg); display: none; }
.site-menu.open { display: block; }
.menu-head { padding: 6px 10px 8px; color: var(--ink); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.menu-label { padding: 8px 5px 6px; color: var(--faint); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.theme-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 3px; }
.theme-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 31px; padding: 5px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 11.5px; font-weight: 650; cursor: pointer; }
.theme-seg button:hover { border-color: var(--accent); color: var(--accent); }
.theme-seg button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.theme-seg svg { width: 14px; height: 14px; }
.menu-sep { height: 1px; background: var(--line); margin: 7px 4px; }
.menu-link { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; color: var(--text); font-size: 13px; font-weight: 600; }
.menu-link:hover { background: var(--hover); color: var(--ink); }
.menu-link svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.mobile-drawer { display: none; }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .sh-in { height: 62px; }
  .free-chip { display: none; }
  .menu-btn .menu-label-text { display: none; }
  .menu-btn { width: 38px; padding: 0; }
  .mobile-drawer.open { display: block; position: fixed; left: 0; right: 0; top: 62px; z-index: 79; max-height: calc(100dvh - 62px); overflow-y: auto; padding: 10px 20px 26px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .mobile-drawer a { display: flex; align-items: center; gap: 10px; padding: 13px 2px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 650; }
  .mobile-drawer a:hover { color: var(--accent); }
  .mobile-drawer a svg { width: 17px; height: 17px; color: var(--faint); }
  .mobile-drawer .drawer-label { padding: 17px 2px 6px; color: var(--faint); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .mobile-drawer .theme-seg { padding: 0; }
}
@media (max-width: 520px) {
  .brand span { font-size: 16px; }
  .brand small { display: none; }
}

/* ---------- typography bits ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--signal); font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--paper) 82%, transparent); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.eyebrow.ai i { background: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.section { padding: 88px 0 0; }
.section--tight { padding-top: 56px; }
.section--tint { margin-top: 88px; padding: 74px 0; background: var(--sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16.5px; line-height: 1.7; margin: 0; max-width: 44em; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
@media (max-width: 640px) { .head-split { flex-direction: column; align-items: flex-start; gap: 15px; } }
.head-split .section-head { margin-bottom: 0; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 750; color: var(--accent); white-space: nowrap; }
.text-link svg { width: 15px; height: 15px; }
.text-link:hover { gap: 9px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 19px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:hover { border-color: var(--accent); color: var(--accent); background: var(--card); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 10px 22px -16px color-mix(in srgb, var(--accent) 65%, transparent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); }
.btn.signal { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.btn.signal:hover { background: var(--signal-hover); border-color: var(--signal-hover); color: var(--on-signal); transform: translateY(-1px); }
.btn.violet { background: var(--violet); border-color: var(--violet); color: var(--on-violet); }
.btn.violet:hover { filter: brightness(1.05); color: var(--on-violet); transform: translateY(-1px); }
.btn.dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn.dark:hover { background: var(--dark-2); border-color: var(--dark-2); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--hover); border-color: var(--hover); color: var(--ink); }
.btn.small { min-height: 35px; padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn.wide { width: 100%; }
.btn .ic, .btn svg { width: 17px; height: 17px; flex: none; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.btn.loading { pointer-events: none; }
.btn.loading .btn-label { opacity: .75; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 750; letter-spacing: .01em; }
.badge.blue { background: var(--accent-soft); color: var(--accent-ink); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.signal { background: var(--signal-soft); color: var(--signal); }
.badge.neutral { background: var(--sunken); color: var(--muted); }
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hero-line); background: var(--hero-bg); }
.hero::before { content: ""; position: absolute; inset: -20% 35% auto -10%; height: 90%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--signal) 12%, transparent), transparent 72%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--hero-line) 78%, transparent) .75px, transparent .75px); background-size: 22px 22px; opacity: .55; mask-image: linear-gradient(90deg, transparent 38%, #000 100%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); gap: 54px; align-items: center; padding: 82px 24px 88px; }
.hero-copy { max-width: 620px; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(44px, 5.6vw, 75px); line-height: .99; letter-spacing: -.05em; margin: 0 0 23px; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--signal); }
.hero-sub { max-width: 35em; color: var(--muted); font-size: 17.5px; line-height: 1.72; margin: 0 0 25px; text-wrap: pretty; }
.hero-sub b { color: var(--ink); font-weight: 650; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 9px 20px; margin: 0 0 30px; padding: 0; list-style: none; }
.hero-checks li { position: relative; padding-left: 24px; color: var(--muted); font-size: 13.5px; }
.hero-checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; background: var(--green-soft); }
.hero-checks li::after { content: ""; position: absolute; left: 4px; top: 5px; width: 9px; height: 9px; background: var(--green); -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.hero-cta .btn { min-height: 49px; padding: 12px 22px; font-size: 15px; }
.hero-foot { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--faint); font-size: 12px; line-height: 1.5; }
.hero-foot svg { width: 16px; height: 16px; flex: none; color: var(--green); }

/* hero art */
.studio-art { position: relative; height: 512px; }
.studio-art::before { content: ""; position: absolute; inset: 12% -4% 4% 8%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 11%, transparent), transparent 74%); }
.print-card { position: absolute; left: 8px; top: 26px; width: 408px; padding: 12px 13px 13px; border: 1px solid var(--hero-line); border-radius: 15px; background: var(--card); box-shadow: var(--shadow-photo); transform: rotate(-3deg); transform-origin: 50% 80%; }
.print-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 2px 9px; color: var(--faint); font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.print-card-head span:last-child { letter-spacing: .04em; }
.print-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.print-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 36%; background: #f1ede5; border: 1px solid #e9e4da; }
.print-card-foot { display: flex; align-items: center; gap: 7px; padding: 10px 2px 0; color: var(--faint); font-size: 10.5px; }
.print-card-foot i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.photo-card { position: absolute; z-index: 3; left: -2px; bottom: 18px; width: 198px; padding: 8px 8px 10px; background: #fff; border: 1px solid #e2dbcf; box-shadow: var(--shadow-photo); transform: rotate(4deg); }
.photo-card img { display: block; width: 100%; aspect-ratio: 51/51; object-fit: cover; object-position: center 32%; }
.photo-card .pc-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 2px 0; color: #77736c; font-size: 9.5px; font-weight: 700; letter-spacing: .03em; }
.photo-card .pc-line b { color: #282a32; font-size: 10px; }
.crop-mark { position: absolute; width: 13px; height: 13px; border-color: #3d3f48; border-style: solid; opacity: .7; pointer-events: none; }
.photo-card .crop-mark.tl { top: 13px; left: 13px; border-width: 1px 0 0 1px; }
.photo-card .crop-mark.tr { top: 13px; right: 13px; border-width: 1px 1px 0 0; }
.photo-card .crop-mark.bl { bottom: 39px; left: 13px; border-width: 0 0 1px 1px; }
.photo-card .crop-mark.br { bottom: 39px; right: 13px; border-width: 0 1px 1px 0; }
.ai-float { position: absolute; z-index: 4; right: -4px; bottom: 0; width: 246px; padding: 9px; border: 1px solid var(--hero-line); border-radius: 15px; background: var(--card); box-shadow: var(--shadow-photo); transform: rotate(2.5deg); }
.ai-float img { display: block; width: 100%; aspect-ratio: 1.48; object-fit: cover; object-position: center 22%; border-radius: 9px; }
.ai-float-bottom { display: flex; align-items: center; gap: 7px; padding: 9px 3px 1px; }
.ai-float-bottom b { color: var(--ink); font-size: 11px; }
.ai-float-bottom .badge { margin-left: auto; font-size: 9.5px; padding: 3px 7px; }
.studio-tag { position: absolute; z-index: 5; top: 0; right: 9px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--hero-line); border-radius: 999px; background: color-mix(in srgb, var(--paper) 90%, transparent); box-shadow: var(--shadow); color: var(--muted); font-size: 10.5px; font-weight: 700; }
.studio-tag svg { width: 13px; height: 13px; color: var(--signal); }
@media (max-width: 1080px) {
  .hero-in { gap: 30px; }
  .print-card { width: 355px; }
  .photo-card { width: 172px; }
  .ai-float { width: 216px; }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; padding: 58px 18px 64px; }
  .hero-copy { max-width: 680px; }
  .studio-art { display: none; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-sub { font-size: 16px; }
  .hero-cta { align-items: stretch; }
  .hero-cta .btn { flex: 1 1 auto; }
}

/* ---------- home document cards ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.doc-card { position: relative; display: flex; flex-direction: column; min-height: 305px; padding: 26px 25px 23px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; color: var(--text); transition: transform .18s, border-color .18s, box-shadow .18s; }
.doc-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); box-shadow: var(--shadow-lg); color: var(--text); }
.doc-card::after { content: ""; position: absolute; right: -50px; top: -60px; width: 170px; height: 170px; border-radius: 50%; background: var(--accent-soft); opacity: .7; }
.doc-card.signal::after { background: var(--signal-soft); }
.doc-card.violet::after { background: var(--violet-soft); }
.doc-icon { position: relative; z-index: 1; width: 47px; height: 47px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.doc-card.signal .doc-icon { background: var(--signal-soft); color: var(--signal); }
.doc-card.violet .doc-icon { background: var(--violet-soft); color: var(--violet); }
.doc-icon svg { width: 24px; height: 24px; }
.doc-card h3 { position: relative; z-index: 1; font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -.035em; margin: 0 0 8px; }
.doc-card p { position: relative; z-index: 1; color: var(--muted); font-size: 13.5px; line-height: 1.65; margin: 0 0 18px; max-width: 30em; }
.size-pills { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.size-pills span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 650; }
.doc-go { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; margin-top: 17px; color: var(--accent); font-size: 12.5px; font-weight: 750; }
.doc-go svg { width: 14px; height: 14px; transition: transform .15s; }
.doc-card:hover .doc-go svg { transform: translateX(3px); }
@media (max-width: 900px) { .doc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .doc-grid { grid-template-columns: 1fr; } .doc-card { min-height: 0; } }

/* ---------- how / steps ---------- */
.how-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 52px; align-items: center; }
.steps-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps-list li { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 15px; padding: 0 0 26px; }
.steps-list li::before { counter-increment: step; content: counter(step, decimal-leading-zero); width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--signal); font-family: var(--mono); font-size: 11px; font-weight: 800; }
.steps-list li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 1px; background: var(--line); }
.steps-list h3 { font-size: 17px; margin: 5px 0 4px; letter-spacing: -.015em; }
.steps-list p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.68; max-width: 37em; }
.demo-stack { position: relative; min-height: 470px; }
.demo-photo { position: absolute; top: 25px; right: 30px; width: 330px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-lg); transform: rotate(2deg); }
.demo-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 32%; }
.face-guide { position: absolute; inset: 17% 24% 22%; border: 1.5px dashed color-mix(in srgb, var(--accent) 65%, transparent); border-radius: 50%; pointer-events: none; }
.eye-guide { position: absolute; left: 13%; right: 13%; top: 40%; border-top: 1.5px dashed color-mix(in srgb, var(--accent) 65%, transparent); }
.eye-guide span { position: absolute; right: 0; top: -18px; background: var(--accent); color: #fff; border-radius: 4px; padding: 2px 5px; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.demo-label { display: flex; justify-content: space-between; padding: 8px 2px 1px; color: var(--faint); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; }
.demo-label b { color: var(--green); }
.demo-sheet { position: absolute; z-index: 2; left: 0; bottom: 6px; width: 248px; padding: 11px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); transform: rotate(-5deg); }
.demo-sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 1px 8px; color: var(--faint); font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.demo-sheet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.demo-sheet-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 32%; border: 1px solid var(--line); }
.demo-check { position: absolute; z-index: 3; right: 0; top: 7px; display: flex; gap: 7px; align-items: center; background: var(--green-soft); color: var(--green); padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 750; box-shadow: var(--shadow); }
.demo-check svg { width: 13px; height: 13px; }
@media (max-width: 900px) { .how-wrap { grid-template-columns: 1fr; gap: 36px; } .demo-stack { max-width: 560px; width: 100%; margin: 0 auto; } }
@media (max-width: 480px) { .demo-stack { min-height: 370px; } .demo-photo { width: 255px; right: 0; } .demo-sheet { width: 190px; } }

/* ---------- feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.feature-card { padding: 25px 23px 23px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.feature-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.feature-card:nth-child(2) .feature-ic { background: var(--signal-soft); color: var(--signal); }
.feature-card:nth-child(3) .feature-ic { background: var(--green-soft); color: var(--green); }
.feature-card:nth-child(4) .feature-ic { background: var(--violet-soft); color: var(--violet); }
.feature-card:nth-child(5) .feature-ic { background: var(--signal-soft); color: var(--signal); }
.feature-ic svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 16px; margin: 0 0 6px; letter-spacing: -.012em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.67; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- AI band ---------- */
.ai-band { position: relative; overflow: hidden; margin-top: 88px; padding: 78px 0 76px; background: var(--dark); color: var(--dark-text); border-top: 1px solid #0d0e13; border-bottom: 1px solid #0d0e13; }
.ai-band::before { content: ""; position: absolute; right: -10%; top: -35%; width: 60%; height: 160%; background: radial-gradient(closest-side, rgba(124, 80, 183, .32), transparent 70%); pointer-events: none; }
.ai-band::after { content: ""; position: absolute; left: -5%; bottom: -70%; width: 45%; height: 130%; background: radial-gradient(closest-side, rgba(49, 80, 199, .22), transparent 70%); pointer-events: none; }
.ai-band .wrap { position: relative; z-index: 1; }
.ai-band h2 { color: #f8f4eb; }
.ai-band .kicker { color: #d0b3ff; }
.ai-band .section-head p { color: #b7b3aa; }
.ai-band .eyebrow { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #ddd6ca; }
.ai-band-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 54px; align-items: center; }
.ai-band-copy h2 { font-size: clamp(31px, 4vw, 49px); margin: 14px 0 17px; }
.ai-band-copy p { color: #b9b5ac; font-size: 15.5px; line-height: 1.72; max-width: 32em; }
.ai-band-copy .ai-list { display: grid; gap: 9px; margin: 24px 0 27px; padding: 0; list-style: none; }
.ai-band-copy .ai-list li { display: flex; align-items: center; gap: 9px; color: #d9d4ca; font-size: 13px; }
.ai-band-copy .ai-list svg { width: 15px; height: 15px; color: #9d83d4; flex: none; }
.ai-band-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ai-band .btn.violet { background: #8c64ce; border-color: #8c64ce; color: #fff; }
.ai-band .btn.violet:hover { background: #9d75df; border-color: #9d75df; color: #fff; }
.ai-band .btn.ghost { color: #e8e3d9; border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); }
.ai-band .btn.ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); color: #fff; }
.ai-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ai-mini { min-width: 0; }
.ai-mini { background: #f6f2eb; border: 1px solid rgba(255, 255, 255, .12); border-radius: 15px; padding: 7px; color: #23242c; transform: rotate(-1deg); box-shadow: 0 28px 65px -30px rgba(0, 0, 0, .8); }
.ai-mini:nth-child(2) { transform: rotate(1.4deg); margin-top: 27px; }
.ai-mini img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.ai-mini-body { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 8px 4px 3px; }
.ai-mini-body b { font-size: 11.5px; color: #24252c; }
.ai-mini-body span { font-size: 9px; font-weight: 800; letter-spacing: .04em; color: #6d6a62; }
@media (max-width: 880px) { .ai-band-grid { grid-template-columns: 1fr; gap: 36px; } .ai-mini-grid { max-width: 520px; } }

/* ---------- finder ---------- */
.finder-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; align-items: center; padding: 33px 34px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.finder-card h2 { font-size: 31px; margin: 8px 0 9px; }
.finder-card p { color: var(--muted); font-size: 13.5px; margin: 0; max-width: 28em; }
.finder-side { border-left: 1px solid var(--line); padding-left: 34px; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-box input { width: 100%; min-height: 47px; padding: 10px 13px 10px 38px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 14px; }
.search-box input::placeholder { color: var(--faint); }
.search-box input:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 15%, transparent); outline-offset: 0; }
.country-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.country-chip { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 11.5px; font-weight: 650; cursor: pointer; }
.country-chip:hover { border-color: var(--accent); color: var(--accent); }
.finder-results { margin-top: 12px; min-height: 20px; font-size: 12px; color: var(--faint); }
.finder-results a { font-weight: 700; }
@media (max-width: 820px) { .finder-card { grid-template-columns: 1fr; gap: 22px; padding: 27px 24px; } .finder-side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 22px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; max-width: 900px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 1px rgba(35, 28, 18, .02); }
.faq summary { display: flex; align-items: center; gap: 16px; padding: 17px 20px; color: var(--ink); cursor: pointer; font-size: 14.5px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--faint); font-size: 20px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .faq-answer { padding: 0 20px 18px; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.faq .faq-answer p:last-child { margin-bottom: 0; }
.faq .faq-answer a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 520px) { .faq summary { padding: 15px 16px; font-size: 13.5px; gap: 10px; } .faq .faq-answer { padding: 0 16px 16px; } }

/* ---------- CTA band ---------- */
.cta-band { margin-top: 88px; padding: 69px 28px 64px; text-align: center; background: var(--sunken); border-top: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(31px, 4.2vw, 47px); margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 34em; margin: 0 auto 24px; font-size: 14.5px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ---------- footer ---------- */
.sh-footer { margin-top: 84px; padding: 48px 0 25px; background: var(--sunken); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-cols { display: grid; grid-template-columns: 1.65fr 1fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -.03em; }
.foot-brand svg { width: 27px; height: 27px; }
.foot-copy { max-width: 31ch; margin: 0 0 12px; color: var(--faint); font-size: 12.5px; line-height: 1.7; }
.foot-mail { font-size: 12.5px; color: var(--muted); }
.foot-col h4 { margin: 0 0 11px; color: var(--faint); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.foot-col a { display: block; padding: 3px 0; color: var(--muted); font-size: 12.5px; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 16px; margin-top: 34px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11.5px; }
.foot-bottom .grow { flex: 1 1 auto; }
.foot-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) { .foot-cols { grid-template-columns: 1.4fr 1fr 1fr; } .foot-col:nth-child(4), .foot-col:nth-child(5) { padding-top: 8px; } }
@media (max-width: 620px) { .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px 20px; } .foot-col:first-child { grid-column: 1 / -1; } .sh-footer { margin-top: 58px; } }

/* ---------- generic page head ---------- */
.page-head { padding: 50px 0 12px; }
.page-head--center { text-align: center; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 21px; color: var(--faint); font-size: 11.5px; }
.breadcrumb a { color: var(--faint); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--line-strong); }
.page-head h1 { font-size: clamp(37px, 5vw, 58px); margin: 10px 0 16px; }
.page-head .lead { max-width: 45em; margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.72; }
.page-head--center .lead { margin-left: auto; margin-right: auto; }
.page-head .page-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.page-head--center .page-meta { justify-content: center; }
@media (max-width: 600px) { .page-head { padding-top: 34px; } }

/* ---------- prose / legal ---------- */
.prose { max-width: 780px; margin: 0 auto; color: var(--text); }
.prose h2 { font-family: var(--sans); font-size: 22px; font-weight: 750; letter-spacing: -.02em; margin: 38px 0 11px; color: var(--ink); }
.prose h3 { font-family: var(--sans); font-size: 16px; margin: 24px 0 7px; }
.prose p, .prose li { font-size: 14px; line-height: 1.78; color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .note { padding: 15px 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); font-size: 13px; color: var(--muted); }
.legal-card { padding: 34px 37px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
@media (max-width: 600px) { .legal-card { padding: 25px 20px; } }

/* ---------- tool page ---------- */
.tool-page { padding: 34px 0 0; }
.tool-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 23px; }
.tool-head-main { min-width: 0; }
.tool-head .breadcrumb { margin-bottom: 12px; }
.tool-head h1 { font-size: clamp(31px, 4vw, 47px); margin: 0 0 9px; }
.tool-head p { max-width: 750px; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.68; }
.tool-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tool-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.studio-shell { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; }
.studio-topbar { display: flex; align-items: center; gap: 12px; min-height: 55px; padding: 10px 19px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 65%, var(--card)); }
.studio-topbar b { color: var(--ink); font-size: 13px; font-weight: 750; }
.studio-topbar .grow { flex: 1; }
.studio-topbar .mini-state { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 11.5px; }
.mini-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.studio-topbar .btn { min-height: 31px; padding: 4px 10px; font-size: 11.5px; }
.studio-body { padding: 20px; }
.studio-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 425px; padding: 26px; }
.empty-orbit { position: relative; width: 120px; height: 120px; display: grid; place-items: center; margin-bottom: 21px; }
.empty-orbit::before, .empty-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed var(--line-strong); }
.empty-orbit::before { inset: 0; }
.empty-orbit::after { inset: 15px; border-style: solid; border-color: var(--line); background: var(--paper); }
.empty-orbit svg { position: relative; z-index: 1; width: 37px; height: 37px; color: var(--signal); }
.studio-empty h2 { font-family: var(--serif); font-size: 29px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 7px; text-align: center; }
.studio-empty p { max-width: 455px; margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.65; text-align: center; }
.upload-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.file-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 13px; margin-top: 15px; color: var(--faint); font-size: 10.5px; }
.file-note span { display: inline-flex; align-items: center; gap: 4px; }
.file-note svg { width: 12px; height: 12px; }
.upload-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 325px; padding: 30px 22px; border: 1.5px dashed var(--line-strong); border-radius: 16px; background: linear-gradient(180deg, var(--paper), var(--card)); cursor: pointer; transition: border-color .15s, background .15s; }
.upload-zone:hover, .upload-zone.over { border-color: var(--accent); background: var(--accent-softer); }
.upload-zone .uz-icon { width: 57px; height: 57px; display: grid; place-items: center; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
.upload-zone .uz-icon svg { width: 27px; height: 27px; }
.upload-zone b { color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.upload-zone span { color: var(--muted); font-size: 12.5px; }
.upload-zone .uz-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 13px; }
.uz-pills i { font-style: normal; padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--faint); font-family: var(--mono); font-size: 9.5px; font-weight: 700; }
.file-input-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 17px; align-items: stretch; }
.stage-card { min-width: 0; display: flex; flex-direction: column; background: var(--sunken); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 13px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.stage-top .stage-live { display: inline-flex; align-items: center; gap: 5px; color: var(--green); letter-spacing: .02em; text-transform: none; font-size: 10.5px; }
.stage-top .stage-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.stage { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-height: 440px; padding: 23px; background-image: radial-gradient(color-mix(in srgb, var(--line-strong) 50%, transparent) .7px, transparent .7px); background-size: 18px 18px; }
.photo-frame { position: relative; width: min(100%, 440px); background: #fff; box-shadow: var(--shadow-photo); }
.photo-frame::before, .photo-frame::after { content: ""; position: absolute; z-index: 4; pointer-events: none; width: 14px; height: 14px; border-color: color-mix(in srgb, var(--ink) 50%, transparent); border-style: solid; }
.photo-frame::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.photo-frame::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.photo-frame canvas { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; }
.photo-frame canvas:active { cursor: grabbing; }
.photo-guide { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .15s; }
.photo-guide.off { opacity: 0; }
.guide-head { position: absolute; border: 1px dashed rgba(49, 80, 199, .78); border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset; }
.guide-eye { position: absolute; left: 8%; right: 8%; border-top: 1px dashed rgba(49, 80, 199, .78); }
.guide-eye::after { content: "eyes"; position: absolute; right: -2px; top: -14px; padding: 1px 4px; border-radius: 3px; background: rgba(49, 80, 199, .92); color: #fff; font: 700 7px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.guide-head::after { content: attr(data-label); position: absolute; right: -7px; bottom: 8%; padding: 2px 5px; border-radius: 3px; background: rgba(49, 80, 199, .9); color: #fff; font: 700 7px/1.4 var(--sans); letter-spacing: .03em; white-space: nowrap; }
.stage-bar { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-top: 1px solid var(--line); background: var(--card); }
.stage-bar .zoom-mini { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 90px; }
.stage-bar .zoom-mini svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
.stage-bar input[type="range"] { width: 100%; accent-color: var(--accent); }
.stage-bar .zoom-value { min-width: 38px; text-align: right; color: var(--faint); font-family: var(--mono); font-size: 10px; }
.stage-bar .btn { flex: none; }
.side-panel { display: grid; gap: 9px; align-self: start; }
.panel-block { padding: 15px 15px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel-title > span:first-child { color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .01em; }
.panel-title .tiny-link { color: var(--faint); font-size: 10.5px; font-weight: 650; }
.panel-title .tiny-link:hover { color: var(--accent); }
.preset-select-wrap { position: relative; }
.preset-select-wrap svg { position: absolute; right: 11px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.field-select { width: 100%; min-height: 41px; padding: 8px 31px 8px 10px; appearance: none; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 12.5px; font-weight: 600; }
.field-select:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 14%, transparent); }
.spec-line { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.spec-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 700; }
.spec-note { margin: 9px 0 0; color: var(--faint); font-size: 10.5px; line-height: 1.55; }
.custom-size { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.mini-field { display: grid; gap: 4px; }
.mini-field label { color: var(--faint); font-size: 10px; font-weight: 700; }
.mini-field input { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 12px; }
.uploaded-row { display: flex; align-items: center; gap: 9px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.uploaded-row img { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; flex: none; background: var(--sunken); }
.uploaded-info { min-width: 0; flex: 1; }
.uploaded-info b { display: block; overflow: hidden; color: var(--ink); font-size: 11.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.uploaded-info span { display: block; overflow: hidden; color: var(--faint); font-size: 9.5px; margin-top: 1px; text-overflow: ellipsis; white-space: nowrap; }
.mini-icon-btn { width: 27px; height: 27px; display: grid; place-items: center; flex: none; border: 0; border-radius: 6px; background: transparent; color: var(--faint); cursor: pointer; }
.mini-icon-btn:hover { background: var(--hover); color: var(--err); }
.mini-icon-btn svg { width: 14px; height: 14px; }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.control-row label { color: var(--muted); font-size: 11px; font-weight: 650; }
.control-row output { color: var(--faint); font-family: var(--mono); font-size: 9.5px; }
input[type="range"].field-range { width: 100%; height: 4px; margin: 9px 0 4px; accent-color: var(--accent); }
.field-range + .range-ends { display: flex; justify-content: space-between; color: var(--faint); font-size: 8.5px; margin-bottom: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { position: relative; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line-strong); border-radius: 7px; cursor: pointer; box-shadow: inset 0 0 0 2px var(--card); }
.swatch:hover { border-color: var(--accent); }
.swatch.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.swatch[data-bg="keep"] { display: grid; place-items: center; background: var(--paper); color: var(--muted); }
.swatch[data-bg="#ffffff"] { border-color: #d8d2c6; }
.swatch[data-bg="#f5eddc"] { border-color: #dfd2bb; }
.swatch[data-bg="#e7edf1"] { border-color: #cbd6dc; }
.swatch[data-bg="#dfeaf5"] { border-color: #c5d8e7; }
.swatch[data-bg="keep"] svg { width: 14px; height: 14px; }
.swatch.custom { overflow: hidden; display: grid; place-items: center; background: conic-gradient(#f45, #fb3, #3d5, #3cf, #a4f, #f45); }
.swatch.custom svg { width: 13px; height: 13px; color: #fff; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.swatch-row-label { width: 100%; color: var(--faint); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; }
.toggle-row span { color: var(--muted); font-size: 11px; }
.toggle { position: relative; display: inline-flex; width: 34px; height: 20px; flex: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background .15s; cursor: pointer; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.toggle input:checked + i { background: var(--accent); }
.toggle input:checked + i::after { transform: translateX(14px); }
.studio-empty.over { outline: 2px dashed var(--accent); outline-offset: -7px; background: var(--accent-softer); border-radius: 16px; }
.adjust-box { margin-top: 11px; border-top: 1px solid var(--line); padding-top: 10px; }
.adjust-box summary { display: flex; align-items: center; gap: 7px; list-style: none; color: var(--muted); font-size: 10.5px; font-weight: 700; cursor: pointer; }
.adjust-box summary::-webkit-details-marker { display: none; }
.adjust-box summary::after { content: "+"; margin-left: auto; color: var(--faint); font-size: 14px; font-weight: 400; }
.adjust-box[open] summary::after { content: "−"; }
.adjust-box .adj-body { margin-top: 9px; display: grid; gap: 3px; }
.zoom-label { color: var(--faint); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.guide-toggle-label { color: var(--faint); font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.stage-rotate { width: 30px; height: 30px; border: 1px solid var(--line) !important; background: var(--card) !important; color: var(--muted) !important; flex: none; }
.stage-rotate:hover { border-color: var(--accent) !important; color: var(--accent) !important; background: var(--card) !important; }
.stage-rotate svg { width: 15px; height: 15px; }
.download-block { padding: 15px; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 14px; background: var(--accent-softer); }
.download-block .btn.primary { min-height: 45px; font-size: 14px; }
.download-note { margin: 9px 0 0; text-align: center; color: var(--faint); font-size: 9.5px; line-height: 1.5; }
.format-toggle { display: flex; align-items: center; gap: 5px; margin-bottom: 9px; }
.format-toggle span { color: var(--faint); font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-right: auto; }
.seg-mini { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.seg-mini button { min-height: 25px; padding: 3px 8px; border: 0; border-radius: 5px; background: none; color: var(--muted); font-size: 9.5px; font-weight: 700; cursor: pointer; }
.seg-mini button.on { background: var(--accent); color: var(--on-accent); }
.status-line { margin-top: 9px; padding: 9px 10px; border-radius: 8px; font-size: 11px; line-height: 1.55; }
.status-line.ok { background: var(--green-soft); color: var(--green); }
.status-line.warn { background: var(--amber-soft); color: var(--amber); }
.status-line.err { background: var(--err-soft); color: var(--err); }
.cutout-box { margin-top: 12px; padding: 10px 11px; border: 1px solid color-mix(in srgb, var(--violet) 26%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--violet-soft) 60%, var(--card)); }
.cutout-head { display: flex; align-items: center; gap: 8px; }
.cutout-ic { width: 26px; height: 26px; display: grid; place-items: center; flex: none; border-radius: 7px; background: var(--violet-soft); color: var(--violet); }
.cutout-ic svg { width: 15px; height: 15px; }
.cutout-copy { min-width: 0; flex: 1; }
.cutout-copy b { display: block; color: var(--ink); font-size: 11.5px; font-weight: 750; }
.cutout-copy span { display: block; margin-top: 1px; color: var(--faint); font-size: 9.5px; line-height: 1.4; }
.cutout-btn { min-height: 27px; padding: 4px 8px; flex: none; border: 1px solid color-mix(in srgb, var(--violet) 35%, var(--line)); border-radius: 6px; background: var(--card); color: var(--violet); font-size: 9.5px; font-weight: 750; cursor: pointer; }
.cutout-btn:hover { border-color: var(--violet); }
.cutout-btn:disabled { opacity: .64; cursor: default; }
.cutout-note { margin-top: 7px; font-size: 9px; }
.cutout-box .status-line { margin-top: 8px; padding: 7px 8px; font-size: 10px; }
@media (max-width: 1000px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 320px; }
  .stage { min-height: 380px; padding: 18px; }
}
@media (max-width: 880px) {
  .workspace { grid-template-columns: 1fr; }
  .side-panel { grid-template-columns: 1fr 1fr; align-items: start; }
  .download-block { grid-column: 1 / -1; }
  .stage { min-height: 360px; }
}
@media (max-width: 620px) {
  .studio-topbar b { font-size: 12.5px; white-space: nowrap; }
  .studio-topbar .mini-state { display: none; }
  .studio-body { padding: 13px; }
  .studio-empty { min-height: 360px; padding: 20px 14px; }
  .side-panel { grid-template-columns: 1fr; }
  .stage { min-height: 300px; padding: 14px; }
  .photo-frame { width: min(100%, 370px); }
  .tool-head { margin-bottom: 18px; }
  .tool-head-actions { width: 100%; }
  .tool-head-actions .btn { flex: 1; }
  .studio-topbar { padding: 10px 13px; }
}

.stage-column { display: flex; min-width: 0; flex-direction: column; gap: 13px; }
.check-card { padding: 18px 18px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.check-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.check-head .kicker { font-size: 10px; margin-bottom: 5px; color: var(--green); }
.check-head .kicker::before { width: 13px; }
.check-head h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.03em; margin: 0; }
.check-summary { margin-bottom: 9px; }
.check-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.check-row { display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.check-row:first-child { border-top: 0; }
.check-row .ci { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; }
.check-row .ci svg { width: 11px; height: 11px; }
.check-row .cl { color: var(--text); font-size: 11.5px; font-weight: 650; }
.check-row .cv { color: var(--faint); font-family: var(--mono); font-size: 9.5px; text-align: right; white-space: nowrap; }
.check-row.pass .ci { background: var(--green-soft); color: var(--green); }
.check-row.warn .ci { background: var(--amber-soft); color: var(--amber); }
.check-row.fail .ci { background: var(--err-soft); color: var(--err); }
.check-row.pass .cv { color: var(--green); }
.check-row.warn .cv { color: var(--amber); }
.check-row.fail .cv { color: var(--err); }
.check-note { margin: 9px 0 0; color: var(--faint); font-size: 9.5px; line-height: 1.55; }
@media (max-width: 880px) { .stage-column { display: contents; } .stage-card { order: 1; } .side-panel { order: 2; } .check-card { order: 3; margin-top: 0; } .workspace { align-items: start; } }

.edit-caution { margin: 9px 0 0; padding: 8px 9px; border: 1px solid color-mix(in srgb, var(--amber) 23%, var(--line)); border-radius: 7px; background: var(--amber-soft); color: var(--amber); font-size: 9.5px; line-height: 1.55; }
.reviewed-note { display: block; margin-top: 8px; color: var(--faint); font-size: 9px; line-height: 1.45; }

/* ---------- print sheet ---------- */
.sheet-section { margin-top: 20px; padding: 25px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-bottom: 21px; }
.sheet-head h2 { font-family: var(--serif); font-size: 29px; font-weight: 600; letter-spacing: -.035em; margin: 2px 0 6px; }
.sheet-head p { margin: 0; max-width: 45em; color: var(--muted); font-size: 13px; }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 22px; align-items: start; }
.sheet-preview-wrap { display: flex; align-items: center; justify-content: center; min-height: 355px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--sunken); background-image: radial-gradient(color-mix(in srgb, var(--line-strong) 46%, transparent) .7px, transparent .7px); background-size: 17px 17px; }
.sheet-preview { display: block; max-width: 100%; max-height: 520px; width: auto; height: auto; background: #fff; box-shadow: var(--shadow-photo); }
.sheet-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 315px; color: var(--faint); text-align: center; font-size: 12px; }
.sheet-empty svg { width: 30px; height: 30px; color: var(--line-strong); }
.sheet-controls { display: grid; gap: 13px; }
.sheet-controls .toggle-row { margin-top: 0; padding: 2px 0; }
.sheet-controls .toggle-row > span:first-child { color: var(--muted); font-size: 11px; font-weight: 650; }
.sheet-controls .mini-field select { min-height: 39px; }
.sheet-controls .btn { min-height: 43px; }
.sheet-count { display: flex; align-items: baseline; gap: 6px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.sheet-count b { color: var(--ink); font-family: var(--serif); font-size: 30px; line-height: 1; font-weight: 600; }
.sheet-count span { color: var(--muted); font-size: 11px; }
.sheet-count .badge { margin-left: auto; }
.sheet-note { color: var(--faint); font-size: 10px; line-height: 1.55; }
@media (max-width: 900px) { .sheet-grid { grid-template-columns: 1fr; } .sheet-preview-wrap { min-height: 300px; } }
@media (max-width: 620px) { .sheet-section { padding: 18px 14px; } }

/* ---------- below tool content ---------- */
.tool-copy-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 50px; margin-top: 68px; }
.tool-copy-grid h2 { font-size: 33px; }
.tool-copy-grid h3 { font-size: 16px; margin-top: 22px; }
.tool-copy-grid p, .tool-copy-grid li { color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.tool-copy-grid ul { padding-left: 19px; }
.tool-copy-grid li { margin-bottom: 6px; }
.aside-card { align-self: start; padding: 23px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.aside-card h3 { font-family: var(--sans); font-size: 14px; margin: 0 0 11px; }
.aside-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.aside-card li { display: flex; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.aside-card li svg { width: 14px; height: 14px; margin-top: 2px; flex: none; color: var(--green); }
.tool-faq { margin-top: 58px; }
.tool-faq h2 { text-align: center; font-size: 34px; margin-bottom: 24px; }
@media (max-width: 800px) { .tool-copy-grid { grid-template-columns: 1fr; gap: 26px; margin-top: 48px; } }

/* ---------- requirements page ---------- */
.req-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.req-toolbar .search-box { flex: 1; min-width: 220px; }
.req-toolbar .type-tabs { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); gap: 2px; }
.req-toolbar .type-tabs button { min-height: 32px; padding: 5px 11px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11.5px; font-weight: 700; }
.req-toolbar .type-tabs button.on { background: var(--ink); color: var(--paper); }
.req-count { margin: 15px 2px 10px; color: var(--faint); font-size: 11.5px; }
.req-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.req-table th, .req-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 12.5px; }
.req-table tr:last-child td { border-bottom: 0; }
.req-table th { background: color-mix(in srgb, var(--sunken) 75%, var(--card)); color: var(--faint); font-size: 9.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.req-table tbody tr:hover { background: color-mix(in srgb, var(--hover) 62%, transparent); }
.req-country { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.req-code { width: 27px; height: 22px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--faint); font-family: var(--mono); font-size: 9px; font-weight: 800; flex: none; }
.req-country b { color: var(--ink); font-weight: 700; }
.req-doc { color: var(--muted); }
.req-size { color: var(--ink); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.req-bg { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.req-bg i { width: 12px; height: 12px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--swatch-color, #fff); }
.req-action { text-align: right; white-space: nowrap; }
.req-action a { font-size: 11.5px; font-weight: 750; }
.req-action .req-sep { margin: 0 1px; color: var(--faint); font-size: 10px; }
.req-action a.req-source { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.req-action a.req-source:hover { color: var(--accent); }
.req-empty { padding: 40px 20px; text-align: center; color: var(--faint); background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; }
.req-disclaimer { margin-top: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--faint); font-size: 11px; line-height: 1.65; }
.req-card-list { display: none; }
@media (max-width: 800px) {
  .req-table { display: none; }
  .req-card-list { display: grid; gap: 8px; }
  .req-card { padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; }
  .req-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
  .req-card-top b { color: var(--ink); font-size: 13px; }
  .req-card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 11px; }
  .req-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
  .req-card .req-action { text-align: left; margin-top: 10px; }
}

/* ---------- AI page ---------- */
.ai-page-hero { position: relative; overflow: hidden; background: var(--dark); color: var(--dark-text); border-bottom: 1px solid #0c0d12; }
.ai-page-hero::before { content: ""; position: absolute; inset: -50% 30% auto -10%; height: 150%; background: radial-gradient(closest-side, rgba(116, 80, 183, .4), transparent 70%); pointer-events: none; }
.ai-page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) .7px, transparent .7px); background-size: 23px 23px; mask-image: linear-gradient(90deg, transparent 30%, #000 100%); opacity: .65; pointer-events: none; }
.ai-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 50px; align-items: center; padding: 69px 24px 74px; }
.ai-page-hero .eyebrow { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #e5ded2; }
.ai-page-hero .eyebrow i { background: #b696ee; box-shadow: 0 0 0 3px rgba(182,150,238,.16); }
.ai-page-hero h1 { color: #fbf7ee; font-size: clamp(43px, 5.3vw, 68px); letter-spacing: -.048em; line-height: 1.02; margin: 19px 0 20px; }
.ai-page-hero h1 em { font-style: italic; color: #c9abff; }
.ai-page-hero .hero-sub { color: #b9b4aa; font-size: 16.5px; max-width: 35em; }
.ai-page-hero .hero-sub b { color: #f1ece2; }
.ai-page-hero .hero-checks li { color: #b9b4aa; }
.ai-page-hero .hero-checks li::before { background: rgba(118, 203, 156, .15); }
.ai-page-hero .hero-checks li::after { background: #7cd9a4; }
.ai-page-hero .btn.ghost { color: #e8e3d9; border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); }
.ai-page-hero .btn.ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .09); }
.ai-page-hero .hero-foot { color: #8f8a81; }
.ai-page-hero .hero-foot svg { color: #7cd9a4; }
.ai-hero-art { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.ai-hero-art .ai-mini { background: #f6f2ea; }
.ai-hero-art .ai-mini:nth-child(2) { margin-top: 35px; }
.ai-hero-art .ai-mini:nth-child(1) { margin-top: 3px; }
.ai-hero-art .ai-mini-body b { font-size: 10px; }
.ai-hero-art .ai-mini-body span { font-size: 8px; }
.ai-hero-note { position: absolute; left: 0; right: 18%; bottom: -40px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.06); backdrop-filter: blur(8px); color: #bdb7ad; font-size: 9.5px; line-height: 1.4; }
.ai-hero-note svg { width: 14px; height: 14px; color: #b696ee; flex: none; }
@media (max-width: 900px) { .ai-hero-in { grid-template-columns: 1fr; padding: 51px 18px 66px; } .ai-hero-art { max-width: 500px; } }
.ai-styles-section { padding: 70px 0 0; }
.ai-style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ai-style-card { position: relative; display: grid; grid-template-columns: 44% 56%; overflow: hidden; min-height: 305px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); transition: border-color .16s, transform .16s, box-shadow .16s; cursor: pointer; }
.ai-style-card:hover, .ai-style-card.selected { border-color: color-mix(in srgb, var(--violet) 46%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ai-style-card.selected { box-shadow: 0 0 0 2px var(--violet-soft), var(--shadow-lg); }
.style-photo { position: relative; min-width: 0; overflow: hidden; background: var(--sunken); min-height: 305px; }
.style-photo img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: center 24%; transition: transform .4s; }
.ai-style-card:hover .style-photo img { transform: scale(1.025); }
.style-preview-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: rgba(20, 19, 17, .62); backdrop-filter: blur(5px); color: #fff; font-size: 9px; font-weight: 750; letter-spacing: .03em; }
.style-preview-badge i { width: 5px; height: 5px; border-radius: 50%; background: #b696ee; }
.style-body { display: flex; min-width: 0; flex-direction: column; padding: 23px 23px 21px; }
.style-num { color: var(--faint); font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; margin-bottom: 11px; }
.style-body h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -.035em; margin: 0 0 7px; }
.style-body p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0 0 14px; }
.style-attrs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.style-attrs span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.style-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.style-cta b { color: var(--accent); font-size: 11.5px; font-weight: 750; }
.style-cta svg { width: 15px; height: 15px; color: var(--accent); }
@media (max-width: 850px) { .ai-style-grid { grid-template-columns: 1fr; } .ai-style-card { min-height: 285px; } .style-photo { min-height: 285px; } }
@media (max-width: 520px) { .ai-style-card { grid-template-columns: minmax(0, 1fr); } .style-photo { width: 100%; min-height: 260px; aspect-ratio: 1.35; } .style-body { padding: 19px 18px; } }

.ai-studio-section { padding: 24px 0 0; }
.ai-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.ai-canvas-card { min-height: 480px; padding: 17px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.ai-canvas { display: flex; align-items: center; justify-content: center; min-height: 445px; padding: 18px; background: var(--sunken); border: 1px solid var(--line); border-radius: 14px; background-image: radial-gradient(color-mix(in srgb, var(--line-strong) 43%, transparent) .7px, transparent .7px); background-size: 18px 18px; overflow: hidden; }
.ai-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 390px; padding: 28px 20px; text-align: center; }
.ai-drop-ic { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--violet); box-shadow: var(--shadow); }
.ai-drop-ic svg { width: 30px; height: 30px; }
.ai-drop h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 6px; }
.ai-drop p { max-width: 380px; margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.ai-preview { position: relative; width: 100%; max-width: 455px; aspect-ratio: 1; background: #fff; border-radius: 7px; box-shadow: var(--shadow-photo); overflow: hidden; }
.ai-preview img { width: 100%; height: 100%; object-fit: contain; display: block; background: #f2eee7; }
.ai-preview-label { position: absolute; left: 9px; bottom: 9px; padding: 4px 8px; border-radius: 5px; background: rgba(20, 20, 22, .68); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.ai-result-wrap { width: 100%; max-width: 455px; }
.ai-result-wrap .ai-preview { max-width: none; }
.ai-result-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ai-result-actions .btn { flex: 1; }
.ai-side { display: grid; gap: 12px; }
.ai-config { padding: 20px 20px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.ai-config-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.ai-config-thumb { width: 48px; height: 48px; flex: none; border-radius: 8px; object-fit: cover; object-position: center 24%; background: var(--sunken); }
.ai-config-top b { display: block; color: var(--ink); font-size: 13px; line-height: 1.3; }
.ai-config-top span { display: block; color: var(--faint); font-size: 10px; margin-top: 2px; }
.ai-config .field-label { display: block; color: var(--ink); font-size: 11.5px; font-weight: 800; margin: 14px 0 7px; }
.ai-config .already { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.ai-config .already img { width: 40px; height: 40px; object-fit: cover; border-radius: 5px; flex: none; }
.ai-config .already div { min-width: 0; flex: 1; }
.ai-config .already b { display: block; font-size: 10.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-config .already span { display: block; font-size: 9px; color: var(--faint); }
.ai-config .btn { min-height: 46px; margin-top: 12px; }
.ai-consent { display: flex; align-items: flex-start; gap: 7px; margin-top: 11px; color: var(--faint); font-size: 9.5px; line-height: 1.5; cursor: pointer; }
.ai-consent input { margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.ai-privacy-note { display: flex; gap: 8px; padding: 11px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; color: var(--faint); font-size: 10px; line-height: 1.55; }
.ai-privacy-note svg { width: 15px; height: 15px; flex: none; color: var(--green); margin-top: 1px; }
.ai-credit-note { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--violet-soft); border: 1px solid color-mix(in srgb, var(--violet) 18%, var(--line)); border-radius: 11px; color: var(--violet); font-size: 10.5px; line-height: 1.5; }
.ai-credit-note svg { width: 15px; height: 15px; flex: none; }
.ai-progress { display: grid; gap: 7px; padding: 12px 0 2px; }
.ai-progress-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10.5px; }
.ai-progress-row .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); flex: none; }
.ai-progress-row.on { color: var(--ink); }
.ai-progress-row.on .pdot { background: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.ai-progress-row.done .pdot { background: var(--green); box-shadow: none; }
.ai-progress-row.done { color: var(--green); }
.ai-error { margin-top: 10px; padding: 10px 11px; background: var(--err-soft); border: 1px solid color-mix(in srgb, var(--err) 20%, transparent); border-radius: 8px; color: var(--err); font-size: 10.5px; line-height: 1.6; }
.ai-error a { color: inherit; text-decoration: underline; }
.ai-engine-note { margin-top: 8px; color: var(--faint); font-size: 9px; line-height: 1.5; text-align: center; }
@media (max-width: 950px) { .ai-workbench { grid-template-columns: 1fr; } .ai-canvas-card { min-height: 0; } .ai-canvas { min-height: 360px; } .ai-side { grid-template-columns: 1fr 1fr; align-items: start; } .ai-config { grid-column: 1 / -1; } }
@media (max-width: 650px) { .ai-side { grid-template-columns: 1fr; } .ai-canvas-card { padding: 11px; } .ai-canvas { padding: 10px; } .ai-preview { max-width: 100%; } }

/* AI info strip */
.ai-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.ai-info { padding: 19px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.ai-info svg { width: 19px; height: 19px; color: var(--violet); margin-bottom: 10px; }
.ai-info b { display: block; color: var(--ink); font-size: 12.5px; margin-bottom: 3px; }
.ai-info p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
@media (max-width: 720px) { .ai-info-grid { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.pricing-hero { padding: 66px 0 10px; text-align: center; }
.pricing-hero .eyebrow { margin-bottom: 18px; }
.pricing-hero h1 { font-size: clamp(41px, 5.2vw, 64px); margin: 0 auto 15px; max-width: 780px; }
.pricing-hero p { max-width: 650px; margin: 0 auto; color: var(--muted); font-size: 16px; line-height: 1.7; }
.pricing-hero .hero-cta { justify-content: center; margin-top: 24px; }
.free-strip { display: flex; align-items: center; gap: 15px; max-width: 950px; margin: 32px auto 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.free-strip-ic { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 9px; background: var(--green-soft); color: var(--green); }
.free-strip-ic svg { width: 18px; height: 18px; }
.free-strip b { display: block; color: var(--ink); font-size: 12.5px; }
.free-strip div > span { display: block; color: var(--muted); font-size: 10.5px; margin-top: 1px; }
.free-strip .badge { margin-left: auto; flex: none; }
.pricing-tabs-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 43px; }
.pricing-tabs { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.pricing-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 17px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12.5px; font-weight: 700; }
.pricing-tab .badge { font-size: 9px; padding: 2px 6px; }
.pricing-tab.on { background: var(--accent); color: var(--on-accent); }
.pricing-tab.on .badge { background: rgba(255,255,255,.2); color: var(--on-accent); }
.pricing-tab:not(.on):hover { color: var(--ink); background: var(--hover); }
.pricing-subnote { margin-top: 11px; color: var(--faint); font-size: 10.5px; display: flex; align-items: center; gap: 6px; }
.pricing-subnote svg { width: 13px; height: 13px; }
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 28px; align-items: stretch; }
.pack-card { position: relative; display: flex; flex-direction: column; padding: 26px 23px 23px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.pack-card.featured { border-color: var(--signal); box-shadow: 0 20px 48px -30px color-mix(in srgb, var(--signal) 55%, transparent), var(--shadow); }
.pack-card.best { border-color: #c79b43; background: linear-gradient(180deg, color-mix(in srgb, var(--amber-soft) 46%, var(--card)), var(--card) 42%); }
.pack-flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 4px 11px; border-radius: 999px; background: var(--signal); color: var(--on-signal); font-size: 9.5px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.pack-card.best .pack-flag { background: #a97920; color: #fff; }
.pack-name { color: var(--muted); font-size: 12px; font-weight: 750; }
.pack-price { margin-top: 10px; font-family: var(--serif); color: var(--ink); font-size: 49px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.pack-price sup { font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: 0; vertical-align: top; margin-right: 2px; }
.pack-per { margin-top: 6px; color: var(--faint); font-size: 10.5px; }
.pack-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.pack-stat { padding: 11px 12px; text-align: center; }
.pack-stat + .pack-stat { border-left: 1px solid var(--line); }
.pack-stat b { display: block; color: var(--ink); font-size: 21px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pack-stat span { display: block; margin-top: 2px; color: var(--faint); font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pack-card .btn { min-height: 43px; margin-top: 1px; }
.pack-list { margin: 17px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.pack-list li { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.pack-list svg { width: 13px; height: 13px; flex: none; color: var(--green); margin-top: 1px; }
.pack-footnote { margin-top: 16px; color: var(--faint); font-size: 9.5px; line-height: 1.55; }
.custom-pack { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 38px; align-items: center; margin-top: 18px; padding: 29px 31px; background: var(--dark); color: var(--dark-text); border-radius: var(--radius-card); overflow: hidden; position: relative; }
.custom-pack::before { content: ""; position: absolute; right: 0; top: -120%; width: 50%; height: 300%; background: radial-gradient(closest-side, rgba(116,80,183,.28), transparent 70%); pointer-events: none; }
.custom-pack h2 { color: #f8f3ea; font-size: 31px; margin: 8px 0 8px; }
.custom-pack p { color: #a8a399; font-size: 12px; margin: 0; max-width: 33em; }
.custom-pack .kicker { color: #c9abff; }
.slider-panel { position: relative; z-index: 1; padding: 17px 18px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 13px; }
.slider-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.slider-top b { color: #f7f2e8; font-size: 12.5px; }
.slider-top output { color: #c9abff; font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1; }
.slider-panel input[type="range"] { width: 100%; margin: 15px 0 6px; accent-color: #9f7cdb; }
.slider-ends { display: flex; justify-content: space-between; color: #8e897f; font-size: 9.5px; }
.slider-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: #b1aba1; font-size: 10px; }
.slider-meta span { display: inline-flex; align-items: center; gap: 4px; }
.slider-meta svg { width: 12px; height: 12px; color: #7cd9a4; }
.slider-panel .btn { width: 100%; margin-top: 11px; min-height: 41px; background: #8c64ce; border-color: #8c64ce; }
.slider-panel .btn:hover { background: #9d75df; border-color: #9d75df; }
.checkout-note { display: flex; align-items: flex-start; gap: 8px; max-width: 860px; margin: 18px auto 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--faint); font-size: 10.5px; line-height: 1.55; }
.checkout-note svg { width: 15px; height: 15px; flex: none; color: var(--amber); margin-top: 1px; }
.pricing-compare { margin-top: 62px; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.compare-table th, .compare-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
.compare-table th { background: color-mix(in srgb, var(--sunken) 70%, var(--card)); color: var(--faint); font-size: 9.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.compare-table th:not(:first-child), .compare-table td:not(:first-child) { text-align: center; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td:first-child { color: var(--ink); font-weight: 650; }
.compare-table .yes { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--green); font-size: 11px; font-weight: 700; }
.compare-table .yes svg { width: 13px; height: 13px; }
.compare-table .no { color: var(--faint); font-size: 11px; }
@media (max-width: 900px) { .pack-grid { grid-template-columns: 1fr; max-width: 540px; margin-left: auto; margin-right: auto; } .pack-card { padding: 24px 21px; } .custom-pack { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 640px) { .pricing-hero { padding-top: 40px; } .free-strip { align-items: flex-start; flex-wrap: wrap; } .free-strip .badge { margin-left: 51px; } .compare-table th, .compare-table td { padding: 11px 10px; font-size: 10.5px; } .custom-pack { padding: 24px 20px; } }
@media (max-width: 420px) { .pricing-tabs-wrap { width: 100%; } .pricing-tabs { flex-wrap: wrap; width: 100%; justify-content: center; border-radius: 18px; } .pricing-tab { padding: 6px 10px; font-size: 11px; } }

/* ---------- generic cards / callouts ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info-tile { padding: 22px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 15px; }
.info-tile .it-ic { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; margin-bottom: 12px; background: var(--accent-soft); color: var(--accent); }
.info-tile .it-ic svg { width: 18px; height: 18px; }
.info-tile b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; }
.info-tile p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.62; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
.note-band { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.note-band svg { width: 17px; height: 17px; flex: none; color: var(--signal); margin-top: 1px; }
.note-band a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- sitemap ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.sitemap-card { padding: 22px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 15px; }
.sitemap-card h2 { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin: 0 0 11px; }
.sitemap-card a { display: block; padding: 4px 0; color: var(--text); font-size: 12.5px; }
.sitemap-card a:hover { color: var(--accent); }
@media (max-width: 600px) { .sitemap-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.contact-card { padding: 28px 27px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.contact-card h2 { font-family: var(--sans); font-size: 17px; font-weight: 750; margin: 0 0 8px; }
.contact-card p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.contact-row { display: flex; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); }
.contact-row svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.contact-row b { display: block; color: var(--ink); font-size: 12px; margin-bottom: 1px; }
.contact-row a, .contact-row span { color: var(--muted); font-size: 12px; }
.contact-form { display: grid; gap: 13px; }
.contact-form .mini-field label { font-size: 11px; }
.contact-form .mini-field input, .contact-form .mini-field textarea { min-height: 41px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 13px; }
.contact-form textarea { min-height: 150px; resize: vertical; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- account / auth ---------- */
.sign-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; max-width: 152px; min-height: 36px; padding: 6px 13px; border: 1px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.sign-btn:hover { background: var(--accent); color: var(--on-accent); }
.sign-btn .acct-name { max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
.acct-wrap { position: relative; display: flex; align-items: center; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 9px); z-index: 96; min-width: 222px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-lg); display: none; }
.acct-menu.open { display: block; }
.acct-menu .who { padding: 8px 10px 9px; border-bottom: 1px solid var(--line); margin-bottom: 5px; color: var(--faint); font-size: 10.5px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; }
.acct-menu a, .acct-menu button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; text-align: left; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--hover); color: var(--ink); }
.acct-menu a svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.acct-menu .danger { color: var(--err); }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.gbtn:hover { border-color: var(--accent); background: var(--card); color: var(--accent); }
.gbtn svg { width: 19px; height: 19px; flex: none; }
.auth-modal { max-width: 440px; text-align: center; }
.auth-brand { width: 44px; height: 44px; margin: 0 auto 13px; }
.auth-brand svg { width: 44px; height: 44px; display: block; }
.auth-modal h2 { font-family: var(--serif); font-size: 29px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 7px; }
.auth-modal .m-sub { color: var(--muted); font-size: 12.5px; line-height: 1.7; margin: 0 0 18px; }
.auth-note { margin: 15px 0 0; color: var(--faint); font-size: 10.5px; line-height: 1.6; }
.auth-note a { text-decoration: underline; text-underline-offset: 2px; }
.auth-warning { margin: 13px 0 0; padding: 10px 11px; border: 1px solid color-mix(in srgb, var(--amber) 25%, var(--line)); border-radius: 8px; background: var(--amber-soft); color: var(--amber); font-size: 10.5px; line-height: 1.55; text-align: left; }
.account { padding: 44px 0 10px; }
.account-loading { max-width: 500px; margin: 0 auto; padding: 35px 28px; text-align: center; }
.account-loading h1 { font-size: 28px; }
.account-loading p { color: var(--muted); font-size: 13px; }
.account-auth { max-width: 470px; margin: 0 auto; padding: 34px 30px 28px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-lg); }
.account-auth .auth-brand { width: 49px; height: 49px; }
.account-auth h1 { font-size: 30px; margin: 0 0 8px; }
.account-auth p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.account-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.account-head .avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--accent-soft); color: var(--accent); font-size: 22px; font-weight: 800; }
.account-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-head h1 { font-family: var(--serif); font-size: 33px; font-weight: 600; letter-spacing: -.035em; margin: 0 0 2px; }
.account-head p { margin: 0; color: var(--muted); font-size: 12.5px; }
.account-head .grow { flex: 1; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 15px; align-items: start; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stat { padding: 15px 15px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.stat .st-label { color: var(--faint); font-size: 9.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.stat .st-value { margin-top: 5px; color: var(--ink); font-size: 30px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat .st-sub { margin-top: 3px; color: var(--faint); font-size: 10px; }
.account-card { padding: 21px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.account-card h2 { font-family: var(--sans); font-size: 15px; font-weight: 750; margin: 0 0 4px; }
.account-card .ac-sub { margin: 0 0 14px; color: var(--faint); font-size: 11.5px; line-height: 1.55; }
.purchase-list { display: grid; gap: 7px; }
.purchase-row { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 8px; background: var(--sunken); font-size: 11.5px; }
.purchase-row .pr-main { flex: 1; min-width: 0; }
.purchase-row b { color: var(--ink); }
.purchase-row .pr-date { margin-top: 1px; color: var(--faint); font-size: 9.5px; }
.purchase-row .pr-left { color: var(--green); font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty-small { padding: 15px 4px; color: var(--faint); font-size: 11.5px; text-align: center; }
.account-success { margin-bottom: 16px; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--green) 25%, var(--line)); border-radius: 9px; background: var(--green-soft); color: var(--green); font-size: 11.5px; line-height: 1.55; }
@media (max-width: 800px) { .account-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .sign-btn { min-height: 34px; padding: 5px 10px; font-size: 11.5px; max-width: 96px; }
  .sign-btn .acct-name { max-width: 65px; }
  .account-head { flex-wrap: wrap; }
  .account-head .grow { display: none; }
  .account-head .btn { flex: 1; }
  .account-head h1 { font-size: 28px; }
  .stat-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 400px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- modal / toast ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center; padding: 7vh 16px 22px; background: rgba(19, 18, 16, .5); backdrop-filter: blur(4px); overflow-y: auto; }
.modal-backdrop.open { display: flex; }
.modal-card { position: relative; width: min(100%, 520px); padding: 27px 26px 23px; background: var(--card); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-lg); }
.modal-card h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 6px; }
.modal-card p { color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.modal-x { position: absolute; right: 10px; top: 9px; width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--faint); cursor: pointer; font-size: 18px; }
.modal-x:hover { background: var(--hover); color: var(--ink); }
.toast-stack { position: fixed; right: 17px; bottom: 17px; z-index: 300; display: grid; gap: 7px; max-width: min(380px, calc(100vw - 34px)); }
.toast { padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); box-shadow: var(--shadow-lg); color: var(--text); font-size: 11.5px; line-height: 1.55; animation: toastin .18s ease-out; }
.toast.ok { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); color: var(--green); }
.toast.err { border-color: color-mix(in srgb, var(--err) 38%, var(--line)); color: var(--err); }
@keyframes toastin { from { opacity: 0; transform: translateY(5px); } }

/* ---------- 404 ---------- */
.notfound { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58vh; padding: 70px 20px; text-align: center; }
.notfound .big { font-family: var(--serif); font-size: clamp(90px, 16vw, 165px); color: var(--line-strong); line-height: .9; letter-spacing: -.08em; }
.notfound h1 { font-size: clamp(30px, 4vw, 43px); margin: 20px 0 9px; }
.notfound p { max-width: 410px; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.notfound .hero-cta { justify-content: center; }

/* ---------- misc ---------- */
.hr { height: 1px; background: var(--line); border: 0; margin: 42px 0; }
.inline-note { color: var(--faint); font-size: 11px; line-height: 1.6; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font-size: 10px; font-weight: 650; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
