/* RefreshMe — shared site styling.
 *
 * One stylesheet for every page outside index.html, using the homepage's
 * light/purple system. Before this, index/about/campus were light-purple while
 * help, safety-center, terms, privacy, protection and 404 were dark-gold: two
 * design systems on one domain, and a customer who tapped "Help" from the
 * homepage landed somewhere that looked like a different company.
 *
 * Tokens are copied from index.html verbatim. When the homepage palette
 * changes, change it here too — or better, move index.html onto this file.
 *
 * Deliberately supports BOTH class vocabularies the old pages used, so a page
 * converts by swapping its <style> block for a <link> to this file and nothing
 * else. Content and markup stay untouched, which matters most for terms.html
 * and privacy.html, where the text is legal and must not be reflowed by hand.
 */

:root {
  --ink: #171225;
  --muted: #686174;
  --purple: #6c35d4;
  --purple-dark: #4c1da7;
  --lavender: #f3edff;
  --line: #e9e3f1;
  --white: #fff;
  --green: #1e9b69;
  --shadow: 0 18px 45px rgba(69, 36, 115, .12);

  /* Aliases so markup written against the old dark theme keeps working. */
  --gold: var(--purple);
  --gold-light: var(--purple-dark);
  --bg: var(--white);
  --surface: var(--white);
  --surface2: var(--lavender);
  --text: var(--ink);
  --text-muted: var(--muted);
  --border: var(--line);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

/* ── Header ─────────────────────────────────────────────────────────────── */
header, .header, .site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(233, 227, 241, .85);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}
.header-logo, .brand, .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--purple);
  text-decoration: none;
  letter-spacing: -.02em;
}
.header-logo span, .brand span, .logo span { color: var(--ink); }
.brand img, .logo img { width: 38px; height: 38px; border-radius: 11px; }
.header-badge, .badge {
  margin-left: auto;
  padding: 6px 13px;
  border: 1px solid #dfcffd;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--purple-dark);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 56px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 15%, rgba(187, 153, 255, .42), transparent 26rem),
    radial-gradient(circle at 8% 85%, rgba(235, 214, 255, .7), transparent 24rem),
    linear-gradient(145deg, #fff 0%, #faf7ff 58%, #f1e9ff 100%);
}
.hero-icon {
  display: grid;
  place-items: center;
  width: 74px; height: 74px;
  margin: 0 auto 20px;
  border: 1px solid #dfcffd;
  border-radius: 22px;
  background: rgba(255, 255, 255, .85);
  box-shadow: var(--shadow);
  font-size: 32px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--ink);
}
.hero p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
}
.updated { display: inline-block; margin-top: 14px; color: var(--muted); font-size: .86rem; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 64px;
}
.section-title {
  margin: 36px 0 14px;
  color: var(--purple);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section { margin-bottom: 30px; }
.section h2 {
  font-size: 1.22rem;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.section-number {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--purple-dark);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(69, 36, 115, .05);
}
.card-icon, .icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--lavender);
  font-size: 18px;
}
.card h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 800; line-height: 1.4; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Plain block card — no icon child, so it must NOT inherit .card's flex row. */
.right-card {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--lavender);
}
.right-card h4 { margin: 0 0 5px; color: var(--purple-dark); font-size: .92rem; font-weight: 800; }
.right-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.lede, .highlight-box, .guarantee-banner {
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid #dfcffd;
  border-left: 3px solid var(--purple);
  border-radius: 16px;
  background: var(--lavender);
  color: var(--ink);
  font-size: 1rem;
}
.lede strong, .highlight-box strong { color: var(--purple-dark); }
.warning-box {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid #f3dca8;
  border-left: 3px solid #d99a12;
  border-radius: 16px;
  background: #fff9ec;
}

/* ── Timeline (protection page) ─────────────────────────────────────────── */
.timeline { margin: 8px 0 8px 8px; padding-left: 24px; border-left: 2px solid var(--line); }
.step { position: relative; padding-bottom: 22px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: -31px; top: 7px;
  width: 12px; height: 12px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 2px rgba(108, 53, 212, .25);
}
.step h4 { margin: 0 0 3px; font-size: .97rem; font-weight: 800; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ── FAQ accordion ──────────────────────────────────────────────────────── */
.faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
  font-size: .98rem;
  font-weight: 750;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.faq-question::after {
  content: "+";
  flex-shrink: 0;
  margin-left: 12px;
  color: var(--purple);
  font-size: 22px;
  font-weight: 300;
  transition: transform .2s;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .94rem;
}
.faq-item.open .faq-answer { display: block; }
.faq-answer a { color: var(--purple); font-weight: 700; }

/* ── Buttons & CTAs ─────────────────────────────────────────────────────── */
.button, .btn, .email-link, .report-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--purple);
  border-radius: 14px;
  font-weight: 850;
  text-decoration: none;
}
.button.primary, .btn-gold, .email-link {
  color: var(--white);
  background: var(--purple);
  box-shadow: 0 12px 24px rgba(108, 53, 212, .24);
}
.button.secondary, .btn-outline {
  color: var(--purple-dark);
  background: var(--white);
}
.button:hover, .btn:hover, .email-link:hover { opacity: .9; }

.contact-box, .report-cta {
  margin-top: 32px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--lavender);
  text-align: center;
}
.contact-box h2 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; }
.contact-box p { margin: 0 0 6px; color: var(--muted); font-size: .95rem; }
.contact-box .email-link { margin-top: 14px; }

.tips-list { margin: 0; padding-left: 20px; color: var(--muted); }
.tips-list li { margin-bottom: 8px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer, footer {
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
}
.footer a, footer a, .footer-links a { color: var(--purple); text-decoration: none; font-weight: 700; }
.footer a:hover, footer a:hover { text-decoration: underline; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ── 404 ────────────────────────────────────────────────────────────────── */
/* This page styles a bare <a> and relies on body-level centering, so both are
   scoped to a body class rather than leaking onto every other page. */
body.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 22px;
  text-align: center;
}
body.notfound .logo { font-size: 1.45rem; margin-bottom: 26px; }
body.notfound h1 { margin: 10px 0 6px; font-size: 1.4rem; letter-spacing: -.02em; }
body.notfound p { margin: 0 0 26px; color: var(--muted); }
body.notfound a {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 14px;
  background: var(--purple);
  color: var(--white);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(108, 53, 212, .24);
}
body.notfound a:hover { opacity: .9; }
.code {
  font-size: clamp(3.4rem, 12vw, 6rem);
  font-weight: 850;
  letter-spacing: -.06em;
  color: var(--purple);
  line-height: 1;
}


/* ── Standalone panel pages ───────────────────────────────────────────────
 * invite, stripe-connect, connect-return, connect-refresh, stylist-profile:
 * one centred card on an otherwise empty page. These pages reuse the names
 * .card, .icon, .btn and .step for DIFFERENT things than the document pages
 * above (.card there is an icon-beside-text row; .step there is a timeline
 * entry with a dot). So every rule below is scoped to body.panel, and nothing
 * leaks in either direction. */
body.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  text-align: center;
  background:
    radial-gradient(circle at 84% 12%, rgba(187, 153, 255, .38), transparent 26rem),
    radial-gradient(circle at 8% 88%, rgba(235, 214, 255, .6), transparent 24rem),
    linear-gradient(145deg, #fff 0%, #faf7ff 58%, #f1e9ff 100%);
}
body.panel .logo { display: block; margin-bottom: 6px; font-size: 1.85rem; font-weight: 850; letter-spacing: -.03em; }
body.panel .subtitle { margin-bottom: 30px; color: var(--muted); font-size: .9rem; }
body.panel .card {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 22px 0 0;
  padding: 34px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
body.panel .icon {
  display: block;
  width: auto; height: auto;
  margin: 0 0 16px;
  border-radius: 0;
  background: none;
  font-size: 52px;
}
body.panel h1 { margin: 0 0 10px; font-size: 1.45rem; font-weight: 850; letter-spacing: -.02em; }
body.panel .card p { margin: 0 0 24px; color: var(--muted); font-size: .96rem; }
body.panel .btn, body.panel .btn-outline {
  display: block;
  width: 100%;
  min-height: 0;
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 850;
  text-decoration: none;
}
body.panel .btn {
  border: 1px solid var(--purple);
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(108, 53, 212, .24);
}
body.panel .btn-outline {
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--purple-dark);
  font-size: .94rem;
  box-shadow: none;
}
body.panel .btn:hover, body.panel .btn-outline:hover { opacity: .9; }
body.panel .card .note { margin: 16px 0 0; color: var(--muted); font-size: .78rem; }
body.panel .card .note a { color: var(--purple); font-weight: 700; text-decoration: none; }

/* stripe-connect steps — .step::before must be cancelled or the protection
   page's timeline dot floats beside every numbered step. */
body.panel .steps { margin-bottom: 24px; padding: 18px; border-radius: 14px; background: var(--lavender); text-align: left; }
body.panel .step { position: static; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 13px; padding-bottom: 0; }
body.panel .step:last-child { margin-bottom: 0; }
body.panel .step::before { content: none; }
body.panel .step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: .8rem;
  font-weight: 850;
}
body.panel .step-text { color: var(--ink); font-size: .88rem; line-height: 1.5; }

/* invite perks */
body.panel .perks { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; text-align: left; }
body.panel .perk { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 13px; background: var(--lavender); }
body.panel .perk-icon { font-size: 22px; }
body.panel .perk-text { font-size: .88rem; line-height: 1.45; }
body.panel .perk-text strong { color: var(--purple-dark); }
body.panel .card .tagline { margin: 0 0 26px; color: var(--muted); font-size: .96rem; line-height: 1.6; }

/* stylist-profile */
body.panel .avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px; height: 90px;
  margin: 0 auto 16px;
  border: 2px solid var(--purple);
  border-radius: 50%;
  background: var(--lavender);
  font-size: 36px;
}
body.panel #stylist-name { margin-bottom: 6px; font-size: 1.35rem; font-weight: 850; }
body.panel #stylist-specialty { margin-bottom: 20px; color: var(--purple); font-size: .88rem; font-weight: 700; }
body.panel .card .loading { margin: 0 0 24px; color: var(--muted); font-size: .95rem; }

/* ── Plain legal document (stylist-agreement) ───────────────────────────── */
body.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 22px 80px;
  color: var(--ink);
}
body.legal h1 { margin: 0 0 4px; font-size: 1.6rem; letter-spacing: -.02em; }
body.legal .ver { margin-bottom: 28px; color: var(--muted); font-size: .82rem; }
body.legal ol { padding-left: 20px; }
body.legal li { margin: 16px 0; }
body.legal li b { display: block; margin-bottom: 2px; color: var(--purple-dark); }
body.legal a { color: var(--purple); font-weight: 600; }
body.legal footer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  text-align: left;
}
