/* Design system v0.1.0 — brand colors + fonts come from the shared system.
   Foundation tokens + the OCI skin are imported here (applied via the
   data-brand="oci" attribute on <html>). Don't redefine brand values locally;
   design/oci-theme.css is the one token file. See design/VENDORED.md. */
@import './design/index.css';      /* primitives + semantic tokens */
@import './design/oci-theme.css';  /* the OCI brand skin */
@import './ask.css';               /* the hero composer — the site's one dark surface */
@import './design/components.css'; /* direction-C components: nav, hero, bands, cards, FAQ, footer */

/* ===========================
   Design Tokens (OCI-local: type/space/radii scales + a few aliases)
   =========================== */
:root {
  /* Every colour and font token lives in design/oci-theme.css. These are
     OCI's local type/space/radius scales only. */

  --t-xs: 0.75rem;     /* 12 */
  --t-sm: 0.8125rem;   /* 13 */
  --t-base: 0.9375rem; /* 15 */
  --t-md: 1rem;        /* 16 */
  --t-lg: 1.0625rem;   /* 17 */
  --t-xl: 1.25rem;     /* 20 */
  --t-2xl: 1.375rem;   /* 22 */
  --t-display-sm: clamp(1.75rem, 3vw, 2.25rem);
  --t-display-md: clamp(1.875rem, 3.5vw, 2.625rem);
  --t-display-lg: clamp(2rem, 4vw, 3rem);
  --t-display-xl: clamp(2.25rem, 5vw, 3.625rem);

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-7: 2rem;
  --s-8: 2.5rem;
  --s-9: 3rem;
  --s-10: 4rem;
  --s-11: 5.5rem;
  --s-12: 8rem;

  /* Radii */
  --r-sm: 2px;
  --r-md: 6px;
  --r-lg: 12px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(28, 28, 28, 0.04);
  --shadow-md: 0 6px 18px -8px rgba(28, 28, 28, 0.12);
  --shadow-lg: 0 18px 40px -22px rgba(28, 28, 28, 0.22);

  /* Motion */
  --ease: 0.18s ease;
  --ease-slow: 0.28s ease;

  /* Layout widths */
  --w-prose: 640px;
  --w-content: 960px;
  --w-wide: 1120px;
  --page-gutter: var(--s-6);   /* 24px; one horizontal gutter for every band */

  /* Aliases kept for any inline use */
  --max-width: var(--w-prose);
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A page that wraps its Nav, sections and Footer in one element fills at
   least the window, with the Footer pushed to its bottom, so a short page
   (the 404, a legal page) never ends in a white band under the footer.
   Blog pages, whose Footer sits directly in <body>, do the same in blog.css. */
body > :has(> .footer) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > :has(> .footer) > .footer { margin-top: auto; }

/* ===========================
   Layout
   =========================== */
.container {
  max-width: calc(var(--w-wide) + 2 * var(--page-gutter));
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

/* Every band shares one wrapper width and gutter, so all content starts at
   the hero's left edge. The modifiers narrow the measure of what's inside,
   left-aligned to that same edge, rather than centring a narrower box. */
.container > *            { max-width: var(--w-prose); }
.container--content > *   { max-width: var(--w-content); }
.container--wide > *      { max-width: none; }

/* ===========================
   Hero (the ask-foot composer)
   =========================== */
/* AskFoot's own styling (background, headline, the composer, the tail line)
   lives in ask.css — the site's one dark surface, kept self-contained there
   rather than mixed into this file's light-surface rules. See ask.css. It
   moved from the top of the page to the foot (homepage-storefront-ia) but
   kept its `.hero` classname, since ask.css's custom properties are scoped
   to it. */

/* ===========================
   Concierge banner
   =========================== */
/* The subscription, above the shelf — not a card inside it. */
.concierge-banner { background: var(--color-bg-alt); }
.concierge-banner .btn { margin-top: var(--s-7); }

/* ===========================
   Products strip (beta + waitlist)
   =========================== */
.products-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-7);
  flex-wrap: wrap;
}
.products-strip__text { max-width: 62ch; }
.products-strip__heading {
  font-family: var(--font-display);
  font-size: var(--t-display-sm);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--s-3);
}
.products-strip__body {
  font-size: var(--t-md);
  font-weight: 300;
  color: var(--color-text-muted);
}
.products-strip__cta { flex: none; white-space: nowrap; }

/* ===========================
   Outcomes Grid
   =========================== */
.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.outcome-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: var(--s-7);
  transition: box-shadow var(--ease), transform var(--ease);
}
.outcome-card:hover { border-color: var(--color-border-strong); }

.outcome-card__title {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  margin-bottom: var(--s-2);
  color: var(--color-text);
}

.outcome-card__body {
  font-size: var(--t-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===========================
   Writing grid
   =========================== */
.writing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.writing-card {
  display: block;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: var(--s-7);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--ease), transform var(--ease);
}
.writing-card:hover { border-color: var(--color-border-strong); }

.writing-card__title {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  margin-bottom: var(--s-2);
  color: var(--color-text);
}

.writing-card__body {
  font-size: var(--t-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.writing__cta { margin-top: var(--s-6); }

/* ===========================
   Offer
   =========================== */
.offer__description {
  font-size: var(--t-lg);
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: var(--s-9);
  max-width: 560px;
}

/* Conversation-first process (replaces the priced tier board) */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7);
  margin-bottom: var(--s-9);
}
.process-step {
  padding-top: var(--s-4);
  border-top: 2px solid var(--color-accent);
}
.process-step__num {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}
.process-step__title {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--color-text);
  margin: var(--s-2) 0 var(--s-3);
}
.process-step__body {
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.offer__cta { margin-top: var(--s-2); }

@media (max-width: 860px) {
  .process-steps { grid-template-columns: 1fr; gap: var(--s-6); }
}

.offer__note {
  font-size: var(--t-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: var(--s-5);
}

/* ===========================
   Events
   =========================== */
.events-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.event-card {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: var(--s-7);
  padding: var(--s-7) 0;
  border-bottom: 1px solid var(--color-border);
}

.event-card__meta,
.event-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.event-card__date {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.01em;
}

.event-card__location {
  font-size: var(--t-sm);
  color: var(--color-text-muted);
}

.event-card__title {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.event-card__price {
  font-size: var(--t-sm);
  color: var(--color-text-muted);
}

/* ===========================
   Contact / CTA
   =========================== */
.contact { text-align: left; }

.contact__heading {
  font-family: var(--font-display);
  font-size: var(--t-display-lg);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--s-4);
  color: var(--color-text);
}

.contact__subheading {
  font-size: var(--t-lg);
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: var(--s-8);
}

.contact__buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--s-3);
}

.contact__buttons .btn {
  flex: 1 1 180px;
  max-width: 230px;
}

/* contact form (below CTAs) */
.contact-form {
  max-width: 560px;
  margin: var(--s-10) 0 0;
  padding: var(--s-6) var(--s-6) var(--s-5);
  border: 1px solid rgba(42, 76, 63, 0.15);
  border-radius: 6px;
  background: var(--color-bg-alt, #f8f7f4);
  text-align: left;
}

.contact-form__heading {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--s-1);
}

.contact-form__subheading {
  font-size: var(--t-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--s-5);
}

.contact-form__label {
  display: block;
  margin-bottom: var(--s-4);
  font-size: var(--t-sm);
  color: var(--color-text);
}

.contact-form__label > span {
  display: block;
  margin-bottom: var(--s-2);
  font-weight: 600;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: var(--s-3) var(--s-3);
  border: 1px solid rgba(42, 76, 63, 0.2);
  border-radius: 4px;
  font-family: inherit;
  font-size: var(--t-base);
  color: var(--color-text);
  background: white;
  transition: border-color var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent, #2a4c3f);
}

.contact-form textarea { resize: vertical; }

.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin: var(--s-5) 0 var(--s-4);
  padding: var(--s-3);
  background: rgba(42, 76, 63, 0.04);
  border-radius: 4px;
  cursor: pointer;
}

.contact-form__consent input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
}

.contact-form__consent-text {
  font-size: var(--t-xs);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.contact-form__error {
  color: #b94a48;
  font-size: var(--t-sm);
  margin: var(--s-3) 0;
}

.contact-form__submit {
  width: 100%;
}

.contact-form__legal {
  font-size: var(--t-xs);
  color: var(--color-text-muted);
  margin-top: var(--s-3);
  text-align: center;
}

.contact-form--success {
  text-align: center;
  padding: var(--s-8) var(--s-6);
}

.contact-form__success-heading {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--color-accent, #2a4c3f);
  margin-bottom: var(--s-2);
}

.contact-form__success-body {
  font-size: var(--t-base);
  color: var(--color-text-muted);
}

/* ===========================
   Demo callback ("call it now" / "have it call me")
   =========================== */













/* ===========================
   Modal
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 28, 28, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-6);
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--color-bg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: slideUp 0.25s ease;
}

.modal--wide { max-width: 680px; }

.modal__close {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  background: none;
  border: none;
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
  padding: var(--s-1);
  transition: color var(--ease);
}
.modal__close:hover { color: var(--color-text); }

.modal__content { padding: var(--s-9); }

.modal__photo-wrap { margin-bottom: var(--s-7); }
.modal__photo,
.modal__photo-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: block;
}
.modal__photo { object-fit: cover; }
.modal__photo-placeholder {
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
}

.modal__heading {
  font-family: var(--font-display);
  font-size: var(--t-display-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--s-6);
  line-height: 1.2;
}

.modal__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.modal__body p {
  font-size: var(--t-md);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.modal__intro {
  font-size: var(--t-md);
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: var(--s-7);
  line-height: 1.7;
}

.services-list {
  list-style: none;
  border-top: 1px solid var(--color-border);
  margin-bottom: var(--s-7);
}

.services-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-7);
  align-items: start;
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--color-border);
}

.services-item__title {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.services-item__body {
  font-size: var(--t-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.modal__cta-line {
  font-size: var(--t-base);
  color: var(--color-text-muted);
}

.modal__cta-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(42, 76, 63, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--ease);
}
.modal__cta-link:hover { text-decoration-color: var(--color-accent); }

/* Products/case studies folded under "What we build" */
.case-studies {
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--color-border);
}
.case-studies__label {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--s-4);
}
.case-studies__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.case-study {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  width: 100%;
  text-align: left;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  background: var(--color-bg-alt);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.case-study:hover {
  border-color: var(--color-accent);
  background: var(--color-surface);
  transform: translateY(-1px);
}
.case-study__text { flex: 1; }
.case-study__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--color-text);
}
.case-study__tag {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--t-sm);
  font-weight: 300;
  line-height: 1.45;
  color: var(--color-text-muted);
}
.case-study__arrow {
  flex: none;
  font-size: var(--t-lg);
  color: var(--color-accent);
  transition: transform var(--ease);
}
.case-study:hover .case-study__arrow { transform: translateX(3px); }

/* ===========================
   Animations
   =========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Responsive — Tablet
   =========================== */
@media (max-width: 900px) {
  .services-item {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }
}

/* ===========================
   Responsive — Mobile
   =========================== */
@media (max-width: 600px) {
  :root { --page-gutter: var(--s-5); }   /* 20px */

  .hero { padding: 7rem var(--s-5) var(--s-10); }

  .outcomes-grid { grid-template-columns: 1fr; }
  .writing-grid { grid-template-columns: 1fr; }

  .event-card {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .modal__content { padding: var(--s-7) var(--s-6); }

  .products-strip__cta { width: 100%; }
}

/* ===========================
   Product routes
   ===========================
   Standalone pages (ProductPage.js, written by scripts/prerender.js) that
   serve one section of site.json at its own URL. The body reuses the modal
   and services classes above; only the page frame is new. These documents
   ship the stylesheet but not the app bundle, so they use the shared Nav,
   whose menus are <details> elements that open without a script. */
.product-page__breadcrumb {
  font-size: var(--t-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--s-6);
}

.product-page__breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 3px;
  transition: color var(--ease);
}
.product-page__breadcrumb a:hover { color: var(--color-accent); }

.product-page__breadcrumb-sep { margin: 0 var(--s-2); }

.product-page__back { margin-top: var(--s-8); }

/* The sibling-product links reuse the case-study card, as anchors rather than
   the app's buttons. */
a.case-study { text-decoration: none; }

