/* Tidemark Labs studio site. Bodhara has its own stylesheet at /bodhara/styles.css. */
:root {
  --navy: #0b1b33;
  --navy-2: #12305a;
  --blue: #1f6fb5;
  --sky: #4ea5e3;
  --paper: #f5f8fc;
  --white: #ffffff;
  --line: #dbe4ee;
  --muted: #51627a;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; top: -60px; left: 12px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(245, 248, 252, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { display: block; height: 52px; width: auto; }
.links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.links a { color: var(--navy); text-decoration: none; }
.links a:hover { color: var(--blue); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid var(--navy); background: var(--navy); color: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 27, 51, .18); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* type */
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.03em; font-weight: 700; }
h1 { font-size: clamp(42px, 6.4vw, 76px); max-width: 780px; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 21px; letter-spacing: -.02em; }
.eyebrow { margin: 0 0 16px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lead { max-width: 660px; margin: 22px 0 30px; color: var(--muted); font-size: 20px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 150px; background: radial-gradient(1000px 420px at 85% -10%, rgba(78, 165, 227, .22), transparent 70%), var(--paper); }
.hero .shell { position: relative; z-index: 1; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 130px; z-index: 0; }
.hero-mark { position: absolute; right: max(2vw, calc((100vw - var(--max)) / 2 - 20px)); top: 70px; width: min(380px, 34vw); opacity: .95; }

/* sections */
.section { padding: 84px 0; }
.section.alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 18px; }

/* app cards */
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.app-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 24px; border: 1px solid var(--line); background: var(--white); min-height: 360px; }
.app-card .top { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 26px; color: #fff; }
.app-icon img { width: 100%; height: 100%; border-radius: 16px; display: block; }
.chip { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 100px; font-size: 12px; font-weight: 800; letter-spacing: .04em; background: rgba(31, 111, 181, .1); color: var(--blue); }
.app-card h3 { font-size: 30px; }
.app-card p { margin: 0; color: var(--muted); }
.app-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; }
.app-card .go { margin-top: auto; font-weight: 800; text-decoration: none; display: inline-flex; gap: 8px; }
.app-card.bodhara { background: linear-gradient(150deg, #151821, #0d0f15); border-color: #0d0f15; color: #fff; }
.app-card.bodhara p { color: #b9bdca; }
.app-card.bodhara .chip { background: rgba(200, 255, 77, .16); color: #c8ff4d; }
.app-card.bodhara a { color: #c8ff4d; }
.app-card.pass .app-icon { background: linear-gradient(145deg, var(--blue), #6b5bd6); }
.app-card.next { border-style: dashed; background: transparent; justify-content: center; }
.app-card.next .app-icon { background: var(--line); color: var(--muted); }

/* principles */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); }
.section.alt .card { background: var(--paper); }
.card .num { color: var(--blue); font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.card h3 { margin: 10px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* split + developer info */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.split p { color: var(--muted); }
.dev-info { padding: 28px; border-radius: 20px; background: var(--navy); color: #dfe8f4; }
.dev-info h3 { color: #fff; margin-bottom: 14px; }
.dev-info dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15px; }
.dev-info dt { color: #8fb4dc; font-weight: 700; }
.dev-info dd { margin: 0; overflow-wrap: anywhere; }
.dev-info a { color: #fff; }

/* cta */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; padding: 70px 0; }
.cta-band .shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { max-width: 560px; }
.cta-band .btn { background: #fff; color: var(--navy); border-color: #fff; }

/* inner pages */
.page-hero { padding: 70px 0 40px; border-bottom: 1px solid var(--line); background: var(--white); }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.page-hero .lead { margin-bottom: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.prose { max-width: 780px; padding: 50px 0 90px; }
.prose h2 { font-size: 27px; margin: 40px 0 10px; }
.prose h3 { margin: 24px 0 8px; font-size: 19px; }
.prose p, .prose li { color: #33445d; }
.prose ul { padding-left: 22px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: #eaf1f8; }
.meta { color: var(--muted); font-size: 14px; }
.notice { border: 1px solid #bcd6ee; background: #eaf3fb; border-radius: 14px; padding: 16px 18px; margin: 22px 0; font-size: 15px; }
.notice p { margin: 0; color: #33445d; }
.url-table td:first-child { white-space: nowrap; font-weight: 700; }
.url-table code { font-size: 13px; overflow-wrap: anywhere; }

/* footer */
.footer { background: var(--navy); color: #b8c8dc; padding: 56px 0 30px; font-size: 15px; }
.footer a { color: #dfe8f4; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; padding-bottom: 36px; }
.footer-brand img { display: block; height: 56px; width: auto; background: #fff; border-radius: 12px; padding: 6px 12px; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 300px; }
.footer h4 { margin: 0 0 12px; color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }

@media (max-width: 900px) {
  .hero-mark { display: none; }
  .split { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav { padding: 12px 0; }
  .brand img { height: 44px; }
  .links { gap: 16px; width: 100%; order: 3; }
  .hero { padding: 56px 0 120px; }
  .section { padding: 60px 0; }
  .app-grid, .grid3, .grid2 { grid-template-columns: 1fr; }
  .app-card { min-height: 0; padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
.links a.btn { color: #fff; } .links a.btn:hover { color: #fff; }
.app-card.sea { background: linear-gradient(150deg, #0c2a47, #07182b); border-color: #07182b; color: #fff; }
.app-card.sea p { color: #c3d2e3; }
.app-card.sea .chip { background: rgba(212, 175, 55, .18); color: #f0cf6a; }
.app-card.sea a { color: #f0cf6a; }
