:root {
  --ink: #0b1838;
  --navy: #0a2147;
  --blue: rgb(23, 79, 219);
  --blue-dark: #123eaf;
  --mint: #8deac8;
  --paper: #f7f8f5;
  --white: #fff;
  --muted: #60708a;
  --line: #dfe4ea;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

.site-header {
  height: 84px; padding: 0 clamp(24px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between;
  background: rgba(247, 248, 245, .9); border-bottom: 1px solid rgba(11, 24, 56, .08); position: sticky; top: 0; z-index: 30; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px "Manrope", sans-serif; letter-spacing: 0; }
.brand > span > span { color: var(--blue); }
.brand-mark { width: 36px; fill: var(--blue); stroke: var(--white); stroke-width: 1.8; }
.site-nav { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 600; }
.site-nav > a:not(.nav-cta) { transition: color .2s; }
.site-nav > a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta { color: var(--white); background: var(--blue); padding: 13px 18px; border-radius: 4px; }
.nav-cta span, .button span { margin-left: 10px; }
.menu-button { display: none; border: 0; background: transparent; padding: 8px; }

.hero { min-height: 690px; padding: 74px clamp(24px, 7vw, 108px) 76px; display: grid; grid-template-columns: minmax(0, 820px); align-items: center; justify-content: center; gap: 70px; text-align: center; position: relative; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: .4; background-image: linear-gradient(rgba(11,24,56,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11,24,56,.035) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: linear-gradient(to right, #000, transparent 65%); mask-image: linear-gradient(to right, #000, transparent 65%); }
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 20px; display: flex; align-items: center; gap: 10px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.eyebrow > span { width: 25px; height: 2px; background: currentColor; }
.hero .eyebrow { justify-content: center; }
.hero h1 { max-width: 720px; margin: 0 auto; font: 700 clamp(54px, 6vw, 88px)/.98 "Manrope", sans-serif; letter-spacing: 0; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-intro { max-width: 610px; margin: 29px auto 34px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 34px; }
.button { border: 0; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; padding: 16px 21px; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: var(--blue); border: 1px solid var(--blue); background: var(--white); }
.button-secondary:hover { color: var(--white); background: var(--blue); }
.text-link { padding: 14px 0; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--ink); }
.text-link span { margin-left: 12px; color: var(--blue); }
.trust-row { margin-top: 68px; display: flex; flex-wrap: wrap; gap: 15px 28px; color: #8490a3; font-size: 12px; }
.trust-row span { width: 100%; text-transform: uppercase; letter-spacing: 1.2px; }
.trust-row strong { color: #526079; font: 700 13px "Manrope"; }

.hero-visual { height: 480px; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--blue); box-shadow: 0 30px 90px rgba(23,79,219,.24); }
.orbit { position: absolute; border: 1px solid rgba(23,79,219,.16); border-radius: 50%; }
.orbit-one { width: 450px; height: 450px; }
.orbit-two { width: 540px; height: 540px; }
.signal-card { width: 350px; padding: 23px; background: rgba(255,255,255,.97); border-radius: 10px; z-index: 2; box-shadow: 0 24px 60px rgba(5,20,55,.2); }
.signal-header, .signal-footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.signal-header > span:first-child { color: var(--ink); font-weight: 700; }
.live-dot { color: #18996d; }
.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(141,234,200,.3); }
.donut-wrap { min-height: 230px; display: flex; align-items: center; gap: 22px; }
.donut { width: 150px; height: 150px; padding: 17px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--mint) 0 68%, var(--blue) 68% 89%, var(--ink) 89% 100%); transform: rotate(-30deg); }
.donut > div { height: 100%; border-radius: 50%; display: grid; align-content: center; text-align: center; background: white; transform: rotate(30deg); }
.donut strong { display: block; font: 800 30px "Manrope"; }
.donut span { color: var(--muted); font-size: 10px; }
.legend { flex: 1; }
.legend p { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 7px; margin: 13px 0; color: var(--muted); font-size: 10px; }
.legend i { width: 7px; height: 7px; border-radius: 50%; }
.legend b { color: var(--ink); }
.mint { background: var(--mint); }.blue { background: var(--blue); }.dark { background: var(--ink); }
.signal-footer { padding-top: 15px; border-top: 1px solid var(--line); letter-spacing: 0; text-transform: none; }
.floating-note { z-index: 3; position: absolute; padding: 12px 16px; border-radius: 7px; background: white; box-shadow: 0 12px 35px rgba(5,20,55,.16); font-size: 11px; font-weight: 700; }
.floating-note span { color: var(--blue); font-size: 18px; margin-right: 5px; }
.floating-note svg { display: inline-block; vertical-align: middle; width: 21px; margin-right: 7px; stroke: var(--blue); fill: none; stroke-width: 2; }
.note-top { top: 55px; right: 4px; }
.note-bottom { bottom: 50px; left: -6px; }

.build-options em{color:var(--blue);font-style:normal;}
section.build-options{background:#eef2f8; border:1px solid var(--line); padding: clamp(32px, 5vw, 50px) clamp(16px, 5vw, 50px);}
section.build-options h3{margin-top: 60px; font: 800 25px "Manrope",sans-serif; margin-bottom: 5px;}
p.ready-check{margin-top:5px; font: 500 12px "Manrope",sans-serif; color:var(--muted); opacity: 0.8; display: flex; align-items: center; gap: 5px;}
.ready-check-icon{width:16px; flex-shrink:0; stroke: rgb(99, 230, 190);}
p.ai-description, p.manual-description{font: 400 16px/1.55 "DM Sans", sans-serif; color: var(--muted); margin-top:10px; margin-bottom:20px;}
div.example-cards{display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1040px; margin: 24px auto 0; align-items: stretch; justify-content: center;}
div.ai-card{transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out; border:1px solid var(--line); border-radius:15px; background: var(--paper); padding: 30px; min-width: 0; min-height: 320px; position: relative;}
div.build-options-header, div.workflow-header{display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;}
div.build-options-header h1, div.workflow-header h1{font: 700 clamp(36px, 4.2vw, 54px)/1.1 "Manrope", sans-serif; letter-spacing: 0; max-width: 680px; margin: 0 0 14px;}
p.build-description{font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 560px; margin: 0;}
div.top-icon{position:absolute; top: 25px; left: 25px; height:50px; width: 50px; display: grid; place-items: center; background: rgba(23, 79, 219, 0.1); color: var(--blue); border: 1px solid var(--line); border-radius: 13px; margin-bottom:15px;padding:5px; transition: background 0.2s ease-out, color 0.2s ease-out;}
div.top-icon svg{transition: stroke 0.2s ease-out; width: 1.25rem; height: 1.25rem;}
svg.pencil-icon{transform: rotate(-90deg);}
span.speed-rating,span.control-rating{color:var(--blue); background:rgba(220, 220, 243, 0.4); position: absolute; top: 20px; right: 20px; border: 1px solid rgba(129, 129, 238, 0.3); border-radius: 20px; padding: 5px; font-size:12px; font-weight: 300; transition: all 0.2s ease-out;}
div.ai-example-card{display: flex; flex-direction: column;align-items: stretch; background: #eef2f8; gap: 10px; border: 1px solid var(--line); border-radius: 10px;}
span.blue-dot{align-self: flex-start;height:7px; width:7px; background-color: var(--muted); border-radius: 50%; display: inline-block; margin:8px 6px 1px 10px; transition: all 0.2s ease-out;}
span.prompt{font: 500 12px "Manrope",sans-serif; color:var(--muted); opacity: 0.8;align-self: flex-start; margin-bottom:5px; margin-top:8px;}
/*add animations and transitions here after */
.loading-dots {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  color: var(--blue);
}

.loading-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue); /* match your accent color */
  animation: dot-bounce 1s infinite ease-in-out;
}

.loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-5px); opacity: 1; }
}
div.ai-card:hover{border:1px solid var(--blue); box-shadow:0 0 50px rgba(59,130,246,0.35); transform: translateY(-6px);}
div.first,div.second,div.third{display:flex; justify-content: flex-start; gap: 10px; align-items: center; min-width: 0; font:400 13px/1.35 "DM Sans",sans-serif; color: var(--muted);border: 1px solid var(--line); border-radius: 8px;padding:10px; background:white;}
div.question{border: 1px solid var(--line); border-radius: 10px;background: var(--white); padding: 15px; margin-left:12px; margin-right: 12px; text-align: left; font:400 15px/1.4 "DM Sans",sans-serif; color: rgb(29, 29, 29); overflow-wrap: anywhere; }
div.answer-children{display: flex; flex-direction: column; gap: 10px; justify-content: center; align-items: stretch; margin-left:12px; margin-right:12px;}
span.circle{display:inline-block;flex:0 0 15px;height:15px; width: 15px; border: 2px solid var(--muted); border-radius: 50%; color: var(--line);}
div.manual-card{border: 1px solid var(--line); border-radius: 10px; padding: 20px; min-width: 0; min-height: 320px; background:var(--paper);transition:border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out; position: relative;}
div.manual-example-card{display:flex;flex-direction: column;gap:5px; align-items:flex-start;justify-content: center;padding:20px; background:#eef2f8; border:1px solid var(--line); border-radius:8px;}
div.question-types{display: flex; flex-wrap: wrap; justify-content: flex-start; gap:8px; align-items:center;}
span.multiple-choice,span.checkboxes,span.scale,span.comment-box{border:1px solid var(--line); border-radius: 8px; background-color: var(--white); color:rgb(29,29,29); font: 500 13px "DM Sans",sans-serif;padding:8px;}
div.feature-listing{display:flex; flex-direction:column; gap:8px;align-items:flex-start;margin-top:15px;}
div.feature-item{display:flex; align-items:center; gap:8px; margin-bottom:8px;}
svg.ready-check-icon2{display:inline-block;width:21px;height:21px; flex-shrink:0; stroke: rgb(99, 230, 190); border:1px solid var(--line); border-radius:50%; background:rgba(141, 234, 200,0.3);padding:3px;}
p.question-stat{font: 400 15px "DM Sans", sans-serif; color:var(--blue); }
span.draft-btn,span.preview-link{border:1px solid var(--line); background: rgba(23, 79, 219, 0.1); border-radius:8px; text-align:center; margin:15px auto; width:97%; display:block; padding:12px; font:400 18px "DM Sans",sans-serif; color:var(--blue);margin-top:30px;transition:all 0.1s ease-out;}
span.gray-circle{display:inline-block; width:7px; height:7px; margin-right:5px; border:1px solid var(--line); border-radius:50%; background:var(--muted); transition: all 0.2s ease-out;}
span.types{font: 500 12px "Manrope",sans-serif; color:var(--muted); opacity: 0.8;}
div.dot-contain{display:flex;gap:10px; align-items:center; justify-content: flex-start;margin-bottom:10px;}
div.feature-listing span{color:rgb(29,29,29); font: 400 15px/1.35 "DM Sans",sans-serif;}
div.manual-card:hover{border:1px solid var(--blue);box-shadow:0 0 50px rgba(59,130,246,0.35); transform: translateY(-6px);}
span.preview-link:hover,span.draft-btn:hover{transform:translateY(-6px);}
div.manual-card:hover span.control-rating,div.ai-card:hover span.speed-rating,div.ai-card:hover span.control-rating,div.manual-card:hover span.preview-link,div.ai-card:hover span.draft-btn{background:var(--blue);color:var(--white);}
div.manual-card:hover span.types, div.ai-card:hover span.prompt{color:var(--blue); font-weight:800;}
div.ai-card:hover span.blue-dot, div.manual-card:hover span.gray-circle{background-color:var(--blue);}
div.ai-card:hover div.top-icon, div.manual-card:hover div.top-icon{background:var(--blue); color:var(--white);}
div.ai-card:hover div.top-icon svg, div.manual-card:hover div.top-icon svg{stroke:var(--white);}

/*3rd landing page section-- workflow walkthrough*/
div.workflow-header{padding-top:50px;}
.step-1,.step-2,.step-3,.step-4{position:relative;flex:1;}
section.workflow{background:var(--paper);}
div.steps-container{display:flex; width:80%; align-items:flex-start; margin:50px auto;}
div.step-format{display:flex; flex-direction:column; gap:7px; align-items:center; justify-content: center;flex-wrap:wrap;}
div.bubble{display:flex; height:50px; width:50px; background:var(--blue); color:var(--white); font:900 18px "DM Sans",sans-serif; border:1px solid var(--blue); border-radius:50%;justify-content: center; align-items: center;}
h4.step-header{font: 1000 18px "DM Sans",sans-serif; color:black;margin:5px 0 0 0;}
p.step-description{font: 500 14px "Manrope",sans-serif; color:var(--muted); width:70%;margin:0;text-align:center;}
div.step-1::after{content:"";position:absolute;top:25px;left:calc(50% + 30px);right:calc(-50% + 30px);height:2.7px; background:linear-gradient(to left,var(--blue),transparent);}
div.step-2::after{content:"";position:absolute;top:25px;left:calc(50% + 30px); right:calc(-50% + 30px); height:2.7px; background:var(--blue);}
div.step-3::after{content:"";position:absolute;top:25px;left: calc(50% + 30px); right:calc(-50% + 30px);height:2.7px;background:linear-gradient(to right,var(--blue),transparent);}

div.preview-card{display: flex; align-items:center;flex-direction: column;background:#eceef0;width:60%;padding:45px;border: 1px solid var(--line);border-radius:12px;margin:40px auto;text-align:center;gap:15px;min-height:350px;}
div.preview-text{display:flex; flex-direction:column; align-items:center; gap:14px;}
button.survey-preview{background-color: var(--blue); color: var(--white); width: 200px; padding:10px; border: 1px solid var(--line); border-radius: 20px;font: 530 18px monospace;margin-top:20px;transition: all 0.2s ease-out;}
.preview-card h1,.preview-card p{margin:0;padding:0;}
button.survey-preview:hover{transform:translateY(-6px);box-shadow:0 0 15px var(--blue);cursor:pointer;}
.preview-card p.inner-text{color:var(--muted);font:500 16px "Manrope";}
/*preview survey*/
div.preview-display{border:1px solid var(--line);border-radius:12px;background-color:var(--paper);padding:20px;width:70%;display:none;flex:1;}

div.preview-display div.header{display: flex;gap:20px;justify-content: space-between;}
div.preview-header{display:flex; gap:5px;align-items: center;}
p.supporting-text{font:500 12px "Manrope";color:var(--muted);}
div.green-dot{border:1px solid rgb(34, 208, 34); border-radius:50%; width:5px; height:5px;background-color:rgb(34, 208, 34);}
div.progress-bar{width:100%;height:5px;background-color: var(--line);margin:15px auto 20px auto; border: 1px solid var(--line); border-radius: 3px;}
div.twenty-five-perc{transition: width 0.2s ease-out;width:0; height: 100%; background-color: var(--line);border-radius:3px;}
div.survey-format{display:flex;flex-direction:column;gap:11px;align-content: flex-start;}
div.survey-format h3,div.survey-format p{margin:0;}
div.survey-format button{font:450 14px "Manrope";text-align:left;padding:10px;border:1px solid var(--line);border-radius:10px;background-color:#f0f1f4;}
div.preview-btns button{display:flex;gap:8px;width:100%;align-items:center;margin-top:11px; margin-bottom:11px;}
div.closing-screen{flex-direction:column;gap:20px;align-items: center;display: none;}
div.closing-screen h2{margin:0;}
div.closing-screen p{color:var(--muted);}

button.restart-btn{border:1px solid var(--line);border-radius: 12px;background-color:#EFF4FF; color:var(--blue);font: 510 18px monospace;padding:10px;width:210px;transition:all 0.2s ease-out;}
button.restart-btn:hover{background-color: var(--blue);color:var(--white);font: 530 18px monospace;transform: translateY(-6px);box-shadow: 0 0 12px var(--blue);}

.proof-strip { min-height: 150px; padding: 34px clamp(24px, 7vw, 108px); display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; color: white; background: var(--navy); }
.proof-strip > div { display: flex; flex-direction: column; align-items: center; gap: 7px; border-right: 1px solid rgba(255,255,255,.15); }
.proof-strip > div:last-child { border: 0; }
.proof-strip strong { color: var(--mint); font: 700 32px "Manrope"; }
.proof-strip span { color: #c6d0e0; font-size: 12px; }

.section { padding: 112px clamp(24px, 7vw, 108px); }
.section-heading { display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 80px; margin-bottom: 54px; }
.section-heading h2, .approach h2, .contact h2 { margin: 0; font: 700 clamp(42px, 5vw, 65px)/1.06 "Manrope"; letter-spacing: 0; }
.section-heading > p { max-width: 480px; margin: 0 0 6px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.service-card { min-height: 370px; padding: 28px; position: relative; display: flex; flex-direction: column; background: var(--white); border-right: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.service-card:last-child { border: 0; }
.service-card:hover { z-index: 2; transform: translateY(-6px); box-shadow: 0 18px 50px rgba(11,24,56,.12); }
.service-featured { color: white; background: var(--blue); }
.card-number { align-self: flex-end; color: #aab2c1; font-size: 11px; }
.service-featured .card-number, .service-featured p { color: #cddafd; }
.service-icon { width: 48px; height: 48px; margin: 28px 0 23px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: #eaf0ff; }
.service-featured .service-icon { color: var(--navy); background: var(--mint); }
.service-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.service-card h3 { margin: 0; font: 700 21px "Manrope"; }
.service-card p { margin: 13px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.service-card a { margin-top: auto; font-size: 12px; font-weight: 700; }
.service-card a span { float: right; }

.approach { padding: 112px clamp(24px, 7vw, 108px); display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; color: white; background: var(--blue); }
.eyebrow.light { color: var(--mint); }
.approach-copy > p:not(.eyebrow) { max-width: 510px; margin: 28px 0 34px; color: #d4def8; line-height: 1.7; }
.button-light { color: var(--navy); background: var(--white); }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { padding: 23px 0; display: grid; grid-template-columns: 55px 1fr; border-bottom: 1px solid rgba(255,255,255,.2); }
.process-list li > span { color: var(--mint); font-size: 12px; }
.process-list h3 { margin: 0 0 7px; font: 700 20px "Manrope"; }
.process-list p { margin: 0; color: #cbd7f6; font-size: 14px; }

.data-panel { display: grid; grid-template-columns: .8fr 1.2fr; background: white; box-shadow: 0 15px 50px rgba(11,24,56,.07); }
.data-question { padding: 48px; color: white; background: var(--navy); }
.data-question > span { color: var(--mint); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; }
.data-question h3 { margin: 20px 0 55px; font: 600 26px/1.4 "Manrope"; }
.segment-tabs { display: flex; gap: 7px; }
.segment-tabs button { padding: 9px 13px; color: #b7c4d9; border: 1px solid #415474; border-radius: 3px; background: transparent; font-size: 11px; cursor: pointer; }
.segment-tabs button.active { color: var(--navy); border-color: var(--mint); background: var(--mint); }
.chart { padding: 45px 54px 36px; }
.chart-row { margin-bottom: 24px; }
.chart-label { margin-bottom: 8px; display: flex; justify-content: space-between; font-size: 12px; }
.bar-track { height: 13px; background: #edf0f3; border-radius: 2px; overflow: hidden; }
.bar { display: block; width: var(--value); height: 100%; transform-origin: left; animation: grow 1s ease both; transition: width .55s ease; }
.mint-bar { background: var(--mint); }.blue-bar { background: var(--blue); }.pale-bar { background: #a7b9dc; }.dark-bar { background: var(--navy); }
.chart-note { margin: 30px 0 0; color: #8e99aa; font-size: 10px; }
@keyframes grow { from { transform: scaleX(0); } }

.account { background: #eef2f8; }
.account .section-heading { grid-template-columns: 1fr; text-align: center; }
.account .section-heading h2 { margin: 0 auto; }
.account-panel { max-width: 760px; margin: 0 auto; padding: 45px; background: var(--white); box-shadow: 0 15px 50px rgba(11,24,56,.08); }
.account-kicker { margin: 0 0 9px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.account-panel h3 { margin: 0 0 25px; font: 700 27px "Manrope", sans-serif; }
.provider-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.provider-button { min-height: 62px; padding: 10px 16px; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; font-weight: 700; transition: border-color .2s, transform .2s, box-shadow .2s; }
.provider-button:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(11,24,56,.08); }
.provider-mark { width: 32px; height: 32px; display: grid; place-items: center; color: var(--white); border-radius: 3px; background: var(--blue); font: 800 10px "Manrope", sans-serif; }
.provider-button > span:last-child { color: var(--blue); }
.provider-empty { grid-column: 1 / -1; padding: 22px; display: grid; gap: 7px; color: var(--muted); border: 1px dashed #b7c0ce; font-size: 13px; }
.provider-empty strong { color: var(--ink); }
.auth-error { margin: -10px 0 20px; padding: 12px 14px; color: #a22b2b; background: #fff0f0; border: 1px solid #f1c2c2; font-size: 13px; }
.hidden { display: none !important; }
.profile { margin-bottom: 25px; display: flex; align-items: center; gap: 16px; }
.profile-avatar { width: 58px; height: 58px; display: grid; flex: 0 0 auto; place-items: center; color: var(--white); background: var(--blue) center/cover; border-radius: 50%; font: 800 18px "Manrope", sans-serif; }
.profile h3 { margin: 0; }
.profile p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.session-details { margin: 0 0 25px; border-top: 1px solid var(--line); }
.session-details div { padding: 13px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.session-details dt { color: var(--muted); font-size: 12px; }
.session-details dd { margin: 0; font-size: 12px; text-transform: capitalize; }
.session-details .verified { color: #16845f; font-weight: 700; }
.account-button { width: 100%; color: var(--white); background: var(--blue); }
.account-button + .account-button { margin-top: 10px; }

.contact { padding: 110px clamp(24px, 7vw, 108px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 110px; color: white; background: var(--navy); }
.contact-intro > p:not(.eyebrow) { max-width: 430px; color: #b8c5d9; line-height: 1.7; }
.contact-intro > a { display: inline-block; margin-top: 22px; color: var(--mint); font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--mint); padding-bottom: 5px; }
.contact-form { padding-top: 7px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label { display: block; margin-bottom: 22px; color: #d4dceb; font-size: 11px; font-weight: 700; letter-spacing: .4px; }
.contact-form label > span { color: #75859e; font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; margin-top: 9px; padding: 14px 15px; color: white; outline: none; border: 1px solid #40516d; border-radius: 3px; background: #102a52; transition: border .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--mint); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form ::placeholder { color: #7f8ca0; }
.contact-form small { display: block; min-height: 15px; padding-top: 4px; color: #ff9a9a; font-size: 10px; }
.contact-form .invalid { border-color: #ff8c8c; }
.form-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.form-submit p { margin: 0; color: var(--mint); font-size: 12px; }
.button-accent { color: var(--navy); background: var(--mint); white-space: nowrap; }
.button-accent:disabled { opacity: .65; cursor: wait; }

footer { min-height: 110px; padding: 30px clamp(24px, 7vw, 108px); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-top: 1px solid var(--line); background: white; }
.footer-brand { justify-self: start; }
footer p { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
footer p:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

.workspace-page { min-height: 100vh; background: #eef2f8; }
.workspace-back { color: var(--blue); font-size: 13px; font-weight: 700; }
.creator-shell { width: min(940px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 100px; }
.creator-heading { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.creator-heading h1 { margin: 0; font: 700 clamp(42px, 6vw, 64px)/1.05 "Manrope", sans-serif; letter-spacing: -3px; }
.creator-heading > div > p:last-child { max-width: 610px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.creator-user { min-width: 180px; padding-left: 22px; display: grid; gap: 4px; border-left: 2px solid var(--mint); }
.creator-user span { font-weight: 700; }
.creator-user small { color: var(--muted); }
.creator-form { padding: 42px; background: var(--white); box-shadow: 0 15px 50px rgba(11,24,56,.08); }
.creator-form label { display: grid; gap: 9px; margin-bottom: 24px; color: var(--ink); font-size: 12px; font-weight: 700; }
.creator-form input, .creator-form select, .creator-form textarea { width: 100%; padding: 14px 15px; color: var(--ink); border: 1px solid #cbd3df; border-radius: 3px; outline: none; background: var(--white); }
.creator-form input:focus, .creator-form select:focus, .creator-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,79,219,.1); }
.creator-form textarea { resize: vertical; }
.creator-form fieldset { margin: 0; padding: 26px; border: 1px solid var(--line); }
.creator-form legend { padding: 0 9px; font: 700 15px "Manrope", sans-serif; }
.choice-button { padding: 0; color: var(--blue); border: 0; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.survey-questions { display: grid; gap: 22px; }
.survey-choices { display: grid; gap: 0; }
.creator-form .survey-choices label {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.creator-form .survey-choices input[type="radio"],
.creator-form .survey-choices input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--blue);
}
[data-survey-question] .choice-button { margin-top: 2px; }
.add-question-button { margin-top: 18px; }
.creator-actions { margin-top: 30px; display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.creator-actions > a { color: var(--muted); font-size: 13px; font-weight: 700; }
.form-status { margin: 16px 0 0; min-height: 20px; color: var(--blue); font-size: 14px; font-weight: 600; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.results-card { padding: 36px 38px; background: var(--white); box-shadow: 0 15px 50px rgba(11,24,56,.08); }
.results-card .form-status:empty { margin: 0; min-height: 0; }
.results-list { margin: 0; padding: 0; list-style: none; }
.results-list .chart-row { margin-bottom: 26px; }
.results-list .chart-row:last-child { margin-bottom: 0; }
.result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 9px; font-weight: 600; }
.result-head b { font: 700 16px "Manrope", sans-serif; }
.results-list .bar { background: var(--blue); }
.vote-button { margin-top: 12px; padding: 9px 16px; font-size: 13px; }
.share-card { padding: 30px; background: var(--navy); color: var(--white); box-shadow: 0 15px 50px rgba(11,24,56,.12); display: grid; gap: 18px; justify-items: center; text-align: center; }
.share-card .eyebrow { color: var(--mint); margin: 0; }
.qr-code { width: 220px; height: 220px; padding: 14px; background: var(--white); border-radius: 6px; image-rendering: pixelated; }
.share-link { width: 100%; display: grid; gap: 8px; color: var(--mint); font-size: 12px; font-weight: 700; text-align: left; }
.share-link input { width: 100%; padding: 11px 12px; color: var(--ink); border: 0; border-radius: 3px; background: var(--white); }
.share-card .button { width: 100%; }

.workspace-nav { display: flex; align-items: center; gap: 22px; }
.workspace-nav .button { padding: 11px 16px; }
.polls-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 68px 0 100px; }
.polls-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.polls-heading h1 { margin: 0; font: 700 clamp(48px, 7vw, 72px)/1 "Manrope", sans-serif; letter-spacing: -4px; }
.polls-heading > div > p:last-child { max-width: 600px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.dashboard-stats { margin: 40px 0 58px; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--navy); box-shadow: 0 15px 50px rgba(11,24,56,.12); }
.dashboard-stats article { min-height: 126px; padding: 27px 32px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(255,255,255,.14); }
.dashboard-stats article:last-child { border: 0; }
.dashboard-stats span { color: #aebbd0; font-size: 12px; font-weight: 600; }
.dashboard-stats strong { color: var(--white); font: 700 34px "Manrope", sans-serif; }
.dashboard-stats article:last-child strong { color: var(--mint); }
.library-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.poll-library + .poll-library { margin-top: 58px; }
.library-heading .eyebrow { margin-bottom: 10px; }
.library-heading h2 { margin: 0; font: 700 34px "Manrope", sans-serif; letter-spacing: -1.5px; }
.poll-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.poll-card { min-height: 300px; padding: 29px; display: flex; flex-direction: column; background: var(--white); border-top: 3px solid var(--blue); box-shadow: 0 12px 38px rgba(11,24,56,.07); }
.survey-card { border-top-color: var(--mint); }
.poll-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; color: #177b5b; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(141,234,200,.24); }
.poll-card h3 { margin: 25px 0; font: 700 23px/1.35 "Manrope", sans-serif; letter-spacing: -.5px; }
.poll-card h3 a:hover { color: var(--blue); }
.poll-meta { margin: auto 0 24px; display: flex; gap: 36px; }
.poll-meta div { display: grid; gap: 4px; }
.poll-meta dt { color: var(--muted); font-size: 11px; }
.poll-meta dd { margin: 0; font: 700 19px "Manrope", sans-serif; }
.poll-export-actions { margin: -8px 0 18px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 700; }
.poll-export-actions span { margin-right: auto; }
.poll-export-actions a { padding: 6px 9px; color: var(--blue); border: 1px solid var(--line); border-radius: 3px; background: var(--paper); letter-spacing: .4px; }
.poll-export-actions a:hover { color: var(--white); border-color: var(--blue); background: var(--blue); }
.poll-card-actions { display: flex; gap: 10px; }
.poll-card-actions .button { flex: 1; padding: 13px 16px; }
.icon-button { width: 48px; flex: 0 0 48px; display: grid; place-items: center; color: var(--blue); border: 1px solid var(--blue); border-radius: 4px; background: var(--white); cursor: pointer; }
.icon-button:hover { color: var(--white); background: var(--blue); }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.copy-status { min-height: 16px; margin: 8px 0 -8px; color: var(--blue); font-size: 11px; }
.poll-empty { min-height: 390px; padding: 58px 30px; display: grid; justify-items: center; align-content: center; text-align: center; background: var(--white); border: 1px solid var(--line); box-shadow: 0 15px 50px rgba(11,24,56,.07); }
.empty-icon { width: 76px; height: 76px; margin-bottom: 24px; display: grid; place-items: center; color: var(--blue); border-radius: 50%; background: #eaf0ff; }
.empty-icon svg { width: 42px; fill: none; stroke: currentColor; stroke-width: 2; }
.poll-empty .eyebrow { margin-bottom: 12px; }
.poll-empty h2 { margin: 0; font: 700 34px "Manrope", sans-serif; letter-spacing: -1.5px; }
.poll-empty > p:not(.eyebrow) { max-width: 470px; margin: 14px 0 26px; color: var(--muted); line-height: 1.65; }
.empty-actions { display: flex; gap: 12px; }

@media (max-width: 980px) {
  .site-nav { gap: 20px; }
  .hero { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-copy { text-align: center; }
  .hero .eyebrow, .hero-actions, .trust-row { justify-content: center; }
  .hero-intro { margin-left: auto; margin-right: auto; }
  .hero-visual { height: 430px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(2) { border-right: 0; }
  .service-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .approach, .contact { gap: 55px; }
  .poll-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  div.example-cards { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}

@media (max-width: 720px) {
  .site-header { height: 70px; padding: 0 16px; }
  .menu-button { display: block; }
  .menu-button span { display: block; width: 22px; height: 2px; margin: 5px; background: var(--ink); }
  .site-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: 24px; align-items: stretch; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav .nav-cta { text-align: center; }
  .hero { min-height: auto; padding: 46px 16px 58px; gap: 30px; }
  .hero h1 { font-size: clamp(40px, 13vw, 50px); letter-spacing: 0; }
  .hero-intro { font-size: 16px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .button { width: min(100%, 280px); }
  section.build-options { padding: 42px 16px; }
  div.build-options-header h1, div.workflow-header h1 { font-size: clamp(32px, 10vw, 42px); letter-spacing: 0; }
  p.build-description { font-size: 16px; }
  div.example-cards { gap: 16px; }
  div.ai-card, div.manual-card { padding: 24px 16px 20px; }
  section.build-options h3 { margin-top: 70px; font-size: 22px; }
  div.top-icon { left: 16px; top: 20px; }
  span.speed-rating, span.control-rating { right: 16px; top: 20px; font-size: 11px; }
  .trust-row { margin-top: 45px; }
  .hero-visual { height: 370px; transform: scale(.86); margin: -25px -30px; }
  .proof-strip { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .proof-strip > div:nth-child(2) { border: 0; }
  .section, .approach, .contact { padding-top: 78px; padding-bottom: 78px; }
  .section-heading, .approach, .contact, .data-panel { grid-template-columns: 1fr; }
  .section-heading { gap: 25px; }
  .section-heading h2, .approach h2, .contact h2 { font-size: 42px; letter-spacing: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 325px; border-right: 0; border-bottom: 1px solid var(--line); }
  .approach, .contact { gap: 55px; }
  .data-question, .chart { padding: 33px 25px; }
  .data-question h3 { margin-bottom: 35px; font-size: 22px; }
  .account-panel { padding: 30px 24px; }
  .provider-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-submit { align-items: stretch; flex-direction: column; }
  .creator-shell { width: min(100% - 32px, 940px); padding-top: 48px; }
  .creator-heading { align-items: start; flex-direction: column; }
  .creator-user { width: 100%; }
  .creator-form { padding: 28px 22px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .results-card { padding: 28px 22px; }
  .workspace-nav .workspace-back { display: none; }
  .workspace-nav { gap: 8px; }
  .workspace-nav .button { padding: 10px 12px; font-size: 12px; }
  .polls-shell { width: min(100% - 32px, 1120px); padding-top: 48px; }
  .polls-heading { align-items: start; flex-direction: column; }
  .polls-heading h1 { font-size: 52px; letter-spacing: -3px; }
  .polls-heading .creator-user { width: 100%; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .dashboard-stats article { min-height: 105px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .library-heading { align-items: start; flex-direction: column; }
  .poll-card { padding: 25px 22px; }
  .empty-actions { align-items: stretch; flex-direction: column; }
  footer { grid-template-columns: 1fr; justify-items: center; gap: 15px; text-align: center; }
  .footer-brand { justify-self: center; }
  footer p:last-child { text-align: center; }
}

@media (max-width: 480px) {
  .brand { font-size: 18px; }
  .brand-mark { width: 32px; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero-intro { margin-top: 22px; margin-bottom: 26px; }
  div.ai-card, div.manual-card { padding-left: 14px; padding-right: 14px; }
  div.ai-example-card, div.manual-example-card { margin-left: -2px; margin-right: -2px; }
  span.draft-btn, span.preview-link { width: 100%; font-size: 16px; }
  .workspace-page .brand > span { display: none; }
}

/* pricing page */
.pricing-hero { padding: 90px clamp(24px, 7vw, 108px) 72px; text-align: center; }
.pricing-hero h1 { margin: 18px 0 0; font: 700 clamp(48px, 6vw, 80px)/.98 "Manrope", sans-serif; letter-spacing: -4px; }
.pricing-hero > p { max-width: 540px; margin: 24px auto 0; color: var(--muted); font-size: 19px; line-height: 1.65; }
.pricing-grid { padding: 0 clamp(24px, 7vw, 108px) 100px; display: grid; grid-template-columns: 1fr; gap: 20px; }
.plan-card { padding: 32px 36px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 38px rgba(11,24,56,.06); display: grid; grid-template-columns: 220px 1fr auto; gap: 36px; align-items: center; }
.plan-card.plan-featured { color: var(--white); background: var(--blue); border-color: var(--blue); }
.plan-badge { display: inline-block; margin-bottom: 10px; padding: 5px 12px; color: var(--navy); background: var(--mint); font: 700 10px "Manrope", sans-serif; letter-spacing: 1px; text-transform: uppercase; border-radius: 3px; }
.plan-header { display: flex; flex-direction: column; }
.plan-name { margin: 0 0 6px; font: 700 22px "Manrope", sans-serif; }
.plan-price { margin: 8px 0 0; }
.plan-price strong { font: 700 clamp(40px, 4vw, 52px)/1 "Manrope", sans-serif; letter-spacing: -3px; }
.plan-price sup { font: 700 20px/1 "Manrope", sans-serif; vertical-align: top; margin-top: 8px; display: inline-block; }
.plan-price span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.plan-featured .plan-price span { color: #cddafd; }
.plan-desc { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.plan-featured .plan-desc { color: #cddafd; }
.plan-features { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 32px; }
.plan-features li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; align-items: baseline; }
.plan-features li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%230a2147' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l3 3 5-5'/%3E%3C/svg%3E") center/12px no-repeat; flex-shrink: 0; align-self: center; }
.plan-featured .plan-features li::before { background-color: rgba(255,255,255,.25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l3 3 5-5'/%3E%3C/svg%3E"); }
.plan-action { display: flex; flex-direction: column; align-items: stretch; min-width: 160px; }
.plan-cta { padding: 16px 24px; text-align: center; border-radius: 4px; font: 700 15px "DM Sans", sans-serif; display: block; transition: transform .2s, background .2s; white-space: nowrap; }
.plan-cta:hover { transform: translateY(-2px); }
.plan-cta-primary { color: var(--white); background: var(--blue); }
.plan-cta-primary:hover { background: var(--blue-dark); }
.plan-cta-outline { color: var(--blue); border: 1px solid var(--blue); background: transparent; }
.plan-cta-outline:hover { color: var(--white); background: var(--blue); }
.plan-featured .plan-cta { color: var(--navy); background: var(--mint); }
.plan-featured .plan-cta:hover { background: #6de0b8; }
.pricing-faq { padding: 72px clamp(24px, 7vw, 108px) 100px; background: var(--white); }
.pricing-faq h2 { margin: 0 0 48px; font: 700 clamp(36px, 4vw, 52px)/1.1 "Manrope", sans-serif; letter-spacing: -2.5px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 80px; }
.faq-item h3 { margin: 0 0 10px; font: 700 17px/1.4 "Manrope", sans-serif; }
.faq-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.pricing-cta-strip { padding: 72px clamp(24px, 7vw, 108px); text-align: center; background: var(--navy); color: var(--white); }
.pricing-cta-strip h2 { margin: 0 0 16px; font: 700 clamp(36px, 4vw, 52px)/1.1 "Manrope", sans-serif; letter-spacing: -2.5px; }
.pricing-cta-strip > p { max-width: 460px; margin: 0 auto 36px; color: #b8c5d9; font-size: 17px; line-height: 1.65; }
.pricing-cta-strip .button { display: inline-flex; }
.pricing-hero .eyebrow { justify-content: center; }
.plan-price .price-custom { font-size: clamp(32px, 3.5vw, 44px); letter-spacing: -2px; }
@media (max-width: 860px) {
  .plan-card { grid-template-columns: 1fr; gap: 24px; }
  .plan-features { grid-template-columns: 1fr; }
  .plan-action { align-items: flex-start; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   Survey Builder — Stacked Cards
   ============================================================ */
.sb-page { min-height: 100vh; display: flex; flex-direction: column; background: #eef2f8; }

.sb-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 0 clamp(16px, 3vw, 32px); height: 64px;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(11,24,56,.06);
}
.sb-bar-title {
  flex: 1; min-width: 160px; max-width: 360px;
  padding: 9px 13px; font: 700 15px "Manrope", sans-serif; color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.sb-bar-title:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,79,219,.1); }
.sb-bar-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.sb-bar-spacer { flex: 1; }
.sb-bar .button { padding: 9px 14px; font-size: 13px; }

.sb-body { flex: 1; padding: 32px clamp(16px, 3vw, 32px) 80px; }
.sb-wrap { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.survey-builder-alert {
  max-width: 720px; margin: 0 auto 16px; padding: 14px 16px;
  color: #8f2020; background: #fff0f0; border: 1px solid #e8aaaa; border-radius: 4px;
  box-shadow: 0 4px 14px rgba(143,32,32,.08); font-size: 14px; font-weight: 600;
}
.survey-builder-alert[hidden] { display: none; }
.survey-builder-alert p { margin: 0; }
.survey-builder-alert ul { margin: 8px 0 0; padding-left: 20px; }
.survey-builder-alert li + li { margin-top: 4px; }

.sb-header-card {
  border: 1px solid var(--line); border-top: 8px solid var(--ink);
  border-radius: 4px; background: var(--white);
  padding: 28px 30px 24px;
  box-shadow: 0 4px 18px rgba(11,24,56,.07);
  margin-bottom: 0;
}
.sb-header-card input, .sb-header-card textarea {
  width: 100%; border: none; outline: none; background: transparent;
  font-family: "DM Sans", sans-serif; color: var(--ink); resize: none;
}
.sb-header-name {
  font: 700 24px/1.2 "Manrope", sans-serif; letter-spacing: -.6px;
  border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 12px;
}
.sb-header-name::placeholder { color: var(--muted); }
.sb-header-intro { font-size: 14px; line-height: 1.6; color: var(--muted); min-height: 44px; }
.sb-header-intro::placeholder { color: #b0bac9; }

.sb-pro-panel {
  margin-top: 14px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--white); box-shadow: 0 3px 12px rgba(11,24,56,.05);
}
.sb-pro-panel summary {
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; cursor: pointer; color: var(--muted); font-size: 12px;
}
.sb-pro-panel summary strong { display: block; margin-bottom: 3px; color: var(--ink); font: 700 14px "Manrope", sans-serif; }
.plan-pill { padding: 5px 9px; color: var(--navy); background: var(--mint); border-radius: 20px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.sb-pro-fields { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border-top: 1px solid var(--line); }
.sb-field { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.sb-field-wide { grid-column: 1 / -1; }
.sb-field input, .sb-field textarea {
  width: 100%; padding: 11px 12px; color: var(--ink); border: 1px solid #cbd3df;
  border-radius: 3px; outline: none; background: var(--white); resize: vertical;
}
.sb-field input[type="color"] { min-height: 43px; padding: 4px; cursor: pointer; }
.sb-field input:focus, .sb-field textarea:focus { border-color: var(--blue); }
.sb-field input:disabled, .sb-field textarea:disabled, .sb-check input:disabled + span { opacity: .55; cursor: not-allowed; }
.sb-field small { color: var(--muted); font-weight: 500; }
.sb-check { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; font-weight: 700; }
.sb-check input { width: 17px; height: 17px; accent-color: var(--blue); }
.sb-pro-upsell { grid-column: 1 / -1; padding: 11px 13px; color: var(--muted); background: var(--paper); border-left: 3px solid var(--mint); font-size: 12px; }
.sb-pro-upsell a { margin-left: 5px; color: var(--blue); font-weight: 700; }
.sb-logo-preview { grid-column: 1 / -1; padding: 14px; background: var(--paper); border: 1px dashed var(--line); }
.sb-logo-preview img { display: block; max-width: 220px; max-height: 70px; object-fit: contain; }

.sb-inserter {
  display: flex; align-items: center; gap: 12px; padding: 10px 0; position: relative;
}
.sb-inserter-line { flex: 1; height: 1px; background: var(--line); }
.sb-inserter-btn {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 50%; background: var(--white);
  color: var(--muted); font-size: 18px; font-weight: 400; line-height: 1;
  cursor: pointer; transition: border-color .15s, color .15s, background .15s, transform .15s;
  box-shadow: 0 1px 4px rgba(11,24,56,.06);
}
.sb-inserter-btn:hover, .sb-inserter-btn.open {
  border-color: var(--blue); color: var(--white); background: var(--blue); transform: rotate(45deg);
}

.sb-palette {
  display: none; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding: 12px 16px; margin: -4px 0 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 8px 24px rgba(11,24,56,.1);
}
.sb-palette.open { display: flex; }
.sb-palette-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.sb-palette-chip:hover { border-color: var(--blue); background: #eaf0ff; color: var(--blue); }
.sb-palette-chip svg { width: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.sb-card {
  border: 1px solid var(--line); border-radius: 4px; background: var(--white);
  box-shadow: 0 3px 12px rgba(11,24,56,.06);
  transition: border-color .15s, box-shadow .15s;
  position: relative; margin-top: 16px;
}
.sb-card:focus-within, .sb-card.sb-sel { border-color: #a8bcf0; box-shadow: 0 4px 18px rgba(23,79,219,.1); }
.sb-card.sb-dragging { opacity: .4; }
.sb-card.sb-drag-over { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(23,79,219,.2); }

.sb-card-grip {
  text-align: center; padding: 6px; cursor: grab; color: var(--muted);
  font-size: 13px; letter-spacing: 2px; user-select: none;
  border-bottom: 1px solid var(--line); background: var(--paper); border-radius: 4px 4px 0 0;
}
.sb-card-grip:active { cursor: grabbing; }

.sb-card-body { padding: 18px 22px 14px; }

.sb-card-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.sb-type-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 20px;
  font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--paper);
  white-space: nowrap;
}
.sb-type-pill svg { width: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sb-qnum { font: 700 13px "Manrope"; color: var(--muted); }
.sb-card-top-spacer { flex: 1; }
.sb-icon-btn {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 4px; background: var(--white);
  color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.sb-icon-btn:hover { color: var(--blue); border-color: var(--blue); background: #eaf0ff; }
.sb-icon-btn.sb-delete:hover { color: #c0392b; border-color: #e8b4b4; background: #fff5f5; }
.sb-icon-btn svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sb-q-title {
  width: 100%; border: none; border-bottom: 2px solid var(--line); outline: none;
  font: 700 17px/1.3 "Manrope", sans-serif; letter-spacing: -.3px; color: var(--ink);
  padding: 4px 0 8px; margin-bottom: 16px; background: transparent;
  transition: border-color .15s;
}
.sb-q-title:focus { border-bottom-color: var(--blue); }
.sb-q-title::placeholder { color: var(--muted); font-weight: 500; }

/* options */
.sb-options { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.sb-opt {
  display: flex; align-items: center; gap: 10px; padding: 5px 0;
  border-bottom: 1px dashed transparent;
}
.sb-opt:focus-within { border-bottom-color: var(--line); }
.sb-opt-mark {
  width: 16px; height: 16px; flex: none;
  border: 2px solid var(--muted); border-radius: 2px;
}
.sb-opt-mark.radio { border-radius: 50%; }
.sb-opt input {
  flex: 1; border: none; outline: none; font-size: 14px; color: var(--ink);
  background: transparent; padding: 2px 0;
}
.sb-opt input::placeholder { color: #b0bac9; }
.sb-opt-rm {
  width: 20px; height: 20px; display: grid; place-items: center;
  border: none; background: transparent; color: #b0bac9; cursor: pointer;
  font-size: 14px; padding: 0; line-height: 1; border-radius: 3px;
}
.sb-opt-rm:hover { color: #c0392b; background: #fff5f5; }
.sb-add-opt {
  padding: 0; border: none; background: transparent; cursor: pointer;
  color: var(--blue); font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
.sb-add-opt:hover { color: var(--blue-dark); }

/* rating */
.sb-rating { display: flex; gap: 8px; padding: 4px 0 10px; }
.sb-star {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 14px;
}

/* comment */
.sb-comment {
  width: 100%; min-height: 72px; padding: 10px 12px; margin-bottom: 10px;
  border: 1px dashed var(--line); border-radius: 4px; background: var(--paper);
  font: 14px "DM Sans", sans-serif; color: var(--muted); resize: vertical;
  outline: none;
}
.sb-comment:focus { border-color: var(--blue); border-style: solid; background: var(--white); }

/* footer */
.sb-card-foot {
  display: flex; align-items: center; gap: 18px; padding: 12px 22px 14px;
  border-top: 1px solid var(--line); background: var(--paper); border-radius: 0 0 4px 4px;
}
.sb-switch {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer;
  user-select: none;
}
.sb-switch input { display: none; }
.sb-track {
  width: 36px; height: 20px; border-radius: 10px; background: var(--line);
  position: relative; transition: background .15s; flex: none;
}
.sb-switch input:checked + .sb-track { background: var(--blue); }
.sb-track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s;
}
.sb-switch input:checked + .sb-track::after { left: 18px; }

/* type chips for inline change */
.sb-type-select { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.sb-type-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  color: var(--muted); cursor: pointer; transition: all .12s;
}
.sb-type-chip:hover { border-color: var(--blue); color: var(--blue); background: #eaf0ff; }
.sb-type-chip.on { border-color: var(--blue); background: var(--blue); color: var(--white); }
.sb-type-chip svg { width: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* survey builder page overrides for the header */
.sb-page .site-header { background: var(--white); }
.survey-public-header { justify-content: flex-start; }
.survey-logo { display: block; max-width: min(260px, 70vw); max-height: 54px; object-fit: contain; }
.survey-attribution { padding: 22px 24px 34px; display: block; color: var(--muted); background: transparent; text-align: center; font-size: 12px; }
.survey-attribution strong { color: var(--blue); }

@media (max-width: 600px) {
  .sb-bar { height: auto; padding: 10px 14px; gap: 8px; }
  .sb-bar-title { max-width: none; }
  .sb-bar-meta { display: none; }
  .sb-card-body { padding: 14px 16px 10px; }
  .sb-card-foot { padding: 10px 16px 12px; }
  .sb-pro-fields { grid-template-columns: 1fr; }
  .sb-field-wide, .sb-pro-upsell, .sb-logo-preview { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Survey Results Page
   ============================================================ */
.results-questions { margin-top: 48px; display: grid; gap: 20px; }
.result-question-card { padding: 28px 32px; background: var(--white); border-top: 3px solid var(--mint); box-shadow: 0 8px 28px rgba(11,24,56,.06); }
.result-q-header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.result-qnum { color: var(--muted); font: 700 11px "Manrope"; text-transform: uppercase; letter-spacing: .8px; flex: 0 0 auto; }
.result-q-header h3 { margin: 0; flex: 1; min-width: 0; font: 700 18px/1.35 "Manrope"; letter-spacing: -.3px; }
.result-type-tag { flex: 0 0 auto; padding: 3px 9px; background: #eaf0ff; color: var(--blue); font-size: 11px; font-weight: 700; border-radius: 3px; }
.result-bar-row { margin-bottom: 10px; }
.result-bar-row:last-child { margin-bottom: 0; }
.result-bar-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 5px; font-size: 13px; }
.result-bar-label { font-weight: 600; }
.result-bar-count { color: var(--muted); font-weight: 700; flex: 0 0 auto; }
.result-bar-track { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.result-bar-fill { height: 100%; background: var(--blue); border-radius: 4px; }
.result-rating-footer { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.result-rating-footer strong { color: var(--ink); font: 700 22px "Manrope"; margin-right: 6px; }
.result-text-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.result-text-item { padding: 12px 16px; background: var(--paper); border-left: 3px solid var(--mint); font-size: 14px; line-height: 1.55; }
@media (max-width: 720px) {
  .result-question-card { padding: 22px 20px; }
}

/* AI Draft Dialog */
.ai-draft-dialog {
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 48px rgba(11,24,56,.18);
  padding: 32px;
  max-width: 480px;
  width: 90vw;
  background: var(--white);
}
.ai-draft-dialog::backdrop {
  background: rgba(11,24,56,.45);
}
.ai-draft-title {
  margin: 0 0 8px;
  font: 700 20px "Manrope", sans-serif;
  color: var(--ink);
}
.ai-draft-desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.ai-draft-status {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff3cd;
  color: #664d03;
  font-size: 13px;
}
.ai-draft-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.ai-draft-prompt {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
  background: var(--white);
  color: var(--ink);
}
.ai-draft-prompt:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23,79,219,.1);
}
.ai-draft-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* survey password widget */
.password-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.password-wrap input {
  padding-right: 2.5rem;
}

.toggle-password {
  position: absolute;
  right: 0.4rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

/* ============================================================
   Response Detail Page
   ============================================================ */
.rd-shell { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 80px; }
.rd-header { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rd-ref { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.rd-title { margin: 0; font: 600 24px/1.2 "Manrope", sans-serif; letter-spacing: -.5px; color: var(--ink); }
.rd-date { color: var(--muted); font-size: 12px; padding-bottom: 4px; white-space: nowrap; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.rd-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.rd-panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rd-panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.rd-panel-head h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.rd-panel-head span { font-size: 11px; color: var(--muted); }
.rd-answer-list { padding: 6px 22px 14px; }
.rd-answer-row { padding: 16px 0; border-bottom: 1px solid #f1f1ee; }
.rd-answer-row:last-child { border-bottom: none; }
.rd-answer-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 9px; }
.rd-qnum { font-size: 11px; color: #b3b3ac; min-width: 20px; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.rd-qtext { font-size: 13px; color: var(--muted); line-height: 1.45; }
.rd-answer-val { padding-left: 30px; }
.rd-scale-num { font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; margin-right: 12px; }
.rd-scale-label { font-size: 11px; color: #a8a8a1; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.rd-choice-badge { display: inline-block; font-size: 13px; font-weight: 500; color: var(--ink); background: #f3f3f0; border: 1px solid var(--line); border-radius: 6px; padding: 5px 11px; margin: 2px 2px 0 0; }
.rd-text-answer { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.rd-analytics-list { padding: 8px 22px 0; }
.rd-analytic-row { padding: 15px 0; border-bottom: 1px solid #f1f1ee; display: flex; align-items: flex-start; gap: 14px; }
.rd-analytic-row:last-child { border-bottom: none; }
.rd-analytic-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #a3a39c; width: 74px; flex: none; padding-top: 2px; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.rd-analytic-data { flex: 1; min-width: 0; }
.rd-analytic-val { font-size: 13px; font-weight: 500; color: var(--ink); word-break: break-all; }
.rd-analytic-detail { font-size: 12px; color: var(--muted); margin-top: 1px; }
.rd-meta-list { padding: 16px 22px; display: flex; flex-direction: column; gap: 11px; border-top: 1px solid #f1f1ee; }
.rd-meta-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rd-meta-label { font-size: 12px; color: var(--muted); }
.rd-meta-val { font-size: 12px; color: var(--ink); font-family: "IBM Plex Mono", ui-monospace, monospace; }
.rd-no-analytics { padding: 24px 22px; color: var(--muted); font-size: 13px; }
.rd-no-analytics p { margin: 0; }
@media (max-width: 860px) {
  .rd-grid { grid-template-columns: 1fr; }
  .rd-header { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (max-width: 720px) {
  .rd-shell { padding-top: 32px; }
}
