
:root{
  --bg:#f8f7ff;
  --surface:#ffffff;
  --text:#2b2640;
  --muted:#7c7691;
  --primary:#6c4cf1;
  --primary-2:#9b5de5;
  --pink:#ff6fae;
  --coral:#ff8a65;
  --orange:#ffb347;
  --cyan:#39c6d6;
  --green:#55c99a;
  --yellow:#ffd76a;
  --lavender:#efeaff;
  --border:#e9e5f4;
  --danger:#d94f64;
  --shadow:0 12px 34px rgba(70,54,120,.10);
  --shadow-soft:0 6px 20px rgba(70,54,120,.07);
}

*{box-sizing:border-box}

html{background:#f4f1ff}

body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,111,174,.15), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(57,198,214,.14), transparent 30%),
    linear-gradient(180deg,#fbfaff 0%,#f6f4fc 100%);
  color:var(--text);
  min-height:100vh;
}

button,input,select,textarea{font:inherit}
button{cursor:pointer}

.app-shell{
  max-width:760px;
  margin:0 auto;
  min-height:100vh;
  padding-bottom:96px;
  position:relative;
}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(250,248,255,.84);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 18px 13px;
  border-bottom:1px solid rgba(230,224,244,.8);
}

.brand{display:flex;align-items:center;gap:11px}
.brand-mark{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:15px;
  font-weight:900;
  color:#fff;
  background:linear-gradient(135deg,var(--primary),var(--pink));
  box-shadow:0 8px 18px rgba(108,76,241,.26);
}
.brand-copy small{color:var(--muted);font-size:11px;letter-spacing:.02em}
.brand-copy h1{font-size:19px;margin:1px 0 0;letter-spacing:-.02em}

.icon-btn,.link-btn{
  background:none;
  border:none;
  color:var(--primary);
  font-weight:800;
}
.install-chip{
  background:#fff;
  border:1px solid var(--border);
  padding:8px 11px;
  border-radius:999px;
  box-shadow:var(--shadow-soft);
}

.screen{display:none;padding:18px}
.screen.active{display:block;animation:fadeUp .28s ease}
@keyframes fadeUp{
  from{opacity:0;transform:translateY(5px)}
  to{opacity:1;transform:none}
}

.hero{
  position:relative;
  overflow:hidden;
  min-height:188px;
  padding:24px;
  border-radius:28px;
  background:
    linear-gradient(135deg,rgba(108,76,241,.98),rgba(155,93,229,.96) 48%,rgba(255,111,174,.93));
  box-shadow:0 18px 44px rgba(108,76,241,.22);
  margin-bottom:18px;
  color:#fff;
  display:flex;
  align-items:center;
}
.hero-content{position:relative;z-index:2;max-width:72%}
.hero .eyebrow{color:rgba(255,255,255,.80);margin-top:11px}
.hero h2{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.08;
  letter-spacing:-.035em;
  color:#fff;
}
.hero .muted{color:rgba(255,255,255,.88);max-width:470px}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.22);
  padding:6px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  backdrop-filter:blur(8px);
}
.hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:15px;
}
.hero-tags span{
  font-size:10px;
  font-weight:800;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  padding:5px 8px;
}
.hero-art{
  position:absolute;
  right:-14px;
  bottom:-22px;
  width:180px;
  height:180px;
}
.orb{position:absolute;border-radius:50%;filter:blur(.2px)}
.orb-a{width:112px;height:112px;right:10px;bottom:8px;background:rgba(255,215,106,.40)}
.orb-b{width:76px;height:76px;right:82px;top:24px;background:rgba(57,198,214,.34)}
.orb-c{width:54px;height:54px;right:8px;top:16px;background:rgba(255,255,255,.22)}
.hero-icon{
  position:absolute;
  right:50px;
  top:60px;
  width:76px;
  height:76px;
  border-radius:24px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:38px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.30);
  box-shadow:0 12px 30px rgba(77,42,134,.18);
  transform:rotate(8deg);
  backdrop-filter:blur(10px);
}

.eyebrow{
  text-transform:uppercase;
  letter-spacing:.11em;
  font-size:10px;
  font-weight:900;
  color:var(--primary);
  margin:0 0 5px;
}
h2{margin:0 0 6px;font-size:25px;letter-spacing:-.025em}
h3{margin:0;font-size:16px}
.muted{color:var(--muted);margin:0;line-height:1.5}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin:16px 0;
}
.stat,.card,.plan-card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(231,225,243,.9);
  border-radius:22px;
  box-shadow:var(--shadow-soft);
}
.stat{
  position:relative;
  overflow:hidden;
  padding:17px;
  min-height:98px;
}
.stat::after{
  content:"";
  position:absolute;
  width:66px;
  height:66px;
  border-radius:50%;
  right:-18px;
  bottom:-18px;
  opacity:.20;
}
.stat:nth-child(1){border-top:4px solid var(--primary)}
.stat:nth-child(1)::after{background:var(--primary)}
.stat:nth-child(2){border-top:4px solid var(--pink)}
.stat:nth-child(2)::after{background:var(--pink)}
.stat:nth-child(3){border-top:4px solid var(--cyan)}
.stat:nth-child(3)::after{background:var(--cyan)}
.stat:nth-child(4){border-top:4px solid var(--green)}
.stat:nth-child(4)::after{background:var(--green)}
.stat span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  margin-bottom:8px;
}
.stat strong{
  font-size:22px;
  letter-spacing:-.03em;
  position:relative;
  z-index:1;
}

.quick-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:11px;
  margin-bottom:18px;
}
.quick-grid button{
  min-height:68px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-weight:850;
  border-radius:19px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:11px;
  text-align:left;
  box-shadow:var(--shadow-soft);
  transition:.18s ease;
}
.quick-grid button:active{transform:scale(.985)}
.quick-icon{
  flex:0 0 38px;
  height:38px;
  border-radius:13px;
  display:grid;
  place-items:center;
  font-size:16px;
  font-weight:900;
  color:#fff;
}
.quick-grid button:nth-child(1) .quick-icon{background:linear-gradient(135deg,var(--primary),var(--primary-2))}
.quick-grid button:nth-child(2) .quick-icon{background:linear-gradient(135deg,var(--pink),#ff8fc2)}
.quick-grid button:nth-child(3) .quick-icon{background:linear-gradient(135deg,var(--orange),#ffcf70);font-size:12px}
.quick-grid button:nth-child(4) .quick-icon{background:linear-gradient(135deg,var(--cyan),#64d8e4)}

.card{
  padding:17px;
  margin-bottom:14px;
}
.card-head,.screen-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.screen-head{
  margin-bottom:15px;
  padding:2px 1px;
}
.screen-head h2{font-size:24px}

.primary,.secondary{
  border:0;
  border-radius:13px;
  padding:11px 15px;
  font-weight:850;
  transition:.18s ease;
}
.primary{
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
  box-shadow:0 7px 16px rgba(108,76,241,.18);
}
.primary:active,.secondary:active{transform:scale(.98)}
.secondary{background:#f0edf7;color:var(--text)}

.notice{
  background:linear-gradient(135deg,#fff8de,#fff3ee);
  border:1px solid #f1deb7;
  padding:13px 14px;
  border-radius:16px;
  margin-bottom:14px;
  color:#6a5937;
  font-size:13px;
  line-height:1.45;
  box-shadow:0 4px 14px rgba(118,86,35,.04);
}

.form-card{margin-bottom:16px}
.form-card h3{margin-bottom:14px}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:11px;
  font-weight:800;
  color:#5d5670;
}
label.full{grid-column:1/-1}
input,select,textarea{
  width:100%;
  border:1px solid var(--border);
  background:#fbfaff;
  border-radius:12px;
  padding:11px 12px;
  color:var(--text);
  outline:none;
  transition:.18s ease;
}
input:focus,select:focus,textarea:focus{
  border-color:#a995ff;
  background:#fff;
  box-shadow:0 0 0 4px rgba(108,76,241,.09);
}
textarea{resize:vertical}
.form-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:14px;
}
.hidden{display:none}

.stack{display:flex;flex-direction:column;gap:10px}
.item{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:15px;
  box-shadow:var(--shadow-soft);
  position:relative;
  overflow:hidden;
}
.item::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:linear-gradient(180deg,var(--primary),var(--pink));
}
.item-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.item h4{margin:0 0 5px;font-size:15px}
.item p{
  margin:3px 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.pill{
  display:inline-block;
  padding:6px 9px;
  border-radius:999px;
  background:linear-gradient(135deg,#efeaff,#fce9f2);
  color:var(--primary);
  font-size:10px;
  font-weight:900;
}
.danger{color:var(--danger)}
.empty-state{
  color:var(--muted);
  font-size:13px;
  padding:12px 2px;
}

.pricing-result{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  border-top:1px solid var(--border);
  margin-top:16px;
  padding:16px;
  align-items:center;
  border-radius:16px;
  background:linear-gradient(135deg,#f5f0ff,#fff0f7);
}
.pricing-result span{color:var(--muted);font-size:12px}
.pricing-result strong{font-size:21px;color:var(--primary)}

.menu-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.menu-list button{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:17px;
  font-weight:850;
  color:var(--text);
  box-shadow:var(--shadow-soft);
}
.menu-list button span{
  width:28px;
  height:28px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:var(--lavender);
  color:var(--primary);
  font-size:18px;
}

.plan-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.plan-card{
  padding:21px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.plan-card strong{
  font-size:29px;
  letter-spacing:-.035em;
}
.plan-card small{color:var(--muted);min-height:34px}
.plan-card.featured{
  border:2px solid transparent;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(135deg,var(--primary),var(--pink),var(--orange)) border-box;
  position:relative;
  box-shadow:0 14px 35px rgba(108,76,241,.13);
}
.badge{
  align-self:flex-start;
  background:linear-gradient(135deg,var(--primary),var(--pink));
  color:#fff;
  padding:6px 9px;
  border-radius:999px;
  font-size:9px;
  letter-spacing:.02em;
  font-weight:900;
}

.bottom-nav{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:0;
  width:min(760px,100%);
  height:78px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-top:1px solid rgba(228,221,242,.92);
  display:grid;
  grid-template-columns:repeat(5,1fr);
  align-items:center;
  z-index:30;
  box-shadow:0 -10px 30px rgba(64,47,102,.08);
}
.bottom-nav button{
  background:none;
  border:0;
  color:#9992a9;
  font-size:10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  padding:8px 4px;
  position:relative;
}
.bottom-nav button span{font-size:19px}
.bottom-nav button.active{
  color:var(--primary);
  font-weight:900;
}
.bottom-nav button.active::after{
  content:"";
  position:absolute;
  bottom:2px;
  width:18px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--primary),var(--pink));
}
.bottom-nav .fab{
  width:58px;
  height:58px;
  border-radius:19px;
  background:linear-gradient(135deg,var(--primary),var(--pink));
  color:#fff;
  margin:-24px auto 0;
  box-shadow:0 10px 24px rgba(108,76,241,.35);
  transform:rotate(0deg);
}
.bottom-nav .fab span{font-size:29px;line-height:1}
.bottom-nav .fab::after{display:none}

@media(max-width:560px){
  .form-grid,.plan-grid{grid-template-columns:1fr}
  label.full{grid-column:auto}
  .topbar{padding-inline:14px}
  .screen{padding:14px}
  .hero{padding:20px;min-height:180px}
  .hero-content{max-width:78%}
  .hero h2{font-size:25px}
  .hero-art{right:-34px;opacity:.92}
  .stats-grid{gap:10px}
  .quick-grid{gap:9px}
  .quick-grid button{padding:11px;gap:9px;font-size:13px}
  .quick-icon{flex-basis:35px;height:35px}
}

@media(max-width:390px){
  .hero-content{max-width:82%}
  .hero-tags span:last-child{display:none}
  .stat{padding:14px}
  .stat strong{font-size:19px}
}
