/* Welcome / used-invite splash — structural only.
 * Colors, radii, and elevation come from theme.css tokens so this
 * is not a parallel design system. DM Serif Display is loaded on
 * demand from welcome-splash-font.mjs when a splash mounts. */

.lcws-overlay {
 --lcws-font-disp:
  'DM Serif Display', Georgia, serif;

 position: fixed;
 inset: 0;
 z-index: 10000;
 display: grid;
 place-items: center;
 padding: var(--space-5);
 background: rgba(0, 0, 0, 0.4);
 -webkit-backdrop-filter: blur(4px);
 backdrop-filter: blur(4px);
 overflow-y: auto;
}

.lcws-overlay[hidden] {
 display: none;
}

.lcws-modal {
 position: relative;
 overflow: hidden;
 width: 100%;
 max-width: 560px;
 margin: auto;
 background: var(--card);
 border: 1px solid var(--border);
 border-radius: var(--radius-lg);
 padding: var(--space-8) var(--space-8)
  var(--space-6);
 color: var(--card-foreground);
 box-shadow: var(--shadow-xl);
}

.lcws-modal::after {
 content: '';
 position: absolute;
 left: 0;
 top: 0;
 width: 100%;
 height: 3px;
 background: var(--primary);
}

.lcws-modal > * {
 position: relative;
 z-index: 1;
}

.lcws-close {
 position: absolute;
 top: var(--space-4);
 right: var(--space-4);
 z-index: 2;
 width: 34px;
 height: 34px;
 border-radius: var(--radius-md);
 display: grid;
 place-items: center;
 cursor: pointer;
 background: transparent;
 color: var(--muted-foreground);
 border: 1px solid var(--border);
}

.lcws-close:hover {
 color: var(--foreground);
 border-color: var(--input);
 background: var(--muted);
}

.lcws-close:focus-visible {
 outline: none;
 box-shadow: var(--shadow-focus);
}

.lcws-close svg {
 width: 16px;
 height: 16px;
}

.lcws-brand {
 display: flex;
 align-items: center;
 gap: var(--space-3);
}

.lcws-brand .avatar {
 flex: none;
}

.lcws-brand-name {
 font-size: var(--text-sm);
 font-weight: 700;
 color: var(--foreground);
}

.lcws-brand-sub {
 font-size: var(--text-xs);
 font-weight: 500;
 color: var(--muted-foreground);
 margin-top: 1px;
}

.lcws-eyebrow {
 display: inline-block;
 margin-top: var(--space-5);
 font-size: var(--text-xs);
 font-weight: 700;
 letter-spacing: 0.18em;
 text-transform: uppercase;
 color: var(--primary);
}

.lcws-modal h2 {
 margin: var(--space-3) 0 0;
 font-family: var(--lcws-font-disp);
 font-weight: 400;
 line-height: var(--leading-tight);
 font-size: 31px;
 color: var(--foreground);
}

.lcws-modal h2 .lcws-accent {
 color: var(--primary);
}

.lcws-lead {
 margin: var(--space-4) 0 0;
 font-size: var(--text-lg);
 line-height: var(--leading-normal);
 color: var(--muted-foreground);
}

.lcws-uses {
 display: grid;
 gap: 0;
 margin-top: var(--space-5);
 border: 1px solid var(--border);
 border-radius: var(--radius-md);
 overflow: hidden;
 background: var(--muted);
}

.lcws-use {
 display: flex;
 gap: var(--space-3);
 align-items: flex-start;
 padding: var(--space-4) var(--space-4);
 background: var(--card);
}

.lcws-use + .lcws-use {
 border-top: 1px solid var(--border);
}

.lcws-use-ico {
 width: 32px;
 height: 32px;
 border-radius: var(--radius-sm);
 flex: none;
 margin-top: 1px;
 display: grid;
 place-items: center;
 color: var(--primary);
 background: color-mix(
  in srgb,
  var(--primary) 12%,
  transparent
 );
}

.lcws-use-ico svg {
 width: 17px;
 height: 17px;
}

.lcws-use-t {
 font-size: var(--text-sm);
 font-weight: 700;
 color: var(--foreground);
}

.lcws-use-d {
 margin: 2px 0 0;
 font-size: var(--text-sm);
 line-height: var(--leading-normal);
 color: var(--muted-foreground);
}

.lcws-divider {
 height: 1px;
 background: var(--border);
 margin: var(--space-5) 0 var(--space-5);
}

.lcws-field-label {
 font-size: var(--text-base);
 font-weight: 700;
 color: var(--foreground);
}

.lcws-field-help {
 margin: var(--space-1) 0 0;
 font-size: var(--text-sm);
 line-height: var(--leading-normal);
 color: var(--muted-foreground);
}

.lcws-fields {
 display: grid;
 gap: var(--space-3);
 margin-top: var(--space-4);
}

.lcws-input {
 width: 100%;
 background: var(--background);
 border: 1px solid var(--input);
 border-radius: var(--radius-md);
 padding: var(--space-3) var(--space-4);
 color: var(--foreground);
 font-size: var(--text-base);
 line-height: var(--leading-tight);
 box-sizing: border-box;
}

.lcws-input::placeholder {
 color: var(--muted-foreground);
 opacity: 0.7;
}

.lcws-input:focus {
 outline: none;
 border-color: var(--ring);
 box-shadow: var(--shadow-focus);
}

.lcws-input.is-error {
 border-color: var(--destructive);
}

.lcws-error {
 display: flex;
 gap: var(--space-2);
 align-items: flex-start;
 margin-top: var(--space-3);
 color: var(--destructive);
 font-size: var(--text-sm);
 line-height: var(--leading-normal);
 font-weight: 500;
}

.lcws-error svg {
 width: 15px;
 height: 15px;
 flex: none;
 margin-top: 1px;
}

.lcws-error[hidden] {
 display: none;
}

.lcws-note {
 margin: var(--space-4) 0 0;
 font-size: var(--text-sm);
 line-height: var(--leading-normal);
 color: var(--muted-foreground);
}

.lcws-note code {
 color: var(--foreground);
 font-family:
  ui-monospace, SFMono-Regular, Menlo,
  monospace;
 font-size: var(--text-xs);
}

.lcws-actions {
 display: flex;
 gap: var(--space-3);
 flex-wrap: wrap;
 margin-top: var(--space-5);
}

.lcws-btn {
 display: inline-flex;
 align-items: center;
 gap: var(--space-3);
 font-weight: 700;
 font-size: var(--text-sm);
 letter-spacing: 0.02em;
 border-radius: var(--radius-md);
 padding: var(--space-4) var(--space-5);
 cursor: pointer;
 border: 0;
 background: var(--primary);
 color: var(--primary-foreground);
 box-shadow: var(--shadow-xs);
 transition:
  transform 0.15s,
  box-shadow 0.15s;
}

.lcws-btn:hover {
 transform: translateY(-1px);
 box-shadow: var(--shadow-md);
}

.lcws-btn:focus-visible {
 outline: none;
 box-shadow:
  var(--shadow-md), var(--shadow-focus);
}

.lcws-btn .lcws-arrow {
 font-size: 17px;
 line-height: var(--leading-none);
}

@media (max-width: 560px) {
 .lcws-modal {
  padding: var(--space-6) var(--space-5)
   var(--space-5);
 }

 .lcws-modal h2 {
  font-size: 26px;
 }

 .lcws-btn {
  width: 100%;
  justify-content: center;
 }
}
