/* OrAI marketing site — design 1b "Bright & airy" */

:root {
  --ink: #1C2430;
  --muted: #5B6572;
  --blue: #1F5A8A;
  --blue-hover: #164569;
  --sky: #4A7BA7;
  --orange: #E8863A;
  --rust: #D9541E;
  --green: #3E7A1F;
  --line: #E5E0D6;
  --line-strong: #D6D1C7;
  --tint-blue: #F5F8FB;
  --tint-blue-strong: #DCE8F3;
  --tint-orange: #FDF3EA;
  --tint-green: #F1F7EC;
  --tint-cream: #FBF6EE;
  --gutter: clamp(20px, 6.25vw, 80px);
  --font-body: Karla, ui-sans-serif, system-ui, sans-serif;
  --font-display: Outfit, ui-sans-serif, system-ui, sans-serif;
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--rust); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Type helpers */
.eyebrow {
  font: 500 14px var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow.rust { color: var(--rust); }
.eyebrow.sky { color: var(--sky); }
.eyebrow.green { color: var(--green); }
.eyebrow.muted { color: var(--muted); }
.link { font-weight: 600; color: var(--blue); }
h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; text-wrap: pretty; }
h3 { font-size: 20px; letter-spacing: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-text { color: var(--ink); font-weight: 500; padding: 10px 16px; }
.btn-text:hover { color: var(--blue); }
.btn-outline { color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-outline:hover { color: var(--ink); border-color: var(--ink); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--tint-blue-strong); color: var(--blue); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-lg { font-size: 17px; padding: 16px 30px; border-radius: 12px; }
.btn-outline.btn-lg { padding: 15px 26px; }
.btn-ghost.btn-lg { padding: 15px 26px; }
.btn-md { font-size: 17px; padding: 14px 26px; border-radius: 12px; }
.cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  gap: 24px;
  position: relative;
}
.nav-logo img { height: 52px; }
.nav-menu { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 24px; }
.nav-links { display: flex; gap: 36px; font-size: 16px; font-weight: 500; margin-left: auto; margin-right: auto; }
.nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; padding: 10px;
  flex-direction: column; justify-content: space-between;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding-top: clamp(48px, 7vw, 88px);
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 980px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--sky); }
.hero .lede { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--muted); max-width: 680px; text-wrap: pretty; }

/* App mock */
.app-mock {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
  height: 600px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 100px rgba(31,90,138,.22);
  font-family: var(--font-ui);
  font-size: 14px;
  color: #0a0a0a;
  text-align: left;
}
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--sky); padding: 16px 24px; }
.app-bar-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.app-bar-left img { height: 40px; background: #fff; border-radius: 6px; padding: 2px; flex: none; }
.app-school { font-size: 18px; font-weight: 600; color: #fff; }
.app-school span { font-size: 16px; font-weight: 400; color: rgba(255,255,255,.7); }
.app-tag { font-size: 14px; color: rgba(255,255,255,.8); }
.app-bar-right { display: flex; align-items: center; gap: 16px; flex: none; }
.app-feedback { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.2); color: #fff; padding: 8px 16px; border-radius: 8px; font-weight: 500; }
.app-avatar { width: 36px; height: 36px; border-radius: 999px; background: #fff; color: var(--sky); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.app-body { display: flex; flex: 1; min-height: 0; }
.app-side { width: 288px; flex: none; border-right: 1px solid #e5e5e5; display: flex; flex-direction: column; padding: 16px 16px 8px; gap: 8px; }
.app-search { position: relative; border: 1px solid #e5e5e5; border-radius: 8px; padding: 8px 12px 8px 36px; color: #737373; }
.app-search span { position: absolute; left: 12px; top: 9px; width: 12px; height: 12px; border: 2px solid #737373; border-radius: 999px; }
.app-new { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--orange); color: #fff; border-radius: 8px; font-weight: 500; }
.app-thread { height: 36px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; }
.app-thread.active { background: #f5f5f5; }
.app-main { flex: 1; display: flex; flex-direction: column; padding: 16px 40px 8px; gap: 12px; min-width: 0; }
.app-user { display: flex; justify-content: flex-end; }
.app-user > div { max-width: 70%; background: #f5f5f5; border-radius: 16px; padding: 10px 16px; line-height: 1.5; }
.app-reply { padding: 0 8px; line-height: 1.6; }
.app-reply p { margin: 0 0 8px; }
.app-reply p:last-child { margin: 8px 0 0; }
.app-reply ul { margin: 0; padding-left: 20px; }
.app-composer { margin-top: auto; border: 1px solid #e5e5e5; border-radius: 16px; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 8px; }
.app-placeholder { color: #737373; padding: 4px 8px; }
.app-composer-row { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.app-attach { color: #737373; font-size: 18px; }
.app-send { width: 32px; height: 32px; border-radius: 999px; background: #171717; color: #fff; display: flex; align-items: center; justify-content: center; }
.app-motto { text-align: center; color: var(--sky); font-size: 13px; padding: 2px 0; }

/* Section heads */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.section-head h2 { max-width: 560px; }
.section-head > p { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 440px; text-wrap: pretty; }
.section-head-title { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }

/* Features */
.features { padding-top: clamp(72px, 9.4vw, 120px); display: flex; flex-direction: column; gap: 56px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; border-top: 1px solid var(--line); padding-top: 40px; }
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature h3 { font-size: 26px; }
.feature p { font-size: 17px; color: var(--muted); line-height: 1.55; }

/* Directors */
.directors {
  padding-top: clamp(72px, 9.4vw, 120px);
  padding-bottom: clamp(72px, 9.4vw, 120px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.directors-copy { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }
.directors-copy > p { font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.directors-copy .btn { align-self: flex-start; }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.tile p { color: var(--muted); line-height: 1.5; }
.tile-wide { grid-column: 1 / -1; }
.tint-blue { background: var(--tint-blue); }
.tint-orange { background: var(--tint-orange); }
.tint-green { background: var(--tint-green); }
.tint-cream { background: var(--tint-cream); }

/* Administrators */
.admins { padding-bottom: clamp(72px, 9.4vw, 120px); display: flex; flex-direction: column; gap: 56px; }
.admins-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.portal-mock {
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(31,90,138,.16);
  background: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  color: #0a0a0a;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.portal-title { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; }
.portal-back { color: #737373; font-size: 16px; font-weight: 400; }
.portal-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e5e5e5; font-weight: 500; color: #737373; white-space: nowrap; font-size: 12px; overflow-x: auto; }
.portal-tabs span { padding: 8px 12px; }
.portal-tabs span.active { color: #0a0a0a; border-bottom: 2px solid #171717; }
.portal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { border: 1px solid #e5e5e5; border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 10px; }
.stat-icon { flex: none; width: 34px; height: 34px; border-radius: 8px; background: rgba(23,23,23,.08); }
.stat-num { font-size: 22px; font-weight: 700; }
.stat-label { color: #737373; white-space: nowrap; }
.portal-card { border: 1px solid #e5e5e5; border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.portal-card-title { font-size: 15px; font-weight: 600; }
.portal-card-sub { color: #737373; }
.portal-row { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; padding: 6px 8px; border-bottom: 1px solid #e5e5e5; }
.portal-row span:first-child { font-weight: 500; }
.portal-row span + span { text-align: right; padding-right: 28px; }
.portal-row-head { color: #737373; font-weight: 500; white-space: nowrap; }
.portal-row-head span:first-child { font-weight: 500; }
.portal-row.last { border-bottom: 0; }
.admin-list { display: flex; flex-direction: column; }
.admin-item { padding: 24px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.admin-item:last-child { border-bottom: 1px solid var(--line); }
.admin-item p { font-size: 16px; color: var(--muted); line-height: 1.5; }

/* Founder */
.founder {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.founder blockquote { margin: 0; font: 500 clamp(24px, 2.4vw, 30px)/1.3 var(--font-display); letter-spacing: -.01em; text-wrap: pretty; }
.founder-copy { display: flex; flex-direction: column; gap: 12px; }
.founder-copy p { font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.founder-name { font-weight: 600; }
.founder .link { align-self: flex-start; }

/* Plans */
.plans { padding-top: clamp(72px, 9.4vw, 120px); padding-bottom: clamp(72px, 9.4vw, 120px); display: flex; flex-direction: column; gap: 40px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.plan { padding: 36px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
.plan:last-child { border-right: 0; }
.plan p { color: var(--muted); line-height: 1.5; }
.plan .link { margin-top: auto; padding-top: 8px; }
.plan-school { background: var(--tint-blue); }
.price { font: 600 40px var(--font-display); letter-spacing: -.02em; }
.price span { font-size: 18px; color: var(--muted); }

/* Footer */
.footer { padding-bottom: 40px; display: flex; flex-direction: column; gap: 56px; }
.footer-cta {
  background: var(--blue);
  border-radius: 24px;
  padding: clamp(40px, 5.6vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  color: #fff;
}
.footer-cta h2 { font-size: clamp(36px, 3.75vw, 48px); line-height: 1.05; max-width: 640px; text-wrap: balance; }
.footer-cta p { font-size: 18px; color: rgba(255,255,255,.85); }
.footer-bar { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--blue); }

/* Responsive */
@media (max-width: 1080px) {
  .nav-links { gap: 24px; }
  .directors { gap: 48px; }
  .admins-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(28,36,48,.14);
    z-index: 10;
  }
  .nav.open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; gap: 4px; margin: 0; }
  .nav-links a { padding: 10px 12px; border-radius: 8px; }
  .nav-actions { flex-direction: column; align-items: stretch; border-top: 1px solid var(--line); padding-top: 16px; }
  .nav-actions .btn { width: 100%; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .directors { grid-template-columns: 1fr; }
  .directors-copy { position: static; }
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan:last-child { border-bottom: 0; }

  .app-mock { height: auto; }
  .app-side { display: none; }
  .app-main { padding: 16px 20px 8px; }
  .app-user > div { max-width: 90%; }
  .app-bar-right { display: none; }
}

@media (max-width: 600px) {
  .tile-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-row .btn { width: 100%; }
  .app-school span { display: block; font-size: 14px; }
  .portal-stats { grid-template-columns: 1fr; }
  .portal-row span + span { padding-right: 8px; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}
