:root{
  --bg:#f7f7f6;
  --card:#ffffff;
  --muted:#6b6b6b;
  --accent:#1f5a3a;
  --accent-2:#2b7a4a;
  --danger:#c23b3b;
  --radius:14px;
  --glass: rgba(255,255,255,0.6);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans",Arial;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

*{box-sizing:border-box}

html,body{
  height:100%;
  margin:0;
  background:linear-gradient(180deg,var(--bg),#f3f4f3);
  color:#111;
  font-size:16px;
}

.frame{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:24px;
  gap:18px;
}

/* Hero */
.hero{
  width:100%;
  max-width:920px;
  padding:18px;
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.9));
  box-shadow: 0 14px 42px rgba(18,30,20,0.06);
  display:flex;
  flex-direction:column;
  gap:12px;
  border:1px solid rgba(15,20,15,0.04);
}

.hero-inner{
  display:flex;
  gap:12px;
  align-items:center;
}

.logo{
  width:56px;
  height:56px;
  border-radius:12px;
  background:linear-gradient(180deg,var(--accent),var(--accent-2));
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:28px;
  box-shadow:0 4px 14px rgba(36,79,56,0.18);
}

.hero h1{
  margin:0;
  font-size:20px;
}

.subtitle{
  margin:4px 0 0 0;
  color:var(--muted);
  font-size:14px;
}

.cta-row{
  display:flex;
  gap:12px;
  align-items:center;
}

.primary.large{ padding:14px 18px; font-size:16px; min-height:48px; }

/* features */
.features{
  display:flex;
  gap:12px;
  margin-top:6px;
}
.feature{
  background:rgba(31,90,58,0.04);
  padding:10px;
  border-radius:10px;
  flex:1;
  font-size:13px;
}

/* Center landing card */
.card.centered{
  width:100%;
  max-width:540px;
  background:var(--card);
  border-radius:var(--radius);
  box-shadow: 0 8px 30px rgba(18,30,20,0.06);
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
  border:1px solid rgba(15,20,15,0.04);
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}

h2{ margin:0; font-size:16px; }
.tag{ margin:2px 0 0 0; color:var(--muted); font-size:13px; }

.lead{ margin:2px 0 6px 0; color:var(--muted); font-size:14px; }

.card-actions{ display:flex; gap:10px; margin-top:6px; }

/* Inline form panel (no popup) */
.panel{
  position:relative;
  background:transparent;
  transition:none;
  display:block;
  padding:0;
  pointer-events:auto;
  margin-top:6px;
}
.panel-inner{
  width:100%;
  max-width:720px;
  background:var(--card);
  border-radius:14px;
  box-shadow: 0 8px 30px rgba(18,30,20,0.06);
  padding:16px;
  border:1px solid rgba(15,20,15,0.04);
}

.panel-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

/* Reuse form styles */
.form{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:8px;
}

.row{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.row label{
  font-size:13px;
  color:#333;
}

input[type="text"],
input[type="email"],
textarea{
  border:1px solid #e6e6e6;
  background:linear-gradient(180deg, #fff, #fbfbfb);
  padding:12px;
  border-radius:10px;
  font-size:15px;
  outline:none;
  transition:box-shadow .12s, border-color .12s;
}

input:focus, textarea:focus{
  border-color:var(--accent-2);
  box-shadow:0 6px 18px rgba(43,122,74,0.12);
}

textarea{resize:none; font-family:inherit}

.note{font-size:13px; color:var(--muted)}

.actions{
  display:flex;
  gap:10px;
  margin-top:4px;
  align-items:center;
}

button{
  min-height:44px;
  padding:10px 14px;
  border-radius:10px;
  border:0;
  font-weight:600;
  cursor:pointer;
  font-size:15px;
}

.primary{
  background:linear-gradient(180deg,var(--accent),var(--accent-2));
  color:white;
  flex:1;
  box-shadow:0 8px 22px rgba(43,122,74,0.12);
}

.ghost{
  background:transparent;
  border:1px solid #e5e5e5;
  color:var(--muted);
  padding:10px 12px;
  border-radius:10px;
  min-width:88px;
}

.foot{
  margin:8px 0 0 0;
  color:var(--muted);
  font-size:12px;
}

.result{
  margin-top:8px;
  padding:12px;
  border-radius:10px;
  background:rgba(31,90,58,0.06);
  color:var(--accent-2);
  font-size:14px;
}

/* small footer */
.small{
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
  width:100%;
}

/* Responsive */
@media (max-width:640px){
  .hero, .card.centered{ padding:14px; border-radius:12px; }
  .logo{width:48px;height:48px;font-size:24px}
  .features{flex-direction:column}
  .panel-inner{border-radius:12px 12px 0 0}
}