/* ===== IPProf marketing site — Space Grotesk + IBM Plex, emerald accent (light) ===== */
:root {
  --ink: #15181d;
  --ink-2: #2c313a;
  --paper: #ffffff;
  --mist: #f6f7f5;
  --brand: #2b3a5c;
  --brand-dk: #1e2a43;
  --brand-tint: #eef2f7;
  --brand-line: #d4dde9;
  --muted: #5b6470;
  --line: #e6e8e4;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(21,24,29,.05);
  --shadow: 0 2px 4px rgba(21,24,29,.05), 0 16px 40px -24px rgba(21,24,29,.28);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1140px;
}
* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink-2); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1,h2,h3 { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.14; letter-spacing: -0.02em; margin: 0 0 .5rem; }
/* Base type scale — keeps bare headings (dashboards, account) from falling back to oversized UA defaults.
   Marketing surfaces (.hero h1, .section-head h2, .next-card h3 …) override these with their own sizes. */
h1 { font-size: clamp(1.4rem, 1.9vw, 1.65rem); }
h2 { font-size: clamp(1.15rem, 1.55vw, 1.35rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 500; color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-family: var(--font-body);
  font-weight: 600; font-size: .92rem; padding: .68rem 1.3rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: all .15s; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dk); border-color: var(--brand-dk); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--mist); border-color: var(--muted); color: var(--ink); }
.btn-ghostlight { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghostlight:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .inner { display: flex; align-items: center; min-height: 64px; gap: 1.5rem; }
.brand { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.2rem; letter-spacing: -0.02em; }
.brand .dot { color: var(--brand); }
.site-nav { display: flex; gap: .25rem; margin-left: .75rem; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: .92rem; padding: .4rem .75rem; border-radius: var(--radius-sm); }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.header-actions .login-link { color: var(--muted); font-weight: 500; font-size: .9rem; }
.header-actions .login-link:hover { color: var(--ink); }

/* Mobile nav (CSS-only disclosure) */
.nav-toggle { display: none; position: relative; margin-left: auto; }
.nav-toggle > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.nav-toggle > summary::-webkit-details-marker { display: none; }
.nav-toggle > summary:hover { background: var(--mist); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before { position: absolute; top: -7px; left: 0; }
.nav-toggle .bars::after { position: absolute; top: 7px; left: 0; }
.nav-toggle[open] .bars { background: transparent; }
.nav-toggle[open] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[open] .bars::after { transform: translateY(-7px) rotate(-45deg); }
.nav-panel { position: absolute; right: 0; top: calc(100% + .55rem); min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; display: flex; flex-direction: column; z-index: 60; }
.nav-panel a { color: var(--ink); font-weight: 500; font-size: .95rem; padding: .65rem .75rem; border-radius: var(--radius-sm); }
.nav-panel a:hover, .nav-panel a.active { background: var(--mist); color: var(--brand); }

/* Hero */
.hero { background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); border-bottom: 1px solid var(--line); padding: clamp(3rem,6vw,5rem) 0 clamp(3rem,6vw,4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.hero h1 { font-size: clamp(1.7rem,2.5vw,2.3rem); margin: .9rem 0 .6rem; }
.hero .ai-line { font-family: var(--font-display); font-size: clamp(1.05rem,1.35vw,1.25rem); font-weight: 500; color: var(--brand); margin: 0 0 1rem; }
.hero .lead { font-size: 1rem; color: var(--muted); max-width: 40ch; margin-bottom: 1.6rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Hero session card (the signature) */
.next-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.next-card .top { background: var(--brand); color: #fff; padding: .7rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.next-card .top .label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.next-card .top .live { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; }
.next-card .top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,255,255,.6);} 70%{box-shadow:0 0 0 7px rgba(255,255,255,0);} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0);} }
.next-card .body { padding: 1.4rem 1.5rem 1.5rem; }
.next-card .when { font-family: var(--font-mono); font-size: .82rem; color: var(--brand); letter-spacing: .02em; margin-bottom: .6rem; }
.next-card h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.next-card .by { color: var(--muted); font-size: .9rem; margin-bottom: 1.1rem; }
.next-card .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.next-card .fee { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.next-card.empty-card .body { text-align: center; color: var(--muted); }

/* Audience strip */
.audience { border-bottom: 1px solid var(--line); background: #fff; }
.audience .inner { padding: 1.1rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; }
.audience .lbl { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.audience .who { color: var(--ink); font-weight: 500; font-size: .92rem; }
.audience .sep { color: var(--line); }

/* Sections */
.section { padding: clamp(3rem,5.5vw,4.5rem) 0; }
.section.mist { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin: 0 0 2rem; }
.section-head h2 { font-size: clamp(1.3rem,1.8vw,1.6rem); }
.section-head p { color: var(--muted); margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.list-head { font-size: 1.05rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin: 0 0 1rem; }

/* Two offerings */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.offer { border-radius: var(--radius); padding: 1.9rem; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.offer.feature { background: var(--brand-tint); border-color: var(--brand-line); }
.offer .kicker { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: .7rem; }
.offer h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.offer p { color: var(--muted); flex: 1; }
.offer .btn { align-self: flex-start; margin-top: .5rem; }

/* Session cards */
.session-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.session-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow .18s, border-color .18s, transform .18s; }
.session-card:hover { box-shadow: var(--shadow); border-color: var(--brand-line); transform: translateY(-3px); }
.session-card .when { font-family: var(--font-mono); font-size: .76rem; color: var(--brand); letter-spacing: .02em; margin-bottom: .55rem; }
.session-card h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.session-card .desc { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; flex: 1; }
.session-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; }
.session-card .fee { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.session-card .conductor { font-size: .82rem; color: var(--muted); }
.session-card .stretched::after { content: ""; position: absolute; inset: 0; }

/* How it works (real sequence -> numbered) */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 2.4rem; }
.steps .n { position: absolute; top: 0; left: 0; font-family: var(--font-mono); font-size: .85rem; color: var(--brand); border: 1px solid var(--brand-line); border-radius: 999px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Value */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem 2.5rem; list-style: none; padding: 0; margin: 0; }
.values li { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.values h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.values p { color: var(--muted); font-size: .9rem; margin: 0; }

/* CTA band (the bold moment) */
.cta { background: var(--brand); color: #fff; border-radius: var(--radius); padding: clamp(2.25rem,4vw,3.25rem); text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.3rem,1.8vw,1.6rem); }
.cta p { color: rgba(255,255,255,.82); margin-bottom: 1.4rem; }
.cta .actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

/* Forms / panels / prose (registration, about, legal) */
.empty { max-width: 540px; text-align: center; margin: 1rem auto; color: var(--muted); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem; }
.prose { max-width: 720px; }
.prose p, .prose li { line-height: 1.8; color: var(--ink-2); }
.prose .lead { font-size: 1.1rem; color: var(--ink); }
.prose h2 { font-size: 1.3rem; margin: 1.8rem 0 .5rem; }
/* Inline content links must be distinguishable by more than colour (WCAG 1.4.1) — navy + underline. */
.prose p a, .prose li a, .empty a, .help a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose p a:hover, .prose li a:hover, .empty a:hover, .help a:hover { color: var(--brand-dk); }
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-weight: 500; color: var(--ink); margin-bottom: .3rem; font-size: .9rem; }
.form-row .req { color: var(--muted); }
.input, select.input, textarea.input { width: 100%; padding: .6rem .8rem; min-height: 44px; font-size: .95rem; font-family: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
textarea.input { min-height: 120px; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); outline: none; }
.input::placeholder { color: var(--muted); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-error { color: #b3261e; font-size: .85rem; margin-top: .25rem; }
.help { color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.alert { border-radius: var(--radius-sm); padding: .85rem 1.1rem; margin-bottom: 1.25rem; font-size: .92rem; }
.alert-success { background: #e9f1ed; color: #114e3c; border: 1px solid #cfe2d9; }
.alert-error { background: #fbeae9; color: #b3261e; border: 1px solid #f1cfcc; }
.badge { display: inline-block; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; padding: .15rem .6rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand-dk); }
.badge-soft { background: var(--brand-tint); color: var(--brand-dk); }
.badge-confirmed { background: #e9f1ed; color: #114e3c; }
.badge-pending { background: #fbf4e6; color: #8a5a12; }
.badge-cancelled { background: var(--mist); color: var(--muted); }

/* ===== Member area (account) — welcome + context dashboard ===== */
.welcome { margin-bottom: 1.75rem; }
.welcome h1 { font-size: clamp(1.45rem, 2vw, 1.7rem); margin-bottom: .3rem; }
.welcome .sub { color: var(--muted); font-size: .98rem; margin: 0; }
.acct-meta { display: flex; flex-wrap: wrap; gap: .5rem .65rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.acct-meta li { display: inline-flex; align-items: baseline; gap: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-size: .82rem; }
.acct-meta .k { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; color: var(--muted); }
.acct-meta .v { color: var(--ink); font-weight: 500; }
.acct-section { margin-top: 2rem; }
.acct-section > h2 { font-size: 1.15rem; margin-bottom: .9rem; }

/* Next-session highlight */
.next-up { background: var(--brand-tint); border: 1px solid var(--brand-line); border-radius: var(--radius); padding: 1.4rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; }
.next-up .kicker { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; color: var(--brand); margin-bottom: .4rem; }
.next-up h2 { font-size: 1.2rem; margin-bottom: .3rem; }
.next-up .when { font-family: var(--font-mono); font-size: .84rem; color: var(--brand-dk); }
.next-up .pending-note { font-size: .85rem; color: var(--muted); max-width: 30ch; }

/* Account session rows */
.acct-list { display: flex; flex-direction: column; gap: .75rem; }
.acct-row { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.1rem 1.35rem; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: space-between; }
.acct-row .when { font-family: var(--font-mono); font-size: .78rem; color: var(--brand); margin-bottom: .25rem; }
.acct-row h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.acct-row .row-meta { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.acct-row .materials { width: 100%; border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .7rem; }
.acct-row .materials .lbl { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; color: var(--muted); margin-bottom: .35rem; }
.acct-row .materials ul { margin: 0; padding-left: 1.1rem; }
.acct-row .materials li { font-size: .9rem; margin-bottom: .2rem; }

/* Footer */
.site-footer { background: var(--ink); color: #aab0b8; padding: 3.25rem 0 1.5rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.7fr 1fr 1.3fr; gap: 2rem; }
.site-footer h2 { color: #7e858e; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem; }
.site-footer a { color: #d3d7dc; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; font-size: .92rem; }
.site-footer .brandname { font-family: var(--font-display); color: #fff; font-weight: 700; font-size: 1.15rem; }
.site-footer .brandname .dot { color: #8aa3cc; }
.site-footer .tag { color: #7e858e; font-size: .85rem; margin-top: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; color: #7e858e; font-size: .82rem; }

/* Member area (account) */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-head h1 { margin: 0; }

/* Auth (login) split */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.04fr .96fr; }
.auth-brand { position: relative; overflow: hidden; background: var(--brand); color: #fff; display: flex; padding: clamp(2.5rem,4vw,4rem); }
.auth-brand .bg { position: absolute; inset: -12%; background: radial-gradient(44% 44% at 24% 30%, rgba(255,255,255,.10), transparent 60%), radial-gradient(40% 40% at 82% 72%, rgba(255,255,255,.07), transparent 60%); animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { 0%{transform:translate3d(0,0,0) scale(1);} 50%{transform:translate3d(3%,2%,0) scale(1.08);} 100%{transform:translate3d(-2.5%,4%,0) scale(1.05);} }
.auth-brand .inner { position: relative; z-index: 1; max-width: 440px; margin: auto 0; display: flex; flex-direction: column; height: 100%; }
.auth-brand .mark { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; }
.auth-brand .pitch { margin: auto 0; }
.auth-brand .pitch h2 { color: #fff; font-size: clamp(1.3rem,1.7vw,1.6rem); }
.auth-brand .pitch p { color: rgba(255,255,255,.8); }
.auth-brand .tagline { font-family: var(--font-mono); color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--paper); }
.auth-card { width: 100%; max-width: 380px; }

@media (max-width: 991.98px) {
  .hero-grid { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; }
  .session-grid { grid-template-columns: 1fr; }
  .steps, .values { grid-template-columns: 1fr; gap: 1.25rem; }
  .values li { border-top: 1px solid var(--line); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .header-actions { display: none; }
  .nav-toggle { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
