/* ===== Variables & reset ===== */
:root{
  --primary:#82C6BF;         /* turquoise logo */
  --primary-dk:#6DB3AD;
  --bg:#ffffff;
  --surface:#ffffff;
  --muted:#6b7280;
  --text:#111214;
  --border:#e5e7eb;
  --shadow:0 10px 25px rgba(17,17,17,.06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Raleway',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ===== Hero (top banner) ===== */
.hero{
  text-align:center;
  padding:64px 16px 36px;
  background:#f9fafb;
  border-bottom:1px solid var(--border);
}
.hero-inner{max-width:980px;margin:0 auto}
.hero-logo{width:80px;height:auto;margin:0 auto 12px;display:block}
.hero h1{
  margin:0 0 8px;
  font-size:clamp(24px,4.2vw,44px);
  line-height:1.1;
  font-weight:800;
  letter-spacing:.2px;
}
.hero h1 .brand{color:var(--primary)}
.hero p{
  margin:0 0 18px;
  color:#475569;
  font-size:clamp(16px,2.2vw,18px);
}

/* badges */
.badges{
  display:flex;gap:12px;flex-wrap:wrap;justify-content:center
}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 14px;border-radius:9999px;
  font-weight:700;font-size:.95rem;white-space:nowrap;
  box-shadow:0 4px 12px rgba(0,0,0,.06)
}
.badge.blue{background:#e7f0fb;color:#1d4ed8}
.badge.green{background:#e7f8f4;color:#047857}
.badge.orange{background:#fff4eb;color:#b45309}

/* ===== Topbar (fine) ===== */
.topbar{
  background:#f8fafc;
  border-bottom:1px solid var(--border);
  padding:10px 18px;
}
.topbar .brand{display:flex;align-items:center;gap:10px;font-weight:800}
.topbar .logo{height:28px;width:auto;display:block}
.topbar .divider{width:1px;height:18px;background:var(--border);display:inline-block}
.topbar .app{color:var(--primary);letter-spacing:.5px}

/* ===== Layout ===== */
.container{max-width:980px;margin:26px auto;padding:0 16px}

/* cards */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  margin:16px 0 22px;
  box-shadow:var(--shadow);
}
h2{margin:0 0 12px;font-size:1.15rem}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-word}
.hint{color:var(--muted);font-size:.92rem}

/* How-to banner */
.card.info{display:flex;gap:14px;align-items:flex-start;background:#e9f2fb;border-color:#cfe2f8}
.howto-icon{
  flex:0 0 auto;width:36px;height:36px;border-radius:9999px;
  display:grid;place-items:center;background:#d9e8fb;color:#134074;font-weight:700
}
.howto-body h3{margin:0 0 6px;font-size:1.05rem;font-weight:800;color:#0f172a}
.howto-body p{margin:0;color:#1f3f66}

/* form controls */
.row{display:flex;gap:12px;align-items:center;margin:12px 0}
.row label{min-width:120px;color:var(--muted)}
textarea{
  width:100%;min-height:140px;resize:vertical;padding:12px 12px;
  border-radius:12px;border:1px solid var(--border);background:#fff;color:var(--text);
  outline:none
}
textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(130,198,191,.22)}
select,input{
  flex:1;padding:10px 12px;border-radius:12px;border:1px solid var(--border);
  background:#fff;color:var(--text);outline:none
}
select:focus,input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(130,198,191,.18)}

/* buttons */
button{
  padding:11px 16px;border-radius:12px;border:0;
  background:var(--primary);color:#0b0f1a;font-weight:800;cursor:pointer;
  transition:transform .04s ease, box-shadow .2s ease, background .2s ease;
  box-shadow:0 8px 20px rgba(130,198,191,.35)
}
button:hover{background:var(--primary-dk)}
button:active{transform:translateY(1px)}

/* copy button next to link */
#copyBtn{
  padding:8px 12px;border-radius:10px;background:var(--primary);color:#0b0f1a;
  font-weight:700;border:0;cursor:pointer;white-space:nowrap
}
#copyBtn:hover{background:var(--primary-dk)}

/* secret output area */
#secretText{
  background:#f8fafc;border:1px solid var(--border);border-radius:12px;
  padding:12px;min-height:80px
}

/* responsive tweaks */
@media (max-width:640px){
  .row{flex-direction:column;align-items:stretch}
  .row label{min-width:unset}
  .hero{padding:48px 14px 28px}
  .hero-logo{width:64px}
}
