/* Inspire Behavior Services — inner pages: services, about, start, careers, contact, forms, 404 */

.section { padding: var(--section) 0; }
.section--tint { background: linear-gradient(180deg, var(--mist), #f7f9fd); }
.section--sky { background: linear-gradient(180deg, var(--sky), var(--bg)); }
.card {
  position: relative; padding: clamp(24px, 3vw, 32px); border-radius: var(--r-l);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-s);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.card h3 { margin-top: 18px; }
.card p { margin-top: 8px; color: var(--muted); }
.icon-bubble {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: var(--grad); color: #fff;
}
.icon-bubble .i { width: 28px; height: 28px; }
.icon-bubble--gold { background: var(--grad-gold); color: var(--ink); }
.icon-bubble--pink { background: linear-gradient(135deg, #e1538b, #f28c28); }
.icon-bubble--leaf { background: linear-gradient(135deg, #7cc242, #19b5a8); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 800; font-size: 0.92rem; color: var(--ink); text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.chip:hover { border-color: var(--teal); background: var(--sky); }
.chip svg { width: 14px; height: 14px; fill: var(--star-deep); }

/* ---------- services detail ---------- */
.svc-rows { padding-bottom: var(--section); }
.svc-row { display: grid; gap: 40px; align-items: center; padding: clamp(48px, 7vw, 96px) 0; }
.svc-row + .svc-row { border-top: 2px dashed var(--line); }
.svc-row__media { position: relative; width: min(100%, 560px); margin-inline: auto; }
.svc-row__img { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-l); }
.svc-row__img img { width: 100%; height: 112%; object-fit: cover; }
.svc-row__star { position: absolute; top: -26px; left: -18px; display: grid; place-items: center; width: 92px; height: 92px; }
.svc-row__star svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--star); filter: drop-shadow(0 10px 16px rgba(27, 37, 89, 0.25)); }
.svc-row__star b { position: relative; margin-top: 6px; font-family: var(--f-display); font-size: 1.35rem; color: var(--ink); }
.svc-row .h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.7rem); }
.svc-row p.lead { margin-top: 1rem; }
.svc-row__sub { margin-top: 1.6rem; font-family: var(--f-brand); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.svc-row .star-list { margin-top: 0.9rem; }
@media (min-width: 1024px) {
  .svc-row { grid-template-columns: 1fr 1fr; gap: 80px; }
  .svc-row:nth-child(even) .svc-row__media { order: 2; }
  .svc-row:nth-child(even) .svc-row__star { left: auto; right: -18px; }
}

.setting__corner { position: absolute; right: -18px; top: -18px; width: 80px; height: 80px; fill: rgba(254, 197, 68, 0.2); transition: transform 0.8s var(--ease); }
.card:hover .setting__corner { transform: rotate(72deg) scale(1.1); }

.ages {
  position: relative; overflow: hidden; display: grid; gap: 32px; align-items: center;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--r-xl); background: var(--grad-deep); color: #dce8ff;
}
.ages .h2 { color: #fff; }
.ages p { margin-top: 12px; max-width: 52ch; }
.ages__stars { display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 2.4vw, 26px); }
.ages__star { display: grid; justify-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 0.92rem; text-align: center; }
.ages__star svg { fill: var(--star); width: var(--s); height: var(--s); filter: drop-shadow(0 0 14px rgba(254, 197, 68, 0.6)); }
@media (min-width: 960px) { .ages { grid-template-columns: 1fr 1fr; } }

.insure { display: grid; gap: 40px; align-items: center; }
.insure__panel { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-l); border: 1px solid var(--line); }
.insure__panel ul { display: grid; gap: 18px; }
.insure__panel li { display: flex; gap: 16px; align-items: flex-start; }
.insure__panel li strong { display: block; font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.insure__panel li span { color: var(--muted); font-size: 0.95rem; }
.insure .btn-row { margin-top: 2rem; }
@media (min-width: 1024px) { .insure { grid-template-columns: 1.1fr 0.9fr; gap: 80px; } }

/* ---------- about ---------- */
.why-star { display: grid; gap: 56px; align-items: center; }
.why-star__art { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin-inline: auto; }
.why-star__big { position: absolute; inset: 0; width: 100%; height: 100%; fill: url(#g-brand); filter: drop-shadow(0 30px 40px rgba(46, 63, 143, 0.3)); }
.why-star__core {
  position: absolute; left: 50%; top: 53%; width: 50%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: var(--shadow-l);
}
.why-star__core img { width: 82%; }
.why-star__orbit { position: absolute; inset: -6%; animation: slow-spin 14s linear infinite; }
.why-star__orbit svg { position: absolute; top: 0; left: 50%; width: 38px; height: 38px; margin-left: -19px; fill: var(--star); filter: drop-shadow(0 0 12px rgba(254, 197, 68, 0.8)); }
.why-star__copy p + p { margin-top: 1rem; }
@media (min-width: 1024px) { .why-star { grid-template-columns: 0.9fr 1.1fr; gap: 90px; } }

.mv { display: grid; gap: 20px; }
.mv__card { position: relative; overflow: hidden; padding: clamp(32px, 4vw, 52px); border-radius: var(--r-xl); }
.mv__card--mission { background: var(--grad-deep); color: #dce8ff; }
.mv__card--mission .h3, .mv__card--mission .eyebrow { color: #fff; }
.mv__card--vision { background: var(--cream); border: 1px solid rgba(242, 168, 29, 0.35); }
.mv__card .h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.25; font-weight: 500; }
.mv__card > svg { position: absolute; right: -30px; bottom: -30px; width: 150px; height: 150px; fill: rgba(255, 255, 255, 0.1); }
.mv__card--vision > svg { fill: rgba(242, 168, 29, 0.2); }
@media (min-width: 960px) { .mv { grid-template-columns: 1fr 1fr; } }

.value { text-align: left; }
.value .value__star { width: 44px; height: 44px; fill: var(--c, var(--star)); transition: transform 0.7s var(--ease); }
.value:hover .value__star { transform: rotate(144deg) scale(1.1); }

.mosaic { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.mosaic figure { overflow: hidden; border-radius: var(--r-l); aspect-ratio: 1; }
.mosaic figure img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figure:nth-child(1) { border-radius: 200px 200px var(--r-l) var(--r-l); }
.mosaic figure:nth-child(4) { border-radius: var(--r-l) var(--r-l) 200px 200px; }
.mosaic .star-photo { border-radius: 0; overflow: visible; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); } .mosaic figure:nth-child(even) { margin-top: 48px; } }

.duo { display: grid; gap: 20px; }
.duo .card { padding: clamp(32px, 4vw, 48px); }
.duo .card .btn { margin-top: 24px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }

.team-list { display: grid; gap: 18px; }
.team-member { display: grid; gap: 20px; align-items: start; }
.team-member h3 { margin-top: 0; }
.team-member p { max-width: 80ch; color: var(--text); }
@media (min-width: 720px) { .team-member { grid-template-columns: auto 1fr; gap: 28px; padding: 36px 40px; } }

/* ---------- getting started ---------- */
.cstep__note {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: var(--star); font-weight: 800; font-size: 0.85rem;
}
.cstep__note .i { width: 1em; height: 1em; }
.constellation--vertical { max-width: 780px; margin-inline: auto; }
.constellation--vertical .constellation__steps { gap: 56px; }
.constellation--vertical .cstep p { font-size: 1.05rem; }

.ready { display: grid; gap: 40px; align-items: center; }
.ready__card { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-l); }
.ready__list { display: grid; gap: 14px; }
.ready__list li {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-m);
  background: var(--sky); font-weight: 700; color: var(--ink);
}
.ready__list .i { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--teal); color: #fff; }
@media (min-width: 1024px) { .ready { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } }

/* ---------- careers ---------- */
.path { position: relative; margin-top: 24px; }
.path__arc { position: absolute; left: 4%; right: 4%; top: 10%; width: 92%; height: 70%; overflow: visible; display: none; }
.path__arc path { fill: none; stroke: url(#g-warm); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 12; }
.path__list { position: relative; display: grid; gap: 28px; }
.path__step { display: grid; grid-template-columns: 80px 1fr; gap: 18px; align-items: center; }
.path__star { display: grid; place-items: center; }
.path__star svg { width: var(--s); height: var(--s); fill: var(--star); filter: drop-shadow(0 8px 14px rgba(242, 168, 29, 0.5)); }
.path__step h3 { font-size: 1.25rem; }
.path__step p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
@media (min-width: 960px) {
  .path__arc { display: block; }
  .path__list { grid-template-columns: repeat(4, 1fr); align-items: end; }
  .path__step { grid-template-columns: 1fr; justify-items: center; text-align: center; margin-bottom: calc(-1 * var(--lift)); }
  .path__star { height: 110px; align-items: end; }
}

.roles { display: grid; gap: 14px; }
.role {
  display: grid; gap: 16px; align-items: center; padding: 24px 28px; border-radius: var(--r-l);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-s);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.role:hover { border-color: rgba(25, 181, 168, 0.5); box-shadow: var(--shadow-m); }
.role h3 { font-size: 1.3rem; }
.role__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (min-width: 800px) { .role { grid-template-columns: 1fr auto; } }

/* ---------- forms ---------- */
.form-wrap { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .form-wrap { grid-template-columns: 1.35fr 0.65fr; gap: 48px; } }
.form-card { position: relative; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-l); border: 1px solid var(--line); }
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field > label, .field > legend, .field__label { font-weight: 800; color: var(--ink); font-size: 0.95rem; padding: 0; }
.field__opt { font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px;
  border: 2px solid var(--line); background: #fbfcff; color: var(--ink); font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(25, 181, 168, 0.18); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--pink); }
.field__error { display: none; font-size: 0.85rem; font-weight: 700; color: #b8285f; }
.field:has(:user-invalid) .field__error { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--line); background: #fbfcff; font-weight: 800; color: var(--ink); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.choice span svg { width: 14px; height: 14px; fill: var(--line); transition: fill 0.2s, transform 0.4s var(--ease); }
.choice input:checked + span { border-color: var(--teal); background: var(--sky); }
.choice input:checked + span svg { fill: var(--star-deep); transform: rotate(72deg); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--teal); flex: none; }
.form__submit { justify-self: start; }
.form__submit[disabled] { opacity: 0.7; cursor: progress; }
.form__status { font-weight: 700; }
.form__status.is-error { color: #b8285f; }
.form-success { display: grid; justify-items: center; gap: 12px; padding: clamp(32px, 6vw, 64px) 16px; text-align: center; }
.form-success[hidden] { display: none; }
.form-success__star { position: relative; width: 110px; height: 110px; }
.form-success__star svg { width: 100%; height: 100%; fill: var(--star); filter: drop-shadow(0 12px 20px rgba(242, 168, 29, 0.5)); }
.form-success__burst { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px; fill: var(--teal); }
.form-success h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); }
.form-success p { max-width: 44ch; color: var(--muted); }

.contact-aside { display: grid; gap: 16px; }
.contact-line { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
a.contact-line:hover { border-color: var(--teal); }
.contact-line .icon-bubble { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.contact-line strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-line span { font-size: 0.92rem; color: var(--muted); }
.screening { display: flex; gap: 16px; align-items: flex-start; max-width: 62rem; margin-top: clamp(28px, 4vw, 48px); padding: clamp(20px, 3vw, 32px); border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--teal); box-shadow: var(--shadow-s); }
.screening > .i { flex: none; width: 28px; height: 28px; margin-top: 2px; color: var(--teal-700); }
.screening p { margin-top: 8px; font-size: 0.97rem; }
.screening a { color: var(--teal-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.screening a:hover { color: var(--indigo); }
.notice { display: flex; gap: 12px; padding: 18px 20px; border-radius: var(--r-m); background: #fdeef4; color: #7a1f45; font-size: 0.92rem; font-weight: 600; }
.notice .i { flex: none; margin-top: 2px; }

/* ---------- 404 ---------- */
.lost { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 140px var(--gutter) 80px; background: linear-gradient(180deg, var(--night-2), var(--night)); color: #c9d3f5; }
.lost .h1 { color: #fff; }
.lost p { margin: 1rem auto 2rem; max-width: 46ch; font-size: 1.15rem; }
.lost__star { width: 120px; height: 120px; margin: 0 auto 28px; fill: var(--star); filter: drop-shadow(0 0 30px rgba(254, 197, 68, 0.8)); animation: lost-float 5s ease-in-out infinite; }
@keyframes lost-float { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 50% { transform: translate(10px, -16px) rotate(12deg); } }
.lost .btn-row { justify-content: center; }
