:root{
  --page-bg: #f8f8f8;
  --card-bg: #ffffff;
  --ink: #0e2f3f;
  --muted: #6b7a86;
  --border: #e6edf3;
  --shadow: 0 14px 34px rgba(17, 41, 55, .08);
  --shadow-soft: 0 10px 22px rgba(17, 41, 55, .06);

  --warn-bg: #f9e3b6;
  --warn-ink: #b17f3f;

  --primary: #039dd9;
  --primary-hover: #028fc6;

  --blue-100: #e9f6ff;
  --purple-50: #f6f2fb;
  --blue-50: #ddecfb;

  --radius: 18px;
  --radius-sm: 14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--page-bg);
  color: var(--ink);
}

a{ color: inherit; }

.top-alert{
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-bottom: 1px solid rgba(177,127,63,.18);
  height: 46px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  font-weight: 650;
  letter-spacing:.15px;
}

.top-alert img{
  width: 18px;
  height: 18px;
}

.container{
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 18px 36px;
}

.brand{
  display:flex;
  justify-content:center;
  margin: 18px 0 12px;
}
.brand img{
  width: 250px;
  height: auto;
}

.hero{
  text-align:center;
  margin: 4px 0 20px;
}
.hero h1{
  margin: 8px 0 10px;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: .2px;
}
.hero p{
  margin: 0 auto;
  max-width: 820px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 16px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
}
@media (max-width: 920px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.card.tight{ padding: 16px; }

.stack > .card{ margin-top: 16px; }

.card-title{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 16px;
  font-weight: 750;
  margin-bottom: 14px;
}

.pill{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}
.pill img{ width: 18px; height: 18px; }

.pill.blue{ background: rgba(3,157,217,.14); }
.pill.green{ background: rgba(39, 174, 96, .14); }
.pill.purple{ background: rgba(128, 90, 213, .14); }
.pill.cyan{ background: rgba(2, 136, 209, .14); }

.url-field{
  position: relative;
  margin-top: 2px;
}
.url-field input{
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(14,47,63,.10);
  background: #f3f3f3;
  padding: 0 44px 0 12px;
  font-size: 14px;
  color: #0584b7;
  outline: none;
}
.url-field input:focus{
  border-color: rgba(3,157,217,.45);
  box-shadow: 0 0 0 4px rgba(3,157,217,.12);
}
.icon-btn{
  position:absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(14,47,63,.14);
  background: #ffffff;
  cursor: pointer;
  display:grid;
  place-items:center;
}
.icon-btn:hover{ background: rgba(3,157,217,.06); }
.icon-btn img{ width: 16px; height: 16px; }

.buttons{
  display:grid;
  gap: 10px;
  margin-top: 14px;
}

.btn{
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(14,47,63,.22);
  background: #ffffff;
  font-weight: 750;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  text-decoration:none;
  color: #0f2a3a;
}
.btn img{ width: 16px; height: 16px; }

.btn.primary{
  background: var(--primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(3,157,217,.22);
}
.btn.primary:hover{ background: var(--primary-hover); }

.btn.secondary{
  border-color: rgba(14,47,63,.24);
  color: #0b7fb0;
}
.btn.secondary:hover{ background: rgba(3,157,217,.06); }

.toast{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  min-height: 18px;
}

/* Left column helper cards */
.card.purple{
  background: var(--purple-50);
  border-color: rgba(128, 90, 213, .12);
  box-shadow: none;
}
.card.blue{
  background: var(--blue-50);
  border-color: rgba(2, 136, 209, .14);
  box-shadow: none;
}

.help-link{
  color: #6d4df7;
  font-weight: 650;
  margin: 6px 0 12px;
}

.keyrow{
  height: 40px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(14,47,63,.08);
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 0 12px;
  color: #50616c;
  font-size: 14px;
  margin-top: 10px;
}

.keycaps{
  display:flex;
  gap: 8px;
  align-items:center;
}

.keycap{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  padding: 4px 8px;
  background:#f7f7f7;
  border: 1px solid rgba(14,47,63,.16);
  border-radius: 8px;
  color: #6a6a6a;
  min-width: 28px;
  text-align:center;
}

/* Right preview */
.preview{
  background: #f3fafd;
  border: 1px solid rgba(3,157,217,.10);
  border-radius: 16px;
  height: 260px;
  overflow:hidden;
}

.preview img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* keep whole image visible */
  display: block;
}

.center-note{
  text-align:center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}
.center-note strong{ color: var(--ink); }

.footer{
  margin-top: 22px;
  display:flex;
  justify-content:center;
}
.footer-pill{
  display:flex;
  align-items:center;
  gap: 10px;
  background: #f0f0f0;
  border: 1px solid rgba(14,47,63,.08);
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(14,47,63,.70);
  font-size: 13px;
  max-width: 900px;
}
.footer-pill .ic{
  width: 18px; height: 18px;
  border-radius: 999px;
  background: rgba(0,0,0,.14);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}
.footer-pill .ic img{ width: 12px; height: 12px; filter: brightness(1000%); }

/* Make the right preview card stretch to match the left column height */
.right-card{
  height: 100%;
  display: flex;
  flex-direction: column;
}
.right-card .preview{
  flex: 1 1 auto;
  min-height: 260px;
}
.right-card .center-note{
  margin-top: 14px;
  padding-bottom: 2px;
}
