/* Mobile-first, clean, human-ish layout */
:root{
  --bg:#fff;
  --text:#1c1c1c;
  --muted:#666;
  --card:#ffffff;
  --stroke:rgba(0,0,0,.08);
  --shadow:0 10px 30px rgba(0,0,0,.10);
  --radius:18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(255, 204, 153, .35), transparent 60%),
    radial-gradient(1200px 700px at 100% 0%, rgba(255, 240, 204, .55), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{color:inherit}
img{display:block; max-width:100%; height:auto}

.skip{
  position:absolute; left:-999px; top:8px;
  background:#000; color:#fff; padding:10px 12px; border-radius:999px;
}
.skip:focus{left:12px; z-index:9999}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:saturate(180%) blur(10px);
  background:rgba(255,255,255,.72);
  border-bottom:1px solid var(--stroke);
  padding-top: var(--safe-top);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  max-width:820px; margin:0 auto;
}
.brand{display:flex; align-items:center; gap:10px; min-width:0}
.brand__dot{
  width:10px; height:10px; border-radius:50%;
  background:#16a34a;
  box-shadow:0 0 0 4px rgba(22,163,74,.18);
  flex:0 0 auto;
}
.brand__text{
  font-weight:700;
  letter-spacing:.2px;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.main{padding-bottom: calc(96px + var(--safe-bottom));}

.section{padding:16px 14px}
.section--hero{padding:0}
.section--text{padding:22px 14px}

.stack{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-width:820px;
  margin:0 auto;
}

.card{
  margin:0;
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--card);
  border:1px solid var(--stroke);
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.img{
  width:100%;
  height:auto;
}

.section--hero{
  position:relative;
  max-width:980px;
  margin:0 auto;
}
.hero__overlay{
  position:absolute;
  left:12px; right:12px; bottom:12px;
  padding:14px 14px 16px;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255,255,255,.82);
  border:1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow);
}
.hero__kicker{
  margin:0 0 8px;
  color:var(--muted);
  font-size:13px;
}
.hero__title{
  margin:0 0 8px;
  font-size: clamp(18px, 5vw, 24px);
  letter-spacing: .3px;
}
.hero__sub{
  margin:0 0 12px;
  color:#333;
  font-size:14px;
  line-height:1.45;
}
.hero__actions{display:flex; gap:10px; flex-wrap:wrap}

.cta{
  appearance:none;
  border:0;
  cursor:pointer;
  background:#16a34a;
  color:#fff;
  font-weight:700;
  padding:12px 14px;
  border-radius:999px;
  font-size:14px;
  letter-spacing:.2px;
  box-shadow: 0 10px 20px rgba(22,163,74,.25);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.cta:active{transform: translateY(1px)}
.cta--ghost{
  background: rgba(255,255,255,.0);
  color:#14532d;
  border:1px solid rgba(20,83,45,.22);
  box-shadow:none;
}
.cta--small{
  padding:10px 12px;
  font-size:13px;
}

.text{
  max-width:820px;
  margin:0 auto;
  background: rgba(255,255,255,.72);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:16px 16px 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.text h2{
  margin:0 0 10px;
  font-size:16px;
}
.text ul{
  margin:0;
  padding-left:18px;
  color:#2a2a2a;
  line-height:1.55;
  font-size:14px;
}
.pillrow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  border:1px dashed rgba(0,0,0,.18);
  background: rgba(255,255,255,.55);
  font-weight:650;
  font-size:13px;
  text-decoration:none;
}
.pill:active{transform: translateY(1px)}

.footer{
  padding:22px 14px calc(30px + var(--safe-bottom));
}
.footer__inner{
  max-width:820px;
  margin:0 auto;
  border-top:1px solid var(--stroke);
  padding-top:18px;
  color:#2b2b2b;
}
.footer__title{
  margin:0 0 6px;
  font-size:16px;
  font-weight:800;
}
.footer__desc{
  margin:0 0 12px;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}
.footer__small{
  display:block;
  margin-top:14px;
  color:#8a8a8a;
  font-size:12px;
}

/* Floating Action Button */
.fab-wrap{
  position:fixed;
  right:14px;
  bottom: calc(14px + var(--safe-bottom));
  z-index:60;
}
.fab{
  border:0;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px 12px 10px;
  border-radius: 999px;
  background:#ffffff;
  border:1px solid rgba(0,0,0,.10);
  box-shadow: 0 16px 35px rgba(0,0,0,.18);
}
.fab__icon{
  width:26px; height:26px;
  border-radius:8px;
}
.fab__text{
  font-weight:800;
  font-size:14px;
  letter-spacing:.2px;
  color:#1f2937;
}

/* Bottom sheet */
.sheet-backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.42);
  z-index:70;
}
.sheet{
  position:fixed;
  left:0; right:0;
  bottom:0;
  z-index:80;
  border-radius: 22px 22px 0 0;
  background: rgba(255,255,255,.96);
  border-top:1px solid rgba(0,0,0,.08);
  box-shadow: 0 -18px 50px rgba(0,0,0,.25);
  padding-bottom: calc(14px + var(--safe-bottom));
}
.sheet__handle{
  width:44px; height:5px;
  border-radius:999px;
  background: rgba(0,0,0,.15);
  margin:10px auto 8px;
}
.sheet__content{
  padding: 6px 16px 12px;
  max-width:820px;
  margin:0 auto;
}
.sheet__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.sheet__title{
  margin:0;
  font-size:16px;
  font-weight:900;
}
.iconbtn{
  width:38px; height:38px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  cursor:pointer;
  font-size:16px;
}
.sheet__copy{
  margin:0 0 12px;
  color:#2f2f2f;
  font-size:14px;
  line-height:1.55;
}
.quote{
  display:inline-block;
  margin:6px 6px 0 0;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(22,163,74,.10);
  border:1px solid rgba(22,163,74,.18);
  color:#14532d;
  font-weight:750;
  font-size:13px;
}
.sheet__buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.sheet__hint{
  margin:12px 0 0;
  color:#777;
  font-size:12.5px;
  line-height:1.4;
}

/* Slightly larger screens */
@media (min-width: 520px){
  .topbar__inner{padding:12px 18px}
  .section{padding:18px}
  .hero__overlay{left:18px; right:18px; bottom:18px; padding:16px 16px 18px}
  .fab-wrap{right:18px; bottom: calc(18px + var(--safe-bottom));}
}
