:root {
  --ink: #183138;
  --muted: #60757a;
  --line: #dce6e4;
  --panel: #ffffff;
  --canvas: #f4f7f5;
  --navy: #102a2e;
  --navy-2: #17383d;
  --teal: #0f8f78;
  --teal-dark: #08705f;
  --mint: #5ee0c1;
  --mint-soft: #e3f8f2;
  --amber: #c87c16;
  --amber-soft: #fff5df;
  --red: #c64444;
  --red-soft: #fff0ef;
  --blue-soft: #eaf1ff;
  --shadow: 0 16px 45px rgba(19, 49, 54, .08);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
.noscript-notice { padding: 11px 18px; color: #102a2e; background: #c8f36a; font-size: 12px; font-weight: 750; text-align: center; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 278px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 26px 22px; color: #e9f4f2;
  background:
    radial-gradient(circle at 20% -10%, rgba(94,224,193,.22), transparent 33%),
    linear-gradient(155deg, var(--navy), #0b2125 80%);
  display: flex; flex-direction: column; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.brand-mark { width: 44px; height: 44px; display: block; flex: 0 0 auto; border-radius: 13px; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 16px; }
.brand span { color: #9db8b7; font-size: 13px; margin-top: 2px; }
.catalog-summary { padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(255,255,255,.045); }
.catalog-summary strong, .catalog-summary span { display: block; }
.catalog-summary strong { margin-top: 7px; font-size: 18px; }
.catalog-summary span:last-child { color: #91abaa; font-size: 12px; margin-top: 3px; }
.eyebrow { color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sidebar .eyebrow { color: var(--mint); }
.step-nav { display: grid; gap: 5px; margin-top: 28px; }
.step-link { width: 100%; border: 0; color: #9eb7b6; background: transparent; padding: 11px 12px; border-radius: 11px; display: flex; align-items: center; gap: 12px; text-align: left; transition: .18s ease; }
.step-link span { width: 25px; color: #648784; font-size: 11px; font-weight: 800; }
.step-link:hover { color: white; background: rgba(255,255,255,.05); }
.step-link.active { color: white; background: rgba(94,224,193,.13); box-shadow: inset 3px 0 var(--mint); }
.step-link.active span { color: var(--mint); }
.sidebar-footer { margin-top: auto; font-size: 11px; color: #759492; display: grid; gap: 8px; }
.privacy-note { display: flex; align-items: center; gap: 8px; color: #bfcecd; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(94,224,193,.1); }

.workspace { min-width: 0; padding: 0 42px 24px; }
.topbar { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.topbar h1 { margin: 5px 0 0; font-size: clamp(24px, 3vw, 35px); letter-spacing: -.04em; }
.topbar-actions { display: flex; gap: 9px; }
.step-panel { display: none; animation: fade .22s ease; }
.step-panel.active { display: block; }
@keyframes fade { from { opacity: .2; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 5px 0 7px; font-size: 27px; letter-spacing: -.03em; }
.section-heading p { margin: 0; max-width: 760px; color: var(--muted); line-height: 1.55; }
.step-kicker { color: var(--teal); font-size: 12px; font-weight: 800; }

.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.two-one { grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.card h3 { margin: 7px 0 15px; font-size: 18px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-header h3 { margin: 4px 0 0; }
.compact-info p { color: var(--muted); line-height: 1.5; margin: 12px 0 0; }
.compact-info strong { color: var(--ink); }

.catalog-import-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 22px; align-items: stretch; border-color: #b9ddd5; background: linear-gradient(135deg, #fff, #f2fbf8); }
.catalog-import-copy h3 { margin-bottom: 9px; }
.catalog-import-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.catalog-import-copy .catalog-format-hint { margin-top: 12px; font-size: 11px; }
.catalog-import-copy code { color: #1d4d52; font-size: 10px; font-weight: 700; }
.catalog-drop-zone { min-height: 170px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; padding: 20px; border: 2px dashed #9fd5c8; border-radius: 15px; color: var(--ink); background: rgba(255,255,255,.75); text-align: center; outline: none; transition: .18s ease; }
.catalog-drop-zone:hover, .catalog-drop-zone:focus, .catalog-drop-zone.dragging { border-color: var(--teal); background: var(--mint-soft); box-shadow: 0 0 0 3px rgba(15,143,120,.1); }
.catalog-drop-zone > span, .catalog-drop-zone small { color: var(--muted); font-size: 11px; }
.catalog-drop-zone .button { margin: 7px 0 3px; }
.catalog-drop-zone small { max-width: 100%; overflow-wrap: anywhere; }
.catalog-drop-zone.loaded { border-style: solid; }

.button { border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; font-weight: 750; font-size: 13px; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button.primary { color: white; background: var(--teal); box-shadow: 0 7px 18px rgba(15,143,120,.2); }
.button.primary:hover { background: var(--teal-dark); }
.button.secondary { color: var(--teal-dark); background: var(--mint-soft); border-color: #bcebdc; }
.button.ghost { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.65); }
.button.subtle { color: var(--teal-dark); padding: 7px 10px; background: transparent; border-color: var(--line); }
.button.full { width: 100%; }

label { display: grid; gap: 7px; color: #415a60; font-size: 12px; font-weight: 750; }
input, textarea, select { width: 100%; color: var(--ink); border: 1px solid #cfddda; border-radius: 10px; background: white; padding: 10px 11px; outline: none; transition: border .16s, box-shadow .16s; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,143,120,.1); }
textarea { resize: vertical; line-height: 1.45; }
select[multiple] { min-height: 120px; }
.form-card { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.roles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
details { border-top: 1px solid var(--line); padding-top: 14px; }
summary { cursor: pointer; font-weight: 750; color: var(--ink); }

.search-box { position: relative; margin: 9px 0 14px; }
.search-box svg { position: absolute; width: 18px; left: 12px; top: 11px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-box input { padding-left: 39px; }
.table-results { height: 310px; overflow: auto; display: grid; gap: 6px; padding-right: 5px; }
.table-option { display: flex; justify-content: space-between; gap: 10px; align-items: center; width: 100%; padding: 10px 11px; border: 1px solid transparent; border-radius: 10px; color: var(--ink); background: #f7faf8; text-align: left; }
.table-option span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.table-option:hover, .table-option.selected { border-color: #a9dfd2; background: var(--mint-soft); }
.selection-card { display: flex; flex-direction: column; }
.selection-card h3 { word-break: break-word; min-height: 48px; }
.selection-card .button { margin-top: auto; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 0 24px; }
.metric-row div { padding: 12px 7px; border-radius: 11px; background: #f5f8f7; text-align: center; }
.metric-row strong, .metric-row span { display: block; }
.metric-row strong { font-size: 19px; }
.metric-row span { color: var(--muted); font-size: 10px; margin-top: 3px; }

.coco-review-card { border-color: #b9ddd5; background: linear-gradient(135deg, #fff, #f4fcf9); }
.coco-intro { max-width: 900px; margin: -4px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.handoff-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.handoff-flow div { position: relative; min-height: 104px; padding: 15px 14px 13px 48px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.78); }
.handoff-flow div > span { position: absolute; top: 14px; left: 14px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: var(--teal-dark); background: var(--mint-soft); font-size: 11px; font-weight: 900; }
.handoff-flow strong, .handoff-flow small { display: block; }
.handoff-flow strong { font-size: 12px; margin-bottom: 6px; }
.handoff-flow small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.coco-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 13px; }
.coco-paste { margin: 0 0 13px; }
.coco-paste textarea { margin: 12px 0 9px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 11px; }
.review-import-summary { padding: 11px 13px; border-radius: 10px; color: #4d666a; background: #edf4f2; font-size: 11px; line-height: 1.5; }
.review-import-warnings { margin: 10px 0 0; padding: 11px 15px 11px 30px; border: 1px solid #ecd297; border-radius: 10px; color: #775112; background: var(--amber-soft); font-size: 11px; line-height: 1.5; }
.coco-review-card details { margin-top: 15px; }
.coco-review-card details p { color: var(--muted); font-size: 11px; line-height: 1.55; }

.schema-toolbar, .toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.schema-toolbar input, .toolbar input { max-width: 340px; }
.schema-toolbar span { color: var(--muted); font-size: 12px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap.tall { max-height: 550px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { position: sticky; top: 0; z-index: 1; color: #547075; background: #f2f7f5; text-align: left; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
th, td { padding: 11px 12px; border-bottom: 1px solid #e7eeec; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfc; }
td code { color: #1d4d52; font-size: 11px; font-weight: 700; }
.type-pill, .source-pill, .suggestion-pill { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.type-pill { color: #3d5a67; background: var(--blue-soft); }
.source-pill { color: #4b666a; background: #edf2f1; }
.source-pill.override { color: var(--teal-dark); background: var(--mint-soft); }
.suggestion-pill { color: #8b590f; background: var(--amber-soft); }
.unsupported-pill { color: var(--red); background: var(--red-soft); }
.row-muted { opacity: .5; }
.row-selected { background: #f5fcfa; }
.decision-table select { min-width: 150px; }
.decision-table input { min-width: 180px; }
.decision-table { min-width: 1120px; }
.inline-form { display: grid; grid-template-columns: 1.5fr 1fr .8fr auto; gap: 10px; margin-top: 15px; }
.confirmation-row { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; margin-top: 17px; padding: 13px; border-radius: 11px; background: #f4f8f7; color: var(--ink); font-size: 12px; }
.confirmation-row input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); }
.confirmation-row.approval { background: var(--amber-soft); border: 1px solid #f0d59f; }

.segmented { display: flex; padding: 3px; border-radius: 10px; background: #edf3f1; }
.segmented button { border: 0; border-radius: 8px; padding: 7px 11px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; }
.segmented button.active { color: var(--teal-dark); background: white; box-shadow: 0 2px 7px rgba(20,55,59,.09); }
.check-grid { display: flex; flex-wrap: wrap; gap: 7px; max-height: 164px; overflow: auto; padding: 4px 2px 14px; }
.check-chip { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: white; font-size: 10px; font-weight: 700; }
.check-chip input { width: 14px; height: 14px; accent-color: var(--teal); }
.comment-list { display: grid; gap: 8px; max-height: 560px; overflow: auto; }
.comment-row { display: grid; grid-template-columns: minmax(160px,.6fr) 2fr; align-items: center; gap: 13px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; }
.comment-row strong { font-size: 12px; }
.comment-row span { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.switch-row { display: flex; align-items: center; gap: 10px; }
.switch-row input { width: 38px; height: 20px; accent-color: var(--teal); }
.conditional-fields { display: grid; gap: 12px; }
.repeat-list { display: grid; gap: 10px; }
.repeat-row { display: grid; grid-template-columns: 1fr 2fr 1.1fr auto; gap: 9px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
.icon-button { width: 38px; height: 38px; border: 1px solid #efcccc; border-radius: 9px; color: var(--red); background: var(--red-soft); font-weight: 900; }

.notice { padding: 13px 15px; border-radius: 12px; margin-bottom: 18px; line-height: 1.45; font-size: 12px; }
.notice.warning { color: #775112; border: 1px solid #ecd297; background: var(--amber-soft); }
.validation-list { display: grid; gap: 8px; margin: 12px 0 18px; }
.validation-item { display: flex; gap: 9px; align-items: flex-start; padding: 10px 11px; border-radius: 10px; font-size: 12px; line-height: 1.4; }
.validation-item.ok { color: #176354; background: var(--mint-soft); }
.validation-item.error { color: #8e3030; background: var(--red-soft); }
.validation-icon { font-weight: 900; }
.summary-card dl { margin: 11px 0 0; display: grid; gap: 12px; }
.summary-card div { display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.summary-card dt { color: var(--muted); }
.summary-card dd { margin: 0; font-weight: 800; text-align: right; }
.file-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.file-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfc; }
.file-card button:first-child { min-width: 0; color: var(--ink); border: 0; background: transparent; text-align: left; font-size: 11px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card .download-file { flex: 0 0 auto; border: 0; color: var(--teal-dark); background: var(--mint-soft); border-radius: 8px; padding: 7px 9px; font-size: 11px; font-weight: 800; }
.sql-preview { margin-top: 17px; }
.sql-preview pre { max-height: 480px; overflow: auto; padding: 16px; border-radius: 12px; color: #d6ece8; background: #102a2e; font-size: 11px; line-height: 1.55; white-space: pre; }
.workspace-footer { display: flex; justify-content: space-between; gap: 15px; color: #78908e; font-size: 10px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; max-width: 360px; padding: 12px 15px; border-radius: 11px; color: white; background: var(--navy); box-shadow: 0 14px 35px rgba(0,0,0,.2); font-size: 12px; opacity: 0; transform: translateY(15px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: none; }
.hidden { display: none !important; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 220px minmax(0,1fr); }
  .workspace { padding-left: 25px; padding-right: 25px; }
  .grid.two, .grid.two-one { grid-template-columns: 1fr; }
  .file-grid { grid-template-columns: 1fr; }
  .handoff-flow { grid-template-columns: 1fr; }
  .handoff-flow div { min-height: 0; }
  .catalog-import-card { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; padding: 16px; }
  .brand, .catalog-summary, .sidebar-footer { display: none; }
  .step-nav { margin: 0; display: flex; overflow-x: auto; }
  .step-link { min-width: max-content; width: auto; }
  .workspace { padding: 0 15px 20px; }
  .topbar { min-height: 90px; align-items: flex-start; padding-top: 18px; }
  .topbar-actions { display: grid; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .inline-form, .repeat-row, .comment-row { grid-template-columns: 1fr; }
  .form-grid, .roles-grid { grid-template-columns: 1fr; }
  .toolbar.split, .schema-toolbar { align-items: stretch; flex-direction: column; }
  .schema-toolbar input, .toolbar input { max-width: none; }
  .metric-row { grid-template-columns: 1fr; }
  .workspace-footer { flex-direction: column; }
}

/* Public landing experience */
.landing-page {
  --landing-ink: #ecf8f1;
  --landing-muted: #9fb6ad;
  --landing-bg: #061a1c;
  --landing-panel: #0d2728;
  --landing-accent: #c8f36a;
  min-height: 100vh; color: var(--landing-ink); background:
    radial-gradient(circle at 78% 7%, rgba(74, 199, 166, .16), transparent 28%),
    radial-gradient(circle at 12% 32%, rgba(200, 243, 106, .07), transparent 23%),
    var(--landing-bg); overflow: hidden;
}
.landing-page a { color: inherit; text-decoration: none; }
.landing-nav { position: relative; z-index: 20; width: min(1180px, calc(100% - 48px)); height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.landing-brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.landing-brand-mark { width: 39px; height: 39px; display: block; flex: 0 0 auto; border-radius: 10px; object-fit: cover; box-shadow: 0 8px 26px rgba(200,243,106,.12); }
.landing-brand strong, .landing-brand small { display: block; }
.landing-brand strong { font-size: 14px; line-height: 1; }
.landing-brand small { margin-top: 4px; color: var(--landing-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.landing-nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.landing-nav-links a { color: #abc0b8; font-size: 12px; font-weight: 650; transition: color .2s; }
.landing-nav-links a:hover { color: white; }
.landing-nav-cta { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; padding: 10px 15px; color: white; background: rgba(255,255,255,.06); font-size: 12px; font-weight: 800; }
.landing-nav-cta span { color: var(--landing-accent); }

.landing-hero { position: relative; width: min(1180px, calc(100% - 48px)); min-height: 690px; margin: 0 auto; padding: 92px 0 86px; display: grid; grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr); align-items: center; gap: 55px; }
.landing-hero::before { content: ""; position: absolute; width: 460px; height: 460px; right: -180px; top: 60px; border: 1px solid rgba(200,243,106,.08); border-radius: 50%; box-shadow: 0 0 0 80px rgba(200,243,106,.025), 0 0 0 160px rgba(200,243,106,.018); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; }
.hero-badge { width: max-content; display: flex; align-items: center; gap: 9px; margin-bottom: 24px; padding: 7px 10px; border: 1px solid rgba(200,243,106,.24); border-radius: 99px; color: #d5e7df; background: rgba(200,243,106,.06); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--landing-accent); box-shadow: 0 0 0 4px rgba(200,243,106,.09); }
.landing-hero h1 { max-width: 650px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(50px, 5.7vw, 77px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
.landing-hero h1 em { color: var(--landing-accent); font-style: italic; }
.hero-copy > p { max-width: 620px; margin: 27px 0 0; color: #aac0b7; font-size: 16px; line-height: 1.68; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.landing-primary-cta, .landing-secondary-cta { border: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; font-weight: 850; transition: transform .2s, box-shadow .2s, background .2s; }
.landing-primary-cta { padding: 15px 19px; color: #0a2323; background: var(--landing-accent); box-shadow: 0 12px 35px rgba(200,243,106,.12); font-size: 13px; }
.landing-primary-cta:hover, .landing-secondary-cta:hover { transform: translateY(-2px); }
.landing-primary-cta span { font-size: 18px; }
.landing-text-link { padding: 6px 0; color: white; border-bottom: 1px solid rgba(255,255,255,.35); font-size: 12px; font-weight: 750; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin: 30px 0 0; padding: 0; list-style: none; color: #829f95; font-size: 10px; font-weight: 650; }
.hero-proof li { display: flex; gap: 7px; align-items: center; }
.hero-proof span { color: var(--landing-accent); }

.hero-product { position: relative; z-index: 2; perspective: 1000px; }
.product-window { position: relative; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: #ecf1ed; box-shadow: 0 38px 100px rgba(0,0,0,.43); overflow: hidden; transform: rotateY(-2deg) rotateX(1deg); }
.product-window-bar { height: 38px; padding: 0 13px; display: flex; align-items: center; gap: 6px; color: #4f6e64; background: #f7faf7; border-bottom: 1px solid #dbe4df; }
.product-window-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #c8d3ce; }
.product-window-bar small { margin: 0 auto; transform: translateX(-18px); font-size: 8px; font-weight: 700; }
.product-shell-preview { min-height: 430px; display: grid; grid-template-columns: 55px 1fr; }
.preview-rail { padding: 18px 11px; display: flex; flex-direction: column; align-items: center; gap: 18px; background: #0a2527; }
.preview-logo { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: #0a2527; background: var(--landing-accent); font-size: 9px; font-weight: 950; }
.preview-rail i { width: 18px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); }
.preview-rail i.active { background: var(--landing-accent); }
.preview-canvas { min-width: 0; padding: 25px; color: #17312f; background: #f0f4f1; }
.preview-topline { display: flex; justify-content: space-between; color: #516c63; font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.preview-topline b { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; color: #0f6152; background: #d6f1e7; font-size: 8px; }
.preview-canvas h2 { margin: 8px 0 18px; font-family: Georgia, serif; font-size: 25px; letter-spacing: -.035em; }
.preview-upload { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid #cfe0da; border-radius: 10px; background: white; box-shadow: 0 8px 24px rgba(26,63,56,.06); }
.preview-file-icon { width: 35px; height: 38px; display: grid; place-items: center; border-radius: 7px; color: #0a5548; background: #dff4e7; font-size: 8px; font-weight: 900; }
.preview-upload div { min-width: 0; flex: 1; }
.preview-upload strong, .preview-upload small { display: block; }
.preview-upload strong { overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.preview-upload small { margin-top: 4px; color: #60776f; font-size: 8px; }
.preview-upload > b { padding: 5px 7px; border-radius: 99px; color: #207c65; background: #e4f7ef; font-size: 7px; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 11px 0; }
.preview-grid div { padding: 11px; border: 1px solid #d9e4df; border-radius: 9px; background: rgba(255,255,255,.72); }
.preview-grid small, .preview-grid strong, .preview-grid span { display: block; }
.preview-grid small { color: #5c736b; font-size: 7px; }
.preview-grid strong { margin: 6px 0 4px; font-family: Georgia, serif; font-size: 20px; }
.preview-grid span { color: #3f7668; font-size: 7px; }
.preview-table { border: 1px solid #d9e3df; border-radius: 9px; background: white; overflow: hidden; }
.preview-table div { display: grid; grid-template-columns: 1fr .7fr .7fr; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #e7eeeb; font-size: 8px; }
.preview-table div:last-child { border: 0; }
.preview-table small { color: #5f766e; font-size: 7px; }
.preview-table b { width: max-content; padding: 4px 6px; border-radius: 99px; color: #17705c; background: #e4f5ef; font-size: 6px; }
.preview-table b.warm { color: #8c5510; background: #fff1d7; }
.hero-orbit { position: absolute; z-index: 3; padding: 9px 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 8px; color: #dcece6; background: rgba(8,30,31,.92); box-shadow: 0 12px 35px rgba(0,0,0,.25); backdrop-filter: blur(8px); font-size: 9px; font-weight: 750; }
.orbit-one { top: 20%; right: -30px; }
.orbit-two { bottom: 13%; left: -27px; color: #173126; background: var(--landing-accent); }

.landing-strip { min-height: 75px; padding: 18px 30px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); color: #829d93; background: rgba(255,255,255,.018); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.landing-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--landing-accent); }
.landing-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0; }
.section-intro { max-width: 780px; margin-bottom: 55px; }
.landing-kicker { display: block; margin-bottom: 15px; color: var(--landing-accent); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.section-intro h2, .security-copy h2, .landing-cta-section h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4.7vw, 60px); line-height: 1.05; letter-spacing: -.045em; font-weight: 500; }
.section-intro > p, .split-intro > p { color: var(--landing-muted); line-height: 1.7; }
.section-intro > p { max-width: 620px; margin: 20px 0 0; font-size: 14px; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.11); }
.workflow-grid article { min-height: 350px; position: relative; padding: 28px; background: #092022; }
.workflow-grid article:nth-child(2) { background: #0d2728; }
.step-number { position: absolute; top: 25px; right: 25px; color: #8eaaa1; font-family: Georgia, serif; font-size: 13px; }
.workflow-icon { width: 49px; height: 49px; margin: 70px 0 35px; display: grid; place-items: center; border: 1px solid rgba(200,243,106,.35); color: var(--landing-accent); font-size: 22px; }
.workflow-grid h3 { margin: 0 0 15px; font-size: 18px; }
.workflow-grid p { margin: 0; color: #91aaa1; font-size: 12px; line-height: 1.7; }

.capabilities-section { padding-top: 80px; }
.split-intro { max-width: none; display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; }
.split-intro > p { margin: 0; font-size: 14px; }
.capability-bento { display: grid; grid-template-columns: 1.1fr .9fr .9fr; grid-auto-rows: minmax(260px, auto); gap: 14px; }
.bento-card { position: relative; min-width: 0; padding: 26px; border: 1px solid rgba(255,255,255,.1); color: #15302e; background: #edf3ed; overflow: hidden; }
.bento-card h3 { max-width: 430px; margin: 10px 0 12px; font-family: Georgia, serif; font-size: 25px; line-height: 1.08; letter-spacing: -.03em; font-weight: 500; }
.bento-card p { max-width: 520px; margin: 0; color: #4b625b; font-size: 11px; line-height: 1.65; }
.bento-label { color: #1f6958; font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.bento-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr .8fr; gap: 25px; align-items: center; }
.bento-dark { color: white; background: #102e2f; }
.bento-dark p { color: #91aaa2; }
.bento-dark .bento-label { color: var(--landing-accent); }
.bento-accent { color: #112c25; background: var(--landing-accent); }
.bento-accent .bento-label, .bento-accent p { color: #2f4c22; }
.mini-schema { display: grid; gap: 8px; }
.mini-schema div { padding: 11px; display: grid; grid-template-columns: 1fr .7fr auto; align-items: center; gap: 8px; border: 1px solid #d5e2dc; background: white; box-shadow: 0 5px 20px rgba(18,53,45,.05); font-size: 8px; }
.mini-schema span { color: #5f766e; }
.mini-schema i { padding: 4px 6px; color: #28715f; background: #e5f5ef; font-style: normal; font-weight: 800; }
.mask-stack { position: relative; height: 90px; margin-top: 28px; }
.mask-stack span { position: absolute; width: 145px; padding: 10px; border: 1px solid rgba(255,255,255,.14); color: #cfe2db; background: rgba(255,255,255,.06); font-size: 8px; font-weight: 750; }
.mask-stack span:nth-child(1) { left: 0; top: 0; }
.mask-stack span:nth-child(2) { left: 28px; top: 27px; }
.mask-stack span:nth-child(3) { left: 56px; top: 54px; color: #193029; background: var(--landing-accent); }
.quality-chart { height: 92px; margin-top: 28px; display: flex; align-items: end; gap: 7px; border-bottom: 1px solid #cddbd5; }
.quality-chart i { flex: 1; height: 40%; background: #6ec8ad; }
.quality-chart i:nth-child(2) { height: 62%; }.quality-chart i:nth-child(3) { height: 48%; }.quality-chart i:nth-child(4) { height: 78%; }.quality-chart i:nth-child(5) { height: 68%; }.quality-chart i:nth-child(6) { height: 92%; background: #276f60; }
.mini-checks { margin: 26px 0 0; padding: 0; list-style: none; }
.mini-checks li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid #d6e1dc; color: #506a63; font-size: 8px; }
.mini-checks b { color: #23715e; }
.big-eight { margin-top: 15px; font-family: Georgia, serif; font-size: 78px; line-height: .8; }

.security-section { width: 100%; max-width: none; padding: 120px max(24px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 80px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); background: #0a2224; }
.security-copy h2 { font-size: clamp(38px, 4.2vw, 55px); }
.security-copy p { margin: 24px 0 30px; color: #98afa7; font-size: 13px; line-height: 1.75; }
.landing-secondary-cta { padding: 12px 15px; border: 1px solid rgba(255,255,255,.17); color: white; background: transparent; font-size: 11px; }
.landing-secondary-cta span { color: var(--landing-accent); }
.security-diagram { padding: 24px; display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.11); }
.diagram-source, .diagram-browser { min-height: 150px; padding: 17px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.11); background: #0d292a; }
.diagram-browser { min-height: 200px; border-color: rgba(200,243,106,.3); background: #123233; }
.diagram-source span, .diagram-browser span { color: var(--landing-accent); font-size: 8px; font-weight: 850; }
.diagram-source strong, .diagram-browser strong { margin-top: 24px; font-size: 12px; }
.diagram-source small, .diagram-browser small { margin-top: 7px; color: #7f9b92; font-size: 8px; line-height: 1.5; }
.diagram-browser i { width: max-content; margin-top: 24px; padding: 5px 7px; color: #173224; background: var(--landing-accent); font-size: 7px; font-style: normal; font-weight: 850; }
.diagram-arrow { color: var(--landing-accent); }

.faq-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.faq-section .section-intro { margin: 0; }
.faq-list { border-top: 1px solid rgba(255,255,255,.14); }
.faq-list details { padding: 0; border-top: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.faq-list summary { padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; color: #e5f1ec; list-style: none; font-size: 13px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--landing-accent); font-size: 18px; transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { max-width: 620px; margin: -6px 35px 23px 0; color: #91a9a0; font-size: 11px; line-height: 1.7; }
.landing-cta-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto 80px; padding: 65px; display: flex; align-items: end; justify-content: space-between; gap: 60px; color: #102b26; background: var(--landing-accent); }
.landing-cta-section .landing-kicker { color: #344f24; }
.landing-cta-section h2 { max-width: 760px; font-size: clamp(34px, 4vw, 51px); }
.landing-primary-cta.light { flex: 0 0 auto; color: white; background: #0a2627; box-shadow: none; }
.landing-footer { width: min(1180px, calc(100% - 48px)); min-height: 120px; margin: 0 auto; padding: 30px 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 45px; border-top: 1px solid rgba(255,255,255,.1); }
.landing-footer p { color: #78958b; font-size: 10px; }
.landing-footer nav { display: flex; gap: 22px; color: #9ab1a8; font-size: 10px; }

/* Refreshed studio workspace */
.studio-back { width: 100%; margin: -12px 0 20px; padding: 8px 0; display: flex; align-items: center; gap: 8px; border: 0; color: #86a39a; background: transparent; font-size: 10px; font-weight: 700; text-align: left; }
.studio-back:hover { color: white; }
#studioShell { background: #eef2ee; }
#studioShell.app-shell { grid-template-columns: 260px minmax(0, 1fr); }
#studioShell .sidebar { padding: 24px 19px; background: radial-gradient(circle at 15% 0%, rgba(200,243,106,.13), transparent 25%), linear-gradient(160deg, #0b2527, #06191b); }
#studioShell .brand-mark { background: #071f21; }
#studioShell .catalog-summary { border-color: rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.04); }
#studioShell .step-link { border-radius: 8px; }
#studioShell .step-link.active { color: #f6fff9; background: rgba(200,243,106,.1); box-shadow: inset 3px 0 #c8f36a; }
#studioShell .step-link.active span, #studioShell .sidebar .eyebrow { color: #c8f36a; }
#studioShell .workspace { padding: 0 38px 28px; }
#studioShell .topbar { position: sticky; top: 0; z-index: 8; min-height: 92px; margin: 0 -38px 28px; padding: 0 38px; background: rgba(238,242,238,.9); backdrop-filter: blur(12px); }
#studioShell .topbar h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
#studioShell .card { border-color: #d8e1dc; border-radius: 13px; box-shadow: 0 10px 32px rgba(19,49,43,.055); }
#studioShell .catalog-import-card { border-color: #b9d9c9; background: linear-gradient(135deg, white, #f2f8f1); }
#studioShell .catalog-drop-zone { border-color: #a8cbbd; border-radius: 11px; background: rgba(255,255,255,.82); }
#studioShell .catalog-drop-zone:hover, #studioShell .catalog-drop-zone.dragging { border-color: #18876e; background: #e8f6ef; }
#studioShell .button { border-radius: 8px; }
#studioShell .button.primary { color: #102c28; background: #c8f36a; box-shadow: 0 7px 18px rgba(105,145,39,.15); }
#studioShell .button.primary:hover { background: #b8e25c; }
#studioShell .button.secondary { color: #0e6857; background: #e3f4ec; border-color: #b9dfd1; }
#studioShell input:focus, #studioShell textarea:focus, #studioShell select:focus { border-color: #168b70; box-shadow: 0 0 0 3px rgba(22,139,112,.1); }
#studioShell .table-option { border-radius: 8px; }
#studioShell .table-option:hover, #studioShell .table-option.selected { border-color: #9fd5c2; background: #e9f6f0; }
#studioShell .metric-row div { border: 1px solid #e2e9e5; border-radius: 8px; background: #f7f9f7; }
#studioShell .notice { border-radius: 8px; }

@media (max-width: 1040px) {
  .landing-hero { grid-template-columns: minmax(0, 1fr); padding-top: 70px; }
  .hero-copy { max-width: 760px; }
  .hero-product { width: min(720px, 94%); margin: 0 auto; }
  .capability-bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
  .security-section { grid-template-columns: 1fr; }
  .security-copy { max-width: 750px; }
  #studioShell.app-shell { grid-template-columns: 220px minmax(0,1fr); }
}

@media (max-width: 760px) {
  .landing-page { overflow-x: hidden; }
  .landing-nav { width: min(100% - 30px, 1180px); height: 72px; }
  .landing-nav-links { display: none; }
  .landing-nav-cta { width: 41px; height: 41px; padding: 0; gap: 0; font-size: 0; }
  .landing-nav-cta span { font-size: 15px; }
  .landing-hero, .landing-section, .landing-cta-section, .landing-footer { width: min(100% - 30px, 1180px); }
  .landing-hero { min-height: 0; padding: 65px 0 70px; gap: 65px; }
  .landing-hero h1 { font-size: clamp(44px, 14vw, 64px); }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-copy, .hero-product { min-width: 0; }
  .hero-product { width: 100%; }
  .product-shell-preview { grid-template-columns: 40px minmax(0, 1fr); }
  .preview-rail { padding-left: 7px; padding-right: 7px; }
  .preview-canvas { padding: 15px; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-grid div { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .preview-grid strong { grid-row: span 2; }
  .preview-table div { grid-template-columns: 1fr auto; }
  .preview-table div b { display: none; }
  .orbit-one { right: -8px; }.orbit-two { left: -7px; }
  .landing-strip { justify-content: flex-start; overflow: hidden; flex-wrap: nowrap; }
  .landing-section { padding: 85px 0; }
  .workflow-grid, .split-intro, .faq-section { grid-template-columns: 1fr; }
  .workflow-grid article { min-height: 300px; }
  .split-intro { gap: 24px; }
  .capability-bento { display: grid; grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; grid-template-columns: 1fr; }
  .security-section { padding: 85px 15px; gap: 50px; }
  .security-diagram { grid-template-columns: 1fr; }
  .diagram-arrow { transform: rotate(90deg); text-align: center; }
  .faq-section { gap: 38px; }
  .landing-cta-section { margin-bottom: 50px; padding: 36px 25px; align-items: flex-start; flex-direction: column; }
  .landing-footer { grid-template-columns: 1fr; gap: 17px; padding: 32px 0; }
  .landing-footer nav { flex-wrap: wrap; }
  #studioShell.app-shell { display: block; }
  #studioShell .sidebar { position: static; height: auto; }
  #studioShell .studio-back { display: none; }
  #studioShell .workspace { padding: 0 15px 20px; }
  #studioShell .topbar { position: static; margin: 0 -15px 24px; padding: 18px 15px; }
}

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

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; color: #edf8f2; background: radial-gradient(circle at 75% 10%, #17443f, transparent 38%), #061a1c; }
.error-card { width: min(680px, 100%); }
.error-code { margin: 90px 0 10px; color: #c8f36a; font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.error-card h1 { max-width: 620px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 8vw, 82px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
.error-card > p:not(.error-code) { max-width: 540px; margin: 25px 0 0; color: #9fb6ad; font-size: 14px; line-height: 1.7; }
.error-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
@media (max-width: 560px) { .error-page { place-items: start; padding-top: 25px; } .error-code { margin-top: 70px; } .error-actions { align-items: flex-start; flex-direction: column; } }
