/* =========================================================
   Inner pages: packages, FAQ, company
   ========================================================= */

/* page hero ground: aurora wash + fine lines, distinct from the home hero */
.hero-lined {
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(255, 43, 214, .22), transparent 60%),
    radial-gradient(800px 520px at 0% 110%, rgba(138, 43, 255, .26), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-lined::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 120px);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.page-hero { position: relative; }
.page-hero h1 { max-width: 15ch; }
.page-hero .drafty { -webkit-text-stroke-width: 1.5px; }
.accent-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center-col { display: grid; justify-items: center; text-align: center; }
.center-col h1 { margin-inline: auto; }
.center-col .lead { margin: 22px auto 0; text-align: center; }

.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

/* receipt: the "no surprises" promise as an object */
.receipt {
  position: relative; padding: 26px 26px 22px; border-radius: 18px;
  background: #fbf8ff; color: #1a1228;
  box-shadow: 0 40px 80px -30px rgba(255, 43, 214, .45), 0 0 0 1px rgba(255,255,255,.6) inset;
  transform: rotate(1.2deg);
  transition: transform .5s var(--ease-out);
  font-size: .92rem;
}
.receipt:hover { transform: rotate(0deg) translateY(-3px); }
.receipt::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: -7px; height: 8px;
  background: radial-gradient(circle at 8px 0, #fbf8ff 7px, transparent 7.5px) 0 0 / 16px 8px repeat-x;
}
.receipt-head { display: flex; justify-content: space-between; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1.5px dashed rgba(26,18,40,.18); color: #6a1fe0; }
.receipt-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; color: #4a4060; }
.receipt-row span:last-child { font-family: var(--font-mono); font-size: .8rem; color: #1a1228; }
.receipt-row.muted span:last-child { color: #188038; font-weight: 600; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 14px; border-top: 1.5px dashed rgba(26,18,40,.18); font-weight: 600; }
.receipt-total b { font-family: var(--font-head); font-size: 1.9rem; letter-spacing: -0.04em; }
.receipt-split { display: grid; gap: 6px; margin-top: 14px; font-size: .8rem; color: #4a4060; }
.receipt-split span { display: flex; align-items: center; gap: 8px; }
.receipt-split i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* statement */
.statement-section { padding-block: clamp(90px, 12vw, 160px); }
.statement {
  margin-top: 26px;
  font-family: var(--font-head); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem); max-width: 22ch; color: var(--ink);
  text-wrap: balance;
}
.statement { max-width: 30ch; }
.details-grid > div:first-child { position: sticky; top: 120px; }
.drafty-dark { color: transparent; -webkit-text-stroke: 1.4px rgba(244, 240, 251, .6); }
.statement-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.statement-foot b { display: block; font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 4px; }
.statement-foot span { color: var(--muted); font-size: .95rem; }

/* details + contact */
.details-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.light-link { color: var(--violet-2); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-form { padding: clamp(24px, 3vw, 36px); }
.contact-form .btn { justify-self: start; }
.contact-card { text-decoration: none; }

/* principles */
.principle { padding: 34px; }
.principle h3 { font-size: 1.35rem; }

/* link cards */
.link-card { display: flex; flex-direction: column; }
.link-card p { margin-bottom: 18px; }
.link-card .link { margin-top: auto; color: var(--violet-2); align-self: flex-start; }

/* FAQ page */
.faq-hero { padding-bottom: 70px; }
.faq-search {
  position: relative; display: flex; align-items: center; gap: 12px;
  width: min(620px, 100%); margin-top: 34px; height: 60px; padding: 0 20px;
  border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
  cursor: text;
}
.faq-search:focus-within { border-color: var(--pink); background: rgba(255,255,255,.07); box-shadow: 0 0 0 5px rgba(255, 43, 214, .14); }
.faq-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.faq-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1rem; }
.faq-search input:focus { outline: none; }
.faq-search input::placeholder { color: var(--dim); }
.faq-count { color: var(--dim); white-space: nowrap; }
.faq-empty { color: var(--muted); padding: 30px 0; }
.faq details[hidden], .faq-group[hidden] { display: none; }
mark { background: rgba(255, 43, 214, .25); color: inherit; border-radius: 3px; padding: 0 2px; }
.faq-side a.active { color: var(--ink); background: rgba(255,255,255,.07); }

/* ---------------- Team / org chart ---------------- */
.org { display: grid; justify-items: center; }
.org-row { width: 100%; display: grid; gap: 20px; }
.org-top { max-width: 520px; }
.org-pair { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.org-team { grid-template-columns: repeat(4, 1fr); }

/* dashed connectors: the chart is drawn like a draft */
.org-link { position: relative; width: 100%; height: 56px; }
.org-link::before { content: ""; position: absolute; left: 50%; top: 0; height: 100%; border-left: 2px dashed rgba(106, 31, 224, .35); }
.org-link i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: linear-gradient(120deg, #8a2bff, #ff2bd6); box-shadow: 0 0 0 5px rgba(138, 43, 255, .12); }

.person {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 22px 24px; border-radius: var(--radius-l);
  background: #fff; border: 1px solid var(--light-line);
  box-shadow: 0 1px 2px rgba(20, 13, 34, .04);
  transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .person:hover { transform: translateY(-2px); border-color: rgba(106, 31, 224, .3); box-shadow: 0 24px 50px -28px rgba(106, 31, 224, .45); }
  .person:hover .avatar { transform: rotate(-6deg) scale(1.04); }
}
.person h3 { color: var(--light-ink); font-size: 1.2rem; }
.role-tag { display: inline-block; margin-bottom: 6px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-2); }
.person .role { display: block; margin-top: 4px; font-size: .9rem; color: var(--light-muted); }

.avatar {
  --a: 120deg;
  flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; color: #fff;
  background: linear-gradient(var(--a), #8a2bff, #ff2bd6);
  box-shadow: 0 10px 24px -10px rgba(138, 43, 255, .6), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .45s var(--ease-out);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 92px; height: 92px; font-size: 1.8rem; }
.avatar-sm { width: 52px; height: 52px; font-size: 1.02rem; }

.person-founder { padding: 28px 30px; gap: 24px; background: linear-gradient(135deg, #1a0b2b, #2a0c3c); border-color: transparent; box-shadow: 0 30px 60px -30px rgba(106, 31, 224, .6); }
.person-founder h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.03em; }
.person-founder .role-tag { color: #ffb3f2; }
.person-founder .avatar { box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 0 1px rgba(255, 140, 240, .5), 0 14px 30px -10px rgba(255, 43, 214, .7); }

.person-sm { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
.person-sm h3 { font-size: 1.08rem; }

@media (max-width: 1024px) {
  .org-team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .org-pair, .org-team { grid-template-columns: 1fr; }
  .person-sm { flex-direction: row; align-items: center; }
  .org-link { height: 40px; }
  .person-founder { padding: 22px; gap: 18px; }
  .avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }
}

/* live-site chip on real portfolio work */
.live-chip { display: inline-flex; align-items: center; gap: 6px; color: #b9ffd6; border-color: rgba(76, 255, 154, .4) !important; }
.live-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4cff9a; box-shadow: 0 0 8px #4cff9a; }
/* real site screenshot shown whole, in a browser frame on a glow */
.work-media.framed {
  display: flex; align-items: stretch; justify-content: center;
  padding: 76px clamp(20px, 4vw, 44px) 0;
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(255, 43, 214, .35), transparent 70%),
    radial-gradient(60% 50% at 0% 0%, rgba(138, 43, 255, .35), transparent 70%),
    #120b1e;
}
.work-media.framed::after { display: none; }
.work-media.framed img.shot {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(255,255,255,.14); border-bottom: 0;
  box-shadow: 0 -10px 60px -10px rgba(255, 43, 214, .45);
  transform-origin: bottom center;
}
/* hover: the screenshot scrolls down the real site like a live preview; leaving snaps back fast */
.work-media.framed img.shot { transition: object-position .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .work-card:hover .work-media.framed img.shot { transform: none; object-position: center 100%; transition: object-position 6s cubic-bezier(.45, 0, .55, 1); }
}

@media (max-width: 1024px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .receipt { max-width: 440px; }
}
@media (max-width: 860px) {
  .details-grid, .contact-grid { grid-template-columns: 1fr; }
  .statement-foot { grid-template-columns: 1fr; }
  .faq-side { display: none; }
}
@media (max-width: 560px) {
  .faq-count { display: none; }
  .contact-form .btn { width: 100%; }
  .receipt { transform: none; }
}
