:root{
  --ink:#172033;
  --muted:#667085;
  --line:#dfe5ee;
  --blue:#3978f6;
  --blue2:#61a5fa;
  --panel:#fff;
  --soft:#f6f8fb;
  --navy:#182237;
  --green:#1a9b62;
  --shadow:0 12px 36px rgba(26,39,70,.07);
  --radius-xs:3px;
  --radius-sm:4px;
  --radius:6px;
  --radius-lg:8px;
}
*{box-sizing:border-box}
html{background:#eef2f7}
body{
  margin:0;
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;
  background:radial-gradient(circle at 14% 0,#fff 0,transparent 32%),linear-gradient(145deg,#f8fafc,#edf2f8 58%,#f6f7fb);
  min-height:100vh;
}
.topbar{
  min-height:72px;
  padding:0 max(24px,calc((100vw - 1320px)/2));
  display:flex;
  align-items:center;
  gap:26px;
  border-bottom:1px solid rgba(208,216,228,.85);
  background:rgba(250,252,255,.9);
  backdrop-filter:blur(18px);
  position:sticky;
  top:0;
  z-index:20;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
  text-decoration:none;
  flex-shrink:0;
}
.brand-logo{
  width:44px;
  height:44px;
  object-fit:cover;
  border-radius:var(--radius);
  box-shadow:0 6px 16px rgba(34,62,209,.2);
}
.brand b{display:block;font-size:18px;line-height:18px}
.brand small{color:#7b8494}
.main-nav{
  display:flex;
  align-items:center;
  gap:8px;
  margin-right:auto;
}
.main-nav>a,
.nav-dropdown summary{
  color:#465268;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  padding:8px 11px;
  border-radius:var(--radius-sm);
  cursor:pointer;
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:5px;
  line-height:1;
  user-select:none;
  outline:none;
  transition:background .15s ease,color .15s ease;
}
.nav-dropdown summary::-webkit-details-marker{display:none}
.nav-dropdown summary:after{
  content:"";
  display:inline-block;
  width:5px;
  height:5px;
  border-right:1.5px solid #8490a4;
  border-bottom:1.5px solid #8490a4;
  transform:rotate(45deg);
  margin-top:-2px;
  margin-left:2px;
  transition:transform .15s ease;
}
.nav-dropdown[open] summary:after{
  transform:rotate(-135deg);
  margin-top:2px;
}
.main-nav>a:hover,
.nav-dropdown[open] summary,
.nav-dropdown summary:hover{
  background:#edf3ff;
  color:#315fae;
}
.main-nav>a:focus-visible,
.nav-dropdown summary:focus-visible{
  box-shadow:0 0 0 2px rgba(57,120,246,.35);
}
.nav-dropdown{position:relative}
.nav-menu{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  width:min(540px,92vw);
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:6px;
  box-shadow:0 18px 40px rgba(20,31,55,.14);
  display:grid;
  gap:2px;
}
.nav-menu a{
  color:#344054;
  text-decoration:none;
  font-size:12px;
  font-weight:650;
  line-height:1.4;
  padding:9px 11px;
  border-radius:var(--radius-sm);
}
.nav-menu a:hover{
  background:#f1f5fc;
  color:#245fca;
}
.footer-copy{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.footer-sep{color:#98a4b6;user-select:none;font-weight:700}
.footer-cookie-note{color:#8894a6;font-size:10px;line-height:1.45;margin:4px 0 0;max-width:360px}
.footer-support-block{display:flex;align-items:center;gap:6px}
.footer-support-label{color:#8894a6;font-size:11px}
.footer-link-btn{
  background:none;
  border:0;
  padding:0;
  font:inherit;
  font-size:11px;
  color:#5e6c83;
  cursor:pointer;
  text-decoration:none;
}
.footer-link-btn:hover{
  color:#2f67c9;
  text-decoration:underline;
}
.top-actions{display:flex;align-items:center;gap:14px}
.privacy-pill{
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid #d3e2d9;
  background:#f2f9f5;
  color:#2b6849;
  border-radius:var(--radius-sm);
  padding:5px 8px;
  font-size:11px;
  font-weight:650;
}
.privacy-pill i{
  width:6px;
  height:6px;
  border-radius:2px;
  background:#2fb675;
}
.language{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
select{
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:#fff;
  padding:6px 28px 6px 9px;
  color:var(--ink);
  font:inherit;
  font-size:12px;
  font-weight:600;
  outline:none;
}
select:focus{
  border-color:#9abcf5;
  box-shadow:0 0 0 2px rgba(57,120,246,.15);
}
.shell{
  width:min(1320px,calc(100% - 40px));
  margin:0 auto;
  padding:34px 0 28px;
}
.hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:30px;
  margin-bottom:24px;
}
.eyebrow{font-size:11px;letter-spacing:.13em;font-weight:800;color:#5d76a2}
.hero h1{font-size:clamp(28px,3vw,42px);letter-spacing:-.035em;margin:8px 0 7px;max-width:760px}
.hero p,.desktop-banner p{margin:0;color:var(--muted);line-height:1.55}
.download-group{display:flex;gap:8px}
.platform{
  min-width:142px;
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:9px 12px;
  text-decoration:none;
  box-shadow:0 4px 12px rgba(23,32,51,.04);
  cursor:pointer;
  text-align:left;
  transition:border-color .15s ease,transform .15s ease;
}
.platform:hover{
  border-color:#98b7f5;
  transform:translateY(-1px);
}
.platform small,.platform b{display:block}
.platform small{font-size:9px;color:var(--muted)}
.platform b{font-size:13px}
.apple{font-size:22px;color:#202938}
.windows{display:grid;grid-template-columns:repeat(2,8px);gap:2px}
.windows i{width:8px;height:8px;background:#2676dc;border-radius:1px}
.app-grid{
  display:grid;
  grid-template-columns:292px 1fr;
  gap:16px;
  align-items:start;
}
.sidebar{display:grid;gap:14px}
.side-card,.workspace-card,.desktop-banner,.privacy-note{
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
}
.side-card{padding:16px}
.side-card h2{font-size:10px;letter-spacing:.12em;color:#697791;margin:0 0 12px}
.policy-list{list-style:none;padding:0;margin:0;display:grid;gap:11px}
.policy-list li{display:flex;align-items:center;gap:10px}
.policy-list li>span{
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  border-radius:var(--radius-sm);
  background:#edf3ff;
  color:#4777cc;
  font-size:11px;
  font-weight:800;
}
.policy-list b,.policy-list small{display:block}
.policy-list b{font-size:12px}
.policy-list small,.hint{font-size:10px;color:#8b94a4;margin-top:2px}
.check-row{
  display:flex;
  align-items:center;
  gap:9px;
  border-top:1px solid #edf0f5;
  padding:9px 1px;
  font-size:12px;
  font-weight:650;
}
.check-row input,.review-panel input{accent-color:var(--blue)}
.hint{line-height:1.5;margin-bottom:0}
.locked-title{display:flex;align-items:start;justify-content:space-between;gap:8px}
.locked-title span{
  font-size:8px;
  font-weight:850;
  letter-spacing:.1em;
  background:#eef2f8;
  color:#788499;
  border-radius:var(--radius-xs);
  padding:3px 5px;
}
.locked-title .auto-badge{background:#e8f8ef;color:#238058}
.placeholder-score{
  display:flex;
  align-items:center;
  gap:10px;
  background:#f4f6fa;
  border:1px dashed #ccd3df;
  border-radius:var(--radius);
  padding:10px;
}
.placeholder-score b{font-size:20px;color:#949eae}
.placeholder-score span{font-size:11px;color:#7c8799}
.desktop-feature p{font-size:11px;color:var(--muted);line-height:1.5;margin-bottom:0}
.workspace-card{padding:18px;min-height:640px}
.workspace-head{display:flex;justify-content:space-between;align-items:start;padding:2px 3px 14px}
.workspace-head h2{font-size:17px;margin:0 0 3px}
.workspace-head p{font-size:11px;color:var(--muted);margin:0}
.icon-button{
  border:0;
  background:#eef1f5;
  width:28px;
  height:28px;
  border-radius:var(--radius-sm);
  font-size:18px;
  color:#657086;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.empty-state{
  height:530px;
  border:1.5px dashed #cbd5e3;
  border-radius:var(--radius);
  background:linear-gradient(145deg,#fafcff,#f5f7fb);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  padding:24px;
}
.upload-icon{
  width:68px;
  height:68px;
  display:grid;
  place-items:center;
  border-radius:var(--radius-lg);
  background:linear-gradient(145deg,#e7f0ff,#f3f7ff);
  border:1px solid #d8e5fb;
}
.upload-icon svg{width:32px;fill:none;stroke:#5582da;stroke-width:1.8}
.empty-state h3{font-size:19px;margin:18px 0 6px}
.empty-state p{max-width:440px;color:var(--muted);font-size:13px;line-height:1.55;margin:0 0 16px}
.empty-state small{margin-top:12px;color:#8993a3}
.primary,.secondary,.tool-button,.segmented button,.banner-buttons a,.banner-buttons button{
  border:0;
  border-radius:var(--radius-sm);
  padding:9px 14px;
  font-weight:750;
  cursor:pointer;
  font:inherit;
  font-size:12px;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.primary{
  color:#fff;
  background:linear-gradient(135deg,#3978f6,#4d8af7);
  box-shadow:0 6px 16px rgba(57,120,246,.2);
}
.primary:hover:not(:disabled){
  background:linear-gradient(135deg,#2e6fe8,#427fe8);
}
.primary:disabled{background:#cbd2df;box-shadow:none;cursor:not-allowed}
.secondary,.tool-button{background:#f1f4f8;color:#4b586c;border:1px solid #e1e6ee}
.secondary:hover,.tool-button:hover:not(:disabled){background:#e9edf3;color:#334155}
.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid #edf0f4;padding:12px 0 10px}
.segmented{display:flex;background:#eef2f7;padding:3px;border-radius:var(--radius);margin-right:auto}
.segmented button{padding:6px 10px;background:transparent;color:#737f92;border-radius:var(--radius-xs)}
.segmented button.active{background:#fff;color:#315fae;box-shadow:0 2px 6px rgba(30,45,75,.08)}
.tool-button{display:flex;align-items:center;gap:5px;padding:7px 10px}
.tool-button.active{background:#e8f1ff;color:#2f67c9;border-color:#c9dbfa}
.tool-button.accent{background:#eef4ff;color:#315fae;border-color:#c7d9fa}
.tool-button:disabled{opacity:.45;cursor:not-allowed}
.canvas-wrap{
  height:440px;
  background:#e9edf3;
  border-radius:var(--radius);
  border:1px solid #d5dbe5;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background-image:linear-gradient(45deg,#e3e7ed 25%,transparent 25%),linear-gradient(-45deg,#e3e7ed 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e3e7ed 75%),linear-gradient(-45deg,transparent 75%,#e3e7ed 75%);
  background-size:22px 22px;
  background-position:0 0,0 11px,11px -11px,-11px 0;
}
canvas{max-width:100%;max-height:100%;display:block;cursor:crosshair;box-shadow:0 6px 20px rgba(16,25,44,.15)}
.canvas-badge{
  position:absolute;
  top:10px;
  left:10px;
  color:#fff;
  background:rgba(24,34,55,.82);
  backdrop-filter:blur(5px);
  border-radius:var(--radius-xs);
  padding:4px 7px;
  font-size:8px;
  letter-spacing:.1em;
  font-weight:850;
}
.draw-hint{color:#727e91;font-size:11px;text-align:center;margin:9px}
.review-panel{
  border-top:1px solid #edf0f4;
  margin-top:12px;
  padding-top:13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.review-panel label{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.45;max-width:550px}
.export-actions{display:flex;gap:8px;flex-shrink:0}
.desktop-banner{
  margin-top:18px;
  padding:18px 20px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:16px;
  background:linear-gradient(135deg,#172238,#233452);
  color:#fff;
}
.banner-icon{
  width:42px;
  height:42px;
  border-radius:var(--radius);
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#4a88ff,#2d67e7);
  font-weight:900;
  font-size:20px;
}
.desktop-banner .eyebrow{color:#92b7ff}
.desktop-banner h2{font-size:17px;margin:3px 0}
.desktop-banner p{color:#b7c1d2;font-size:12px}
.banner-buttons{display:flex;gap:8px}
.banner-buttons a,.banner-buttons button{
  color:#fff;
  text-decoration:none;
  background:#334663;
  border:1px solid #50627c;
}
.banner-buttons a:hover,.banner-buttons button:hover{
  background:#3d5375;
}
.privacy-note{
  box-shadow:none;
  margin-top:14px;
  padding:12px 16px;
  display:flex;
  gap:12px;
  align-items:center;
}
.privacy-note>span{
  width:26px;
  height:26px;
  border-radius:var(--radius-sm);
  display:grid;
  place-items:center;
  background:#e8f8ef;
  color:var(--green);
  font-weight:900;
  font-size:12px;
}
.privacy-note b{font-size:12px}
.privacy-note p{font-size:11px;color:var(--muted);margin:2px 0 0}
.site-footer{
  display:grid;
  grid-template-columns:1fr auto auto;
  align-items:center;
  gap:26px;
  width:min(1320px,calc(100% - 40px));
  margin:0 auto;
  padding:22px 0 30px;
  color:#7c8798;
  font-size:11px;
  border-top:1px solid rgba(210,219,231,.8);
}
.site-footer>div{display:flex;gap:10px;flex-wrap:wrap}
.site-footer nav{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;align-items:center}
.site-footer a{color:#5e6c83;text-decoration:none}
.site-footer a:hover{color:#2f67c9}
.footer-email{font-weight:750}
.toast{
  position:fixed;
  right:20px;
  bottom:20px;
  background:#172238;
  color:#fff;
  padding:11px 15px;
  border-radius:var(--radius-sm);
  font-size:12px;
  box-shadow:var(--shadow);
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:.2s;
  z-index:40;
}
.toast.show{opacity:1;transform:none}
.hidden{display:none!important}
.show-original canvas{cursor:default}
.processing{
  position:absolute;
  inset:0;
  z-index:8;
  background:rgba(244,247,252,.94);
  backdrop-filter:blur(7px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
}
.processing span{
  width:36px;
  height:36px;
  border:3px solid #d6e2f8;
  border-top-color:#3978f6;
  border-radius:50%;
  animation:spin .8s linear infinite;
}
.processing b{font-size:13px}
.processing small{color:#6f7b90;max-width:300px}
@keyframes spin{to{transform:rotate(360deg)}}

/* Cookie Banner & Preferences Modal */
.cookie-banner{
  position:fixed;
  bottom:16px;
  left:16px;
  right:16px;
  max-width:880px;
  margin:0 auto;
  z-index:900;
  background:#ffffff;
  border:1px solid #d1dbe7;
  border-radius:var(--radius-lg);
  box-shadow:0 16px 40px rgba(18,29,51,.18);
  padding:16px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  animation:slideUp .25s ease-out;
}
.cookie-banner-content{flex:1}
.cookie-banner-title{font-size:13px;font-weight:750;margin:0 0 4px;color:var(--ink);display:flex;align-items:center;gap:6px}
.cookie-banner-title span{color:var(--blue)}
.cookie-banner-text{font-size:11px;line-height:1.5;color:var(--muted);margin:0}
.cookie-banner-text a{color:var(--blue);text-decoration:none}
.cookie-banner-text a:hover{text-decoration:underline}
.cookie-banner-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.cookie-banner-actions button{padding:8px 12px;font-size:11px}

.cookie-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(18,28,45,.5);
  backdrop-filter:blur(4px);
  z-index:950;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  animation:fadeIn .2s ease-out;
}
.cookie-modal{
  background:#ffffff;
  border:1px solid #d3dce8;
  border-radius:var(--radius-lg);
  box-shadow:0 24px 60px rgba(15,24,42,.25);
  width:min(520px,100%);
  max-height:90vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  animation:scaleIn .2s ease-out;
}
.cookie-modal-header{
  padding:18px 20px 14px;
  border-bottom:1px solid #e9edf3;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.cookie-modal-header h3{margin:0;font-size:16px;color:var(--ink)}
.cookie-modal-close{
  background:none;
  border:0;
  font-size:20px;
  color:#7c8798;
  cursor:pointer;
  padding:2px 6px;
  border-radius:var(--radius-xs);
  line-height:1;
}
.cookie-modal-close:hover{color:var(--ink);background:#edf2f7}
.cookie-modal-body{
  padding:18px 20px;
  overflow-y:auto;
  display:grid;
  gap:16px;
}
.cookie-modal-body p{margin:0;font-size:12px;line-height:1.55;color:var(--muted)}
.cookie-category{
  border:1px solid #e4ebf4;
  border-radius:var(--radius);
  padding:12px 14px;
  background:#fafbfd;
}
.cookie-category-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:5px;
}
.cookie-category-title{
  font-size:13px;
  font-weight:700;
  color:var(--ink);
  display:flex;
  align-items:center;
  gap:6px;
}
.cookie-badge{
  font-size:9px;
  font-weight:750;
  padding:2px 5px;
  border-radius:var(--radius-xs);
  background:#e7edf6;
  color:#55667e;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.cookie-badge.active{
  background:#e6f6ee;
  color:#1b7f4e;
}
.cookie-category-desc{
  font-size:11px;
  line-height:1.5;
  color:#6c7789;
  margin:0;
}
.cookie-switch{
  position:relative;
  display:inline-block;
  width:36px;
  height:20px;
  flex-shrink:0;
}
.cookie-switch input{opacity:0;width:0;height:0}
.cookie-slider{
  position:absolute;
  cursor:pointer;
  inset:0;
  background:#cbd5e1;
  border-radius:var(--radius-xs);
  transition:.2s;
}
.cookie-slider:before{
  position:absolute;
  content:"";
  height:14px;
  width:14px;
  left:3px;
  bottom:3px;
  background:#fff;
  border-radius:2px;
  transition:.2s;
}
.cookie-switch input:checked + .cookie-slider{background:var(--blue)}
.cookie-switch input:checked + .cookie-slider:before{transform:translateX(16px)}
.cookie-switch input:disabled + .cookie-slider{background:#94a3b8;cursor:not-allowed}

.cookie-modal-footer{
  padding:14px 20px;
  border-top:1px solid #e9edf3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:#fafbfd;
}
.cookie-status-panel{
  background:#f4f7fb;
  border:1px solid #dce4ef;
  border-radius:var(--radius);
  padding:16px 18px;
  margin:22px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.cookie-status-panel p{margin:0;font-size:13px;color:#49566a;line-height:1.5}
.cookie-status-panel b{color:#1e3a8a}

@keyframes slideUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes scaleIn{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}

@media(max-width:1080px){.privacy-pill{display:none}.topbar{gap:14px}.main-nav{gap:1px}}
@media(max-width:900px){
  .topbar{flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
  .main-nav{order:3;width:100%;justify-content:center;border-top:1px solid #e8edf4;padding-top:5px}
  .hero{align-items:flex-start;flex-direction:column}
  .app-grid{grid-template-columns:1fr}
  .sidebar{grid-template-columns:repeat(2,1fr)}
  .desktop-feature{grid-column:span 2}
  .review-panel{align-items:stretch;flex-direction:column}
  .export-actions{justify-content:flex-end}
  .site-footer{grid-template-columns:1fr;text-align:center;gap:12px}
  .site-footer>div,.site-footer nav{justify-content:center}
  .cookie-banner{flex-direction:column;align-items:stretch;gap:12px}
  .cookie-banner-actions{justify-content:flex-end}
}
@media(max-width:620px){
  .shell{width:min(100% - 22px,1320px);padding-top:22px}
  .topbar{height:auto;padding:8px 11px}
  .brand-logo{width:38px;height:38px}
  .brand b{font-size:16px}
  .brand small{font-size:10px}
  .language>span{display:none}
  .main-nav{justify-content:flex-start;overflow:visible}
  .main-nav>a,.nav-dropdown summary{padding:7px 9px;font-size:12px}
  .nav-menu{position:fixed;top:112px;left:11px;right:11px;width:auto;max-height:70vh;overflow:auto}
  .hero h1{font-size:28px}
  .download-group{width:100%}
  .platform{min-width:0;flex:1}
  .sidebar{grid-template-columns:1fr}
  .desktop-feature{grid-column:auto}
  .workspace-card{padding:12px}
  .canvas-wrap{height:390px}
  .toolbar{align-items:stretch}
  .segmented{width:100%;margin:0}
  .segmented button{flex:1}
  .desktop-banner{grid-template-columns:auto 1fr}
  .banner-buttons{grid-column:span 2}
  .banner-buttons>*{flex:1}
  .export-actions{display:grid;grid-template-columns:1fr 1fr}
  .top-actions{gap:5px}
  .site-footer{width:calc(100% - 24px)}
  .cookie-banner-actions{display:grid;grid-template-columns:1fr 1fr}
  .cookie-status-panel{flex-direction:column;align-items:stretch}
}
