@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --ink: #142136;
  --muted: #4c5c72;
  --blue: #194cbb;
  --deep-blue: #163d9e;
  --paper: #fff;
  --pale: #eaf0fa;
  --line: #ccd5e1;
  --white: #fff;
  --sans: 'Source Sans 3', Arial, sans-serif;
  --display: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 8px 14px; color: white; background: var(--deep-blue); transform: translateY(-160%); }
.skip:focus { transform: none; }
.wrap { width: min(1220px, calc(100% - 96px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 19px/1.2 var(--display); letter-spacing: -.035em; white-space: nowrap; }
.brand i { position: relative; width: 29px; height: 29px; background: var(--blue); flex: none; }
.brand i::before, .brand i::after { content: ''; position: absolute; width: 4px; height: 17px; top: 6px; background: white; transform: skew(-25deg); }
.brand i::before { left: 9px; }
.brand i::after { left: 16px; }
.nav nav { display: flex; gap: 32px; align-items: center; }
.nav nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.nav nav a:hover, .nav nav a:focus-visible { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 9px 17px; min-height: 44px; border: 1px solid transparent; border-radius: 3px; font-size: 16px; line-height: 1.3; font-weight: 700; transition: background-color .15s, color .15s; }
.primary { background: var(--blue); color: var(--white); }
.primary:hover { background: var(--deep-blue); }
.outline { background: transparent; color: var(--ink); border-color: var(--line); }
.outline:hover { background: var(--pale); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* Product presentation */
.hero { background: #f5f6f8; overflow: hidden; }
.hero-grid { display: flex; flex-direction: column; align-items: center; gap: 38px; padding-block: clamp(44px, 5vw, 72px); }
.hero-copy { text-align: center; }
.hero h1, h2, .workspace h1, .auth h1 { font-family: var(--display); font-weight: 750; letter-spacing: -.052em; line-height: 1.06; }
.hero h1 { font-size: clamp(39px, 7vw, 86px); margin: 0 0 12px; }
.hero p { color: var(--ink); font-size: clamp(19px, 2.7vw, 29px); max-width: 36ch; margin: 0 auto 18px; line-height: 1.25; }
.hero .actions { justify-content: center; }
.hero .btn { border-radius: 32px; font-weight: 600; }
.hero .outline { color: var(--blue); border-color: currentColor; }
.product { width: min(100%, 870px); background: white; border: 7px solid #182133; border-radius: 23px; overflow: hidden; box-shadow: 0 22px 40px #1421361f; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.product-top .brand { color: var(--ink); font-size: 15px; }
.product-top .brand i { transform: scale(.72); margin-right: -4px; }
.product-body { display: grid; grid-template-columns: 160px minmax(0, 1fr); }
.product-side { display: flex; flex-direction: column; gap: 9px; padding: 15px 11px; color: var(--muted); background: #f5f7fb; border-right: 1px solid var(--line); font-size: 15px; }
.product-side span, .product-side b { padding: 5px 9px; }
.product-side b { background: var(--pale); color: var(--deep-blue); border-radius: 5px; }
.agenda { min-width: 0; padding: 18px clamp(15px, 3vw, 33px) 12px; background: white; color: var(--ink); }
.agenda-top { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: 14px; }
.agenda h2 { font-size: clamp(23px, 3.4vw, 36px); margin: 8px 0 15px; }
.week { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.week button { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; border: 1px solid var(--line); border-radius: 7px; background: #f5f7fb; color: var(--ink); padding: 7px 10px; min-height: 44px; text-align: left; }
.week button:hover { border-color: var(--blue); }
.week button[aria-pressed=true] { background: var(--blue); color: white; border-color: var(--blue); }
.week b { font: 700 clamp(16px, 2.3vw, 23px)/1.15 var(--display); font-variant-numeric: tabular-nums; }
.agenda-session { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding-block: 12px; margin-top: 8px; border-bottom: 1px solid var(--line); }
.agenda-session time { font-variant-numeric: tabular-nums; }
.agenda-session strong, .agenda-session small { display: block; }
.agenda-session small { color: var(--muted); font-size: 15px; }
.agenda-link { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; color: var(--blue); font-weight: 650; }
.agenda-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.section { padding-block: clamp(38px, 5vw, 68px); }
h2 { margin: 0 0 18px; font-size: clamp(31px, 4vw, 53px); }
h3 { margin: 0 0 7px; font-size: 22px; line-height: 1.2; }
.section p { color: var(--muted); margin: 0; }
.feature-section { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 32px; border-top: 1px solid var(--line); }
.feature-list { margin: 0; border-top: 1px solid var(--line); }
.feature-list div { display: grid; grid-template-columns: minmax(135px, .7fr) 1fr; gap: 12px 22px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feature-list dt { color: var(--blue); font-weight: 700; }
.feature-list dd { margin: 0; color: var(--muted); }
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.audience article { min-width: 0; min-height: 326px; text-align: center; padding: clamp(27px, 4vw, 46px) 16px 25px; }
.audience article h2 { margin-bottom: 8px; }
.audience article p { margin: 0 auto; max-width: 37ch; line-height: 1.32; font-size: 19px; }
.audience article a { display: inline-flex; gap: 5px; align-items: center; min-height: 44px; font-weight: 650; }
.audience article a:hover { text-decoration: underline; text-underline-offset: 4px; }
.audience-club { background: #eaf1fc; }
.audience-club a { color: var(--blue); }
.audience-member { background: #142a50; color: white; }
.audience-member a { color: #c0daff; }
.sample { width: min(100%, 330px); margin: 10px auto 0; text-align: left; padding: 11px 15px; border-radius: 10px; background: white; color: var(--ink); font-size: 16px; }
.sample-list div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.sample-list div + div { border-top: 1px solid var(--line); }
.sample-list b { color: var(--deep-blue); font-weight: 650; }
.sample-booking > * { display: block; }
.sample-booking small, .sample-booking span { color: var(--muted); }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
footer { border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; padding-block: 26px 34px; }
.foot p, .foot small { color: var(--muted); font-size: 15px; margin: 0; }
.foot small { display: block; margin-top: 10px; }

#app { background: var(--pale); min-height: calc(100vh - 76px); }
.workspace { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 25px; padding-block: 29px 52px; }
.sidebar { align-self: start; display: grid; gap: 4px; padding: 8px; background: var(--white); border: 1px solid var(--line); }
.sidebar a, .sidebar button[data-api-action] { padding: 9px 10px; min-height: 44px; display: flex; align-items: center; justify-content: flex-start; border: 0; font-size: 16px; white-space: nowrap; }
.sidebar [aria-current=page] { background: var(--pale); color: var(--deep-blue); font-weight: 700; }
.sidebar a:hover { background: var(--pale); }
.workspace h1, .auth h1 { font-size: clamp(29px, 4vw, 46px); margin: 0 0 10px; }
.workspace p, .auth p, .muted { color: var(--muted); }
.title-row, .toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.toolbar { justify-content: flex-start; }
.kicker { font-size: 13px; letter-spacing: .08em; color: var(--deep-blue); font-weight: 750; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-block: 14px; }
.metric, .panel { padding: 18px; border: 1px solid var(--line); background: white; }
.metric strong { display: block; color: var(--deep-blue); font: 700 clamp(22px, 4vw, 38px)/1.2 var(--display); font-variant-numeric: tabular-nums; }
.metric span, .muted { font-size: 15px; }
.panel { margin-block: 12px; }
#api-panel > .btn { margin-bottom: 12px; }
.scroll { overflow: auto; }
.auth { width: min(calc(100% - 32px), 465px); margin-inline: auto; padding-block: 44px; }
.auth .panel { padding: 23px; }
.stack { display: grid; gap: 13px; }
label { display: grid; gap: 4px; font-size: 15px; font-weight: 650; }
input, select, textarea { min-width: 0; width: 100%; min-height: 44px; padding: 7px 10px; border: 1px solid #8799b3; border-radius: 3px; background: white; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 16px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 14px; }
.link { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; color: var(--deep-blue); padding: 0; text-align: left; font-weight: 700; }
.link:hover { text-decoration: underline; }
.pill { padding: 3px 7px; background: var(--pale); color: var(--deep-blue); white-space: nowrap; font-size: 14px; }
.danger, .error { color: #a51f38 !important; }
.toast { position: fixed; right: 18px; bottom: 18px; background: var(--ink); color: white; padding: 12px 16px; border-radius: 3px; z-index: 5; max-width: calc(100% - 36px); }
dialog { width: min(92%, 560px); max-height: 90dvh; border: 1px solid var(--line); padding: 24px; color: var(--ink); }
dialog::backdrop { background: #111f38a6; }
.bar { height: 12px; background: var(--blue); }
.bar-row { display: grid; grid-template-columns: 110px 1fr 35px; gap: 10px; align-items: center; margin: 12px 0; }
.profile { max-width: 650px; }

@media (max-width: 950px) {
  .wrap { width: calc(100% - 52px); }

}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .nav { flex-wrap: wrap; gap: 5px 12px; padding-block: 9px 3px; }
  .nav nav { order: 3; width: 100%; flex-wrap: wrap; gap: 0 20px; }
  .feature-section, .workspace, .foot, .audience { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 27px; padding-block: 37px; }
  .product-body { grid-template-columns: minmax(0, 1fr); }
  .product-side { display: none; }
  .product { border-width: 5px; border-radius: 16px; }
  .feature-section { gap: 8px; }
  .foot { gap: 15px; }
  .sidebar { display: flex; overflow: auto; }
  .workspace { gap: 12px; padding-top: 15px; }
  .metric, .panel { padding: 10px; }
}
@media (max-width: 470px) {
  .feature-list div { grid-template-columns: 1fr; gap: 4px; }
  .contact { align-items: flex-start; flex-direction: column; }
  .agenda-session { grid-template-columns: 47px 1fr; }
  .metrics { gap: 5px; }
  .metric span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.fund-support img { display: block; width: 150px; height: auto; margin-bottom: 10px; }
