/* Shared type, Cloud Dancer foregrounds, and generous control sizes. */
:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #171a20;
  --surface-hover: #242830;
  --cloud-dancer: #f0eee9;
  --text: var(--cloud-dancer);
  --muted: #aeb3bd;
  --line: #363a42;
  --line-soft: #262a32;
  --accent: #8c3d4f;
  --accent-ink: #d8a3b3;
  --active: var(--accent);
  --accent-hover: #9e495e;
  --sage: var(--muted);
  --accent-soft: var(--surface-hover);
  --primary-fill: var(--accent);
  --primary-ink: var(--cloud-dancer);
  --control-border: #68707e;
  --control-border-hover: #9299a5;
  --image-bg: #1b1f26;
  --pack-hero-fill: #111113;
  --pack-hero-edge: #242327;
  --button-radius: 999px;
  --button-hover-fill: var(--cloud-dancer);
  --button-hover-ink: #000000;
  --button-edge: #343434;
  --site-scale: 1.1;
  --header-fill: rgb(0 0 0 / 64%);
  --header-blur: 18px;
  --page-width: 1640px;
  --font-ui: 'Onest', Arial, sans-serif;
  --font-display: 'Onest', Arial, sans-serif;
  font-family: var(--font-ui);
}

html { scroll-padding-top: 116px; scrollbar-color: var(--control-border) var(--bg); }
/* At browser 100%, public pages use the requested 110% presentation size.
   Viewport lengths and responsive thresholds below account for this scale. */
body { zoom: var(--site-scale); font-family: var(--font-ui); font-size: 17px; -webkit-font-smoothing: antialiased; }
body:not(.is-studio) { padding-top: 96px; }
button, input, textarea, select { font-family: var(--font-ui); }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.045em; word-spacing: normal; }
h3, h4 { font-family: var(--font-ui); font-weight: 600; letter-spacing: -.025em; }
::selection { background: var(--accent); color: var(--primary-ink); }
:is(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 5px; }
input, textarea, select { accent-color: var(--accent-ink); }
input::placeholder, textarea::placeholder { color: var(--muted); }

/* A translucent black header blurs the photographs passing beneath it. */
.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  transform: none;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: none;
  min-height: 96px;
  padding: 20px clamp(28px, calc(2.7vw / var(--site-scale)), 52px);
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: var(--header-fill);
  box-shadow: none;
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
  transition: background .4s, border-color .4s;
}
body.has-scrolled .site-header { background: var(--header-fill); border-bottom-color: var(--line-soft); }
.brand { gap: 12px; }
.brand-wordmark { font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.site-header .brand { justify-self: start; }
.site-header .brand-wordmark { font-size: 30px; }
.site-header .brand img, .site-header .brand svg { width: 36px; height: 36px; }
.nav-links { justify-content: center; gap: 12px; }
.nav-links a { border: 0; padding: 12px 14px; border-radius: 999px; color: var(--text); font-size: 15px; font-weight: 600; white-space: nowrap; transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--text); background: var(--surface-hover); }
.nav-links a[aria-current="page"] { color: var(--primary-ink); border: 0; background: var(--accent); text-decoration: none; }
.site-header .nav-links a[aria-current="page"] { text-decoration: none; }
.mobile-profile { display: none; }
.header-actions { gap: 14px; margin-left: 0; justify-content: flex-end; }

/* Black outline actions and burgundy primary actions share the Cloud Dancer fill. */
.btn, .home-button, .home-link {
  --button-fill: var(--button-hover-fill);
  --button-ink: var(--button-hover-ink);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 56px;
  padding: 15px 28px;
  border: 1px solid var(--button-border, var(--button-edge));
  border-radius: var(--button-radius);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--text);
  background: #000000;
  white-space: nowrap;
  transform: none;
  transition: color .25s .08s, border-color .35s, transform .2s;
}
.btn::before, .home-button::before, .home-link::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -25%;
  top: -100%;
  width: 150%;
  height: 300%;
  background: var(--button-fill);
  border-radius: 50%;
  transform: translateY(75%);
  transition: transform .55s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
:is(.btn, .home-button, .home-link)[data-button-edge] { --button-border: transparent; }
:is(.btn, .home-button, .home-link) > .button-edge {
  position: absolute;
  z-index: 2;
  inset: calc(-1 * var(--button-edge-inset, 1px));
  padding: 0;
  border-radius: inherit;
  background: transparent;
  pointer-events: none;
  transition: opacity .25s;
}
.button-edge > svg { display:block; width:100%; height:100%; }
.button-edge rect { fill:none; stroke-width:1.5; vector-effect:non-scaling-stroke; }
.button-edge-base { stroke:#3d3d3d; }
.button-edge-beam { stroke:#b4b4b4; stroke-linecap:round; stroke-dashoffset:var(--edge-phase); animation:button-edge-travel 8s linear infinite paused; }
@keyframes button-edge-travel {
  from { stroke-dashoffset:var(--edge-phase); }
  to { stroke-dashoffset:calc(var(--edge-phase) - 100px); }
}
[data-edge-motion="running"] > .button-edge .button-edge-beam { animation-play-state:running; }
.btn.primary, .home-button-primary {
  min-height: 62px;
  padding: 18px 32px;
  border-color: var(--accent-ink);
  color: var(--primary-ink);
  background: var(--accent);
  box-shadow: none;
}
.btn.small { min-height: 48px; padding: 12px 22px; font-size: 14px; }
.btn.primary.small { min-height: 48px; padding: 12px 24px; }
.site-header .btn.small { min-height: 52px; padding: 13px 25px; font-size: 15px; }
.site-header .header-login { min-width: 100px; border-color: var(--control-border); }
.home-button-secondary { color: var(--text); border-color: var(--button-border, var(--button-edge)); background: #000000; }
.button-label { position: relative; display: block; line-height: 1.4; pointer-events: none; }
.home-guide-library > svg { transition: transform .65s cubic-bezier(.16,1,.3,1); }
.home-guide-library:is(:hover, :focus-visible) > svg { transform: translateX(3px); }
#modal[open]::backdrop { animation: dialog-backdrop-in .38s cubic-bezier(.16,1,.3,1) both; }
#modal.is-closing::backdrop { animation: dialog-backdrop-out .19s ease-in both; }
@keyframes dialog-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  #modal[open]::backdrop { animation: none; }
  .home-guide-library svg { transition: none; transform: none; }
  .button-edge { transition: none; }
}
:is(.btn, .home-button, .home-link):focus-visible:not(:disabled) { color: var(--button-ink); border-color: var(--button-border, var(--button-fill)); }
:is(.btn, .home-button, .home-link):focus-visible:not(:disabled)::before { transform: translateY(0); }
:is(.btn, .home-button, .home-link):focus-visible:not(:disabled) > .button-edge { opacity: 0; }
.btn:active:not(:disabled), .home-button:active:not(:disabled), .home-link:active { transform: scale(.98); transition-duration: .12s; }
.text-link { font-weight: 550; text-decoration: none; transition: color .25s; }
.text-link:hover { color: var(--accent-ink); }
.continue-row .text-link, .check-list + .text-link { border-bottom: 0; }

.tabs { gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.tabs button, .tabs a { min-height: 48px; padding: 12px 20px; border-bottom: 0; border-radius: 999px; font-size: 16px; }
.tabs :is(button,a)[aria-selected="true"], .tabs :is(button,a).active { border-bottom: 0; color: var(--primary-ink); background: var(--accent); }
.duration-choices { gap: 8px; }
.duration-choices button { padding: 12px 20px; border-bottom: 0; border-radius: 999px; font-size: 17px; }
.duration-choices button.active, .duration-choices [aria-pressed="true"], .duration-choices [aria-checked="true"] { border-bottom: 0; color: var(--primary-ink); background: var(--accent); }
.workspace-tabs > div:first-child > button { border-bottom: 0; padding-inline: 14px; }
.workspace-tabs > div:first-child > button[aria-selected="true"] { border-bottom: 0; color: var(--accent-ink); }
.mode-choices button, .control-content .choice-row button { border: 0; border-radius: 8px; padding: 9px; }
.mode-choices button.active, .mode-choices button[aria-pressed="true"], .control-content .choice-row button.active { color: var(--primary-ink); background: var(--accent); border: 0; }
.radio-row input[type="radio"]:checked { background: var(--accent); border-color: var(--accent-ink); }
.status-dot.active, .status.active .status-dot, .tool-menu button.active::before { background: var(--accent); }
.tool-menu button.active { color: var(--accent-ink); border-bottom-color: transparent; }
.toast { border-left-color: var(--accent-ink); background: var(--surface); border-radius: 12px; }
.avatar { background: var(--surface-hover); color: var(--text); }
.project-card img, .single-preview img, .project-thumb, .compare-frame img { border-radius: 12px; }
.project-card:hover img { filter: brightness(1.06); }
.field input:not([type="range"]), .field select { padding: 13px 16px; border: 1px solid var(--control-border); border-radius: 12px; background: var(--bg); }
.field textarea { border-color: var(--control-border); border-radius: 12px; background: var(--bg); }
.field select:focus { border-color: var(--accent-ink); }
/* Text entry keeps its resting appearance; action controls retain keyboard outlines. */
body :is(input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], textarea):is(:focus, :focus-visible) { outline: none; box-shadow: none; }
.upload-field input::file-selector-button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.studio-shell { background: var(--bg); }
.studio-shell :is(h1, h2, h3) { letter-spacing: -.025em; }
.generate-bar .btn.primary { padding-inline: 20px; }
.stage, .result-stage { background: var(--image-bg); }
.stage-image { border-radius: 8px; }
.site-footer { max-width: 1640px; padding-top: 40px; padding-bottom: 44px; border-top: 1px solid var(--line-soft); }
.footer-links { font-size: 15px; }
.footer-links a { transition: color .25s; }
.footer-links a:hover { color: var(--accent-ink); }
.footer-signature { color: var(--muted); font-size: 13px; line-height: 1.6; }
.session-summary { top: 120px; }
.session-ready { margin-block: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.session-ready strong { font-size: 23px; font-weight: 600; }
.session-ready p { margin-top: 12px; font-size: 15px; line-height: 1.65; }
.lora-page { padding-top: 64px; }
.lora-page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; margin-bottom: 48px; }
.lora-page-heading h1 { font-size: clamp(44px,calc(4.7vw / var(--site-scale)),72px); line-height: 1.08; }
.lora-page-heading .home-product-actions { max-width: 330px; flex-shrink: 0; }
.lora-page-heading .home-product-actions > :is(a,button) { width: 100%; }
.lora-page .home-lora-gallery { margin-bottom: 100px; }
.lora-page .home-lora-caption h2 { font-size: 26px; letter-spacing: -.025em; }
.lora-page .home-lora-image img { width: 100%; height: auto; object-fit: cover; }
.lora-usage { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; padding-bottom: 70px; }
.lora-usage h2 { font-size: clamp(38px,calc(3.5vw / var(--site-scale)),54px); line-height: 1.14; }
.lora-usage .home-section-copy { font-size: 17px; }
.lora-environments { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.lora-environments article { min-width: 0; border-top: 1px solid var(--line); padding-top: 26px; }
.lora-environments h3 { font-size: 23px; line-height: 1.3; }
.lora-environments p { margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.lora-environments .home-link { min-height: 52px; margin-top: 24px; padding-inline: 22px; font-size: 14px; }
.lora-page .bottom-cta h2 { font-size: 34px; line-height: 1.2; }
dialog { border-color: var(--line); background: var(--surface); }
dialog::backdrop { background: #05070bbf; backdrop-filter: blur(12px); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled), .home-button:hover:not(:disabled), .home-link:hover { color: var(--button-ink); border-color: var(--button-border, var(--button-fill)); background: #000000; box-shadow: none; transform: none; }
  .btn.primary:hover:not(:disabled), .home-button-primary:hover:not(:disabled) { color: var(--button-ink); border-color: var(--button-border, var(--button-fill)); background: var(--accent); box-shadow: none; }
  .btn:hover:not(:disabled)::before, .home-button:hover:not(:disabled)::before, .home-link:hover::before { transform: translateY(0); }
  .btn:hover:not(:disabled) > .button-edge, .home-button:hover:not(:disabled) > .button-edge, .home-link:hover > .button-edge { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .button-edge-beam { animation:none; display:none; }
}
@media (max-width: 1408px) {
  .site-header { gap: 16px; padding-inline: 26px; }
  .site-header .brand-wordmark { font-size: 27px; }
  .site-header .brand img { width: 33px; height: 33px; }
  .nav-links { gap: 3px; }
  .nav-links a { padding-inline: 10px; font-size: 14px; }
  .site-header .btn.small { padding-inline: 21px; font-size: 14px; }
  .header-actions { gap: 10px; }
}
@media (max-width: 1320px) {
  body:not(.is-studio) { padding-top: 88px; }
  .site-header { grid-template-columns: auto minmax(0,1fr); min-height: 88px; padding-block: 17px; }
  .site-header > .nav-links { display: none; grid-column: 1 / -1; width: 100%; order: 3; border-top: 1px solid var(--line-soft); padding: 18px 0 7px; }
  .site-header.menu-open > .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .site-header .nav-links a { justify-content: center; min-height: 52px; font-size: 16px; text-align: center; text-decoration: none; }
  .mobile-toggle { display: inline-flex; justify-content: center; align-items: center; margin: 0; width: 48px; height: 48px; border: 1px solid var(--control-border); border-radius: 50%; padding: 13px; }
  .page-title h1 { font-size: clamp(40px, calc(5.4vw / var(--site-scale)), 60px); }
  .lora-page-heading { align-items: flex-start; flex-direction: column; }
  .lora-page-heading .home-product-actions { max-width: none; }
  .lora-page-heading .home-product-actions > :is(a,button) { width: auto; }
  .lora-usage { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 836px) {
  body { font-size: 16px; }
  body:not(.is-studio) { padding-top: 80px; }
  .lora-page { padding-top: 34px; }
  .lora-page-heading { gap: 0; margin-bottom: 36px; }
  .lora-page-heading h1 { font-size: 43px; }
  .lora-page-heading .home-product-actions { width: 100%; }
  .lora-page-heading .home-product-actions > :is(a,button) { width: 100%; }
  .lora-page .home-lora-gallery { margin-bottom: 58px; }
  .lora-environments { grid-template-columns: 1fr; gap: 32px; }
  .lora-usage { padding-bottom: 40px; }
  .lora-page .bottom-cta h2 { font-size: 30px; }
  .site-header { position: fixed; top: 0; left: 0; width: 100%; gap: 12px; min-height: 80px; padding: 15px 20px; border-radius: 0; flex-wrap: initial; }
  .site-header .brand-wordmark { font-size: 24px; }
  .site-header .brand img, .site-header .brand svg { width: 29px; height: 29px; }
  .site-header .brand { gap: 10px; }
  .header-actions { gap: 10px; margin-left: 0; }
  .site-header .header-actions .btn.small { min-height: 48px; padding: 12px 20px; font-size: 14px; }
  .site-header .header-actions .header-login { display: none; }
  .mobile-profile { display: block; grid-column: 1 / -1; min-height: 52px; margin-top: 3px; color: var(--accent-ink); font-size: 16px; border-top: 1px solid var(--line-soft); }
  .site-footer { gap: 24px; }
  .footer-links { gap: 22px; }
  .btn, .home-button, .home-link { min-height: 54px; font-size: 15px; padding: 15px 24px; }
  .btn.primary, .home-button-primary { min-height: 58px; padding: 17px 26px; }
}
@media (max-width: 484px) {
  .modal-body .modal-actions .btn { width: 100%; min-width: 0; max-width: 100%; padding-inline: 16px; white-space: normal; }
  .site-header { padding-inline: 16px; gap: 10px; }
  .site-header .brand-wordmark { font-size: 21px; }
  .site-header .brand img { width: 27px; height: 27px; }
  .site-header .brand { gap: 8px; }
  .site-header .header-actions .btn.primary.small { font-size: 13px; padding-inline: 17px; }
  .mobile-toggle { width: 44px; height: 44px; min-width: 44px; padding: 11px; }
  .site-header .header-actions { gap: 8px; }
  .page-title h1 { font-size: 40px; }
}
@media (max-width: 385px) {
  .site-header .brand-wordmark { font-size: 19px; }
  .site-header .brand img { width: 24px; height: 24px; }
  .site-header .header-actions .btn.primary.small { padding-inline: 13px; font-size: 12px; }
  .site-header .brand { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .home-button, .home-link, .btn::before, .home-button::before, .home-link::before { transition: none; }
  .btn:active:not(:disabled), .home-button:active:not(:disabled), .home-link:active { transform: none; }
}

