/* ── TOKENS ── */
:root {
  --font: "Roboto", system-ui, sans-serif;
  --c-orange: #F97316;
  --c-orange-dark: #EA580C;
  --c-yellow: #FFC900;
  --c-amber: #F59E0B;
  --c-badge-bg: #FFE79F;
  --c-text: #2E2E30;
  --c-white: #FFFFFF;
  --c-dark: #2E2E30;
  --c-blue: #EFF6FF;
  --c-footer: #2E2E30;
  --c-muted: #6B7280;
  --c-border: #E5E7EB;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;
  --shadow-btn: 0 4px 16px rgba(249,115,22,.32);
  --shadow-modal: 0 24px 64px rgba(0,0,0,.28);
}

/* ── RESET ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--font);font-size:16px;line-height:1.6;color:var(--c-text);background:var(--c-white);overflow-x:hidden}
body.no-scroll{overflow:hidden}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{cursor:pointer;font-family:var(--font);border:none;background:none}
ol,ul{list-style:none}
em{font-style:normal;color:var(--c-orange)}
:focus-visible{outline:2px solid var(--c-orange);outline-offset:3px}

/* ── CONTAINER ── */
.container{width:100%;max-width:1440px;margin:0 auto;padding:0 112px}

/* ── BUTTONS ── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:16px 24px;border-radius:var(--radius);font-size:16px;font-weight:700;line-height:1;white-space:nowrap;text-transform:uppercase;transition:all .18s;letter-spacing:.02em}
.btn--primary{background:var(--c-orange);color:var(--c-white);box-shadow:var(--shadow-btn)}
.btn--primary:hover{background:var(--c-orange-dark);box-shadow:0 6px 24px rgba(249,115,22,.45)}
.btn--primary:active{transform:translateY(1px)}
.btn--lg{padding:16px 28px}
.btn--full{width:100%}
.btn svg,.btn img{flex-shrink:0}

/* ─────────────────────
   HEADER
───────────────────── */
.header{background:var(--c-yellow);padding:0 112px;height:72px;position:sticky;top:0;z-index:200;transition:background .22s,box-shadow .22s}
.header.is-scrolled{background:var(--c-white);box-shadow:0 2px 16px rgba(0,0,0,.10)}
.header__inner{max-width:1440px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;height:100%}
.header__logo{display:flex;align-items:center}
.header__logo img{height:40px;width:auto}
.header__nav{display:flex;align-items:center;gap:32px}
.header__nav a{font-size:16px;font-weight:600;color:var(--c-text);transition:color .15s}
.header__nav a:hover{color:var(--c-orange)}
.header__right{display:flex;align-items:center;gap:16px}
.header__lang{display:none}
.btn--header-cta{width:200px;height:40px;padding:0 22px 0 16px;font-size:13px;border-radius:var(--radius);white-space:nowrap}

/* ─────────────────────
   HERO
───────────────────── */
.hero{background:var(--c-yellow);overflow:hidden}
.hero__inner{max-width:1440px;margin:0 auto;padding:0 112px;min-height:520px;position:relative;display:flex;align-items:center}
.hero__content{width:560px;flex-shrink:0;display:flex;flex-direction:column;gap:32px;position:relative;z-index:5}

/* Badge — peach/warm yellow background */
.hero__badge{
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--c-badge-bg);
  color:#DB5B03;
  font-size:14px;font-weight:500;
  text-transform:uppercase;letter-spacing:.03em;
  padding:0 12px;border-radius:56px;
  width:fit-content;height:28px;white-space:nowrap
}
.hero__text-block{display:flex;flex-direction:column;gap:16px}
.hero__title{font-size:60px;font-weight:700;line-height:1.1;color:var(--c-text);letter-spacing:-0.025em}
.hero__desc{font-size:18px;line-height:28px;color:var(--c-text);font-family:'Inter',sans-serif;font-weight:400}
.btn--hero{width:280px;height:56px;padding:0;font-size:15px;border-radius:var(--radius)}

/* Hero right: image bleeds past right edge */
.hero__visual{
  position:absolute;
  right:-40px;
  top:0;
  bottom:0;
  width:700px;
  display:flex;
  align-items:center;
  pointer-events:none;
}
.hero__img{
  width:100%;
  max-width:560px; /* фиксируем размер как на 1440 */
  object-fit:contain;
  object-position:right center;
  transition:transform .6s ease;
  will-change:transform;
}
  object-position:right center;
  transition:transform .6s ease;
  will-change:transform;
}
.hero__visual:hover .hero__img{transform:translateX(-8px) translateY(-4px)}

/* Float animation for hero image */
@media(hover:hover){
  .hero__img.js-float{animation:float-hero 4s ease-in-out infinite}
  @keyframes float-hero{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
}

/* Hero image — 20% smaller at wide desktops */
@media (min-width: 1440px) {
  .hero__visual { width: 560px; }
}

/* ─────────────────────
   REALITY
───────────────────── */
.reality{background:var(--c-white);padding:65px 0 0;overflow:hidden}
.reality__header{text-align:center;margin-bottom:60px}
.reality__title{font-size:48px;font-weight:700;line-height:60px;color:var(--c-text)}
.reality__subtitle{font-size:18px;font-weight:600;line-height:28px;color:var(--c-text);margin-top:8px}

.reality__grid{display:grid;grid-template-columns:320px 1fr 320px;gap:40px;align-items:end;max-width:1088px;margin:0 auto}
.reality__col{display:flex;flex-direction:column;gap:32px;padding-bottom:40px}
.reality__card{display:flex;align-items:center;gap:16px;padding:16px 0}
.reality__card-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reality__card-icon img {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
}
.reality__card-body h3{font-size:20px;font-weight:700;color:var(--c-text)}
.reality__card-body p{font-size:16px;line-height:24px;color:var(--c-text)}

/* Center column — hug image sits at the bottom of the section */
.reality__center{display:flex;align-items:flex-end;justify-content:center;overflow:hidden}
.reality__hug{width:100%;max-width:360px;object-fit:contain;object-position:bottom;display:block}

/* ─────────────────────
   WHY THIS MATTERS
───────────────────── */
.why {
  background: var(--c-dark);
  padding: 80px 0 0;
  color: var(--c-white);
}

.why__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, calc(35.88vw - 341px), 176px);
}

.why__header { text-align: center; margin-bottom: 48px; }
.why__title { font-size: 48px; font-weight: 700; line-height: 60px; color: var(--c-white); }
.why__subtitle { font-size: 18px; font-weight: 600; line-height: 28px; color: rgba(255,255,255,.85); margin-top: 8px; }
.why__mid-text { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 56px; color: var(--c-white); }

/* ── 3-column desktop layout ── */
.why__layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 0 48px;
}

/* ── Option columns ── */
.why__option {
  position: relative;
  display: grid;
  grid-template-areas:
    "num img"
    "txt txt";
  grid-template-columns: auto auto;
  justify-content: center;
  column-gap: 24px;
  row-gap: 24px;
  padding-top: clamp(66px, calc(6.04vw + 16px), 103px);
  padding-bottom: 56px;
}

/* Dotted arc connectors — at the top of the option, scale with viewport (desktop only) */
.why__connector {
  position: absolute;
  width: clamp(120px, 14.3vw, 206px);
  height: clamp(50px, 6.04vw, 87px);
  pointer-events: none;
  right: clamp(-48px, -3.33vw, -30px);
  top: 6px;
}
.why__connector--flip {
  right: auto;
  left: clamp(-48px, -3.33vw, -30px);
  transform: scaleX(-1);
}

/* Number SVG (1.svg / 2.svg) */
.why__option-num {
  grid-area: num;
  width: auto;
  height: 113px;
  display: block;
  align-self: end;
}

/* Illustration images */
.why__option-img {
  grid-area: img;
  width: 140px;
  height: 166px;
  object-fit: contain;
  display: block;
}

/* Text block — centered below num+img */
.why__option-text {
  grid-area: txt;
  width: 296px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.why__option-title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 28px;
  color: var(--c-white);
}
.why__option-desc {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--c-white);
}

/* ── Center grandpa column ── */
.why__grandpa-col {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: end;
}
.why__grandpa {
  width: clamp(200px, calc(27.7vw + 25px), 424px);
  height: auto;
  object-fit: contain;
  object-position: bottom;
  display: block;
}

/* Bottom caption */
.why__bottom-text {
  font-size: 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--c-white);
  word-wrap: break-word;
  text-align: center;
  padding: 40px 0 56px;
}

/* ─────────────────────
   HOW IT WORKS
───────────────────── */
.how {
  background: var(--c-white);
  padding: 96px 0;
}

.how__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 112px;
  display: grid;
  grid-template-columns: 580px 1fr;
  gap: 72px;
  align-items: center;
}

/* ── Left: phone image ── */
.how__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.how__phone-img {
  width: 580px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Right: content column ── */
.how__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.how__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
}

/* ── Stepper list ── */
.how__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.how__step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Left col: number + vertical line */
.how__step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
}

.how__step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-orange);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  letter-spacing: -.01em;
}

.how__step-line {
  width: 2px;
  flex: 1;
  min-height: 48px;
  background: var(--c-orange);
  opacity: .25;
  margin: 4px 0;
}

/* Right col: text */
.how__step-body {
  padding-top: 8px;
  padding-bottom: 20px;
}
.how__step:last-child .how__step-body {
  padding-bottom: 0;
}
.how__step-body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
  margin-bottom: 4px;
}
.how__step-body p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-muted);
  overflow-wrap: break-word;
}

/* CTA button */
.how .btn {
  align-self: flex-start;
}

/* ─────────────────────
   HOW — RESPONSIVE
───────────────────── */
@media (max-width: 1200px) {
  .how__inner {
    grid-template-columns: 1fr 1fr;
    padding: 0 40px;
    gap: 48px;
  }
  .how__phone-img {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .how__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding: 0 40px;
  }
  .how__visual {
    justify-content: center;
  }
  .how__phone-img {
    width: clamp(240px, 60vw, 420px);
  }
  .how__content {
    align-items: center;
  }
  .how__steps {
    text-align: left;
    max-width: 480px;
    width: 100%;
  }
  .how .btn {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .how {
    padding: 72px 0;
  }
  .how__inner {
    padding: 0 24px;
  }
  .how__title {
    font-size: 32px;
  }
  .how__step-num {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .how__step-left {
    width: 36px;
  }
  .how__step-body h3 {
    font-size: 17px;
  }
  .how__step-body p {
    font-size: 14px;
  }
  .how__step-body {
    padding-bottom: 16px;
  }
}

@media (max-width: 390px) {
  .how__inner {
    padding: 0 16px;
  }
  .how__step {
    gap: 12px;
  }
  .how__step-num {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .how__step-left {
    width: 32px;
  }
  .how__step-body h3 {
    font-size: 17px;
  }
}


/* ─────────────────────
   COMFORT (advocate parent)
───────────────────── */
.comfort {
  background: var(--c-blue);
  padding: 96px 0;
  overflow: hidden;
}

.comfort__inner {
  max-width: 1440px;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 72px;
  align-items: center;
}

/* ── Left: photo ── */
.comfort__visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.comfort__photo {
  width: 380px;
  max-width: 100%;
  height: auto;
  transform: scaleX(-1);
  display: block;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.12));
}

/* ── Right: text ── */
.comfort__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.comfort__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--c-text);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.comfort__title-sub {
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: var(--c-muted);
  line-height: 1.4;
}

.comfort__intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.comfort__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.comfort__item {
  background: var(--c-white);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
}
.comfort__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.09);
}

.comfort__item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 5px;
  line-height: 1.3;
}
.comfort__item p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-muted);
}

.comfort__note {
  font-size: 14px;
  color: var(--c-muted);
  font-style: italic;
}

/* ── Comfort responsive ── */
@media (max-width: 1200px) {
  .comfort__inner {
    grid-template-columns: 320px 1fr;
    gap: 48px;
    padding: 0 40px;
  }
  .comfort__photo { width: 300px; }
}

@media (max-width: 900px) {
  .comfort__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 40px;
  }
  .comfort__visual { justify-content: center; }
  .comfort__photo { width: 280px; }
  .comfort__title { align-items: center; font-size: 36px; text-align: center; }
  .comfort__intro { text-align: center; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .comfort { padding: 72px 0; }
  .comfort__inner { padding: 0 24px; }
  .comfort__title { font-size: 32px; }
  .comfort__list { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 390px) {
  .comfort__inner { padding: 0 16px; }
  .comfort__title { font-size: 28px; }
}

/* ─────────────────────
   TRUST / VALUE
───────────────────── */
.trust {
  background: var(--c-blue);
  padding: 96px 0;
  overflow: hidden;
}

.trust__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 112px;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 80px;
  align-items: center;
}

/* ── Left: text content ── */
.trust__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.trust__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
}

.trust__benefits {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.trust__benefit h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
  color: var(--c-text);
  word-wrap: break-word;
  margin-bottom: 6px;
}
.trust__benefit p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-muted);
}

/* ── Right: phone + rings ── */
.trust__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

/* concentric green rings */
.trust__rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.trust__ring {
  position: absolute;
  border-radius: 50%;
}
.trust__ring--1 { width: 320px; height: 320px; border: 2px solid rgba(34,197,94,.30); }
.trust__ring--2 { width: 440px; height: 440px; border: 2px solid rgba(34,197,94,.18); }
.trust__ring--3 { width: 560px; height: 560px; border: 2px solid rgba(34,197,94,.10); }

.trust__phone {
  position: relative;
  z-index: 2;
  width: 320px;
  height: auto;
  display: block;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  will-change: transform;
}
.trust__phone:hover {
  transform: scale(1.04);
}

/* ── Trust responsive ── */
@media (max-width: 1200px) {
  .trust__inner {
    grid-template-columns: 1fr 420px;
    gap: 56px;
    padding: 0 40px;
  }
  .trust__phone { width: 280px; }
  .trust__ring--1 { width: 280px; height: 280px; }
  .trust__ring--2 { width: 380px; height: 380px; }
  .trust__ring--3 { width: 480px; height: 480px; }
  .trust__visual { min-height: 440px; }
}

@media (max-width: 900px) {
  .trust {
    padding: 72px 0;
  }
  .trust__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 40px;
  }
  .trust__visual {
    justify-content: center;
    min-height: 380px;
  }
  .trust__phone { width: clamp(220px, 52vw, 300px); }
  .trust__ring--1 { width: 260px; height: 260px; }
  .trust__ring--2 { width: 340px; height: 340px; }
  .trust__ring--3 { width: 420px; height: 420px; }
}

@media (max-width: 768px) {
  .trust__inner { padding: 0 24px; }
  .trust__title { font-size: 32px; }
  .trust__benefit h3 { font-size: 24px; line-height: 32px; }
}

@media (max-width: 390px) {
  .trust__inner { padding: 0 16px; }
  .trust__title { font-size: 28px; }
}

/* ─────────────────────
   BOTTOM CTA
───────────────────── */
.cta-bottom {
  background: var(--c-yellow);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* ── Animated pulse rings ── */
.cta-bottom__circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes cta-pulse {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: .55; }
  100% { transform: translate(-50%,-50%) scale(2.6); opacity: 0;   }
}

.cta-bottom__circle {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  background: var(--c-amber);
  animation: cta-pulse 3.6s ease-out infinite;
}

.cta-bottom__circle--1 {
  width: 340px; height: 340px;
  animation-delay: 0s;
}
.cta-bottom__circle--2 {
  width: 340px; height: 340px;
  animation-delay: 1.2s;
}
.cta-bottom__circle--3 {
  width: 340px; height: 340px;
  animation-delay: 2.4s;
}

.cta-bottom__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.cta-bottom__title { font-size: 60px; font-weight: 800; line-height: 1.1; color: var(--c-text); }
.cta-bottom__desc  { font-size: 18px; font-weight: 600; line-height: 28px; color: var(--c-text); max-width: 560px; }
.cta-bottom__anon  { font-size: 12px; line-height: 20px; opacity: .6; color: #000; }

/* ─────────────────────
   FOOTER
───────────────────── */
.footer{background:var(--c-footer);color:var(--c-white)}
.footer__top{max-width:1440px;margin:0 auto;padding:48px 112px;border-bottom:1px solid rgba(255,255,255,.08);display:flex;gap:48px}
.footer__col-nav{display:flex;flex-direction:column;width:176px;flex-shrink:0}
.footer__col-nav a{font-size:16px;font-weight:500;padding:12px 0;display:block;transition:color .15s}
.footer__col-nav a:hover{color:var(--c-orange)}
.footer__col-disclaimer{flex:1}
.footer__disclaimer-title{font-size:16px;font-weight:500;padding:12px 0}
.footer__disclaimer-body{font-size:16px;line-height:24px;color:rgba(226,232,240,.75);padding:12px 0}
.footer__bottom{max-width:1440px;margin:0 auto;padding:0 112px 36px;display:flex;align-items:center;gap:32px;flex-wrap:wrap;padding-top:24px}
.footer__copy{font-size:16px;color:rgba(226,232,240,.8)}
.footer__links{display:flex;gap:32px;flex:1}
.footer__links a{font-size:16px;text-decoration:underline;color:rgba(226,232,240,.8);transition:color .15s}
.footer__links a:hover{color:var(--c-white)}
.footer__social{display:flex;gap:16px}
.footer__social a{color:rgba(226,232,240,.65);display:flex;transition:color .15s}
.footer__social a:hover{color:var(--c-white)}

/* ─────────────────────
   MODALS — base overlay
───────────────────── */
.modal-overlay{
  position:fixed;inset:0;z-index:1000;
  background:rgba(28,34,51,.70);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  display:flex;align-items:center;justify-content:center;
  padding:24px;
  opacity:0;transition:opacity .25s;
}
.modal-overlay.is-open{opacity:1}
.modal-overlay[hidden]{display:none}

.modal{
  position:relative;
  box-shadow:var(--shadow-modal);
  transform:translateY(24px) scale(.97);
  transition:transform .3s cubic-bezier(.34,1.56,.64,1);
  overflow:hidden;
}
.modal-overlay.is-open .modal{transform:translateY(0) scale(1)}

/* Shared BG pattern (fills entire modal) */
.modal__bg{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  z-index:0;pointer-events:none;
}

/* Close button */
.modal__close{
  position:absolute;top:20px;right:20px;
  width:36px;height:36px;border-radius:50%;
  background:rgba(0,0,0,.15);color:var(--c-text);
  display:flex;align-items:center;justify-content:center;
  transition:background .15s;z-index:20;
}
.modal__close:hover{background:rgba(0,0,0,.3)}

/* ─────────────────────
   MODAL 1: EMAIL
───────────────────── */
.modal--email{
  width:600px;height:800px;
  border-radius:var(--radius-xl);
  background:var(--c-yellow);
}

/* Foreground content sits above bg */
.modal__email-content{
  position:relative;z-index:5;
  padding:48px 48px 0;
}

/* "Stay in the loop" pill */
.modal__badge-pill{
  display:inline-flex;align-items:center;
  background:var(--c-white);color:var(--c-text);
  font-size:14px;font-weight:600;
  padding:6px 16px;border-radius:var(--radius-pill);
  margin-bottom:20px;
  gap:4px;
}
.modal__badge-pill span{color:var(--c-orange);font-weight:700}

.modal__email-title{
  font-size:42px;font-weight:800;line-height:1.1;
  color:var(--c-text);margin-bottom:16px;
}
.modal__email-desc{
  font-size:16px;font-weight:600;line-height:1.55;
  color:var(--c-text);margin-bottom:28px;
}
.modal__email-field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.modal__email-label{font-size:14px;font-weight:600;color:var(--c-text)}
.modal__email-input{
  width:100%;padding:14px 18px;
  border:none;border-radius:var(--radius-lg);
  font-size:16px;font-family:var(--font);color:var(--c-text);
  outline:none;transition:box-shadow .14s;
  background:var(--c-white);
  box-shadow:0 0 0 2px transparent;
}
.modal__email-input:focus{box-shadow:0 0 0 2px var(--c-orange)}
.modal__email-input.is-error{box-shadow:0 0 0 2px #EF4444}
.modal__email-error{font-size:13px;color:#EF4444;margin-top:4px}

/* Join button inside email modal — full width */
.modal--email .btn--full{
  height:52px;font-size:15px;border-radius:var(--radius-lg);
}
.modal__email-fine{font-size:13px;color:var(--c-text);opacity:.7;margin-top:14px;line-height:1.5}

/* Photo — bottom right, overlapping edge */
.modal__email-photo{
  position:absolute;bottom:0;right:0;
  width:260px;z-index:5;
  pointer-events:none;
}

/* Logo — bottom left */
.modal__email-logo{
  position:absolute;bottom:28px;left:48px;
  height:32px;width:auto;z-index:5;
  pointer-events:none;
}

/* ─────────────────────
   MODAL 2: SURVEY
───────────────────── */
.modal--survey{
  width:600px;
  max-height:min(800px, 94dvh);
  border-radius:var(--radius-xl);
  background:var(--c-yellow);
  display:flex;flex-direction:column;
}

/* Survey header — "You're in!" */
.survey__header{
  position:relative;z-index:5;
  padding:36px 48px 20px;
  flex-shrink:0;
}
.survey__youre-in{
  display:flex;align-items:center;gap:12px;
  margin-bottom:12px;
}
.survey__youre-in span{font-size:32px;font-weight:800;color:var(--c-text);line-height:1}
.survey__header-desc{font-size:15px;font-weight:700;line-height:1.5;color:var(--c-text)}

/* Step nav bar (dark pill) */
.survey__nav{
  position:relative;z-index:5;
  background:var(--c-dark);
  margin:0 20px;
  border-radius:var(--radius);
  padding:14px 20px;
  display:flex;align-items:center;gap:12px;
  flex-shrink:0;
}
.survey__nav-back{
  display:flex;align-items:center;justify-content:center;
  width:28px;height:28px;border-radius:50%;
  color:var(--c-white);flex-shrink:0;
  transition:background .14s;
}
.survey__nav-back:hover{background:rgba(255,255,255,.15)}
.survey__nav-back[hidden]{visibility:hidden;pointer-events:none}
.survey__nav-label{font-size:14px;font-weight:600;color:var(--c-white)}

/* Scrollable step body */
.survey__body{
  position:relative;z-index:5;
  flex:1;overflow-y:auto;
  padding:24px 48px 0;
}

.survey__step[hidden]{display:none}

.survey__step-header{margin-bottom:20px}
.survey__step-num{
  font-size:28px;font-weight:800;color:rgba(46,46,48,.35);
  display:block;margin-bottom:8px;
}
.survey__step-q{font-size:17px;font-weight:700;line-height:1.4;color:var(--c-text)}
.survey__step-q strong{font-weight:800}

/* Checkboxes */
.survey__checks{display:flex;flex-direction:column;gap:10px}
.survey__check{
  display:flex;align-items:center;gap:14px;
  padding:13px 16px;
  background:var(--c-white);border-radius:var(--radius-lg);
  cursor:pointer;font-size:15px;color:var(--c-text);
  transition:box-shadow .14s;
}
.survey__check:hover{box-shadow:0 0 0 2px var(--c-orange)}
.survey__check input[type="checkbox"]{
  width:20px;height:20px;
  accent-color:var(--c-orange);cursor:pointer;flex-shrink:0;
}
.survey__check:has(input:checked){box-shadow:0 0 0 2px var(--c-orange);background:rgba(249,115,22,.06)}

.survey__other-input{
  width:100%;padding:12px 16px;margin-top:4px;
  border:2px solid var(--c-border);border-radius:var(--radius-lg);
  font-size:15px;font-family:var(--font);color:var(--c-text);
  outline:none;transition:border-color .14s;background:var(--c-white);
}
.survey__other-input:focus{border-color:var(--c-orange)}

/* Textareas */
.survey__textarea{
  width:100%;padding:14px 18px;
  border:none;border-radius:var(--radius-lg);
  font-size:15px;font-family:var(--font);color:var(--c-text);
  outline:none;resize:vertical;
  background:var(--c-white);
  box-shadow:0 0 0 2px transparent;
  transition:box-shadow .14s;
}
.survey__textarea:focus{box-shadow:0 0 0 2px var(--c-orange)}
.survey__anon{font-size:13px;color:rgba(46,46,48,.6);margin-top:8px}

/* Radio buttons */
.survey__radios{display:flex;flex-direction:column;gap:10px}
.survey__radio{
  display:flex;align-items:center;gap:14px;
  padding:13px 16px;
  background:var(--c-white);border-radius:var(--radius-lg);
  cursor:pointer;font-size:15px;color:var(--c-text);
  transition:box-shadow .14s;
}
.survey__radio:hover{box-shadow:0 0 0 2px var(--c-orange)}
.survey__radio input[type="radio"]{
  width:20px;height:20px;
  accent-color:var(--c-orange);cursor:pointer;flex-shrink:0;
}
.survey__radio:has(input:checked){box-shadow:0 0 0 2px var(--c-orange);background:rgba(249,115,22,.06)}

/* Step 5 info box */
.survey__info-box{
  margin-top:20px;padding:16px 18px;
  background:rgba(255,255,255,.85);border-radius:var(--radius-lg);
}
.survey__info-bold{font-size:15px;font-weight:700;color:var(--c-text);margin-bottom:8px;line-height:1.4}
.survey__info-text{font-size:14px;color:var(--c-text);line-height:1.5;margin-bottom:8px}
.survey__info-italic{font-size:13px;color:var(--c-orange);font-style:italic}

/* Actions bar */
.survey__actions{
  position:relative;z-index:5;
  display:flex;gap:12px;
  padding:20px 48px 28px;
  flex-shrink:0;
}
.btn--skip{
  flex:1;height:52px;
  background:var(--c-white);color:var(--c-text);
  border-radius:var(--radius-lg);font-size:15px;font-weight:700;
  text-transform:uppercase;letter-spacing:.04em;
  transition:background .15s;
}
.btn--skip:hover{background:rgba(255,255,255,.8)}
.btn--next{
  flex:2;height:52px;font-size:15px;
  border-radius:var(--radius-lg);
}
.btn--next.is-finish{flex:3}

/* ─────────────────────
   MODAL 3: SUCCESS
───────────────────── */
.modal--success{
  width:600px;
  border-radius:var(--radius-xl);
  background:var(--c-yellow);
  padding:0;
}
.modal__success-content{
  position:relative;z-index:5;
  padding:72px 56px;
  text-align:center;
  display:flex;flex-direction:column;align-items:center;gap:20px;
}
.modal__success-icon{display:flex;justify-content:center}
.modal__success-title{font-size:36px;font-weight:800;color:var(--c-text);line-height:1.2}
.modal__success-desc{font-size:16px;line-height:1.6;color:var(--c-text);max-width:440px}

/* ─────────────────────
   UTILITIES
───────────────────── */
.hide-mob{display:inline}

/* ─────────────────────
   RESPONSIVE 1100px
───────────────────── */
@media(max-width:1100px){
  .container{padding:0 40px}
  .header{padding:0 40px}
  .hero__inner{padding:0 40px}
  .hero__content{width:auto;max-width:480px}
  .hero__visual{width:580px;right:-20px}
  .hero__title{font-size:44px}

  .reality__grid{grid-template-columns:260px 1fr 260px;gap:24px}


  .how__inner{flex-direction:column;gap:48px}
  .how__visual{width:100%;justify-content:center}
  .how__phone-img{max-width:340px}
  .how__content{width:100%}

  .cta-bottom__title{font-size:44px}

  .footer__top{padding:48px 40px}
  .footer__bottom{padding:24px 40px 36px}
}

/* ─────────────────────
   RESPONSIVE 768px
───────────────────── */
@media(max-width:768px){
  .container{padding:0 24px}
  .header{padding:0 24px}
  .header__nav{display:none}
  .btn--header-cta{width:200px;font-size:12px}

  .hero__inner{flex-direction:column;padding:48px 24px 0;min-height:auto;align-items:center}
  .hero__content{width:100%;gap:24px;align-items:center;text-align:center}
  .hero__title{font-size:36px;line-height:44px}
  .btn--hero{width:100%;height:52px}
  .hero__visual{position:relative;right:auto;bottom:auto;top:auto;width:100%;margin-top:32px;justify-content:center}
  .hero__img{width:90%;margin:0 auto}

  .reality__grid{grid-template-columns:1fr;gap:24px}
  .reality__card{flex-direction:column;justify-content:center;align-items:center;text-align:center}
  .reality__card-body h3,.reality__card-body p{text-align:center}
  .reality__center{
    order:-1;
    height:200px;
    overflow:hidden;
    align-items:flex-end;
  }
  .reality__hug{max-width:220px;width:auto}

  /* Why — ≤768px: single column, illustration above, num+title inline */
  .why__mid-text { font-size: 20px; margin-bottom: 40px; }
  .why__layout {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
  }
  .why__option--1 { order: 1; }
  .why__option--2 { order: 2; }
  .why__grandpa-col { order: 3; grid-column: auto; justify-content: center; margin-top: 40px; }
  .why__grandpa { width: 100%; max-width: 400px; }
  /* Each option: grid — illustration always full top row, num+text inline below */
  .why__option {
    display: grid;
    grid-template-areas:
      "img img"
      "num txt";
    grid-template-columns: auto auto;
    justify-content: center;
    row-gap: 8px;
    column-gap: 8px;
    padding-bottom: 40px;
  }
  /* Illustration — full top row, centered */
  .why__option-img {
    grid-area: img;
    max-width: 140px;
    height: auto;
    justify-self: center;
  }
  /* Number SVG — left of title, 8px gap (column-gap) */
  .why__option-num {
    grid-area: num;
    height: 25px;
    width: auto;
    align-self: start;
    margin-top: 3px;
  }
  /* Text wrapper — right of number */
  .why__option-text {
    grid-area: txt;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .why__option-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 28px;
    text-align: left;
  }
  .why__option-desc {
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    color: var(--c-white);
  }
  .why__bottom-text { padding: 24px 0 40px; }
  .why__connector { display: none; }

  .how__phone-img{max-width:280px}
  .how__title{font-size:32px}

  .cta-bottom{padding:56px 0}
  .cta-bottom__title{font-size:36px}

  .footer__top{flex-direction:column;gap:24px;padding:40px 24px}
  .footer__bottom{flex-direction:column;align-items:flex-start;gap:16px;padding:20px 24px 32px}

  /* Modals go full-width on mobile */
  .modal--email,.modal--survey,.modal--success{
    width:calc(100vw - 32px);max-width:480px;height:auto;max-height:94dvh;
  }
  .modal__email-photo{width:160px}
  .modal__email-content{padding:40px 32px 0}
  .modal__email-title{font-size:30px}
  .survey__header{padding:28px 32px 16px}
  .survey__nav{margin:0 12px}
  .survey__body{padding:20px 32px 0}
  .survey__actions{padding:16px 32px 24px}
}

/* ─────────────────────
   RESPONSIVE 390px
───────────────────── */
@media(max-width:375px){
  .container{padding:0 16px}
  .header{padding:0 16px}
  .hero__inner{padding:36px 16px 0}
  .hero__title{font-size:28px;line-height:36px}
  .hero__desc{font-size:16px}
  .cta-bottom__title{font-size:28px}
  .reality__title,.why__title,.how__title,.trust__title{font-size:28px;line-height:36px}
  /* Why — mobile 375px: narrower padding, full-width grandpa */
  .why__grandpa { max-width: 344px; }
  .why__mid-text { font-size: 18px; margin-bottom: 28px; }
  .footer__top{padding:32px 16px}
  .footer__bottom{padding:16px 16px 28px}
  /* иконки reality на маленьких экранах */
  .reality__card-icon {
    width: 60px;
    height: 60px;
  }
  .reality__card-icon img {
    width: 60px !important;
    height: 60px !important;
  }
}

@media(max-width:600px){.hide-mob{display:none}}

/* ─────────────────────
   SAND ICON SPIN (hover microanimation)
───────────────────── */
@keyframes co-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.btn__sand-icon {
  transition: transform .2s;
  transform-origin: center center;
  will-change: transform;
}
.btn:hover .btn__sand-icon {
  animation: co-spin .7s linear infinite;
}


/* ═══════════════════════════════════════════
   CO-* MODALS  (Early Access / Survey / Success)
═══════════════════════════════════════════ */

/* Overlay */
.co-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(28,34,51,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .25s;
}
.co-overlay.is-open { opacity: 1; }
.co-overlay[hidden]  { display: none; }

/* Modal box */
.co-modal {
  position: relative;
  width: 600px;
  border-radius: 24px;
  background: var(--c-yellow);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  transform: translateY(24px) scale(.97);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.co-overlay.is-open .co-modal { transform: translateY(0) scale(1); }

/* Shared BG pattern */
.co-modal__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Close button */
.co-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.15);
  color: var(--c-text);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.co-close:hover { background: rgba(0,0,0,.3); }

/* ── CO BUTTONS ── */
.co-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all .18s;
  text-transform: uppercase;
  letter-spacing: .04em;
  width: 100%;
}
.co-primary {
  background: var(--c-orange);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.co-primary:hover { background: var(--c-orange-dark); }
.co-ghost {
  background: rgba(255,255,255,.75);
  color: var(--c-text);
}
.co-ghost:hover { background: rgba(255,255,255,.95); }

/* ── EARLY ACCESS modal ── */
.co-early { height: 600px; container-type: size; container-name: early-modal; }

@container early-modal (max-height: 501px) {
  .co-early__logo { display: none; }
}

.co-early__content {
  position: relative;
  z-index: 5;
  padding: 36px 220px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.co-pill {
  display: inline-flex;
  align-items: center;
  background: var(--c-white);
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  width: fit-content;
}
.co-pill span { color: var(--c-orange); font-weight: 700; margin-left: 4px; }

.co-title {
  font-size: clamp(22px, 5.5vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--c-text);
  margin-bottom: 12px;
}

.co-desc {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-text);
  margin-bottom: 20px;
  white-space: normal;
  overflow-wrap: break-word;
}

#co-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#co-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}
#co-form input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-white);
  outline: none;
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow .14s;
}
#co-form input[type="email"]:focus { box-shadow: 0 0 0 2px var(--c-orange); }
#co-form input[type="email"].is-error { box-shadow: 0 0 0 2px #EF4444; }
.co-email-error { font-size: 13px; color: #EF4444; margin-top: -4px; display: none; }
.co-email-error.visible { display: block; }

.co-note {
  font-size: 13px;
  color: var(--c-text);
  opacity: .7;
  line-height: 1.5;
}

.co-early__photo {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 260px;
  z-index: 5;
  pointer-events: none;
}
.co-early__logo {
  position: absolute;
  bottom: 48px;
  left: 40px;
  height: 32px;
  width: auto;
  z-index: 5;
  pointer-events: none;
}

/* ── SURVEY modal ── */
.co-survey {
  height: 600px;
  max-height: min(600px, 94dvh);
  display: flex;
  flex-direction: column;
}

.co-survey-header {
  position: relative;
  z-index: 5;
  padding: 36px 48px 20px;
  flex-shrink: 0;
}
.co-youin {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 10px;
}
.co-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-orange);
  flex-shrink: 0;
}
.co-survey-header p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-text);
}

.co-card {
  position: relative;
  z-index: 5;
  background: var(--c-white);
  border-radius: 16px;
  margin: 0 20px 20px;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.co-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--c-dark);
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}
.co-top button {
  background: none;
  border: none;
  color: var(--c-white);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  font-family: var(--font);
}
.co-top span {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-white);
}

.co-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Steps */
.co-step[hidden] { display: none; }

.co-step-head {
  margin-bottom: 16px;
}
.co-step-head span {
  font-size: 26px;
  font-weight: 800;
  color: rgba(46,46,48,.3);
  display: block;
  margin-bottom: 6px;
}
.co-step-head p {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text);
}

/* Checkboxes and radios in co-step */
.co-step label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #F9FAFB;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--c-text);
  border: 2px solid transparent;
  transition: border-color .14s;
}
.co-step label:hover { border-color: var(--c-orange); }
.co-step label:has(input:checked) {
  border-color: var(--c-orange);
  background: rgba(249,115,22,.06);
}
.co-step input[type="checkbox"],
.co-step input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-orange);
  cursor: pointer;
  flex-shrink: 0;
}

/* Other text input */
.co-other {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--c-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--c-text);
  outline: none;
  background: #F9FAFB;
  margin-bottom: 8px;
  transition: border-color .14s;
}
.co-other:focus { border-color: var(--c-orange); }

/* Textareas */
.co-step textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--c-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--c-text);
  outline: none;
  resize: vertical;
  background: #F9FAFB;
  min-height: 120px;
  transition: border-color .14s;
}
.co-step textarea:focus { border-color: var(--c-orange); }
.co-step small {
  font-size: 13px;
  color: var(--c-muted);
  margin-top: 6px;
  display: block;
}

/* Info box step 5 */
.co-info {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(249,115,22,.08);
  border-radius: 10px;
  font-size: 14px;
  color: var(--c-text);
  font-weight: 600;
  border-left: 3px solid var(--c-orange);
}

/* Actions */
.co-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--c-border);
  flex-shrink: 0;
}
.co-actions .co-ghost { flex: 1; }
.co-actions .co-primary { flex: 2; }

/* ── SUCCESS modal ── */
.co-success { height: 600px; }

.co-success__content {
  position: relative;
  z-index: 5;
  height: 100%;
  padding: 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.co-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-orange);
  position: relative;
  flex-shrink: 0;
}
.co-check::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -58%) rotate(-45deg) translate(2px, 0);
  width: 22px;
  height: 12px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
}

.co-success__content h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.2;
}
.co-success__content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  max-width: 420px;
}
.co-success__content .co-btn { max-width: 320px; margin-top: 8px; }

/* ── CONTACT modal ── */
.co-contact {
  width: 520px;
  height: min(680px, 94dvh);
  display: flex;
  flex-direction: column;
}

/* Scrollable area: pill + title + desc + fields */
.co-contact__body {
  position: relative;
  z-index: 5;
  flex: 1;
  overflow-y: auto;
  padding: 36px 40px 16px;
}

.co-contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.co-contact__field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}

.co-contact__field input,
.co-contact__field textarea {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-white);
  outline: none;
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow .14s;
  resize: none;
}

.co-contact__field input:focus,
.co-contact__field textarea:focus { box-shadow: 0 0 0 2px var(--c-orange); }

.co-contact__field input.is-error,
.co-contact__field textarea.is-error { box-shadow: 0 0 0 2px #EF4444; }

.co-contact__error {
  font-size: 13px;
  color: #EF4444;
}

.co-contact__field textarea { min-height: 108px; }

/* Fixed bottom: submit button + note */
.co-contact__actions {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  padding: 16px 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-contact__actions .co-btn {
  height: 52px;
  border-radius: 16px;
  font-size: 15px;
}

/* ── CONTACT SENT modal ── */
.co-contact-sent {
  width: 520px;
  height: min(400px, 94dvh);
  display: flex;
  flex-direction: column;
}

.co-contact-sent__content {
  position: relative;
  z-index: 5;
  flex: 1;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.co-contact-sent__content h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-text);
}

.co-contact-sent__content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  max-width: 300px;
}

.co-contact-sent__content .co-btn {
  max-width: 220px;
  height: 52px;
  border-radius: 16px;
  margin-top: 8px;
}

/* ── Responsive co-modals ── */
@media (max-width: 768px) {
  .co-modal { width: calc(100vw - 32px); max-width: 480px; }
  .co-early  { height: 520px; max-height: 94dvh; }
  .co-early__content { padding: 36px 36px 0; }
  .co-title { font-size: 28px; margin-top: 10px; }

  .co-early__photo { width: 180px; right: 0; left: auto; transform: none; }
  .co-early__logo { bottom: 32px; left: 24px; }
  .co-note { font-size: 11px; margin-top: 0; }
  .co-survey { height: auto; max-height: 94dvh; }
  .co-survey-header { padding: 28px 24px 16px; }
  .co-card { margin: 0 12px 16px; }
  .co-success { height: auto; }
  .co-success__content { padding: 48px 32px; justify-content: flex-start; }
  .co-contact { width: calc(100vw - 32px); max-width: 480px; height: 94dvh; }
  .co-contact__body { padding: 28px 28px 16px; }
  .co-contact__actions { padding: 12px 28px 24px; }
  .co-contact-sent { width: calc(100vw - 32px); max-width: 480px; height: auto; }
  .co-contact-sent__content { padding: 48px 32px; }
}


/* ===== Consent checkbox (early access) ===== */
.co-consent{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-top:14px;
  font-size:14px;
  line-height:1.35;
  color:rgba(0,0,0,.75);
}
.co-consent input{
  margin-top:3px;
  width:18px;
  height:18px;
  flex:0 0 auto;
  accent-color: var(--c-orange);
  cursor:pointer;
}
.co-consent a{
  text-decoration:underline;
}
.co-consent-error{
  margin-top:8px;
  font-size:13px;
  color:#b00020;
}

/* ===== Legal drawer ===== */
.co-legal[hidden]{display:none !important;}
.co-legal{
  position:fixed;
  inset:0;
  z-index:9999;
}
.co-legal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
}
.co-legal__panel{
  position:absolute;
  right:0;
  top:0;
  height:100%;
  width:min(720px, 92vw);
  background:#fff;
  box-shadow:-12px 0 40px rgba(0,0,0,.22);
  display:flex;
  flex-direction:column;
}
.co-legal__close{
  position:absolute;
  top:14px;
  right:14px;
  border:none;
  background:transparent;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.co-legal__header{
  padding:18px 54px 12px 18px;
  border-bottom:1px solid rgba(0,0,0,.08);
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}
.co-legal__title{
  font-size:18px;
  font-weight:700;
}
.co-legal__open{
  font-size:14px;
  text-decoration:underline;
}
.co-legal__frame{
  width:100%;
  flex:1 1 auto;
  overflow-y:auto;
  padding:24px 32px;
  box-sizing:border-box;
  font-size:15px;
  line-height:1.6;
  color:#1a1a1a;
}
.co-legal__frame h1,.co-legal__frame h2,.co-legal__frame h3{margin:1.4em 0 .5em;font-weight:700;}
.co-legal__frame h1{font-size:22px;}
.co-legal__frame h2{font-size:18px;}
.co-legal__frame p{margin:0 0 .9em;}
.co-legal__frame a{color:inherit;text-decoration:underline;}
.co-legal__frame ul,.co-legal__frame ol{margin:0 0 .9em;padding-left:1.4em;}
.co-legal__loading{padding:48px;text-align:center;color:#888;font-size:15px;}


/* Heart icon before "You're in!" */
.co-heart-icon{width:44px;height:44px;object-fit:contain;display:inline-block;vertical-align:middle;margin-right:12px;}

/* Early-access modal description should align with title width */
.co-early__content .co-desc{max-width:none;width:100%;}

/* Prevent hero family illustration from scaling up on very wide screens */
@media (min-width: 1600px){
  img[src$="illustration-family.png"]{max-width:100%;height:auto;}
  img[src$="illustration-family.png"]{width:unset;}
}
@media (min-width: 1600px){
  .co-hero__image, .co-hero__illustration, .co-hero__media{max-width:720px;}
}
