/* ===================================================================
   Fenix Growth Labs — components.css
   Inner-page components + hero phone. Loads after site.css.
=================================================================== */

/* ---------- Nav active ---------- */
.menu a[aria-current="page"] { color: var(--text); }
.menu a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Page hero ---------- */
.phero { position: relative; padding: clamp(130px, 18vh, 200px) 0 clamp(56px, 8vw, 110px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.phero::before {
  content: ""; position: absolute; z-index: -1; width: 60vw; height: 60vw; max-width: 880px; max-height: 880px; right: -20vw; top: -30vw;
  background: radial-gradient(closest-side, rgba(255, 90, 31, .18), rgba(255, 90, 31, .05) 55%, transparent 72%);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; letter-spacing: .06em; color: var(--mute); margin-bottom: 30px; }
.crumbs a { text-decoration: none; transition: color .25s ease; } .crumbs a:hover { color: var(--text); }
.phero__title { font-size: clamp(2.8rem, 7.4vw, 7rem); margin: 22px 0 28px; max-width: 16ch; }
.phero .lead { margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.chip { display: inline-block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ember); border: 1px solid rgba(255, 90, 31, .4); padding: 6px 14px; border-radius: 99px; }
.article-meta { color: var(--mute); font-size: .9rem; margin-top: 8px; }
.phero--article .phero__title { max-width: 20ch; font-size: clamp(2.4rem, 6vw, 5.4rem); }

/* ---------- Sections ---------- */
.sec { padding: clamp(64px, 9vw, 130px) 0; }
.sec--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head .sec-title { max-width: 20ch; font-size: clamp(2.2rem, 5vw, 4.6rem); }
.sec-head .lead { max-width: 44ch; }

/* ---------- Split (image + text) ---------- */
.split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.split2 figure { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg-2); }
.split2 figure img { width: 100%; height: auto; }
.split2 .lead { max-width: 48ch; margin-bottom: 26px; }
.split2 p + p { margin-top: 14px; color: var(--mute); }
.split2 h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); margin: 18px 0 22px; }

/* ---------- Checks ---------- */
.checks { list-style: none; display: grid; gap: 4px; margin: 0 0 30px; border-top: 1px solid var(--line); }
.checks li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; font-size: 1.02rem; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 14px; height: 1px; background: var(--ember); box-shadow: 0 0 0 .5px var(--ember); }
.checks li::after { content: ""; position: absolute; left: 4px; top: 50%; width: 5px; height: 5px; border-top: 1px solid var(--ember); border-right: 1px solid var(--ember); transform: translate(9px, -50%) rotate(45deg); }

/* ---------- Cards grid ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1020px) { .cards--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.card { padding: clamp(28px, 3vw, 44px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; position: relative; transition: background .4s ease; display: block; }
.card:hover { background: rgba(255, 90, 31, .06); }
.card__n { font-size: .78rem; letter-spacing: .12em; color: var(--ember); display: block; margin-bottom: 38px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.05; letter-spacing: -.01em; margin-bottom: 14px; }
.card p { color: var(--mute); font-size: .98rem; }
a.card::after { content: "↗"; position: absolute; right: 28px; top: 26px; color: var(--mute); transition: color .3s ease, transform .4s var(--ease); }
a.card:hover::after { color: var(--ember); transform: translate(3px, -3px); }

/* ---------- Tags (industries) ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.tags li { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.4rem); padding: 10px 26px 12px; border: 1px solid var(--line); border-radius: 99px; transition: border-color .3s ease, color .3s ease, background .3s ease; }
.tags li:hover { border-color: var(--ember); color: var(--ember); background: rgba(255, 90, 31, .06); }

/* ---------- Steps 3-up ---------- */
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) {
  .steps--3 { grid-template-columns: 1fr; }
  .steps--3 .step, .steps--3 .step + .step { padding: 28px 0 8px; border-left: 0; margin-top: 0; }
  .steps--3 .step + .step { border-top: 1px solid var(--line); margin-top: 20px; }
}

/* ---------- FAQ list ---------- */
.faq-list { max-width: 900px; }

/* ---------- Posts ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 3vw, 44px); }
.post { text-decoration: none; display: block; }
.post__img { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 22px; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__tag { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ember); }
.post h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.06; letter-spacing: -.01em; margin: 10px 0 12px; transition: color .3s ease; }
.post:hover h3 { color: var(--ember); }
.post p { color: var(--mute); font-size: .98rem; margin-bottom: 16px; }
.post__more { font-size: .9rem; border-bottom: 1px solid var(--line); padding-bottom: 3px; }

/* ---------- Prose (articles, legal) ---------- */
.prose { max-width: 740px; }
.prose .article-cover { width: 100%; border-radius: 18px; border: 1px solid var(--line); margin-bottom: 44px; height: auto; }
.prose .lead { margin-bottom: 36px; font-size: clamp(1.2rem, 1.8vw, 1.45rem); color: var(--text); max-width: none; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.01em; margin: 54px 0 16px; }
.prose p { color: #cfc7ba; margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 22px 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.prose li { color: #cfc7ba; padding-left: 26px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 12px; height: 1px; background: var(--ember); }
.prose strong { color: var(--text); font-weight: 500; }
.prose a:not(.btn) { color: var(--ember); text-underline-offset: 3px; }
.prose blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; margin: 34px 0; padding-left: 26px; border-left: 2px solid var(--ember); color: var(--text); }

/* ---------- CTA band ---------- */
.ctaband { background: var(--ivory); color: var(--ink); border-radius: clamp(22px, 3.4vw, 44px); padding: clamp(40px, 6vw, 96px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 36px 60px; align-items: end; }
.ctaband h2 { font-size: clamp(2.4rem, 5.6vw, 5.2rem); }
.ctaband p { color: var(--mute-ink); margin-top: 20px; max-width: 42ch; }
.ctaband .actions { flex-direction: column; align-items: stretch; }
.ctaband .btn--ghost { border-color: var(--line-ink); color: var(--ink); }
.ctaband .btn--ghost:hover { border-color: var(--ink); }

/* ---------- Contact page ---------- */
.contact--page { border-radius: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 0; margin-top: -1px; }
.foot--round { border-radius: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 0; }
.foot--round .foot__top { border-top: 0; }

/* ---------- Hero phone (illustrative flow) ---------- */
.phone { position: relative; max-width: 360px; margin-left: auto; }
.phone__frame { border: 1px solid var(--line); border-radius: 38px; background: #0e0c0a; padding: 14px; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9); position: relative; }
.phone__frame::after { content: ""; position: absolute; inset: 0; border-radius: 38px; box-shadow: 0 0 80px -10px rgba(255, 90, 31, .18) inset; pointer-events: none; }
.phone__top { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 14px; font-size: .74rem; color: var(--mute); }
.phone__label { letter-spacing: .12em; text-transform: uppercase; font-size: .62rem; color: var(--ember); }
.phone__call { margin: 0 4px 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.phone__ico { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 70, 50, .16); color: #ff6a55; display: grid; place-items: center; flex: none; }
.phone__ico svg { width: 18px; height: 18px; }
.phone__call b { display: block; font-weight: 500; font-size: .92rem; }
.phone__call span { font-size: .78rem; color: var(--mute); }
.phone__thread { display: grid; gap: 10px; padding: 8px 4px 10px; min-height: 270px; align-content: start; }
.b { max-width: 84%; padding: 11px 15px; border-radius: 18px; font-size: .86rem; line-height: 1.4; opacity: 0; transform: translateY(8px) scale(.98); animation: pop .6s var(--ease) forwards; animation-delay: calc(var(--d) * 1s + 1s); }
.b.out { background: var(--ember); color: #fff; justify-self: end; border-bottom-right-radius: 6px; }
.b.in { background: #262320; color: var(--text); justify-self: start; border-bottom-left-radius: 6px; }
@keyframes pop { to { opacity: 1; transform: none; } }
.phone__done { opacity: 0; animation: pop .6s var(--ease) forwards; animation-delay: 6.2s; margin: 6px 4px 6px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(111, 227, 160, .3); background: rgba(63, 209, 127, .08); color: #8fe3b1; font-size: .8rem; display: flex; align-items: center; gap: 10px; }
.phone__done::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fd17f; flex: none; }
.phone__note { text-align: center; font-size: .72rem; color: var(--mute); margin-top: 16px; letter-spacing: .04em; }

/* ---------- Pricing ---------- */
.pricing { padding: clamp(80px, 11vw, 160px) 0; position: relative; overflow: hidden; isolation: isolate; }
.pricing::before { content: ""; position: absolute; z-index: -1; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; right: -25vw; top: 50%; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(255, 90, 31, .14), transparent 70%); }
.pricing__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.pricing__intro .sec-title { max-width: 12ch; }
.pricing__intro .lead { margin-top: 26px; }
.pricing__alt { margin-top: 30px; color: var(--mute); font-size: .95rem; }
.pricing__alt a { color: var(--text); text-underline-offset: 4px; text-decoration-color: var(--ember); }
.plan { border: 1px solid rgba(255, 90, 31, .38); border-radius: 28px; padding: clamp(28px, 4vw, 52px); background: linear-gradient(180deg, rgba(255, 90, 31, .10), rgba(255, 255, 255, .02) 45%); box-shadow: 0 50px 100px -50px rgba(255, 90, 31, .35); }
.plan__price { display: flex; align-items: baseline; gap: 12px; }
.plan__amt { font-family: var(--serif); font-size: clamp(4.8rem, 9vw, 7.6rem); line-height: .95; letter-spacing: -.03em; }
.plan__per { color: var(--mute); font-size: 1.05rem; }
.plan__bill { color: var(--mute); font-size: .92rem; padding: 14px 0 26px; }
.plan__list { list-style: none; border-top: 1px solid var(--line); margin-bottom: 30px; }
.plan__list li { position: relative; padding: 15px 0 15px 36px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; top: 16px; width: 21px; height: 21px; border-radius: 50%; background: rgba(255, 90, 31, .16); color: var(--ember); font-size: .72rem; display: grid; place-items: center; }
.plan__list small { color: var(--mute); margin-left: 8px; font-size: .82rem; }
.plan__list .plan__more { color: var(--mute); font-style: italic; border-bottom: 0; }
.plan__list .plan__more::before { content: none; }
.plan__note { margin-top: 18px; color: var(--mute); font-size: .8rem; line-height: 1.5; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) { .pricing__grid { grid-template-columns: 1fr; } .pricing__intro .sec-title { max-width: 16ch; } }
@media (max-width: 1020px) {
  .split2, .ctaband { grid-template-columns: 1fr; }
  .phone { margin: 0 auto; }
  .ctaband .actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .phero__title { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .ctaband .actions .btn { flex: 1 1 100%; }
  .card__n { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .b, .phone__done { opacity: 1; transform: none; }
}
