@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Kurale&family=Comforter&display=swap');

:root{
  --color-orange:#ff8200;
  --color-teal:#2fb6b9;
  --color-lime:#c3d228;
  --color-yellow:#fdc715;
  --color-navy:#383387;
  --color-pink:#e5097f;
  --color-dark:#1a1a1a;
  --color-gray:#777;
  --color-soft:#f7f7f7;
  --color-line:#e8e8e8;
  --shadow:0 18px 48px rgba(26,26,26,.09);
  --radius-md:8px;
  --radius-lg:12px;
  --radius-pill:100px;
}

*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  font-family:Montserrat, sans-serif;
  color:var(--color-dark);
  background:
    linear-gradient(90deg, rgba(47,182,185,.05) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255,130,0,.05) 0 1px, transparent 1px 100%),
    #fff;
  background-size:42px 42px;
}

button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed; opacity:.55}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.92em}
input[type="text"], input[type="email"], input[type="password"], textarea{
  width:100%;
  border:1px solid var(--color-line);
  border-radius:var(--radius-md);
  padding:12px 13px;
  font-size:12px;
  color:var(--color-dark);
  background:#fff;
  outline:none;
}
select{
  width:100%;
  border:1px solid var(--color-line);
  border-radius:var(--radius-md);
  padding:12px 13px;
  font-size:12px;
  color:var(--color-dark);
  background:#fff;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus{border-color:var(--color-teal)}
label{display:block; font-size:10px; font-weight:800; color:var(--color-gray); text-transform:uppercase; letter-spacing:.08em; margin:10px 0 5px}

.shell{min-height:100vh; display:grid; grid-template-columns:310px minmax(0,1fr)}
.side{
  border-right:1px solid var(--color-line);
  padding:24px 20px;
  background:rgba(255,255,255,.94);
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
}
.section-label{font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.18em; color:var(--color-gray)}
.brand-title{margin:8px 0 4px; font-size:27px; line-height:1.08; font-weight:900}
.signature{font-family:Comforter,cursive; color:var(--color-orange); font-size:28px; margin-bottom:18px}
.side-text{color:#555; font-size:13px; line-height:1.55; margin:0 0 18px}
.tabs{display:flex; flex-direction:column; gap:8px; margin-bottom:20px}
.tab{
  border:1px solid var(--color-line);
  background:#fff;
  color:var(--color-dark);
  border-radius:var(--radius-md);
  padding:12px;
  text-align:left;
}
.tab strong{display:block; font-size:12px; margin-bottom:3px}
.tab span{color:var(--color-gray); font-size:10.5px; line-height:1.35}
.tab.active{border-color:var(--color-orange); box-shadow:inset 4px 0 0 var(--color-orange)}
.note{border-left:3px solid var(--color-teal); padding:10px 0 10px 13px; font-family:Kurale,serif; line-height:1.55; font-size:14px}

.main{padding:26px}
.topbar{display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:20px}
.topbar h1{margin:0; font-size:20px; line-height:1.2}
.topbar p{margin:6px 0 0; color:var(--color-gray); font-size:12px}
.tools{display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end}
.pill-btn{border:1px solid var(--color-line); background:#fff; color:var(--color-dark); border-radius:var(--radius-pill); padding:8px 13px; font-size:11px; font-weight:800; text-decoration:none}
.pill-btn:hover{border-color:var(--color-teal); color:var(--color-teal)}

.stage{display:grid; grid-template-columns:minmax(300px,390px) minmax(280px,1fr); gap:22px; align-items:start}
.phone{
  min-height:650px;
  background:#fff;
  border:1px solid var(--color-line);
  border-radius:26px;
  padding:20px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
}
.status{min-height:22px; display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px}
.back{border:0; background:transparent; color:var(--color-gray); font-size:11px; font-weight:800; padding:0}
.tag{display:inline-block; font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.14em; border-radius:var(--radius-pill); padding:4px 10px}
.tag-orange{background:var(--color-orange); color:#fff}
.tag-teal{background:var(--color-teal); color:#fff}
.tag-lime{background:var(--color-lime); color:var(--color-dark)}
.tag-yellow{background:var(--color-yellow); color:var(--color-dark)}

.progress-label{color:var(--color-gray); font-size:10.5px; font-weight:800; letter-spacing:.04em; margin-bottom:6px}
.progress-track{height:5px; background:#ececec; border-radius:var(--radius-pill); overflow:hidden; margin-bottom:16px}
.progress-fill{height:100%; background:linear-gradient(90deg,var(--color-teal),var(--color-lime)); transition:width .22s ease}
.phone h2{margin:0 0 12px; font-size:20px; line-height:1.24; font-weight:900}
.phone h2.question-title{font-size:22px; line-height:1.28}
.phone h2.intro-title{font-size:28px; line-height:1.2; margin-bottom:16px}
.body-text{color:#565656; font-size:13px; line-height:1.58; margin:0 0 14px}
.intro-text{font-size:16px; line-height:1.62; margin-bottom:18px}
.quote{border-left:3px solid var(--color-teal); padding:9px 0 9px 13px; font-family:Kurale,serif; font-size:14px; line-height:1.55; margin:0 0 16px}
.intro-quote{font-size:16px; line-height:1.58; padding-left:16px; margin-bottom:20px}
.media-slot{
  border:1px dashed var(--color-line);
  border-radius:var(--radius-md);
  background:linear-gradient(135deg,rgba(255,130,0,.12),transparent 38%), linear-gradient(315deg,rgba(47,182,185,.15),transparent 42%), var(--color-soft);
  min-height:94px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#555;
  text-align:center;
  font-size:11px;
  line-height:1.45;
  font-weight:700;
  margin-bottom:13px;
  padding:14px;
}
.media-slot span{font-weight:500; color:#777}
.media-figure{margin:0 0 14px}
.media-figure img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  border-radius:var(--radius-md);
  border:1px solid var(--color-line);
  background:var(--color-soft);
}
.media-figure.media-portrait img{
  width:auto;
  max-width:100%;
  max-height:620px;
  margin:0 auto;
}
.media-figure.media-landscape img{width:100%; max-height:none}
.video-frame{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:var(--radius-md);
  border:1px solid var(--color-line);
  background:#111;
}
.video-frame iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.video-frame video{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#111;
}
.media-figure figcaption{
  margin-top:6px;
  color:var(--color-gray);
  font-size:10.5px;
  line-height:1.45;
}
.options{display:flex; flex-direction:column; gap:8px; margin-bottom:14px}
.option{
  width:100%;
  border:1px solid var(--color-line);
  border-radius:var(--radius-md);
  background:var(--color-soft);
  color:#282828;
  padding:11px 12px;
  text-align:left;
  display:flex;
  align-items:flex-start;
  gap:10px;
  line-height:1.36;
  font-size:13.5px;
}
.option-content{display:block; min-width:0; flex:1}
.option-text{display:block}
.option-hint{display:block; color:var(--color-gray); font-size:11px; line-height:1.45; margin-top:4px; font-weight:500}
.option-media{display:block; margin-bottom:8px}
.option-media .media-figure{margin:0}
.option-media .media-figure img{max-height:300px; border-radius:var(--radius-sm)}
.option-media figcaption{display:none}
.option:hover{border-color:rgba(255,130,0,.58)}
.option.selected{border-color:var(--color-orange); background:#fff4ea; font-weight:700}
.marker{flex:0 0 17px; width:17px; height:17px; border:1.5px solid #cfcfcf; display:flex; align-items:center; justify-content:center; font-size:10px; color:#fff; margin-top:1px}
.marker.round{border-radius:50%}
.marker.square{border-radius:4px}
.selected .marker{background:var(--color-orange); border-color:var(--color-orange)}
.spacer{flex:1; min-height:10px}
.primary,.outline{width:100%; border-radius:var(--radius-pill); padding:13px 14px; font-size:13px; font-weight:900; margin-top:8px}
.primary{border:0; color:#fff; background:var(--color-orange)}
.next-screen-link{display:block; box-sizing:border-box; text-align:center; text-decoration:none}
.outline{border:1px solid var(--color-line); color:var(--color-dark); background:#fff}
.micro{color:var(--color-gray); text-align:center; font-size:10.5px; line-height:1.45; margin:8px 0 0}
.form-card{border:1px solid var(--color-line); border-radius:var(--radius-md); padding:13px; background:#fff; margin:12px 0}
.consent{display:flex; gap:8px; align-items:flex-start; margin:10px 0 2px; color:#666; font-size:10.5px; line-height:1.45}
.consent input{margin-top:2px}
.save-message{font-size:11px; color:var(--color-teal); font-weight:800; margin-top:8px}
.save-message.error{color:var(--color-orange)}
.bot-trap{position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; overflow:hidden!important}

.panel{background:#fff; border:1px solid var(--color-line); border-radius:var(--radius-lg); padding:16px}
.panel + .panel{margin-top:14px}
.panel h3{margin:0 0 10px; font-size:14px}
.score-row{margin-bottom:10px}
.score-head{display:flex; justify-content:space-between; gap:10px; font-size:11px; font-weight:800; color:#666; margin-bottom:4px}
.bar{height:7px; border-radius:var(--radius-pill); overflow:hidden; background:#f0f0f0}
.bar span{display:block; height:100%; border-radius:var(--radius-pill); background:var(--color-orange)}
.steps{list-style:none; padding:0; margin:0 0 12px; display:flex; flex-direction:column; gap:8px}
.steps li{display:flex; gap:8px; font-size:12px; line-height:1.42}
.num{flex:0 0 18px; width:18px; height:18px; border-radius:50%; background:var(--color-orange); color:#fff; font-size:10px; font-weight:900; display:flex; align-items:center; justify-content:center}
.result-card{border:2px solid var(--color-lime); border-radius:var(--radius-md); padding:13px; margin-bottom:13px}
.result-card .section-label{color:#778000; margin-bottom:5px}
.result-section{border-top:1px solid var(--color-line); padding:13px 0 2px; margin-top:5px}
.result-section p{font-size:13px; line-height:1.55; margin:6px 0 10px}
.result-section.risk .section-label{color:var(--color-orange)}
.first-step{margin-top:8px}
.first-step .body-text:last-child{margin-bottom:0}
.result-screen{display:flex; flex:1; flex-direction:column}
.result-screen .body-text,
.result-screen .result-section p,
.result-screen .steps li{font-size:15px; line-height:1.62}
.result-screen .quote{font-size:16px; line-height:1.62}
.survey-form{border-top:1px solid var(--color-line); border-bottom:1px solid var(--color-line); padding:15px 0; margin:16px 0}
.checklist{margin-top:18px}
.checklist h3{font-size:18px; line-height:1.3; margin:8px 0 10px}
.checklist-section{border-top:1px solid var(--color-line); padding-top:12px; margin-top:12px}
.checklist-section h4{font-size:13px; margin:0 0 8px}
.checklist-section ul{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px}
.checklist-section li{display:flex; align-items:flex-start; gap:8px; font-size:11.5px; line-height:1.45}
.check-box{font-size:17px; line-height:1; color:var(--color-teal)}
.json-box{max-height:260px; overflow:auto; background:#1f1f26; color:#f5f5f5; border-radius:var(--radius-md); padding:12px; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:10.5px; line-height:1.55; white-space:pre-wrap}
.schema-grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px}
.mini-card{border-radius:var(--radius-md); padding:12px; background:#fff; border:1px solid var(--color-line)}
.mini-card strong{display:block; font-size:12px; margin-bottom:5px}
.mini-card span{display:block; color:var(--color-gray); font-size:11px; line-height:1.45}

body.public-mode{background:#fff}
body.public-mode .shell{display:block; min-height:0}
body.public-mode .side,
body.public-mode .topbar,
body.public-mode .stage > div:not(.phone){display:none}
body.public-mode .main{padding:0}
body.public-mode .stage{display:block}
body.public-mode .phone{
  width:100%;
  max-width:680px;
  min-height:0;
  margin:0 auto;
  border:0;
  border-radius:0;
  box-shadow:none;
  padding:24px 20px 30px;
}

@media (max-width:980px){
  .shell{grid-template-columns:1fr}
  .side{position:static; height:auto}
  .stage{grid-template-columns:1fr}
  .phone{max-width:420px; width:100%; margin:0 auto}
}
@media (max-width:560px){
  .main{padding:18px}
  .topbar{display:block}
  .tools{justify-content:flex-start; margin-top:12px}
  .schema-grid{grid-template-columns:1fr}
  .brand-title{font-size:24px}
  .phone h2.intro-title{font-size:24px}
  .intro-text,.intro-quote{font-size:15px}
}

@media print{
  body *{visibility:hidden}
  .checklist,.checklist *{visibility:visible}
  .checklist{position:absolute; inset:0; margin:0; padding:24px; background:#fff}
  .no-print{display:none!important}
}
