/* ==========================================================
   NOS Landing Page — Design tokens
   Signal ring motif echoes the NOS circular rainbow logo,
   and reappears as the postal-code / coverage-check moment.
   ========================================================== */

:root{
  --bg:            #0B0B0D;
  --bg-alt:        #131316;
  --card:          #17171C;
  --card-border:   #232329;
  --ink:           #F5F5F7;
  --ink-muted:     #9A9AA5;
  --magenta:       #E6007E;
  --blue:          #00AEEF;
  --green:         #39B54A;
  --amber:         #F5A623;

  --font-display:  'Sora', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,h2,h3{
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 16px;
}

em{ font-style: normal; color: var(--magenta); }

a{ color: inherit; }

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

/* ---------- Signature ambient signal rings ---------- */
.signal-bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.signal-ring{
  position: absolute;
  top: -10%;
  right: -18%;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background:
    conic-gradient(from 0deg,
      #E6007E, #F5A623, #39B54A, #00AEEF, #7C4DFF, #E6007E) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.16;
  animation: spin 90s linear infinite;
}
.ring-1{ width: 640px; height: 640px; border-width: 2px; }
.ring-2{ width: 900px; height: 900px; opacity: 0.10; animation-duration: 140s; animation-direction: reverse; }
.ring-3{ width: 1200px; height: 1200px; opacity: 0.06; animation-duration: 200s; }

@keyframes spin{
  to{ transform: rotate(360deg); }
}

/* ---------- Topbar ---------- */
.topbar{
  position: relative;
  z-index: 2;
  padding: 20px 0;
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{
  display:inline-flex;
  align-items:center;
  gap:2px;
  height: 20px;
}
.brand-mark .bar{
  width:2.5px; height:100%; border-radius:2px;
  display:inline-block;
}
.b1{ background:#E6007E; } .b2{ background:#F5A623; }
.b3{ background:#39B54A; } .b4{ background:#00AEEF; }
.b5{ background:#7C4DFF; } .b6{ background:#E6007E; }
.b7{ background:#F5A623; } .b8{ background:#00AEEF; }

.brand-text{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
}
.brand-text em{
  font-style: normal;
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 12px;
  margin-left: 6px;
}

.topbar-phone{
  display:flex; align-items:center; gap:8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
}
.topbar-phone .dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(57,181,74,0.18);
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  z-index: 1;
  padding: 64px 24px 56px;
  text-align: left;
  max-width: 760px;
}
.eyebrow{
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 18px;
}
.hero h1{
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-sub{
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-note{
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration:none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active{ transform: scale(0.98); }
.btn:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.btn-primary{
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 8px 24px rgba(230,0,126,0.28);
}
.btn-primary:hover{ box-shadow: 0 10px 30px rgba(230,0,126,0.4); }
.btn-outline{
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--card-border);
}
.btn-outline:hover{ border-color: var(--magenta); color: var(--magenta); }
.btn-ghost{
  background: transparent;
  color: var(--ink-muted);
  border: none;
  padding: 14px 12px;
}
.btn-ghost:hover{ color: var(--ink); }
.btn[disabled]{
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Plans ---------- */
.plans{
  position: relative;
  z-index: 1;
  padding: 40px 24px 80px;
}
.plans h2{
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
}
.section-sub{
  color: var(--ink-muted);
  max-width: 520px;
  margin-bottom: 40px;
}
.plan-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px){
  .plan-grid{ grid-template-columns: 1fr; }
}
.plan-card{
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display:flex;
  flex-direction: column;
}
.plan-featured{
  border-color: var(--magenta);
  background: linear-gradient(180deg, rgba(230,0,126,0.08), var(--card) 40%);
}
.plan-badge{
  position:absolute; top: -12px; left: 24px;
  background: var(--magenta);
  color:#fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.plan-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin: 4px 0 6px;
}
.plan-price{
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0 0 20px;
}
.plan-price span{
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
  margin-right: 4px;
}
.plan-features{
  list-style:none;
  padding:0; margin: 0 0 20px;
  display:flex; flex-direction:column; gap:10px;
}
.plan-features li{
  font-size: 14px;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
}
.plan-features li::before{
  content:"";
  position:absolute; left:0; top:6px;
  width:8px; height:8px; border-radius:50%;
  background: var(--green);
}
.plan-tagline{
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 22px;
  flex-grow: 1;
}
.plan-select{ width: 100%; }

/* ---------- Quiz / Form ---------- */
.quiz{
  position: relative;
  z-index: 1;
  padding: 0 24px 100px;
}
.quiz-card{
  max-width: 620px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
@media (max-width: 640px){
  .quiz-card{ padding: 28px 20px; }
}

.quiz-progress{
  display:flex; gap:8px; margin-bottom: 32px;
}
.step-dot{
  height: 4px; flex:1;
  background: var(--card-border);
  border-radius: 2px;
  transition: background 0.25s ease;
}
.step-dot.active,
.step-dot.done{
  background: var(--magenta);
}

.quiz-step{ display:none; }
.quiz-step.active{ display:block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}

.quiz-step h3{
  font-size: 20px;
  font-weight: 700;
}
.quiz-step h3.mt{ margin-top: 28px; }

.choice-grid{
  display:flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 6px;
}
.choice{
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  cursor:pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:hover{ border-color: var(--blue); }
.choice.selected{
  border-color: var(--magenta);
  background: rgba(230,0,126,0.12);
  color: #fff;
}

.field-group{ margin-top: 22px; }
.field-group label{
  display:block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.field-group input{
  width: 100%;
  background: var(--bg-alt);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
}
.field-group input:focus{
  outline: none;
  border-color: var(--blue);
}
.field-group input.input-error{
  border-color: var(--magenta);
}
.field-hint{
  font-size: 12px;
  color: var(--ink-muted);
  margin: 6px 2px 0;
}
.field-error{
  font-size: 12px;
  color: var(--magenta);
  margin: 8px 2px 0;
  min-height: 14px;
}

.privacy-note{
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 24px;
  line-height: 1.6;
}

.quiz-nav{
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin-top: 30px;
}

/* Success / blocked states */
.quiz-success,
.quiz-blocked{
  text-align:center;
}
.success-icon,
.blocked-icon{
  width: 56px; height:56px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 20px;
  font-size: 24px;
  font-weight: 800;
}
.success-icon{ background: rgba(57,181,74,0.15); color: var(--green); }
.blocked-icon{ background: rgba(230,0,126,0.15); color: var(--magenta); }

.quiz-success h3,
.quiz-blocked h3{ font-size: 20px; }
.quiz-success p,
.quiz-blocked p{
  color: var(--ink-muted);
  font-size: 14px;
  max-width: 440px;
  margin: 0 auto 24px;
}

/* ---------- Footer ---------- */
.site-footer{
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--card-border);
  padding: 32px 0 48px;
}
.footer-inner p{
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.footer-fine{
  font-size: 11.5px;
  line-height: 1.7;
  max-width: 720px;
}
