/* RoleDoctor marketing site — mobile-first stylesheet.
   Base rules target small screens; min-width media queries add the desktop layout. */

:root {
  --ink: #1f1a2e;
  --body: #4f4a5e;
  --muted: #6e6880;
  --brand: #2a2140;
  --brand-line: #3d3358;
  --brand-muted: #b8b0cc;
  --cta: #ffb27a;
  --cta-hover: #ff9f5c;
  --tint: #f4f1fe;
  --soft: #faf8f6;
  --line: #ece8f0;
  --line-strong: #e6e0f2;
  --input-line: #cfc8d9;
  --accent: #5536c9;
  --green: #2f8a5f;
  --green-bg: #ecf7f0;
  --green-dot: #3e9a6e;
  --orange: #9a4a16;
  --orange-bg: #fff1e7;
  --orange-soft: #fff6ef;
  --orange-line: #ffe0ca;
  --highlight: #ffe7a8;
  --white: #ffffff;

  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --container: 1240px;
  --gutter: 20px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 24px 60px -16px rgba(31, 26, 46, 0.22);
  --shadow-float: 0 12px 30px rgba(31, 26, 46, 0.12);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 1040px; }
.container--text { max-width: 800px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn--cta { background: var(--cta); color: var(--ink); }
.btn--cta:hover { background: var(--cta-hover); }
.btn--outline { border-color: var(--ink); background: var(--white); color: var(--ink); font-weight: 500; }
.btn--outline:hover { background: var(--soft); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 18px; }
.btn--block { display: flex; width: 100%; min-height: 52px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.site-header .btn { padding: 0 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; padding: 8px 0; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo span { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }

@media (min-width: 768px) {
  .site-header__inner { min-height: 68px; }
  .site-header__actions { gap: 10px; }
  .site-header .btn { padding: 0 20px; }
  .logo span { font-size: 21px; }
}

/* ---------- Shared type ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.section-title { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.12; font-weight: 800; letter-spacing: -0.035em; }
.lead { font-size: clamp(17px, 1.3vw, 19px); color: var(--body); }
.section { padding-block: clamp(56px, 7vw, 104px); }
.text-center { text-align: center; }
.mark { background: var(--highlight); color: var(--ink); padding: 0 3px; border-radius: 4px; }

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill--shown { background: var(--green-bg); color: var(--green); }
.pill--improve { background: var(--orange-bg); color: var(--orange); }
.pill--neutral { background: #f5f3f7; color: var(--body); font-weight: 600; }
.pill--white { background: var(--white); color: var(--body); }
.pill--dashed { background: var(--white); color: var(--body); border: 1px dashed var(--input-line); }
.pill--draft { background: var(--orange-bg); color: var(--orange); font-size: 13px; }

/* ---------- Hero ---------- */
.hero { background: var(--tint); }
.hero__inner { display: grid; gap: 44px; padding-block: 40px 56px; }
.hero__title { font-size: clamp(42px, 5vw, 72px); line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__copy .btn { align-self: flex-start; }

.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list strong { display: block; font-size: 18px; line-height: 1.35; }
.feature-list li > div { min-width: 0; }
.feature-list li > div > span { display: block; color: var(--body); line-height: 1.45; }
.icon-tile {
  flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.icon-tile svg { width: 22px; height: 22px; }

.collage { position: relative; min-width: 0; }
.hero__inner > *, .pricing > *, .in-action > *, .bento > * { min-width: 0; }
.collage__float { display: none; }

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 56px; padding-block: 88px; }
  .collage { padding-top: 150px; }
  .collage__float {
    display: flex; flex-direction: column; gap: 10px;
    position: absolute; z-index: 2; background: var(--white); border: 1px solid var(--line-strong);
    border-radius: var(--radius); box-shadow: var(--shadow-float); padding: 16px;
  }
  .collage__float--left { top: 0; left: 0; width: 220px; transform: rotate(-4deg); }
  .collage__float--right { top: 18px; right: 0; width: 250px; transform: rotate(3deg); }
}

.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.tiles span { height: 22px; border-radius: 6px; }
.tile--shown { background: var(--green-dot); }
.tile--improve { background: var(--cta); }
.tile--none { border: 2px dashed var(--input-line); }
.small { font-size: 13px; }
.tiny { font-size: 12px; color: var(--muted); }
.label-accent { font-size: 12px; font-weight: 700; color: var(--accent); }

/* ---------- Report card (product preview) ---------- */
.report-card {
  position: relative; z-index: 1; background: var(--white); border: 1px solid var(--line-strong);
  border-radius: 18px; box-shadow: var(--shadow-card); overflow: hidden;
}
.report-card__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.report-card__head strong { font-size: 15px; }
.report-card__head span { font-size: 13px; color: var(--muted); }
.report-card__body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; font-size: 15px; }
.finding { display: flex; gap: 10px; align-items: flex-start; }
.finding svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }
.finding strong { display: block; font-weight: 600; line-height: 1.45; }
.finding q, .finding span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.improve {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px;
  background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: 12px;
}
.improve .pill { background: var(--white); }
.improve .pill--improve { color: var(--orange); }
.improve__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.improve strong { font-weight: 600; }
.improve p { color: var(--body); font-size: 14px; }

/* ---------- In action ---------- */
.in-action { display: flex; flex-direction: column; gap: 36px; }
.two-col { display: grid; gap: 16px; font-size: clamp(17px, 1.3vw, 19px); }
.two-col > div { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; gap: 20px 56px; } }

.video {
  aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius-lg); background: var(--brand); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px;
}
.video__play {
  width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--cta); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.video__play svg { width: 26px; height: 26px; }
.video__title { font-size: clamp(22px, 2.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.video__note { font-size: 14px; color: #c9c2db; }
@media (min-width: 768px) { .video__play { width: 76px; height: 76px; } }

/* ---------- Dark bento band ---------- */
.band { background: var(--brand); color: var(--white); }
.band__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.band__head .section-title { font-size: clamp(34px, 3.6vw, 52px); }
.band__head p { color: #d9d3e8; font-size: clamp(17px, 1.3vw, 19px); }
.bento { display: grid; gap: 16px; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bento-card {
  background: var(--tint); color: var(--ink); border-radius: var(--radius-lg); padding: 26px;
  display: flex; flex-direction: column; gap: 18px; min-height: 260px;
}
.bento-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.mini { background: var(--white); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.mini-stack { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.mini-list { background: var(--white); border-radius: 12px; padding: 4px 14px; font-size: 14px; }
.mini-list > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #f3f0f5; }
.mini-list > div:last-child { border-bottom: 0; }
.mini-row { display: flex; justify-content: space-between; gap: 8px; }
.mini-row strong { font-weight: 600; }
.mini-row span { color: var(--body); }
.strike { color: var(--muted); text-decoration: line-through; }
.mini--accent { border: 2px solid var(--cta); }
.tick { color: var(--green); font-weight: 700; }
.no { color: var(--muted); font-weight: 600; }
.pill-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-cloud .pill { font-size: 13px; padding: 6px 12px; }

/* ---------- Pricing table ---------- */
.pricing { display: flex; flex-direction: column; gap: 36px; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.price-table th, .price-table td { text-align: center; }
.price-table th:first-child, .price-table td:first-child { text-align: left; padding: 16px 16px 16px 0; font-weight: 600; }
.price-table thead th:first-child { vertical-align: bottom; font-size: 20px; font-weight: 800; color: var(--brand); }
.price-table tbody th, .price-table tbody td { border-top: 1px solid var(--line); font-weight: inherit; }
.price-table tbody th { font-weight: 600; }
.price-table tbody tr:last-child td { border-top: 0; }
.plan { width: 30%; padding: 22px 12px; }
.plan strong { display: block; font-size: 20px; font-weight: 800; }
.plan span { display: block; font-size: 15px; color: var(--body); font-weight: 500; }
.col-basic { background: var(--soft); }
.col-featured { border-left: 2px solid var(--brand); border-right: 2px solid var(--brand); }
thead .col-basic { border-radius: 16px 16px 0 0; }
thead .col-featured { border-top: 2px solid var(--brand); border-radius: 16px 16px 0 0; }
tbody tr:last-child .col-basic { border-radius: 0 0 16px 16px; }
tbody tr:last-child .col-featured { border-bottom: 2px solid var(--brand); border-radius: 0 0 16px 16px; }
.price-table .cta-row td { padding: 20px 12px 24px; }
.check {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--cta);
  align-items: center; justify-content: center;
}
.check svg { width: 14px; height: 14px; }
.dash { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand); color: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-block: 56px 24px; font-size: 15px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.site-footer h2 { font-size: 15px; font-weight: 600; color: var(--brand-muted); margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; }
.site-footer a { display: inline-block; padding: 6px 0; text-decoration: none; color: var(--white); }
.site-footer a:hover { text-decoration: underline; }
.site-footer li > span { display: inline-block; padding: 6px 0; overflow-wrap: anywhere; }
.site-footer__legal { border-top: 1px solid var(--brand-line); padding-block: 20px; font-size: 14px; color: var(--brand-muted); }

/* ---------- Auth pages ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-main { flex: 1 1 auto; width: 100%; max-width: 440px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) var(--gutter); display: flex; flex-direction: column; gap: 24px; }
.auth-main h1 { font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
.auth-main .intro { display: flex; flex-direction: column; gap: 6px; }
.auth-main .intro p { color: var(--body); }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field__label { font-weight: 600; font-size: 15px; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field__hint { font-size: 14px; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--input-line); border-radius: 12px;
  background: var(--white); font-size: 16px; color: var(--ink);
}
.input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 78px; }
.input-wrap button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--tint);
  font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer;
}
.text-link { font-size: 14px; font-weight: 600; color: var(--accent); padding: 6px 0; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.check-label { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; font-size: 14px; color: var(--body); cursor: pointer; }
.check-label input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check-label a { color: var(--ink); font-weight: 600; }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.privacy-note svg { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.form-message { font-size: 14px; color: var(--body); background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.next-steps { list-style: none; padding: 18px 0 0; margin: 8px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--body); }
.next-steps li { display: flex; gap: 12px; align-items: center; }
.step-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--accent); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.sent-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--green-bg); display: flex; align-items: center; justify-content: center; }
.sent-icon svg { width: 26px; height: 26px; }
.link-button { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 15px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.auth-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; padding: 20px; font-size: 14px; }
.auth-footer a { color: var(--muted); padding: 10px 0; }

/* ---------- FAQ ---------- */
.page-intro { display: flex; flex-direction: column; gap: 12px; }
.page-intro h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.page-intro p { color: var(--body); font-size: clamp(17px, 1.4vw, 19px); }
.faq { display: flex; flex-direction: column; gap: 40px; padding-block: clamp(40px, 6vw, 88px) 24px; }
.topic-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.topic-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #f5f3f7; text-decoration: none; font-weight: 600; font-size: 15px; }
.topic-nav a:hover { background: var(--tint); }
.faq-group { scroll-margin-top: 88px; }
.faq-group h2 { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 18px; }
.faq-trigger {
  width: 100%; min-height: 64px; padding: 18px 0; border: 0; background: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  font-size: 18px; font-weight: 700; line-height: 1.4;
}
.faq-trigger svg { flex: none; width: 20px; height: 20px; }
.faq-trigger .icon-minus { display: none; }
.faq-trigger[aria-expanded="true"] .icon-minus { display: block; }
.faq-trigger[aria-expanded="true"] .icon-plus { display: none; }
.faq-panel { padding: 0 36px 22px 0; color: var(--body); line-height: 1.7; }
.help-card { background: var(--soft); border-radius: var(--radius-lg); padding: 32px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.help-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.help-card p { color: var(--body); }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; gap: 40px; }
.legal__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; color: var(--muted); }
.legal__layout { display: grid; gap: 32px; }
.toc { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.toc h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.toc ol { list-style: none; padding: 0; }
.toc a { display: block; padding: 8px 0; text-decoration: none; font-weight: 500; font-size: 15px; }
.toc a:hover { color: var(--accent); }
.prose { display: flex; flex-direction: column; gap: 40px; max-width: 720px; min-width: 0; }
.prose section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 88px; }
.prose h2 { font-size: clamp(22px, 1.8vw, 26px); line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; }
.prose h3 { font-size: 18px; font-weight: 700; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.summary { background: var(--soft); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.summary p { color: var(--body); }
.notice { background: var(--orange-bg); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 12px; }
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 5px; }
.notice p { color: var(--ink); }
.prose .contact { padding-top: 28px; border-top: 1px solid var(--line); gap: 8px; }
.prose .contact .address { color: var(--muted); font-size: 15px; }
.btn--plain { align-self: flex-start; border-color: var(--ink); background: var(--white); color: var(--ink); min-height: 48px; }

@media (min-width: 1024px) {
  .legal__layout { grid-template-columns: 260px minmax(0, 1fr); gap: 72px; align-items: start; }
  .toc { position: sticky; top: 92px; }
}
