/* ===========================================================================
   Pengify — Clean conversion tools for messy 3D models
   Shared design system
   =========================================================================== */

:root {
  /* GC Modeling — black & blue dark theme */
  /* Surfaces */
  --bg:            #06080f;
  --bg-2:          #0a0e18;
  --surface:       #0e1422;
  --surface-2:     #121a2c;
  --surface-3:     #182238;

  /* Text */
  --ink:           #ecf1fb;
  --ink-2:         #c4cee2;
  --muted:         #8a97b3;
  --faint:         #5c6a87;

  /* Lines */
  --border:        #1b2540;
  --border-2:      #283760;

  /* Brand — electric blue */
  --brand:         #3b82f6;
  --brand-2:       #2563eb;
  --brand-ink:     #9ec2ff;
  --brand-soft:    #101f3d;
  --cyan:          #22d3ee;

  /* Accents */
  --gold:          #e8a531;
  --gold-soft:     #2b2110;
  --green:         #34d399;
  --green-soft:    #0c2b21;
  --red:           #f87171;
  --red-soft:      #331416;
  --amber:         #fbbf24;
  --amber-soft:    #2d2410;

  /* Effects */
  --shadow-sm:  0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.3);
  --shadow-md:  0 6px 18px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
  --shadow-lg:  0 18px 48px rgba(0,0,0,.6), 0 6px 16px rgba(0,0,0,.4);
  --radius:     14px;
  --radius-lg:  20px;
  --radius-sm:  9px;

  --maxw: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* GC identity: sharper shapes than the usual SaaS look */
  --radius:     8px;
  --radius-lg:  10px;
  --radius-sm:  6px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(rgba(59,130,246,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.045) 1px, transparent 1px),
    radial-gradient(900px 480px at 50% -10%, rgba(37,99,235,.18) 0%, rgba(37,99,235,0) 60%),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > section { flex: 0 0 auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
p  { margin: 0 0 1rem; color: var(--ink-2); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono { font-family: var(--mono); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(7,10,18,.82);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  height: 66px; max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.16rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .logo { width: 34px; height: 34px; flex: 0 0 auto; }
.brand .beta { font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-2); background: var(--brand-soft); padding: 2px 6px; border-radius: 6px; transform: translateY(-6px); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-links a {
  color: var(--ink-2); font-weight: 550; font-size: .95rem;
  padding: 8px 12px; border-radius: 9px; transition: .15s;
}
.nav-links a:hover { background: var(--surface-3); color: var(--ink); }
.nav-links a.active { color: var(--brand-2); background: var(--brand-soft); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden; }
.lang-switch button { font-family: inherit; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  padding: 6px 10px; background: var(--surface); color: var(--muted); border: none; cursor: pointer; transition: .15s; }
.lang-switch button.active { background: var(--brand-soft); color: var(--brand-ink); }
.lang-switch button:hover:not(.active) { color: var(--ink); }
.credit-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 650;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--border);
  padding: 6px 11px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.credit-pill b { color: var(--brand-2); }
.credit-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.credit-pill.ai .dot { background: var(--gold); }
.credit-pill.ai b { color: var(--amber); }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 650; font-size: .95rem; line-height: 1;
  padding: 11px 18px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: .16s ease; white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; box-shadow: 0 6px 16px rgba(47,107,237,.28); }
.btn-primary:hover { color: #fff; filter: brightness(1.05); box-shadow: 0 8px 22px rgba(47,107,237,.34); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); border-color: var(--brand); }
.btn-soft { background: var(--brand-soft); color: var(--brand-2); }
.btn-soft:hover { color: var(--brand-2); background: #dde8fc; }
.btn-gold { background: linear-gradient(180deg, #f0b23f, var(--gold)); color: #4a3208; box-shadow: 0 6px 16px rgba(232,165,49,.3); }
.btn-gold:hover { filter: brightness(1.04); color: #4a3208; }
.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 8px 13px; font-size: .85rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: #451a1d; color: var(--red); }

/* ------------------------------------------------------------------ badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.badge-pro   { background: var(--gold-soft); color: var(--amber); }
.badge-new   { background: var(--brand-soft); color: var(--brand-2); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red   { background: var(--red-soft); color: var(--red); }
.badge-gray  { background: var(--surface-3); color: var(--muted); }

.eyebrow { font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 12px; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 24px; }

.section { padding: 68px 0; }
.section-tight { padding: 44px 0; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 74px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.18rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.tick { color: var(--green); font-weight: 800; }

/* preview stage in hero */
.stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 400px at 70% 20%, #dfeaff, rgba(223,234,255,0) 70%),
    linear-gradient(160deg, #0e1a36 0%, #16294f 55%, #10203f 100%);
  border: 1px solid #23386a; box-shadow: var(--shadow-lg); overflow: hidden;
  display: grid; place-items: center;
}
.stage .grid-floor {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(120,160,255,.13) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120,160,255,.13) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 78%);
}
.scene { width: 150px; height: 150px; perspective: 700px; }
.cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; animation: spin 14s linear infinite; }
.cube .f { position: absolute; width: 150px; height: 150px; border: 1.5px solid rgba(120,170,255,.55);
  background: rgba(47,107,237,.12); }
.cube .f.fr { transform: rotateY(0deg) translateZ(75px); }
.cube .f.bk { transform: rotateY(180deg) translateZ(75px); }
.cube .f.rt { transform: rotateY(90deg) translateZ(75px); }
.cube .f.lf { transform: rotateY(-90deg) translateZ(75px); }
.cube .f.tp { transform: rotateX(90deg) translateZ(75px); }
.cube .f.bm { transform: rotateX(-90deg) translateZ(75px); }
@keyframes spin { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }
.stage-tag {
  position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: .72rem;
  color: #a9c4ff; letter-spacing: .04em;
}
.stage-chips { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.stage-chip { font-size: .68rem; font-weight: 650; color: #cfe0ff; background: rgba(47,107,237,.22);
  border: 1px solid rgba(120,170,255,.35); padding: 4px 9px; border-radius: 999px; }

/* ------------------------------------------------------------------ pipeline / steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 22px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step .num { font-family: var(--mono); font-size: .78rem; font-weight: 700; color: var(--brand-2);
  background: var(--brand-soft); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { font-size: .9rem; margin: 0; color: var(--muted); }
.step .arrow { position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--border-2); font-size: 1.1rem; z-index: 2; }

/* ------------------------------------------------------------------ tool cards */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool { display: flex; flex-direction: column; padding: 26px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: .2s; }
.tool:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.tool .ticon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-soft); color: var(--brand-2); }
.tool.gold .ticon { background: var(--gold-soft); color: var(--amber); }
.tool h3 { display: flex; align-items: center; gap: 8px; }
.tool p { font-size: .93rem; color: var(--muted); flex: 1; }
.tool .feats { list-style: none; padding: 0; margin: 6px 0 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.tool .feats li { font-size: .76rem; font-weight: 600; color: var(--ink-2); background: var(--surface-3);
  border: 1px solid var(--border); padding: 4px 9px; border-radius: 7px; }
.tool .feats li.pro { background: var(--gold-soft); color: var(--amber); border-color: transparent; }

/* ------------------------------------------------------------------ generic feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature .ficon { color: var(--brand-2); margin-bottom: 10px; }
.feature h4 { margin: 0 0 4px; font-size: 1rem; }
.feature p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ------------------------------------------------------------------ partners */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner { padding: 22px; text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.partner .plogo { width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 1.2rem; background: linear-gradient(135deg, var(--brand), var(--cyan)); }
.partner.empty { border-style: dashed; background: var(--surface-2); }
.partner.empty .plogo { background: var(--surface-3); color: var(--faint); }
.partner h4 { margin: 0 0 3px; font-size: 1rem; }
.partner p { margin: 0; font-size: .82rem; color: var(--muted); }

/* ------------------------------------------------------------------ guidance list */
.guidance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide { display: flex; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.guide .gi { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber); }
.guide p { margin: 0; font-size: .9rem; color: var(--ink-2); }

/* ------------------------------------------------------------------ forms & converters */
.converter { display: grid; grid-template-columns: 1.35fr .9fr; gap: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden;
  border-top: 2px solid var(--brand); }
.panel-head { padding: 22px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.panel-head .pi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); flex: 0 0 auto; }
.panel-head h2 { margin: 0; font-size: 1.2rem; }
.panel-head p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.panel-body { padding: 24px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; font-size: .88rem; margin-bottom: 7px; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.input, .select, textarea.input {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface);
  transition: .15s; -webkit-appearance: none; appearance: none;
}
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,107,237,.14); }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7688' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* segmented / radio choices */
.choices { display: grid; gap: 10px; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
.choice { position: relative; display: flex; gap: 12px; padding: 13px 14px; border: 1px solid var(--border-2);
  border-radius: 11px; cursor: pointer; transition: .15s; background: var(--surface); }
.choice:hover { border-color: var(--brand); background: var(--surface-2); }
.choice input { position: absolute; opacity: 0; }
.choice .cmark { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-2); margin-top: 2px; transition: .15s; }
.choice .ctext strong { display: block; font-size: .92rem; }
.choice .ctext span { font-size: .8rem; color: var(--muted); }
.choice input:checked ~ .cmark { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 40%, transparent 46%); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.choice.locked { opacity: .6; cursor: not-allowed; }

/* dropzone */
.dropzone {
  border: 2px dashed var(--border-2); border-radius: var(--radius); padding: 34px 20px; text-align: center;
  background: var(--surface-2); transition: .18s; cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .dz-ico { color: var(--brand-2); margin-bottom: 10px; }
.dropzone strong { display: block; font-size: 1rem; color: var(--ink); }
.dropzone .dz-sub { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.dropzone input[type=file] { display: none; }

.filelist { margin-top: 14px; display: grid; gap: 8px; }
.filerow { display: flex; align-items: center; gap: 11px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: .88rem; }
.filerow .fico { color: var(--brand-2); flex: 0 0 auto; }
.filerow .fname { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filerow .fsize { color: var(--muted); font-size: .8rem; flex: 0 0 auto; white-space: nowrap; }
.filerow .fx { flex: 0 0 auto; color: var(--faint); cursor: pointer; border: none; background: none; font-size: 1rem; }
.filerow .fx:hover { color: var(--red); }

/* info aside */
.aside-card { margin-bottom: 16px; }
.aside-card h4 { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin: 0 0 8px; }
.aside-card p { font-size: .86rem; margin: 0; color: var(--muted); }
.aside-card + .aside-card { }
.kv { display: flex; justify-content: space-between; font-size: .86rem; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--muted); }
.kv b { color: var(--ink); font-weight: 650; }

/* ------------------------------------------------------------------ analysis / preflight report */
.report { margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.report-head { padding: 16px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.report-head h3 { margin: 0; font-size: 1.05rem; }
.report-body { padding: 4px 18px; }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.check:last-child { border-bottom: none; }
.check .cico { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.check .cico.ok { background: var(--green-soft); color: var(--green); }
.check .cico.warn { background: var(--amber-soft); color: var(--amber); }
.check .cico.bad { background: var(--red-soft); color: var(--red); }
.check .cbody strong { display: block; font-size: .92rem; }
.check .cbody span { font-size: .84rem; color: var(--muted); }
.report-foot { padding: 16px 18px; background: var(--surface-2); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.report-foot .rf-note { font-size: .82rem; color: var(--muted); flex: 1; min-width: 180px; }

/* progress */
.progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--cyan)); transition: width .4s ease; }
.pipeline-log { font-family: var(--mono); font-size: .8rem; color: var(--ink-2); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-top: 14px; max-height: 190px; overflow: auto; }
.pipeline-log .ln { padding: 2px 0; }
.pipeline-log .ln .t { color: var(--faint); }
.pipeline-log .ln.ok .m { color: var(--green); }
.pipeline-log .ln.warn .m { color: var(--amber); }

/* ------------------------------------------------------------------ dashboard */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat .sv { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.stat .sl { font-size: .82rem; color: var(--muted); font-weight: 600; }
.stat .si { float: right; color: var(--brand-2); }

.jobs-table { width: 100%; border-collapse: collapse; }
.jobs-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.jobs-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: middle; }
.jobs-table tr:last-child td { border-bottom: none; }
.jobs-table tr:hover td { background: var(--surface-2); }
.job-name { font-weight: 650; display: flex; align-items: center; gap: 10px; }
.job-name .jt { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); flex: 0 0 auto; }
.job-mini-progress { width: 120px; }

.empty-state { text-align: center; padding: 60px 24px; }
.empty-state .es-ico { color: var(--faint); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* ------------------------------------------------------------------ pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); position: relative; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 18px 44px rgba(47,107,237,.18); }
.price-card.featured::before { content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--brand), var(--brand-2)); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .03em; }
.price-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.price-card .ptag { font-size: .86rem; color: var(--muted); margin-bottom: 18px; min-height: 40px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price .amt { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price .per { color: var(--muted); font-size: .92rem; }
.price-sub { font-size: .8rem; color: var(--amber); font-weight: 650; margin-bottom: 20px; min-height: 18px; }
.plist { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; display: grid; gap: 10px; }
.plist li { display: flex; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.plist li .pi-check { color: var(--green); flex: 0 0 auto; font-weight: 800; }
.plist li.off { color: var(--faint); }
.plist li.off .pi-check { color: var(--faint); }

.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.addon { padding: 22px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.addon .an { font-size: 1.4rem; font-weight: 800; }
.addon .ad { font-size: .84rem; color: var(--muted); margin: 4px 0 14px; }
.addon .ap { font-size: 1.15rem; font-weight: 750; margin-bottom: 4px; }
.addon .ape { font-size: .78rem; color: var(--muted); margin-bottom: 14px; }

/* ------------------------------------------------------------------ auth */
.auth-wrap { max-width: 420px; margin: 60px auto; }
.auth-card { padding: 34px; }
.auth-card h1 { font-size: 1.7rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 26px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .8rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }

/* ------------------------------------------------------------------ misc content */
.page-head { padding: 44px 0 28px; }
.page-head .eyebrow { margin-bottom: 10px; }
.page-head p { font-size: 1.05rem; max-width: 60ch; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: .88rem; align-items: flex-start; }
.notice-info { background: var(--brand-soft); color: var(--brand-ink); }
.notice-warn { background: var(--amber-soft); color: #ffd88a; }
.notice-gold { background: var(--gold-soft); color: #ffd88a; }
.notice .ni { flex: 0 0 auto; margin-top: 1px; }

.prose { max-width: 720px; }
.prose h2 { margin-top: 32px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }

.locked-panel { text-align: center; padding: 48px 30px; }
.locked-panel .lp-ico { width: 62px; height: 62px; border-radius: 16px; background: var(--gold-soft); color: var(--amber);
  display: grid; place-items: center; margin: 0 auto 18px; }

/* ------------------------------------------------------------------ footer */
[data-footer] { margin-top: auto; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; padding: 48px 0 30px; }
.footer-brand p { font-size: .88rem; color: var(--muted); max-width: 34ch; margin-top: 12px; }
.footer-col h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.footer-col a { display: block; font-size: .9rem; color: var(--ink-2); padding: 5px 0; }
.footer-col a:hover { color: var(--brand-2); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: .82rem; color: var(--muted); }
.footer-disclaimer { font-size: .8rem; color: var(--faint); max-width: 62ch; }

/* ------------------------------------------------------------------ toast */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 11px; background: var(--surface-3); color: var(--ink);
  border: 1px solid var(--border-2); padding: 12px 16px;
  border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 550; animation: toastin .25s ease; max-width: 340px; }
.toast .ti { flex: 0 0 auto; }
.toast.ok .ti { color: #5ee08f; }
.toast.err .ti { color: #ff8a7a; }
.toast.gold .ti { color: var(--gold); }
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ------------------------------------------------------------------ modal */
.modal-back { position: fixed; inset: 0; background: rgba(14,22,38,.5); backdrop-filter: blur(3px); z-index: 150;
  display: grid; place-items: center; padding: 20px; animation: toastin .2s; }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 460px; width: 100%; overflow: hidden; }
.modal-head { padding: 22px 24px 0; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 16px 24px 24px; }
.modal-body p { color: var(--ink-2); font-size: .93rem; }
.modal-foot { padding: 0 24px 24px; display: flex; gap: 10px; justify-content: flex-end; }

/* ------------------------------------------------------------------ preview workspace */
.workspace { display: grid; grid-template-columns: 1fr 260px; gap: 0; }
.ws-stage { position: relative; min-height: 320px; background:
  radial-gradient(500px 320px at 60% 30%, #dfeaff, rgba(223,234,255,0) 70%),
  linear-gradient(160deg, #0e1a36, #16294f); display: grid; place-items: center; }
.ws-side { padding: 18px; border-left: 1px solid var(--border); background: var(--surface); }
.ws-side h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; }

/* language-scoped content blocks */
html[lang="en"] [data-only="fr"] { display: none !important; }
html[lang="fr"] [data-only="en"] { display: none !important; }

/* ------------------------------------------------------------------ stepper */
.stepper { display: flex; align-items: center; gap: 10px; margin: 6px 0 26px; flex-wrap: wrap; }
.stepper .stp { display: flex; align-items: center; gap: 9px; font-size: .85rem; font-weight: 650; color: var(--faint); }
.stepper .stp .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--border-2); font-size: .75rem; font-weight: 750; }
.stepper .stp.active { color: var(--ink); }
.stepper .stp.active .n { background: linear-gradient(180deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff;
  box-shadow: 0 0 14px rgba(59,130,246,.5); }
.stepper .stp.done { color: var(--brand-ink); }
.stepper .stp.done .n { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand-ink); }
.stepper .sep { flex: 0 0 26px; height: 1px; background: var(--border-2); }
.step-view[hidden] { display: none; }
.step-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .88rem;
  font-weight: 650; margin-bottom: 16px; cursor: pointer; font-family: inherit;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 9px 15px; transition: .15s; box-shadow: var(--shadow-sm); }
.step-back:hover { color: var(--brand-ink); border-color: var(--brand); background: var(--brand-soft); }

/* ------------------------------------------- preflight: side textures + overlay head */
.pf-main { --pf-h: min(72vh, 720px); display: grid; grid-template-columns: 320px 1fr; align-items: stretch; }
.pf-main > .ws-stage { min-width: 0; min-height: var(--pf-h); }
#pf-stage canvas { max-width: 100%; }
.pf-side { padding: 0; background: var(--surface); overflow-y: auto; max-height: var(--pf-h);
  scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
.pf-side::-webkit-scrollbar { width: 8px; }
.pf-side::-webkit-scrollbar-track { background: transparent; }
.pf-side::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 999px; }
.pf-side::-webkit-scrollbar-thumb:hover { background: var(--brand); }
.pf-main > .pf-side { border-right: 1px solid var(--border); }
.pf-side-head { position: sticky; top: 0; z-index: 1; background: var(--surface);
  padding: 14px 14px 12px; border-bottom: 1px solid var(--border); }
.pf-side-head strong { display: block; font-size: .95rem; }
.pf-side-head .muted { display: block; font-size: .78rem; }
.pf-side-list { padding: 12px 14px 14px; display: grid; gap: 8px; }
.pf-overlay-head { position: absolute; top: 0; left: 0; right: 0; z-index: 2; pointer-events: none;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: linear-gradient(180deg, rgba(7, 11, 22, .78) 0%, rgba(7, 11, 22, .35) 55%, rgba(7, 11, 22, 0) 100%); }
.pf-overlay-head h3 { margin: 0; font-size: 1.02rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
#pf-stage .stage-tag { top: auto; bottom: 16px; }
@media (max-width: 880px) {
  .pf-main { --pf-h: 58vh; grid-template-columns: 1fr; }
  .pf-main > .pf-side { order: 2; border-right: none; border-top: 1px solid var(--border); max-height: 300px; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .stage { max-width: 380px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step .arrow { display: none; }
  .tools, .feature-grid, .guidance, .pricing, .addons { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .converter { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .workspace { grid-template-columns: 1fr; }
  .ws-side { border-left: none; border-top: 1px solid var(--border); }
}
@media (max-width: 720px) {
  .nav-links, .nav .credit-pill { display: none; }
  .nav.open .nav-links { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px; gap: 4px; box-shadow: var(--shadow-md); }
  .nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-2);
    border-radius: 10px; background: var(--surface); cursor: pointer; }
  .field-row, .choices.cols-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .steps, .partners { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
