:root{
  --paper:#F7F2E5;
  --paper-line:#DFD6BF;
  --ink:#1E2E42;
  --ink-soft:#4A5C70;
  --green:#2E6B4A;
  --green-dk:#214F37;
  --green-pale:#E8F0E3;
  --gold:#CEAE6C;
  --white:#FCFAF4;
  --radius:16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- splash screen ---------- */
#splash{
  position:fixed; inset:0; z-index:999;
  background:var(--ink);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:20px;
  padding:0 40px;
  text-align:center;
  transition:opacity .45s ease, visibility .45s ease;
}
#splash.hide{ opacity:0; visibility:hidden; pointer-events:none; }
.splash-icon{
  width:72px;
  animation: splashIn .6s ease both;
}
.splash-icon svg{ width:100%; height:auto; display:block; }
.splash-rule{
  width:36px; height:2px; background:var(--green);
  animation: splashIn .6s ease .1s both;
}
.splash-title{
  font-family:"PT Serif", serif;
  font-weight:700;
  color:var(--paper);
  font-size:19px;
  text-align:center;
  line-height:1.45;
  max-width:260px;
  margin:0;
  animation: splashIn .6s ease .15s both;
}
@keyframes splashIn{
  from{ opacity:0; transform:translateY(8px); }
  to{ opacity:1; transform:none; }
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"PT Sans", sans-serif;
  -webkit-font-smoothing:antialiased;
  overscroll-behavior-y:none;
}
h1,h2{font-family:"PT Serif", serif; margin:0; color:var(--ink);}
p{margin:0;}
button{font-family:inherit;}
a{text-decoration:none; color:inherit;}

.app-shell{
  display:flex;
  flex-direction:column;
  height:100dvh;
  max-width:520px;
  margin:0 auto;
  position:relative;
  background:var(--paper);
}

/* ---------- header ---------- */
.app-header{
  padding: calc(14px + var(--safe-top)) 20px 12px;
  background:var(--paper);
  border-bottom:1px solid var(--paper-line);
  flex:0 0 auto;
}
.eyebrow{
  font-size:11px;
  font-weight:700;
  letter-spacing:2.5px;
  color:var(--ink-soft);
  text-transform:uppercase;
}

/* ---------- scroll area ---------- */
#views{
  flex:1 1 auto;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding: 20px 20px calc(28px + var(--safe-bottom) + 76px);
}
.view{ animation: fadeIn .25s ease; }
@keyframes fadeIn{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:none;} }

/* ---------- hero ---------- */
.hero{ text-align:center; padding-top:6px; }
.hero-photo-ring{
  width:132px; height:132px; border-radius:50%;
  border:3px solid var(--ink);
  padding:5px;
  margin:0 auto 18px;
}
.hero-photo{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
.hero h1{ font-size:28px; line-height:1.25; font-weight:700; }
.hero .accent{ color:var(--green-dk); }
.hero .sub{ margin-top:8px; color:var(--ink-soft); font-size:15px; }

.btn-primary{
  display:inline-block;
  margin-top:20px;
  background:var(--green);
  color:var(--white);
  font-weight:700;
  font-size:16px;
  border:none;
  border-radius:999px;
  padding:15px 28px;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(33,79,55,.25);
}
.btn-block{ display:block; width:100%; text-align:center; margin-top:14px; box-sizing:border-box; }
.btn-secondary{
  display:inline-block;
  background:var(--white);
  color:var(--ink);
  font-weight:700;
  font-size:15px;
  border:2px solid var(--ink);
  border-radius:999px;
  padding:13px 24px;
}

/* ---------- cards ---------- */
.card{
  background:var(--white);
  border:1.5px solid var(--ink);
  border-radius:var(--radius);
  padding:18px;
  margin-top:22px;
}
.card b{ display:block; margin-bottom:6px; font-family:"PT Serif", serif; font-size:17px; }
.card p{ color:var(--ink-soft); font-size:14.5px; line-height:1.45; }

.card-guarantee{
  background:var(--green-dk);
  border-color:var(--green-dk);
  color:var(--white);
  position:relative;
  padding:22px 20px 20px;
}
.card-guarantee p{ color:var(--white); font-family:"PT Serif", serif; font-size:16px; line-height:1.4; font-style:italic; }
.quote-mark{
  font-family:"PT Serif", serif;
  font-size:44px;
  color:rgba(255,255,255,.35);
  margin:0 0 -14px;
  line-height:1;
}
.quote-mark--sm{ color:var(--green-pale); font-size:36px; }

.section-title{
  margin-top:30px;
  margin-bottom:14px;
  font-size:19px;
  font-weight:700;
}
.page-title{ font-size:24px; font-weight:700; margin-bottom:18px; }

/* ---------- roadmap ---------- */
.roadmap{ position:relative; padding: 6px 4px 0; }
.roadmap-points{ display:flex; justify-content:space-between; position:relative; }
.roadmap-track{
  position:absolute; left:16px; right:16px; top:16px; height:4px;
  background:var(--green); border-radius:2px;
}
.rp{ display:flex; flex-direction:column; align-items:center; gap:8px; position:relative; z-index:1; width:32px;}
.rp-dot{
  width:32px; height:32px; border-radius:50%;
  background:var(--green); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:13px;
  border:3px solid var(--paper);
}
.rp-dot--gold{ background:var(--gold); color:var(--ink); width:36px; height:36px; margin-top:-2px;}
.rp-label{ font-size:11.5px; font-weight:700; color:var(--ink-soft); }

/* ---------- format grid ---------- */
.format-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.format-card{
  background:var(--white); border:1.5px solid var(--ink); border-radius:14px;
  padding:14px 8px; text-align:center;
}
.format-badge{
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%; background:var(--green); color:var(--white);
  font-weight:700; font-size:13px; margin-bottom:8px;
}
.format-card b{ display:block; font-size:13px; margin-bottom:4px; }
.format-card p{ font-size:11.5px; color:var(--ink-soft); margin:0; line-height:1.3; }

/* ---------- about ---------- */
.about-hero{ text-align:center; padding-top:6px; }
.about-photo{ width:110px; height:110px; border-radius:50%; object-fit:cover; border:3px solid var(--ink); padding:4px; }
.about-hero h1{ font-size:24px; margin-top:14px; }
.about-hero .sub{ color:var(--ink-soft); font-size:14.5px; margin-top:4px; }

.stat-row{ display:flex; gap:12px; margin-top:24px; }
.stat-card{
  flex:1; background:var(--green-pale); border:1.5px solid var(--ink); border-radius:14px;
  padding:16px 10px; text-align:center;
}
.stat-num{ display:block; font-family:"PT Serif", serif; font-weight:700; font-size:26px; color:var(--green-dk); }
.stat-label{ font-size:12px; color:var(--ink-soft); }

.check-list{ list-style:none; margin:0; padding:0; }
.check-list li{
  display:flex; gap:12px; align-items:flex-start;
  background:var(--white); border:1.5px solid var(--ink); border-radius:14px;
  padding:14px; margin-bottom:12px; font-size:14.5px; line-height:1.4;
}
.check-ico{ color:var(--green-dk); font-weight:700; font-size:16px; }
.body-text{ color:var(--ink-soft); font-size:14.5px; line-height:1.55; }

/* ---------- reviews ---------- */
.progress-story{
  background:var(--white); border:1.5px solid var(--ink); border-radius:var(--radius);
  padding:18px; margin-bottom:16px;
}
.ps-head{ display:flex; gap:12px; align-items:center; margin-bottom:16px; }
.avatar{
  width:40px; height:40px; border-radius:50%; background:var(--green); color:var(--white);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-family:"PT Serif",serif;
  flex:0 0 auto;
}
.sub-small{ color:var(--ink-soft); font-size:12.5px; }
.ps-track{ display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.ps-line{ flex:1; height:3px; background:var(--green); border-radius:2px; }
.ps-a{ font-size:11.5px; font-weight:700; color:var(--ink-soft); max-width:80px; }
.ps-b{ font-size:11.5px; font-weight:700; color:var(--green-dk); max-width:90px; text-align:right; }
.ps-quote{ font-family:"PT Serif", serif; font-style:italic; font-size:14.5px; color:var(--ink); line-height:1.4; }

.review-card{
  background:var(--white); border:1.5px solid var(--ink); border-radius:14px;
  padding:16px; margin-bottom:12px;
}
.review-card p{ font-family:"PT Serif", serif; font-style:italic; font-size:14.5px; line-height:1.4; color:var(--ink); }
.review-who{ display:block; margin-top:10px; font-size:12.5px; font-weight:700; color:var(--green-dk); }

/* ---------- cabinet ---------- */
.fine-print{ display:block; margin-top:14px; font-size:12px; color:var(--ink-soft); text-align:center; }

/* ---------- tab bar ---------- */
.tabbar{
  position:absolute; left:0; right:0; bottom:0;
  display:flex;
  background:var(--white);
  border-top:1.5px solid var(--ink);
  padding: 8px 6px calc(8px + var(--safe-bottom));
  max-width:520px; margin:0 auto;
}
.tab{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:4px;
  background:none; border:none; color:var(--ink-soft); font-size:11px; font-weight:700;
  padding:6px 0; cursor:pointer;
}
.tab svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.tab.active{ color:var(--green-dk); }
.tab.active svg{ stroke:var(--green-dk); }

@media (min-width:521px){
  .app-shell{ box-shadow:0 0 40px rgba(0,0,0,.12); }
}
