:root {
  color-scheme: light;
  --ink: #172e47;
  --muted: #5d7188;
  --navy: #093970;
  --blue: #4f84bc;
  --line: #d8e3ef;
  --paper: #f7f9fc;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.topbar, .footer, main { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 750; letter-spacing: -.035em; text-decoration: none; }
.brand-mark { display: block; flex: 0 0 auto; width: 46px; height: 46px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 28px; }
.topbar nav a, .footer nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.topbar nav a:hover, .footer nav a:hover { color: var(--navy); }
.topbar nav .nav-contact { color: var(--navy); font-weight: 700; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); align-items: center; gap: clamp(30px, 6vw, 76px); padding: 84px 0 78px; }
.hero-copy-block { max-width: 560px; }
.eyebrow { margin: 0 0 14px; color: #1e5b94; font-size: .73rem; font-weight: 800; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
h1 { max-width: 800px; margin-bottom: 22px; font-size: clamp(3rem, 7vw, 5.6rem); line-height: .99; }
.hero-copy { max-width: 610px; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border: 1px solid transparent; border-radius: 8px; font-size: .92rem; font-weight: 700; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgb(9 57 112 / .14); }
.button.primary { background: var(--navy); color: white; }
.button.secondary { border-color: #b8c8d4; background: transparent; color: var(--navy); }
.hero-photo { position: relative; overflow: hidden; margin: 0; border: 1px solid #d4e0ec; border-radius: 18px; background: #e7eef5; box-shadow: 0 22px 54px rgb(9 57 112 / .13); }
.hero-photo img { display: block; width: 100%; aspect-ratio: 1.24; object-fit: cover; object-position: center; }
.hero-rule { display: flex; gap: 7px; width: 140px; margin-top: 74px; }
.hero-rule span { height: 5px; border-radius: 5px; background: var(--navy); }
.hero-rule span:first-child { width: 55%; }
.hero-rule span:nth-child(2) { width: 27%; background: var(--blue); }
.hero-rule span:last-child { flex: 1; background: #c8d4e2; }
.work-section { padding: 72px 0 92px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 30px; }
h2 { max-width: 670px; margin-bottom: 0; font-size: clamp(2.1rem, 4vw, 3.1rem); line-height: 1.08; }
.app-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 18px 50px rgb(19 47 70 / .07); }
.app-image { display: flex; min-height: 410px; align-items: center; justify-content: center; overflow: hidden; padding: 28px; background: #edf3f9; }
.app-image img { width: min(100%, 420px); height: auto; border: 1px solid #d5e1ed; border-radius: 12px; box-shadow: 0 20px 44px rgb(18 40 54 / .16); }
.app-copy { align-self: center; padding: 38px; }
.app-title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.app-icon { width: 48px; height: 48px; border-radius: 13px; }
.app-title-row .eyebrow { margin-bottom: 2px; font-size: .63rem; }
h3 { margin: 0; color: var(--navy); font: 700 1.8rem/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.03em; }
.app-copy > p, .consulting-copy p { color: var(--muted); }
.second-brain-title { max-width: 470px; margin: 0 0 18px; color: var(--navy); font-size: clamp(2.5rem, 4.2vw, 3.45rem); line-height: .99; }
.app-copy > p { font-size: 1.02rem; }
.text-link { color: var(--navy); font-size: .94rem; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.feature-card { min-height: 190px; padding: 22px 20px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.feature-index { display: inline-block; margin-bottom: 14px; color: #27639c; font-size: .7rem; font-weight: 850; letter-spacing: .12em; }
.feature-card h3 { margin: 0 0 9px; font-size: 1.19rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.feature-card em { display: block; margin-top: 8px; color: #31577d; font-size: .82rem; }
.consulting-section { display: grid; grid-template-columns: 1fr .8fr; gap: 56px; align-items: center; padding: 68px 0; border-top: 1px solid var(--line); }
.consulting-copy p { margin-bottom: 23px; }
.button.dark { background: #e7eff8; color: var(--navy); }
.contact-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 26px; border-radius: 12px; background: var(--navy); color: white; }
.contact-strip p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.contact-strip a { color: #d1e6ff; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer { display: grid; grid-template-columns: 1fr auto; gap: 16px 28px; align-items: center; padding: 34px 0 28px; }
.footer-brand { font-size: .88rem; }
.footer-brand .brand-mark { width: 38px; height: 38px; }
.footer nav { justify-content: flex-end; gap: 20px; }
.footer small { grid-column: 1 / -1; color: #6b7f94; font-size: .78rem; }

/* Legal pages */
.legal-main { max-width: 760px; padding: 76px 0 100px; }
.legal-main h1 { margin-top: 48px; font-size: clamp(2.7rem, 6vw, 4rem); }
.legal-main h2 { margin: 36px 0 10px; font-size: 1.6rem; }
.legal-main p, .legal-main li { color: var(--muted); }
.legal-main a { color: var(--navy); }
.legal-back { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 750; text-decoration: none; }
.updated { color: #6b7f94 !important; font-size: .88rem; }

@media (max-width: 760px) {
  .topbar, .footer, main { width: min(100% - 32px, 600px); }
  .topbar { min-height: 70px; }
  .topbar nav { gap: 14px; }
  .topbar nav a { font-size: .78rem; }
  .topbar nav a:first-child { display: none; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 70px 0 62px; }
  .hero-photo { width: min(100%, 540px); }
  .hero-rule { margin-top: 50px; }
  .work-section { padding: 56px 0 68px; }
  .app-card { grid-template-columns: 1fr; }
  .app-image { min-height: auto; padding: 18px; }
  .app-copy { padding: 28px 24px 32px; }
  .second-brain-title { font-size: clamp(2.55rem, 9vw, 3.25rem); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card { min-height: 0; }
  .consulting-section { grid-template-columns: 1fr; gap: 20px; padding: 54px 0; }
  .contact-strip { align-items: flex-start; flex-direction: column; }
  .footer { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; flex-wrap: wrap; }
  .footer small { grid-column: auto; }
}
@media (max-width: 420px) {
  .brand { gap: 8px; font-size: .88rem; }
  .brand-mark { width: 38px; height: 38px; }
  .topbar nav { gap: 11px; }
  .topbar nav a { font-size: .74rem; }
  .hero-actions .button { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
}
