@font-face{
  font-family: 'GT Alpina';
  src: url('fonts/GT-Alpina-Standard-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #FFFBF7;
  --surface: #FFFFFF;
  --line: #E7E1D8;
  --text: #000000;
  --text-dim: #6B6660;
  --accent: #9AEB00;
  --accent-text: #000000;
  --radius: 10px;
  --radius-sm: 6px;
}

*{box-sizing:border-box;}
html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter', system-ui, sans-serif;
  line-height:1.5;
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
}

.frame{
  max-width:640px;
  margin:0 auto;
  padding:0 24px 96px;
}

/* ---------- Topbar ---------- */

.topbar{
  padding:40px 0 28px;
  border-bottom:1px solid var(--line);
  margin-bottom:40px;
}

.brand-row{
  display:flex;
  align-items:center;
  gap:11px;
  margin-bottom:26px;
}

.brand-logo{
  height:26px;
  width:auto;
  display:block;
  mix-blend-mode: multiply;
}

.brand-x{
  font-family:'Inter', sans-serif;
  font-weight:200;
  font-size:14px;
  color:var(--text-dim);
  line-height:1;
}

.brand-client-logo{
  height:26px;
  width:auto;
  max-width:110px;
  object-fit:contain;
}

.progress{
  display:flex;
  align-items:center;
  gap:14px;
}

.progress-step{
  display:flex;
  align-items:baseline;
  gap:8px;
  color:var(--text-dim);
  opacity:0.55;
  transition:opacity 0.3s ease, color 0.3s ease;
}
.progress-step.active{ opacity:1; color:var(--text); }
.progress-step.done{ opacity:1; color:var(--text); }

.progress-num{
  font-family:'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size:12px;
  font-weight:600;
  color:var(--text-dim);
}
.progress-step.active .progress-num{ color:var(--text); }
.progress-step.done .progress-num::after{
  content:"";
  display:inline-block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--accent);
  margin-left:6px;
  vertical-align:middle;
}

.progress-label{
  font-family:'Inter', sans-serif;
  font-size:14px;
  font-weight:500;
}

.progress-rule{
  flex:1;
  height:1px;
  background:var(--line);
  max-width:60px;
}

/* ---------- Type ---------- */

h1{
  font-family:'GT Alpina', Georgia, serif;
  font-weight:400;
  font-size:32px;
  line-height:1.15;
  margin:0 0 10px;
  letter-spacing:-0.01em;
}

.sub{
  color:var(--text-dim);
  font-size:15px;
  margin:0 0 40px;
  max-width:46ch;
}

/* ---------- Question blocks ---------- */

.question{
  margin-bottom:38px;
  padding-bottom:34px;
  border-bottom:1px solid var(--line);
}
.question:last-of-type{ border-bottom:none; }

.question-title{
  font-family:'Inter', sans-serif;
  font-size:16px;
  font-weight:600;
  margin-bottom:18px;
}

/* ---------- Slider ---------- */

.slider-wrap{
  position:relative;
  width:100%;
  height:24px;
  display:flex;
  align-items:center;
  margin-bottom:4px;
}

input[type="range"]{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:2px;
  background:var(--line);
  border-radius:2px;
  outline:none;
  margin:0;
  cursor:pointer;
}

input[type="range"]::-webkit-slider-runnable-track{
  height:2px;
  background:var(--line);
  border-radius:2px;
}

input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:15px;
  height:15px;
  background:var(--text);
  border-radius:3px;
  transform:translateY(-6.5px) rotate(45deg);
  border:none;
  cursor:pointer;
  transition:background 0.15s ease, transform 0.1s ease;
}
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:active::-webkit-slider-thumb{
  background:var(--accent);
}
input[type="range"]:focus-visible::-webkit-slider-thumb{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

input[type="range"]::-moz-range-track{
  height:2px;
  background:var(--line);
  border-radius:2px;
}
input[type="range"]::-moz-range-thumb{
  width:15px;
  height:15px;
  background:var(--text);
  border-radius:3px;
  transform:rotate(45deg);
  border:none;
  cursor:pointer;
}
input[type="range"]:hover::-moz-range-thumb,
input[type="range"]:active::-moz-range-thumb{
  background:var(--accent);
}
input[type="range"]:focus-visible::-moz-range-thumb{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

.slider-readout{
  font-family:'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight:600;
  font-size:14px;
  color:var(--text);
  margin-bottom:10px;
}
.slider-readout .max{ color:var(--text-dim); font-weight:400; }

.slider-scale{
  display:flex;
  justify-content:space-between;
  font-size:11px;
  color:var(--text-dim);
  margin-bottom:18px;
}

textarea{
  width:100%;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  color:var(--text);
  font-family:'Inter', sans-serif;
  font-size:14px;
  padding:12px 14px;
  resize:vertical;
  min-height:64px;
  transition:border-color 0.15s ease;
}
textarea::placeholder{ color:var(--text-dim); }
textarea:focus{
  outline:none;
  border-color:var(--text);
}

/* ---------- Segmented control (would-work-again) ---------- */

.segmented{
  display:flex;
  gap:8px;
}

.segmented button{
  flex:1;
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--text);
  padding:12px 10px;
  font-weight:500;
}
.segmented button:hover{
  border-color:var(--text);
  background:var(--surface);
  color:var(--text);
}
.segmented button.selected{
  background:var(--text);
  color:#fff;
  border-color:var(--text);
}

/* ---------- Buttons ---------- */

.btn-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:8px;
}

button{
  font-family:'Inter', sans-serif;
  font-size:14px;
  font-weight:600;
  border-radius:var(--radius-sm);
  padding:13px 22px;
  cursor:pointer;
  border:1px solid transparent;
  transition:background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary{
  background:var(--text);
  color:#fff;
}
.btn-primary:hover{ background:var(--accent); color:var(--accent-text); }
.btn-primary:disabled{ opacity:0.35; cursor:not-allowed; background:var(--text); color:#fff; }

.btn-ghost{
  background:transparent;
  border-color:var(--line);
  color:var(--text-dim);
}
.btn-ghost:hover{ color:var(--text); border-color:var(--text); }

/* ---------- Your details (editable identity fields) ---------- */

.details-grid{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-bottom:32px;
}

input[type="text"]{
  width:100%;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  color:var(--text);
  font-family:'Inter', sans-serif;
  font-size:14px;
  padding:11px 14px;
  transition:border-color 0.15s ease;
}
input[type="text"]::placeholder{ color:var(--text-dim); }
input[type="text"]:focus{
  outline:none;
  border-color:var(--text);
}

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

.upload-thumb{
  width:40px;
  height:40px;
  border-radius:50%;
  object-fit:cover;
  background:var(--surface);
  border:1px solid var(--line);
  flex-shrink:0;
}
.upload-thumb.logo-thumb{
  border-radius:var(--radius-sm);
  object-fit:contain;
  padding:4px;
}
.upload-thumb.headshot-thumb{
  filter:grayscale(1);
}

.upload-btn{
  position:relative;
  overflow:hidden;
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--text);
  font-size:13px;
  font-weight:500;
  padding:9px 16px;
}
.upload-btn:hover{ border-color:var(--text); }
.upload-btn input[type="file"]{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
  width:100%;
}

/* ---------- Testimonial consent checkbox ---------- */
.consent-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:-4px 0 32px;
  cursor:pointer;
}
.consent-row input[type="checkbox"]{
  margin-top:3px;
  width:16px;
  height:16px;
  accent-color: var(--text);
  flex-shrink:0;
  cursor:pointer;
}
.consent-row input[type="checkbox"]:checked{
  accent-color: var(--accent);
}
.consent-row label{
  font-size:14px;
  color:var(--text);
  cursor:pointer;
}

/* ---------- Testimonial preview card ---------- */

.preview-shell{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn{
  from{ opacity:0; transform:translateY(4px); }
  to{ opacity:1; transform:translateY(0); }
}

.preview-tag{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  font-weight:600;
  color:var(--text-dim);
  margin-bottom:16px;
}

.rec-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
  animation:pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ opacity:1; }
  50%{ opacity:0.3; }
}

.testi-card{
  position:relative;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px 24px 24px;
  min-height:180px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.logo-tag{
  height:17px;
  max-width:100px;
  width:auto;
  object-fit:contain;
  object-position:left center;
  margin-bottom:18px;
  align-self:flex-start;
  filter:brightness(0);
  opacity:0.7;
}

.tc-stars{
  display:flex;
  gap:3px;
  margin-bottom:14px;
}
.tc-stars svg{ width:15px; height:15px; }
.tc-stars .filled{ fill:var(--accent); }
.tc-stars .empty{ fill:none; stroke:var(--line); stroke-width:1.5; }

.tc-quote{
  font-family:'GT Alpina', Georgia, serif;
  font-size:26px;
  font-weight:400;
  line-height:1.35;
  color:var(--text);
  margin-bottom:22px;
}
.tc-quote.placeholder{
  color:var(--text-dim);
  font-family:'Inter', sans-serif;
  font-size:15px;
}

.tc-meta{
  display:flex;
  align-items:center;
  gap:12px;
  border-top:1px solid var(--line);
  padding-top:16px;
}

.tc-headshot{
  width:40px;
  height:40px;
  border-radius:50%;
  object-fit:cover;
  background:var(--line);
  flex-shrink:0;
  filter:grayscale(1);
}

.tc-id{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.tc-name{
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size:14px;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.tc-role{
  font-size:12px;
  color:var(--text-dim);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ---------- Confirm dialog ---------- */

.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.45);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:10;
}

.dialog{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px;
  max-width:380px;
  width:100%;
}

.dialog p{
  font-size:15px;
  margin:0 0 22px;
  color:var(--text);
}

.dialog .btn-row{ justify-content:flex-end; gap:10px; }

/* ---------- Done state ---------- */

.done-wrap{
  text-align:left;
  padding:20px 0;
}
.done-mark{
  font-size:12px;
  font-weight:600;
  color:var(--text-dim);
  margin-bottom:14px;
  display:flex;
  align-items:center;
  gap:7px;
}
.done-mark::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
}

/* ---------- Responsive ---------- */

@media (max-width:480px){
  .frame{ padding:0 18px 72px; }
  .topbar{ padding:28px 0 22px; }
  .brand-logo{ height:20px; }
  .brand-client-logo{ height:20px; }
  h1{ font-size:26px; }
  .testi-card{ min-height:150px; padding:22px 18px 18px; }
  .tc-quote{ font-size:21px; }
}
