/* Real Interview Experiences — follows the socialcontinent.in theme exactly:
   lavender top bar, white page with a soft lavender glow, Plus Jakarta Sans headings, Inter body,
   purple accents and pill buttons, lavender stat panels with white cards. Layout modelled on Exponent. */

/* ------------------------------------------------------------------ tokens (sampled from socialcontinent.in) */
:root {
  --topbar: #E1D8FF;          /* header bar */
  --panel: #F5F3FF;           /* stats section */
  --surface: #FFFFFF;
  --page: #FCFBFF;
  --primary: #5B37D3;         /* buttons */
  --accent: #5C3ACB;          /* highlighted words */
  --deep: #4C1D95;            /* stat numbers */
  --chip: rgba(54, 77, 255, .10);
  --chip-ink: #5935CD;
  --ink: #111827;
  --ink-soft: #4B5563;
  --muted: #6B7280;
  --line: #E9E5F5;
  --green: #16A34A;
  --green-soft: #E8F8EE;
  --red: #DC2626;
  --red-soft: #FDECEC;
  --amber: #B45309;
  --amber-soft: #FEF3C7;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 14px -6px rgba(76, 29, 149, .12);
  --heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--page); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--heading); letter-spacing: -.02em; color: var(--ink); }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 16px; }

/* ------------------------------------------------------------------ top bar (socialcontinent.in) */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--topbar); box-shadow: 0 2px 6px rgba(76, 29, 149, .08); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.wordmark { font-family: var(--heading); font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--accent); text-decoration: none; }
.wordmark span { color: var(--deep); }
.topnav a { font-weight: 600; font-size: 14px; color: var(--deep); text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.topnav a.active { background: rgba(255, 255, 255, .7); }
@media (max-width: 520px) { .topnav { display: none; } }

/* ------------------------------------------------------------------ hero */
.hero {
  text-align: center;
  padding: 44px 0 22px;
  background: radial-gradient(60% 90% at 50% 0%, rgba(225, 216, 255, .75) 0%, rgba(252, 231, 243, .35) 45%, transparent 75%);
}
.hero h1 { font-size: clamp(30px, 5.5vw, 44px); font-weight: 800; line-height: 1.12; }
.accent { color: var(--accent); }
.hero-sub { max-width: 560px; margin: 12px auto 0; color: var(--ink-soft); font-size: 16px; }
.hero-meta { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 16px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13.5px; }
.hero-meta b { color: var(--deep); font-family: var(--heading); }

/* ------------------------------------------------------------------ toolbar: search, pill filters, company chips */
.toolbar { display: grid; gap: 12px; padding-top: 10px; }
.search input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 13px 18px 13px 46px;
  font-size: 15px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m17 17-4.5-4.5'/%3E%3C/svg%3E") no-repeat 18px 50%;
  box-shadow: var(--shadow);
}
.search input:focus { border-color: var(--primary); outline: none; }

.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.pill-select { position: relative; display: inline-flex; }
.pill-select select {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 34px 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  max-width: 220px;
  box-shadow: var(--shadow);
}
.pill-select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pill-select.active select { border-color: var(--primary); background: var(--chip); color: var(--chip-ink); }

.segmented { display: inline-flex; flex-wrap: wrap; background: var(--panel); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.segmented button { border: 0; background: none; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.segmented button em { font-style: normal; font-size: 12px; opacity: .7; margin-left: 2px; }
.segmented button.on { background: var(--primary); color: #fff; box-shadow: 0 2px 6px rgba(91, 55, 211, .35); }

.link-btn { border: 0; background: none; color: var(--primary); font-weight: 600; font-size: 14px; text-decoration: underline; }

.company-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.company-chips::-webkit-scrollbar { display: none; }
.company-chips button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  font-size: 14px;
  font-weight: 600;
}
.company-chips button img, .company-chips .mini-logo { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }
.company-chips .mini-logo { display: inline-grid; place-items: center; background: var(--chip); color: var(--chip-ink); font-size: 11px; font-weight: 800; }
.company-chips button.on { border-color: var(--primary); background: var(--chip); color: var(--chip-ink); }

/* ------------------------------------------------------------------ insights (socialcontinent.in stat panel) */
.insights { margin-top: 18px; }
.insights-panel { background: var(--panel); border-radius: var(--radius); padding: 18px; }
.insights-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
.insights-head h2 { font-size: 18px; font-weight: 800; }
.insights-head p { color: var(--muted); font-size: 13px; }
.insights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (min-width: 720px) { .insights-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--surface); border-radius: 12px; padding: 14px 10px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--heading); font-size: 24px; font-weight: 700; color: var(--deep); line-height: 1.15; }
.stat span { display: block; font-family: var(--heading); font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }

/* ------------------------------------------------------------------ cards (Exponent layout) */
.results { padding-top: 18px; padding-bottom: 40px; }
.list-head { font-weight: 600; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: #CFC4F7; box-shadow: 0 10px 28px -12px rgba(76, 29, 149, .28); }

.card-head { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.card-title { min-width: 0; }
.card-title b { display: block; font-family: var(--heading); font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.card-title span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.logo {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--chip-ink);
  font-family: var(--heading);
  font-weight: 800;
  overflow: hidden;
}
.logo img { width: 70%; height: 70%; object-fit: contain; }
.logo.lg { width: 60px; height: 60px; border-radius: 14px; font-size: 22px; }

.quote { position: relative; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; max-height: 6.4em; overflow: hidden; }
.quote::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.8em; background: linear-gradient(transparent, var(--surface)); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); background: #F4F4F6; border-radius: 999px; padding: 3px 10px; }
.tag.offer { background: var(--green-soft); color: #15803D; font-weight: 600; }
.tag.rejected { background: var(--red-soft); color: #B91C1C; font-weight: 600; }
.tag.pending { background: var(--amber-soft); color: var(--amber); font-weight: 600; }
.tag.verified { background: var(--chip); color: var(--chip-ink); font-weight: 600; }

.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
}
.card:hover .btn-outline { border-color: var(--primary); color: var(--primary); }
.more { width: auto; margin: 22px auto 0; padding: 12px 26px; border-radius: 999px; border-color: var(--primary); color: var(--primary); }

.empty { grid-column: 1 / -1; display: grid; gap: 4px; text-align: center; background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; color: var(--muted); }
.empty b { color: var(--ink); }

/* ------------------------------------------------------------------ detail page */
.detail-wrap { max-width: 900px; padding-top: 22px; padding-bottom: 48px; }
.back { display: inline-block; color: var(--muted); font-weight: 500; text-decoration: none; margin-bottom: 14px; }
.back:hover { color: var(--primary); }

.detail-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .detail-card { padding: 18px; } }
.detail-head { display: flex; gap: 14px; align-items: center; }
.detail-head h1 { font-size: clamp(20px, 3.4vw, 26px); font-weight: 700; line-height: 1.25; }
.detail-head p { color: var(--muted); margin-top: 2px; }

.detail-quote { margin-top: 22px; border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; font-size: 17px; font-style: italic; color: var(--ink-soft); line-height: 1.6; }

.detail-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
@media (min-width: 720px) { .detail-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dstat { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.dstat span { display: block; font-size: 12.5px; color: var(--muted); }
.dstat b { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 2px; }
.dstat b.offer { color: var(--green); }
.dstat b.rejected { color: var(--red); }
.dstat b.pending { color: var(--amber); }

.dstat .bars, .bars { display: inline-flex; flex-direction: row; align-items: flex-end; gap: 2px; height: 16px; margin: 0 0 0 4px; font-size: 0; color: inherit; }
.bars i { display: block; width: 4px; border-radius: 2px; background: #E4DDFB; }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 8px; } .bars i:nth-child(3) { height: 11px; } .bars i:nth-child(4) { height: 14px; } .bars i:nth-child(5) { height: 16px; }
.bars i.on { background: var(--primary); }

.detail-section { margin-top: 26px; }
.detail-section h2 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.detail-text { display: grid; gap: 12px; font-size: 16px; line-height: 1.75; color: var(--ink); }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .detail-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact { background: var(--panel); border-radius: 12px; padding: 10px 12px; }
.fact span { display: block; font-size: 12px; color: var(--muted); }
.fact b { font-weight: 600; }

.related { margin-top: 30px; }
.related h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.related .grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); padding: 24px 0 34px; color: var(--muted); font-size: 13px; text-align: center; background: var(--surface); }

/* ------------------------------------------------------------------ phones: compact, tidy filter area */
@media (max-width: 719px) {
  .hero { padding: 28px 0 14px; }
  .hero-sub { font-size: 15px; }
  .filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .filter-row .segmented { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 14px; }
  .filter-row .segmented button { padding: 7px 4px; font-size: 12.5px; border-radius: 11px; }
  .filter-row .segmented button em { display: block; margin: 0; font-size: 11px; }
  .filter-row .pill-select select { width: 100%; max-width: none; }
  .filter-row .link-btn { grid-column: 1 / -1; justify-self: start; }
  .card { padding: 18px; }
}

/* ------------------------------------------------------------------ loading placeholders */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.card.skeleton {
  min-height: 230px;
  background: linear-gradient(90deg, #F4F2FB 25%, #ECE8FA 37%, #F4F2FB 63%) 0 0 / 800px 100%;
  animation: shimmer 1.2s infinite linear;
  box-shadow: none;
}
.empty .btn-outline { width: auto; justify-self: center; margin-top: 10px; padding: 9px 22px; }

/* ------------------------------------------------------------------ round types (cards + detail) */
.rtypes { display: flex; flex-wrap: wrap; gap: 6px; }
.rtype { font-size: 12px; font-weight: 600; color: var(--chip-ink); background: var(--chip); border-radius: 6px; padding: 2px 8px; }
.rtype.more { background: none; color: var(--muted); }

/* ------------------------------------------------------------------ interview rounds timeline */
.loading-rounds { margin-top: 24px; padding: 16px; border-radius: 12px; background: var(--panel); color: var(--muted); text-align: center; }
.timeline { list-style: none; padding: 0; display: grid; gap: 0; }
.round { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
.round::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.round:last-child::before { display: none; }
.round-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-family: var(--heading);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 0 4px var(--panel);
}
.round-body { display: grid; gap: 8px; min-width: 0; padding-top: 4px; }
.round-body h3 { font-size: 17px; font-weight: 700; }
.round-overview { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

.questions { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 4px; }
.question details, .question .q-only { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.question summary, .question .q-only { padding: 12px 14px; font-size: 15px; line-height: 1.5; font-weight: 500; }
.question summary { cursor: pointer; list-style: none; padding-right: 40px; position: relative; }
.question summary::-webkit-details-marker { display: none; }
.question summary::after { content: "+"; position: absolute; right: 14px; top: 10px; font-size: 20px; color: var(--primary); font-weight: 600; }
.question details[open] summary::after { content: "–"; }
.question details[open] { border-color: #CFC4F7; box-shadow: var(--shadow); }
.question summary b, .question .q-only b { color: var(--accent); margin-right: 4px; }
.answer, .followups { margin: 0 14px 12px; padding: 12px 14px; background: var(--panel); border-radius: 10px; font-size: 14.5px; line-height: 1.65; display: grid; gap: 6px; }
.answer > span, .followups > span { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.followups ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* ------------------------------------------------------------------ embedded in Framer (?embed=1) */
.embedded .topbar, .embedded .footer { display: none; }
.embedded body { background: transparent; }
