/* Coreva — marketing site layer */

.glow {
  position: absolute; inset: 0 0 auto 0; height: 720px; pointer-events: none; z-index: 0;
  background: var(--grad-glow);
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: radial-gradient(rgba(8,145,178,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

/* ── navbar ── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.nav.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-xs); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-4); height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: var(--grad-brand); display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(8,145,178,.3); color: #fff;
}
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  font-size: .9rem; font-weight: 600; color: var(--fg-muted); text-decoration: none;
  position: relative; padding-block: 4px; transition: color .18s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--grad-brand); transition: right .24s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { right: 0; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; }

/* ── hero ── */
.hero { padding-block: clamp(48px, 8vw, 92px) var(--gap-8); position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: var(--gap-7); align-items: center; }
.hero h1 { margin-block: var(--gap-4) var(--gap-4); text-wrap: balance; }
.hero h1 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--gap-3); margin-top: var(--gap-5); }
.hero__proof { display: flex; align-items: center; gap: var(--gap-4); margin-top: var(--gap-5); flex-wrap: wrap; }
.hero__faces { display: flex; }
.hero__faces span {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: .74rem; font-weight: 800; color: #fff; margin-left: -9px;
  border: 2px solid var(--surface); box-shadow: var(--shadow-xs);
}
.hero__faces span:first-child { margin-left: 0; }
.hero__faces span:nth-child(1) { background: #0891B2; }
.hero__faces span:nth-child(2) { background: #059669; }
.hero__faces span:nth-child(3) { background: #22D3EE; color: #06222B; }
.hero__faces span:nth-child(4) { background: #F59E0B; }

/* ── phone mockup ── */
.phone-stage { position: relative; display: grid; place-items: center; }
.phone-stage::before {
  content: ''; position: absolute; width: 118%; aspect-ratio: 1; border-radius: 50%;
  background: var(--grad-soft); filter: blur(6px); z-index: 0;
}
.phone {
  position: relative; z-index: 1; width: min(300px, 84vw); aspect-ratio: 9 / 19;
  background: #0B2E38; border-radius: 42px; padding: 11px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.35) inset;
  animation: float 7s ease-in-out infinite;
}
.phone__screen { width: 100%; height: 100%; border-radius: 33px; background: var(--bg-alt); overflow: hidden; position: relative; }
.phone__notch {
  position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 84px; height: 20px;
  border-radius: var(--r-pill); background: #0B2E38; z-index: 4;
}
.pscreen { padding: 40px 16px 16px; height: 100%; display: flex; flex-direction: column; gap: 12px; }
.pscreen__hd { display: flex; align-items: center; justify-content: space-between; }
.pscreen__av { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .78rem; }
.pscreen__ring { display: grid; place-items: center; position: relative; margin-block: 4px; }
.pscreen__ring svg { width: 148px; height: 148px; transform: rotate(-90deg); }
.pscreen__ring-c { position: absolute; text-align: center; }
.pscreen__ring-c b { font-family: var(--font-display); font-size: 2rem; display: block; line-height: 1; }
.pscreen__cue {
  border-radius: var(--r-sm); padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); font-size: .82rem; font-weight: 600;
}
.pscreen__bar { height: 8px; border-radius: var(--r-pill); background: var(--border); overflow: hidden; }
.pscreen__bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad-brand); }

/* ── section header ── */
.shead { max-width: 660px; margin-bottom: var(--gap-6); }
.shead--c { text-align: center; margin-inline: auto; }
.shead h2 { margin-block: 10px var(--gap-3); }
.shead p { font-size: 1.02rem; }

/* ── trust strip ── */
.trust { border-block: 1px solid var(--border); background: var(--surface); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-5); padding-block: var(--gap-5); }
.trust__i b { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); display: block; line-height: 1.1; }
.trust__i span { font-size: .82rem; color: var(--fg-muted); font-weight: 600; }

/* ── feature card ── */
.feat { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.feat__ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--primary-dark); border: 1px solid var(--border);
  transition: transform .22s var(--ease);
}
.card--hover:hover .feat__ic { transform: scale(1.07) rotate(-4deg); }
.feat h3 { font-size: 1.06rem; }
.feat p { font-size: .92rem; }

/* ── split (AI / updates) ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-7); align-items: center; }
.split--rev .split__media { order: -1; }
.ai-panel { display: flex; flex-direction: column; gap: 12px; }
.ai-msg {
  padding: 13px 15px; border-radius: var(--r-md); font-size: .9rem; max-width: 92%;
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-xs);
}
.ai-msg--in { border-bottom-left-radius: 6px; }
.ai-msg--out { align-self: flex-end; background: var(--grad-brand); color: var(--on-brand); border-color: transparent; border-bottom-right-radius: 6px; }
.ai-msg b { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .78; margin-bottom: 3px; }
.mech { display: flex; gap: 12px; align-items: flex-start; }
.mech__n {
  width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: rgba(8,145,178,.12); color: var(--primary-dark); font-weight: 800; font-size: .8rem;
}
.mech b { font-size: .95rem; }
.mech p { font-size: .88rem; margin-top: 2px; }

/* ── tabs ── */
.tabs {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border); flex-wrap: wrap;
}
.tab {
  padding: 9px 18px; border-radius: var(--r-pill); border: 0; background: transparent;
  font-size: .87rem; font-weight: 700; color: var(--fg-muted); cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--primary-dark); box-shadow: var(--shadow-xs); }
.tabpanel[hidden] { display: none; }

/* ── week plan ── */
.week { display: grid; gap: 10px; }
.week__row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface);
  transition: border-color .2s, transform .2s var(--ease);
}
.week__row:hover { border-color: var(--border-strong); transform: translateX(3px); }
.week__d {
  width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); font-weight: 800; font-size: .78rem; color: var(--primary-dark);
}
.week__row b { display: block; font-size: .95rem; }
.week__row span { font-size: .82rem; color: var(--fg-muted); }

/* ── screenshots carousel ── */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-5); align-items: end; }
.shots__slide { transition: opacity .35s, transform .45s var(--ease); }
.shots__slide[data-pos="side"] { opacity: .55; transform: scale(.94); }
.shots__slide[data-pos="mid"] { transform: scale(1.03); }
.mini {
  background: #0B2E38; border-radius: 30px; padding: 8px; aspect-ratio: 9 / 17.5;
  box-shadow: var(--shadow-md);
}
.mini__in { background: var(--bg-alt); border-radius: 23px; height: 100%; padding: 22px 13px 13px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.mini h4 { font-family: var(--font-body); font-size: .8rem; font-weight: 800; }
.mini__tile { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 10px 12px; font-size: .74rem; font-weight: 600; }
.mini__tile span { display: block; color: var(--fg-muted); font-weight: 500; font-size: .68rem; }
.mini__bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; }
.mini__bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--grad-brand); opacity: .85; }
.mini__heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mini__heat i { aspect-ratio: 1; border-radius: 3px; background: var(--border); }
.mini__heat i[data-l="1"] { background: rgba(8,145,178,.28); }
.mini__heat i[data-l="2"] { background: rgba(8,145,178,.55); }
.mini__heat i[data-l="3"] { background: var(--primary); }
.mini__heat i[data-l="4"] { background: var(--accent); }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--gap-5); }
.dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--border-strong); transition: width .25s var(--ease), background .25s;
}
.dots button[aria-current="true"] { width: 26px; border-radius: var(--r-pill); background: var(--primary); }

/* ── updates timeline ── */
.updates { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-4); position: relative; }
.updates::before {
  content: ''; position: absolute; top: 21px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--border-strong), var(--primary), var(--accent));
  opacity: .5;
}
.up { position: relative; text-align: center; }
.up__dot {
  width: 44px; height: 44px; margin-inline: auto; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--border-strong); color: var(--primary-dark);
  position: relative; z-index: 1;
}
.up[data-live="true"] .up__dot { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 0 0 6px rgba(34,211,238,.18); }
.up b { display: block; margin-top: 12px; font-size: .95rem; }
.up span { font-size: .82rem; color: var(--fg-muted); }
.up .badge { margin-top: 8px; }
.cmd {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm); padding: 13px 16px;
}
.cmd code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .84rem; color: var(--primary-dark); }
.spin { animation: spin 1s linear infinite; }

/* ── download ── */
.dl { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--gap-7); align-items: center; }
.dl__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-3); }
.dl__opt {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 14px 15px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; transition: all .2s var(--ease);
}
.dl__opt:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.dl__opt b { display: block; font-size: .9rem; }
.dl__opt span { font-size: .76rem; color: var(--fg-muted); }
.dl__opt svg { flex: none; color: var(--primary); }
.qr {
  width: 132px; height: 132px; border-radius: var(--r-sm); background: var(--surface);
  border: 1px solid var(--border); padding: 10px; box-shadow: var(--shadow-xs);
}

/* ── pricing ── */
.price__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-4); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: var(--gap-4); position: relative; }
.plan--hi { border-color: var(--primary); box-shadow: var(--shadow-md); }
.plan--hi::after {
  content: 'Most popular'; position: absolute; top: -13px; left: 50%; translate: -50% 0;
  background: var(--grad-brand); color: var(--on-brand); font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 13px; border-radius: var(--r-pill);
  white-space: nowrap; box-shadow: 0 6px 16px rgba(8,145,178,.3);
}
.plan__amt { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; }
.plan__amt small { font-family: var(--font-body); font-size: .84rem; font-weight: 600; color: var(--fg-muted); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .89rem; color: var(--fg); }
.plan li svg { flex: none; margin-top: 3px; color: var(--accent); }
.plan .btn { margin-top: auto; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; color: var(--fg-muted); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  width: 46px; height: 26px; border-radius: var(--r-pill); background: var(--border-strong);
  position: relative; cursor: pointer; transition: background .22s;
}
.switch__track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: translate .22s var(--ease);
}
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { translate: 20px 0; }

/* ── testimonials ── */
.quote { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.quote p { font-size: .95rem; color: var(--fg); flex: 1; }
.quote__who { display: flex; align-items: center; gap: 11px; }
.av {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--grad-soft); border: 1px solid var(--border);
  font-weight: 800; font-size: .82rem; color: var(--primary-dark);
}
.quote__who b { font-size: .88rem; display: block; }
.quote__who span { font-size: .76rem; color: var(--fg-muted); }

/* ── faq ── */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 780px; margin-inline: auto; }
.qa { border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; transition: border-color .2s; }
.qa[data-open="true"] { border-color: var(--border-strong); }
.qa__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; background: none; border: 0; cursor: pointer; text-align: left;
  font-weight: 700; font-size: .95rem; font-family: var(--font-body);
}
.qa__q svg { flex: none; color: var(--primary); transition: transform .28s var(--ease); }
.qa[data-open="true"] .qa__q svg { transform: rotate(180deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.qa[data-open="true"] .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 18px 17px; font-size: .91rem; }

/* ── cta band + contact ── */
.band {
  border-radius: var(--r-lg); padding: clamp(28px, 5vw, 54px);
  background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.band::before {
  content: ''; position: absolute; inset: -50% -10% auto auto; width: 380px; height: 380px;
  border-radius: 50%; background: rgba(255,255,255,.16); filter: blur(10px);
}
.band h2, .band p { color: #fff; position: relative; }
.band p { opacity: .92; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-7); align-items: start; }
.form { display: flex; flex-direction: column; gap: var(--gap-4); }
.form .row { gap: var(--gap-3); }
.ok-panel {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: var(--gap-6) var(--gap-4);
}
.ok-panel__ic {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5,150,105,.12); color: var(--accent);
}

/* ── footer ── */
.foot { border-top: 1px solid var(--border); background: var(--surface); margin-top: var(--gap-8); }
.foot__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--gap-6); padding-block: var(--gap-7); }
.foot h4 { font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 12px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot a { font-size: .88rem; color: var(--fg-muted); text-decoration: none; transition: color .18s; }
.foot a:hover { color: var(--primary); }
.foot__bar { border-top: 1px solid var(--border); padding-block: var(--gap-5); display: flex; justify-content: space-between; gap: var(--gap-4); flex-wrap: wrap; align-items: center; }

/* ── responsive ── */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--gap-6); }
  .phone-stage { order: -1; }
  .split { grid-template-columns: 1fr; gap: var(--gap-6); }
  .split--rev .split__media { order: 0; }
  .dl, .contact { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shots__slide:nth-child(3) { display: none; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__cta .btn:not(.nav__burger) { display: none; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .price__grid, .updates { grid-template-columns: 1fr; }
  .updates::before { display: none; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .shots { grid-template-columns: 1fr; }
  .shots__slide:nth-child(3) { display: block; }
  .dl__grid { grid-template-columns: 1fr; }
  .form .row { flex-direction: column; align-items: stretch; }
  .foot__grid { grid-template-columns: 1fr; }
}
