/* InteriorGPT: one stylesheet for the public pages and the app.
   The look takes the chat page's language to every page: Inter, near-black type on a cool
   off-white, the brand gradient (lilac, indigo, sky) for emphasis only, soft glows instead of
   flat colour, white surfaces with hairline rings, and black pill buttons.
   Sections: tokens and base, layout, buttons and chips, header, footer, home, pricing, tool
   pages, articles and blog, contact and forms, sign-in, account, renders, status pages. */

/* ------------------------------------------------------------------ tokens and base */
:root {
  --bg: #fafafb;
  --bg-2: #f3f3f6;
  --surface: #ffffff;
  --ink: #0a0a10;
  --ink-2: #23232c;
  --muted: #5c5d69;
  --subtle: #8b8c98;
  --line: rgba(12, 12, 28, 0.08);
  --line-2: rgba(12, 12, 28, 0.14);
  --accent: #5b51f5;
  --accent-ink: #4338ca;
  --accent-soft: #efedff;
  --ok: #067647;
  --danger: #b42318;
  --grad: linear-gradient(115deg, #c197f9 0%, #7470ff 50%, #6bb8fc 100%);
  --grad-text: linear-gradient(100deg, #9c6cf5 0%, #6b62ff 48%, #3f9bea 100%);
  --grad-warm: linear-gradient(120deg, #f8787e 0%, #f9b25c 55%, #c197f9 100%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ring: 0 0 0 1px var(--line);
  --shadow-sm: 0 0 0 1px var(--line), 0 1px 2px rgba(16, 16, 40, 0.04), 0 4px 14px -6px rgba(16, 16, 40, 0.1);
  --shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(16, 16, 40, 0.04), 0 16px 40px -18px rgba(16, 16, 40, 0.2);
  --shadow-lg: 0 0 0 1px var(--line), 0 2px 6px rgba(16, 16, 40, 0.05), 0 30px 70px -24px rgba(48, 36, 140, 0.32);
  --focus: 0 0 0 2px #fff, 0 0 0 4px #5b51f5;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: 'Inter Variable', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute wins over every display rule below (signed-in parts of the header, steps). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font-family: var(--font); font-size: 16px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.5rem); letter-spacing: -0.04em; line-height: 1.03; }
h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); letter-spacing: -0.035em; }
h3 { font-size: 1.16rem; letter-spacing: -0.015em; line-height: 1.3; font-weight: 650; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: rgba(116, 112, 255, 0.2); }
:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus); border-radius: 8px; }
.icon { flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 10px; background: #000; color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 60; text-decoration: none; }
.skip-link:focus { left: 12px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .02em; }

/* ------------------------------------------------------------------ layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-sm { padding: clamp(48px, 7vw, 80px) 0; }
.section-white { background: var(--surface); }
.section-head { max-width: 780px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-head .lead { margin-bottom: 0; }
.center { text-align: center; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 720px; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions.center { justify-content: center; }
.mt-lg { margin-top: clamp(32px, 4vw, 48px); }

/* surfaces */
.card {
  position: relative; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: clamp(22px, 2.6vw, 30px);
}
.card h3 { margin: 0 0 8px; }
.card p:last-child { margin-bottom: 0; }
.card-hover { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.icon-tile {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  color: var(--accent-ink); background: linear-gradient(135deg, rgba(193, 151, 249, .22), rgba(107, 184, 252, .2));
  box-shadow: inset 0 0 0 1px rgba(116, 112, 255, .16);
}
.icon-tile .icon { width: 22px; height: 22px; }

/* ------------------------------------------------------------------ buttons, chips, badges */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 24px;
  border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 600 .98rem/1 var(--font); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap; position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(0, 0, 0, .2), 0 10px 24px -10px rgba(10, 10, 30, .55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s ease, opacity .2s ease;
}
.btn:hover { background: #1b1b26; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 2px 4px rgba(0, 0, 0, .2), 0 16px 32px -12px rgba(48, 36, 140, .55); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-light { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(16, 16, 40, .05); }
.btn-light:hover { background: #f6f6fa; box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 20px -12px rgba(16, 16, 40, .3); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: rgba(12, 12, 28, .05); box-shadow: none; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 28px -12px rgba(91, 81, 245, .7); }
.btn-grad:hover { background: var(--grad); filter: saturate(1.15); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: .92rem; }
.btn-lg { --h: 56px; padding: 0 30px; font-size: 1.04rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600;
  color: var(--accent-ink); background: var(--accent-soft); letter-spacing: -0.005em;
}
.badge-grad { position: relative; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(116, 112, 255, .25), 0 6px 18px -8px rgba(91, 81, 245, .45); }
.badge-grad .icon { color: var(--accent); width: 15px; height: 15px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 550; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.chip .icon { width: 15px; height: 15px; }
.chip-accent { color: var(--accent-ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(116, 112, 255, .22); }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 30; padding: 12px 0 0; }
.header-bar {
  display: flex; align-items: center; gap: 8px; height: 64px; padding: 0 10px 0 14px; border-radius: 20px;
  background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(16, 16, 40, .35);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.22rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; margin-right: 18px; }
.brand img { width: 34px; height: 34px; }
.main-nav { display: flex; gap: 2px; }
.main-nav a { padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-size: .95rem; font-weight: 550; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.main-nav a:hover { background: rgba(12, 12, 28, .05); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); background: rgba(12, 12, 28, .06); }
.main-nav .nav-auth { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.credits {
  display: grid; gap: 5px; min-width: 132px; padding: 7px 12px; border-radius: 12px; text-decoration: none;
  font-size: .82rem; font-weight: 600; color: var(--ink-2); background: rgba(12, 12, 28, .04);
}
.credits-bar { height: 5px; border-radius: 99px; background: rgba(12, 12, 28, .1); overflow: hidden; }
.credits-bar span { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .6s var(--ease); }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover .avatar { box-shadow: 0 0 0 3px rgba(116, 112, 255, .25); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .84rem; letter-spacing: .02em; transition: box-shadow .2s ease; }
.account-menu .menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 6px; display: grid; background: #fff;
  border-radius: 16px; box-shadow: var(--shadow-lg); animation: pop .18s var(--ease);
}
.account-menu .menu a, .account-menu .menu button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; background: none;
  border: 0; text-align: left; font: 500 .94rem/1.2 var(--font); color: var(--ink-2); cursor: pointer; width: 100%;
}
.account-menu .menu a:hover, .account-menu .menu button:hover { background: var(--bg-2); color: var(--ink); }
.account-menu .menu .icon { width: 17px; height: 17px; color: var(--muted); }
.account-menu form { margin: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle:hover { background: rgba(12, 12, 28, .05); }
.migration-notice { margin: 10px auto 0; max-width: var(--max); padding: 12px 22px; border-radius: 16px; background: #fff4e5; color: #4a2a00; font-weight: 600; box-shadow: inset 0 0 0 1px #f5d9b0; }
@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: grid; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px); padding: 10px; gap: 2px;
    background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); animation: pop .18s var(--ease);
  }
  .main-nav.open a { padding: 12px 14px; font-size: 1rem; }
  .main-nav.open .nav-auth:not([hidden]) { display: block; }
  .site-header .container { position: relative; }
  .nav-toggle { display: grid; }
  .credits { display: none; }
  .header-actions [data-hide-small] { display: none; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .header-actions .btn-sm { padding: 0 12px; }
}

/* ------------------------------------------------------------------ footer */
.site-footer { position: relative; margin-top: 0; padding: clamp(56px, 7vw, 88px) 0 32px; background: #0b0b12; color: rgba(255, 255, 255, .66); overflow: hidden; isolation: isolate; }
.site-footer::before {
  content: ""; position: absolute; z-index: -1; inset: -40% -10% auto; height: 90%;
  background: radial-gradient(40% 60% at 20% 0%, rgba(193, 151, 249, .22), transparent 70%), radial-gradient(35% 55% at 85% 10%, rgba(107, 184, 252, .18), transparent 70%);
}
.site-footer::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(193, 151, 249, .6), rgba(107, 184, 252, .6), transparent); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.3fr 1fr 1.25fr 1.25fr; }
.footer-brand .brand { color: #fff; margin: 0 0 16px; }
.footer-brand .brand img { background: #fff; border-radius: 10px; padding: 3px; box-sizing: content-box; width: 30px; height: 30px; }
.footer-brand p { max-width: 260px; font-size: .92rem; margin: 0 0 6px; }
.footer-brand a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.footer-brand a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 650; color: rgba(255, 255, 255, .5); margin: 6px 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .95rem; transition: color .15s ease; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .88rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bottom a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ home: hero */
.glow { position: absolute; z-index: -1; pointer-events: none; inset: 0; overflow: hidden; }
.hero { position: relative; isolation: isolate; padding: clamp(56px, 8vw, 104px) 0 0; text-align: center; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -10% -5% 0; z-index: -2;
  background:
    radial-gradient(38% 46% at 16% 14%, rgba(193, 151, 249, .38), transparent 70%),
    radial-gradient(34% 42% at 86% 10%, rgba(107, 184, 252, .32), transparent 70%),
    radial-gradient(40% 36% at 52% 62%, rgba(249, 178, 92, .14), transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(12, 12, 28, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 12, 28, .045) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 22%, #000 25%, transparent 75%); mask-image: radial-gradient(70% 55% at 50% 22%, #000 25%, transparent 75%);
}
.hero h1 { max-width: 1040px; margin: 0 auto 22px; animation: rise .7s var(--ease) both; }
.hero .lead { margin-bottom: 32px; font-weight: 400; animation: rise .7s .08s var(--ease) both; }
.hero .actions { animation: rise .7s .16s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* the product window under the hero */
.app-mock {
  position: relative; max-width: 1080px; margin: clamp(44px, 6vw, 72px) auto 0; text-align: left; border-radius: 26px; padding: 10px;
  background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 2px var(--line), 0 40px 90px -36px rgba(48, 36, 140, .45);
  animation: rise .9s .22s var(--ease) both;
}
.app-mock::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 28px; background: var(--grad); opacity: .35; filter: blur(28px); }
.mock-window { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.mock-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 16px; background: #f6f6f8; border-bottom: 1px solid var(--line); }
.mock-dots { display: flex; gap: 7px; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; background: #e2e2e8; }
.mock-dots i:nth-child(1) { background: #ff5f57; } .mock-dots i:nth-child(2) { background: #febc2e; } .mock-dots i:nth-child(3) { background: #28c840; }
.mock-url { flex: 1; max-width: 360px; margin: 0 auto; height: 26px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .78rem; color: var(--subtle); }
.mock-url .icon { width: 12px; height: 12px; }
.mock-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 460px; }
.mock-rail { background: #0d0d10; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-new { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; background: #f3f3f3; color: #000; font-size: .82rem; font-weight: 600; }
.mock-new .icon { width: 15px; height: 15px; }
.mock-rail img { width: 100%; aspect-ratio: 1.38; object-fit: cover; border-radius: 10px; opacity: .92; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.mock-chat { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 24px clamp(18px, 3vw, 36px) 20px; background:
  radial-gradient(50% 40% at 70% 0%, rgba(193, 151, 249, .16), transparent 70%), #fafafb; }
.mock-user { align-self: flex-end; display: grid; justify-items: end; gap: 8px; }
.mock-thumbs { display: flex; gap: 8px; }
.mock-thumbs img { width: 92px; height: 112px; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 8px 20px -12px rgba(0, 0, 0, .4); }
.mock-ai { display: grid; gap: 10px; max-width: 520px; }
.mock-ai .mock-result { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -28px rgba(0, 0, 0, .5); }
.mock-tools { display: flex; gap: 6px; }
.mock-tools span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.mock-tools .icon { width: 16px; height: 16px; }
.mock-input {
  margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 20px; background: #fff; text-decoration: none; color: var(--subtle);
  box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -24px rgba(16, 16, 40, .45); transition: box-shadow .2s ease;
}
.mock-input:hover { box-shadow: 0 0 0 1px rgba(116, 112, 255, .45), 0 18px 40px -20px rgba(91, 81, 245, .45); }
.mock-plus { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-2); border: 0; flex: none; }
.mock-placeholder { flex: 1; min-width: 0; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) {
  .mock-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mock-rail { display: none; }
  .mock-thumbs img { width: 72px; height: 88px; }
}
@media (max-width: 560px) {
  .mock-input .chip { display: none; }
  .mock-url { display: none; }
}

/* split sections: copy beside a picture */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-copy h2 { margin: 18px 0 18px; }
.split-copy .lead { margin-left: 0; }
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.frame img { width: 100%; }
.frame-tilt { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); transition: transform .6s var(--ease); }
.frame-tilt:hover { transform: none; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .frame-tilt { transform: none; } }

/* the dark band */
.band { position: relative; isolation: isolate; overflow: hidden; background: #0b0b12; color: rgba(255, 255, 255, .75); border-radius: var(--radius-xl); padding: clamp(36px, 6vw, 72px); }
.band::before { content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(45% 80% at 0% 0%, rgba(193, 151, 249, .45), transparent 70%), radial-gradient(40% 80% at 100% 100%, rgba(107, 184, 252, .38), transparent 70%), radial-gradient(30% 50% at 60% 40%, rgba(249, 120, 126, .14), transparent 70%); }
.band::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); mask-image: linear-gradient(90deg, #000, transparent 60%); }
.band h2 { color: #fff; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.band-media { border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.band-media img { width: 100%; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } }

/* prompt starters: a gallery of the tool pages */
.starters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.starter {
  position: relative; display: block; border-radius: 18px; overflow: hidden; background: #fff; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.starter img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.starter:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.starter:hover img { transform: scale(1.05); }
.starter-text { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px 14px 14px; font-size: .92rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.starter-text .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--subtle); transition: color .2s ease, transform .2s var(--ease); }
.starter:hover .starter-text .icon { color: var(--accent); transform: translate(2px, -2px); }
@media (max-width: 1100px) { .starters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.starters.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .starters, .starters.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .starter-text { font-size: .86rem; padding: 10px 11px 12px; } }
.starters-head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.starters-head h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.02em; margin: 0; }
.starters-head .icon-tile { margin: 0; width: 40px; height: 40px; border-radius: 12px; }
.panel { position: relative; border-radius: var(--radius-xl); padding: clamp(18px, 3vw, 28px); background: linear-gradient(135deg, rgba(193, 151, 249, .16), rgba(107, 184, 252, .12)); box-shadow: inset 0 0 0 1px rgba(116, 112, 255, .14); }

/* tool cards: a bento grid of three columns (a wide card, a tall one, singles) */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(14px, 2vw, 20px); margin-top: clamp(28px, 4vw, 44px); }
.bento .tool { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.bento .tool.wide { grid-column: span 2; }
.bento .tool.tall { grid-row: span 2; }
.tool-media { overflow: hidden; background: var(--bg-2); }
.tool-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tool:hover .tool-media img { transform: scale(1.04); }
.tool .tool-media { aspect-ratio: 378 / 267; }
.tool.wide .tool-media { aspect-ratio: 772 / 267; }
.tool.tall .tool-media { aspect-ratio: auto; flex: 1; min-height: 300px; }
.tool-copy { padding: 18px 22px 22px; }
.tool-copy h3 { margin-bottom: 6px; }
.tool-copy p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .tool.tall { grid-row: auto; }
  .tool.tall .tool-media { aspect-ratio: 378 / 267; flex: none; min-height: 0; }
}
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento .tool.wide { grid-column: auto; } .tool.wide .tool-media { aspect-ratio: 16 / 9; } }

/* audience, features, benefits */
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: .96rem; }
.feature-grid .card { height: 100%; }

/* how it works: a sticky head beside the steps */
.how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.how-head { position: sticky; top: 108px; }
.how-head h2 { margin-bottom: 18px; }
.how-head p { color: var(--muted); }
.how-head a { color: var(--accent-ink); font-weight: 600; }
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; padding-left: clamp(22px, 3vw, 30px); }
.step::before { content: ""; position: absolute; left: 0; top: 30px; bottom: 30px; width: 3px; border-radius: 3px; background: var(--grad); opacity: .85; }
.step h3 { font-size: 1.22rem; margin-bottom: 12px; }
.step p { color: var(--ink-2); }
.step .point { display: flex; gap: 10px; }
.step .point .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.step-summary { background: linear-gradient(135deg, rgba(193, 151, 249, .16), rgba(107, 184, 252, .14)); box-shadow: inset 0 0 0 1px rgba(116, 112, 255, .18); }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } .how-head { position: static; } }

/* comparison */
.compare-wrap { position: relative; overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #fff; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: .98rem; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: .9rem; font-weight: 650; color: var(--muted); background: #fbfbfd; }
.compare thead th.ours { color: var(--ink); background: linear-gradient(180deg, rgba(193, 151, 249, .16), rgba(107, 184, 252, .1)); }
.compare td.ours { background: rgba(116, 112, 255, .045); }
.compare td:first-child { font-weight: 600; color: var(--ink); }
.compare .yes, .compare .no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.compare .yes { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(91, 81, 245, .7); }
.compare .no { background: var(--bg-2); color: var(--subtle); }
.compare .yes .icon, .compare .no .icon { width: 15px; height: 15px; }

/* questions */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); transition: box-shadow .25s ease; }
.faq-list details[open] { box-shadow: var(--shadow); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { margin: 0; font-size: 1.04rem; font-weight: 600; }
.faq-list summary .icon { width: 20px; height: 20px; color: var(--muted); transition: transform .3s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(45deg); color: var(--accent); }
.faq-list details p { padding: 0 22px 22px; margin: 0; color: var(--muted); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ pricing */
.pricing { text-align: center; }
.segmented { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); margin: 0 auto clamp(28px, 4vw, 44px); }
.segmented button { position: relative; z-index: 1; border: 0; background: none; height: 42px; padding: 0 20px; border-radius: 999px; font: 600 .95rem/1 var(--font); color: var(--muted); cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 8px 18px -10px rgba(10, 10, 30, .6); }
.segmented .save { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; font-size: .74rem; background: var(--accent-soft); color: var(--accent-ink); }
.segmented button[aria-pressed="true"] .save { background: rgba(255, 255, 255, .16); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: left; align-items: stretch; }
.plan {
  --tint: rgba(193, 151, 249, .28);
  position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: 24px; background: #fff;
  box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 150px; background: radial-gradient(120% 100% at 0% 0%, var(--tint), transparent 70%); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan[data-tint="basic"] { --tint: rgba(170, 170, 200, .3); }
.plan[data-tint="pro"] { --tint: rgba(249, 178, 92, .32); }
.plan[data-tint="premium"] { --tint: rgba(116, 112, 255, .26); }
.plan[data-tint="ultra"] { --tint: rgba(110, 190, 150, .3); }
.plan.popular { box-shadow: 0 0 0 2px transparent, var(--shadow); }
.plan.popular::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--grad-warm);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.plan h2, .plan h3 { font-size: 1.35rem; margin: 0; letter-spacing: -0.02em; }
.plan .tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; color: #fff; background: var(--grad-warm); white-space: nowrap; }
.plan .tag .icon { width: 13px; height: 13px; }
.plan-note { color: var(--muted); font-size: .9rem; margin: 0; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 2px; color: var(--ink); }
.price strong { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price small { color: var(--muted); font-size: .95rem; }
.plan ul { list-style: none; padding: 18px 0 0; margin: 18px 0 24px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.plan li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.plan li .icon { width: 17px; height: 17px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); box-sizing: content-box; }
.plan li strong { color: var(--ink); }
.plan .btn { margin-top: auto; }
.one-time-label { margin: clamp(28px, 4vw, 40px) 0 14px; font-weight: 650; color: var(--ink); }
.plan.one-time { --tint: rgba(248, 120, 126, .22); max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr) auto; gap: 24px; align-items: center; text-align: left; }
.plan.one-time ul { border-top: 0; padding: 0; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.plan.one-time li { white-space: nowrap; }
.plan.one-time .price { margin-top: 10px; }
.plan.one-time .btn { margin: 0; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .plan.one-time { grid-template-columns: 1fr; } .plan.one-time ul { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.pricing .form-error { margin-top: 18px; }

/* ------------------------------------------------------------------ tool pages */
.tool-hero { position: relative; isolation: isolate; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); overflow: clip; }
.tool-hero::before { content: ""; position: absolute; inset: -20% -10% 20%; z-index: -1;
  background: radial-gradient(40% 50% at 85% 20%, rgba(193, 151, 249, .3), transparent 70%), radial-gradient(35% 45% at 10% 30%, rgba(107, 184, 252, .24), transparent 70%); }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.tool-layout h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); margin: 18px 0 20px; }
.prompt-bubble { position: relative; padding: 18px 20px; border-radius: 20px 20px 20px 6px; background: #fff; box-shadow: var(--shadow-sm); color: var(--ink-2); margin: 0 0 18px; }
.prompt-bubble .chip { margin-bottom: 10px; }
.inputs { display: flex; gap: 10px; margin: 0 0 26px; }
.inputs img { width: 92px; height: 92px; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 8px 18px -10px rgba(0, 0, 0, .4); }
.result-frame { position: relative; border-radius: 28px; padding: 10px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px rgba(48, 36, 140, .5); }
.result-frame img { width: 100%; border-radius: 20px; }
.result-frame .chip { position: absolute; left: 24px; bottom: 24px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 900px) { .tool-layout { grid-template-columns: 1fr; } .tool-layout .result-frame { order: -1; } }

/* ------------------------------------------------------------------ articles and blog */
.page-hero { position: relative; isolation: isolate; padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); text-align: center; overflow: clip; }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% 0; z-index: -1;
  background: radial-gradient(35% 60% at 20% 20%, rgba(193, 151, 249, .3), transparent 70%), radial-gradient(35% 60% at 80% 10%, rgba(107, 184, 252, .26), transparent 70%); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 960px; margin: 0 auto 16px; }
.page-hero .lead { margin-bottom: 0; }
.prose { max-width: 760px; margin: 0 auto; padding: clamp(24px, 4vw, 40px) 0 clamp(40px, 6vw, 72px); font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.prose h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: .6em; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 2em 0 .6em; letter-spacing: -0.025em; }
.prose h3 { font-size: 1.22rem; margin: 1.8em 0 .5em; }
.prose h4 { font-size: 1.05rem; margin: 1.5em 0 .4em; }
.prose p { margin: 0 0 1.15em; }
.prose a:not(.btn) { color: var(--accent-ink); text-decoration-color: rgba(67, 56, 202, .35); }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose img { border-radius: 20px; margin: 28px 0; box-shadow: var(--shadow-sm); }
.prose .clause { font-size: 1.14rem; margin: 2em 0 .5em; letter-spacing: -0.015em; }
.prose .bullet { position: relative; padding-left: 22px; }
.prose .bullet::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.prose strong { color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose-card { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: clamp(24px, 5vw, 56px); margin-bottom: clamp(40px, 6vw, 72px); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.back-link .icon { width: 16px; height: 16px; }
.byline { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.byline .avatar { width: 34px; height: 34px; font-size: .78rem; }
.post-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.post-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; overflow: hidden; text-decoration: none; color: inherit; padding: 0; }
.post-card .post-media { overflow: hidden; }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover img { transform: scale(1.04); }
.post-card .post-copy { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.post-card h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); margin: 0; }
@media (max-width: 760px) { .post-card { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ contact and forms */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(40px, 6vw, 72px); }
.contact-layout .prose { padding: 0; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.form input, .form textarea, .form select {
  font: 400 1rem/1.4 var(--font); color: var(--ink); width: 100%; padding: 13px 15px; border-radius: 14px; border: 0; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(16, 16, 40, .04); transition: box-shadow .15s ease;
}
.form input::placeholder, .form textarea::placeholder { color: var(--subtle); }
.form input:hover, .form textarea:hover { box-shadow: inset 0 0 0 1px rgba(12, 12, 28, .24); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(91, 81, 245, .14); }
.form input:disabled { background: var(--bg-2); color: var(--subtle); }
.form textarea { min-height: 150px; resize: vertical; }
.form .error, .form-error { color: var(--danger); font-weight: 600; font-size: .94rem; }
.form .ok, .form-ok { color: var(--ok); font-weight: 600; font-size: .94rem; }
p.error, p.ok { padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; }
p.error { background: #fef3f2; box-shadow: inset 0 0 0 1px #fecdca; }
p.ok { background: #ecfdf3; box-shadow: inset 0 0 0 1px #abefc6; }
.hint { font-weight: 400; color: var(--muted); font-size: .86rem; }

/* ------------------------------------------------------------------ sign-in, sign-up, reset */
body.auth-page { background: #fff; }
body.auth-page .site-footer { margin-top: 0; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; padding: clamp(24px, 4vw, 40px) 0 clamp(48px, 6vw, 80px); min-height: calc(100vh - 88px); }
.auth { width: 100%; max-width: 440px; margin: auto; padding: clamp(8px, 2vw, 16px) 0; }
.auth-mark { width: 44px; height: 44px; margin-bottom: 22px; }
.auth h1 { font-size: clamp(1.8rem, 3.4vw, 2.35rem); letter-spacing: -0.035em; margin-bottom: 10px; }
.auth h2 { font-size: 1.35rem; }
.auth-lead { color: var(--muted); font-size: 1.02rem; margin: 0 0 26px; }
.auth-notice { display: flex; gap: 12px; background: linear-gradient(135deg, rgba(193, 151, 249, .14), rgba(107, 184, 252, .12)); box-shadow: inset 0 0 0 1px rgba(116, 112, 255, .18); border-radius: 16px; padding: 14px 16px; margin: 0 0 22px; font-size: .93rem; color: var(--ink-2); }
.auth-notice .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.auth-notice p { margin: 0 0 6px; }
.auth-notice p:last-child { margin: 0; }
.social { display: grid; gap: 10px; }
.btn-social { --h: 50px; width: 100%; background: #fff; color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(16, 16, 40, .05); gap: 12px; }
.btn-social:hover { background: #f7f7fa; box-shadow: inset 0 0 0 1px rgba(12, 12, 28, .22), 0 8px 18px -12px rgba(16, 16, 40, .35); }
.btn-social svg { width: 20px; height: 20px; }
.auth-or { display: flex; align-items: center; gap: 14px; color: var(--subtle); margin: 22px 0; font-size: .84rem; font-weight: 500; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.auth .btn-block { --h: 50px; }
.auth-links { font-size: .93rem; margin: 18px 0 0; color: var(--muted); }
.auth-links a { color: var(--ink); font-weight: 600; }
.auth-help { font-size: .88rem; color: var(--muted); margin-top: 16px; }
.auth-actions { display: grid; gap: 10px; }
.auth-terms { font-size: .82rem; color: var(--subtle); margin-top: 22px; }
.auth-terms a { color: var(--muted); }
.auth-visual { position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; min-height: 560px; background: #0b0b12; box-shadow: var(--shadow-lg); }
.auth-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 11, 18, 0) 35%, rgba(11, 11, 18, .78) 100%), radial-gradient(60% 50% at 100% 0%, rgba(116, 112, 255, .35), transparent 70%); }
.auth-visual-copy { position: absolute; left: clamp(22px, 4vw, 40px); right: clamp(22px, 4vw, 40px); bottom: clamp(22px, 4vw, 40px); color: #fff; }
.auth-visual-copy p { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.25; margin: 0 0 18px; color: #fff; }
.auth-thumbs { display: flex; gap: 10px; }
.auth-thumbs img { width: 76px; height: 58px; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.auth-floating { position: absolute; top: clamp(20px, 3vw, 32px); left: clamp(20px, 3vw, 32px); display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 650; font-size: .9rem; color: var(--ink); }
.auth-floating img { width: 28px; height: 28px; }
@media (max-width: 960px) { .auth-layout { grid-template-columns: 1fr; min-height: 0; } .auth-visual { display: none; } }

/* ------------------------------------------------------------------ account */
.page-head { padding: clamp(32px, 5vw, 56px) 0 clamp(18px, 3vw, 28px); }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 8px; }
.page-head p { color: var(--muted); margin: 0; }
.settings { max-width: 860px; padding-bottom: clamp(48px, 6vw, 80px); display: grid; gap: 18px; }
.settings .card { padding: clamp(22px, 3vw, 32px); }
.settings .card > h2 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; margin: 0 0 16px; }
.settings .card > h2 .icon-tile { margin: 0; width: 38px; height: 38px; border-radius: 12px; }
.settings .card > h2 .icon-tile .icon { width: 19px; height: 19px; }
.settings .form { max-width: 440px; }
.settings .form .btn { justify-self: start; }
.settings .auth-actions { grid-template-columns: repeat(auto-fit, minmax(180px, max-content)); align-items: center; }
.plan-card { overflow: hidden; }
.plan-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.plan-name { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 2px; }
.plan-meter { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin: 12px 0 6px; max-width: 420px; }
.plan-meter span { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.facts { border-collapse: collapse; margin: 18px 0 22px; font-size: .95rem; width: 100%; max-width: 560px; }
.facts th { text-align: left; font-weight: 500; color: var(--muted); padding: 10px 18px 10px 0; vertical-align: top; border-bottom: 1px solid var(--line); width: 46%; }
.facts td { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 550; }
.notice-box { background: linear-gradient(135deg, rgba(193, 151, 249, .14), rgba(107, 184, 252, .12)); border-radius: 18px; padding: 18px 20px; margin: 22px 0; box-shadow: inset 0 0 0 1px rgba(116, 112, 255, .16); }
.linked-list { display: grid; gap: 10px; margin-top: 16px; }
.linked { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.linked svg { width: 22px; height: 22px; flex: none; }
.linked-name { flex: 1; display: grid; gap: 2px; min-width: 140px; }
.linked-name .muted { font-size: .86rem; }

/* ------------------------------------------------------------------ the chat page: the frame fills the window below the header */
/* Here the header is an app bar: the full width, flush to the top, a hairline below, and the frame with its black rail
   starts right under it; the logo lines up with the rail's New render button, 12 px in. Every other page keeps the
   floating pill. */
body.chat-page { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
body.chat-page .site-header { padding: 0; background: #fff; border-bottom: 1px solid var(--line); }
body.chat-page .site-header .container { max-width: none; padding: 0; }
body.chat-page .header-bar { padding: 0 12px; border-radius: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.chat-page .migration-notice { margin: 0 12px 10px; max-width: none; }
body.chat-page main { flex: 1; min-height: 0; display: flex; }
.chat-frame { flex: 1; width: 100%; height: 100%; border: 0; display: block; background: #f9f9f9; }

/* ------------------------------------------------------------------ render history and the render page */
.render-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 22px; }
.render-tile { position: relative; background: #fff; border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; display: grid; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.render-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.render-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; border-radius: 0; }
.render-tile .tile-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
.tile-missing { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--bg-2); color: var(--subtle); font-size: .9rem; }
.render-tile .tile-actions .btn { --h: 34px; padding: 0 12px; font-size: .84rem; }
.empty-state { text-align: center; padding: clamp(40px, 6vw, 72px) 24px; }
.empty-state .icon-tile { margin: 0 auto 18px; width: 56px; height: 56px; border-radius: 18px; }
.empty-state .icon-tile .icon { width: 26px; height: 26px; }
.viewer { border: 0; border-radius: 22px; padding: 14px; max-width: min(1100px, 94vw); background: #0d0d10; color: #fff; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); }
.viewer::backdrop { background: rgba(8, 8, 14, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viewer img { max-height: 78vh; width: auto; margin: 12px auto 0; border-radius: 12px; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.viewer .segmented { margin: 0; background: #1b1b22; box-shadow: none; }
.viewer .segmented button { color: rgba(255, 255, 255, .7); height: 36px; }
.viewer .segmented button[aria-pressed="true"] { background: #fff; color: #000; }
.render-outcome { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.render-output { border-radius: 22px; box-shadow: var(--shadow-lg); width: 100%; }
.render-side { display: grid; gap: 16px; }
.render-inputs { display: flex; gap: 10px; flex-wrap: wrap; }
.render-inputs img { width: 104px; height: 86px; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.render-params { white-space: pre-wrap; font: .9rem/1.6 var(--font); background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm); max-height: 380px; overflow: auto; margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .render-outcome { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ status pages: success, fail, not found */
.status { max-width: 680px; margin: 0 auto; text-align: center; padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.status-mark { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 22px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 18px 40px -16px rgba(91, 81, 245, .7); }
.status-mark .icon { width: 34px; height: 34px; }
.status-mark.warn { background: var(--grad-warm); box-shadow: 0 18px 40px -16px rgba(248, 120, 126, .7); }
.status h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.status .notice-box { text-align: left; }
.status .notice-box h2 { font-size: 1.1rem; margin-bottom: 6px; }
.big-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; margin: 0 0 8px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
