/* neeka.ai's page: two people's AIs working on one plan, and the page reads as one chat. Direction
   B3, chosen by Chris on 6 November 2026, on the colours, fonts and cat of the landing handoff
   (design/landing.md), with the copy and layout of the homepage update of 16 November 2026.
   Plain CSS with custom properties. The fonts are served from this site (public/fonts), since the
   page's security policy allows nothing from elsewhere. Rules of the design are in
   docs/product/web-pages.md. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --ink: #141019;        /* the cat, body text, buttons on light, what you say */
  --paper: #F6F4F9;      /* source chips, the Without Neeka and Uses bands */
  --white: #FFFFFF;      /* what an AI says, the privacy section */
  --lilac: #E8E2F0;      /* the page's main ground */
  --plum: #26142A;       /* the Commons */
  --plum-deep: #1B0E1F;  /* footer */
  --accent: #CDE36B;     /* eyes, approval pills, the Commons chip and question */
  --ink-hover: #2E2636;
  --text-2: #3D3645;     /* secondary text on light (9.7:1 on lilac) */
  --text-3: #5A5263;     /* tertiary text on light (5.9:1 on lilac) */
  --on-plum-2: #DDD3E4;  /* secondary text on plum (11.9:1) */
  --on-plum-3: #CBBFD3;  /* tertiary text on plum (9.8:1) */
  --rule: #D9D2E2;       /* thin rules inside white cards */

  /* Type */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* The sizes that mean something: the promise, what you say, and what the Commons is asked. */
  --text-promise: clamp(2.5rem, 5vw, 4.5rem);
  --text-you: clamp(2.5rem, 4.6vw, 4.125rem);
  --text-ask: clamp(1.625rem, 3vw, 2.75rem);

  /* Shape and space */
  --container: 1320px;
  --gutter: clamp(20px, 4.2vw, 60px);
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--lilac);
  color: var(--ink);
  font: 400 1.125rem/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-dark a:focus-visible { outline-color: var(--accent); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 10;
}
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------------- parts */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font: 600 1.0625rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
}
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-hover); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.note { font-size: 0.9375rem; color: var(--text-3); }

.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; font: 700 0.9375rem/1.2 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.chip--ink { background: var(--ink); color: var(--white); }
.chip--commons { background: var(--accent); color: var(--ink); }

.approved { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--ink); font: 600 0.875rem/1.2 var(--font-body); letter-spacing: 0; white-space: nowrap; }
.approved svg { width: 14px; height: 14px; flex: none; }

.who { margin-bottom: 10px; font-weight: 600; font-size: 1rem; color: var(--text-2); }
.who--you { text-align: right; }

/* What you say to your AI, always this one size. */
.you-say { position: relative; }
.you-say img { position: absolute; right: 10%; top: -84px; width: 76px; height: auto; }
.you-bubble {
  width: fit-content;
  margin-left: auto;
  padding: .15em .34em .22em;
  background: var(--ink);
  color: var(--white);
  border-radius: 32px 32px 10px 32px;
  font: 700 var(--text-you)/1 var(--font-display);
  letter-spacing: -0.035em;
}

/* What an AI says. */
.ai-bubble { padding: 28px 40px 24px; background: var(--white); border-radius: 56px 56px 56px 14px; font-size: 1.125rem; line-height: 1.38; color: var(--text-2); }
.ai-bubble strong { color: var(--ink); font-weight: 600; }
.ai-bubble > p + p { margin-top: 6px; }
.ai-bubble--reply { padding: 28px 40px 26px; font: 700 clamp(1.25rem, 1.9vw, 1.625rem)/1.2 var(--font-display); letter-spacing: -0.015em; color: var(--ink); }
.ai-bubble--reply .approved { margin-top: 16px; }
.card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.card__title { font: 700 1.375rem/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.ai-bubble .card__pick { margin-bottom: 10px; font: 700 clamp(1.5rem, 2.5vw, 2.25rem)/1.12 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.card__pick strong { font-weight: 700; }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 16px; }
.card__ask { font-weight: 600; color: var(--ink); }
.sources { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--paper); font-size: 1rem; color: var(--text-2); }

/* ---------------------------------------------------------------- sections */

.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
.site-nav, .site-nav__sections { display: flex; align-items: center; gap: 28px; font-size: 1rem; font-weight: 500; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; }

.hero { padding-block: 8px 28px; }
.hero h1 { max-width: 15.5em; margin-bottom: 10px; font-size: var(--text-promise); line-height: 1.02; letter-spacing: -0.03em; text-wrap: pretty; }
.hero__say { display: grid; grid-template-columns: auto auto; justify-content: end; align-items: center; gap: 16px 24px; }
.hero__where { font-weight: 600; font-size: 1.25rem; line-height: 1.2; color: var(--text-2); }
.hero__below { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 72px; align-items: start; margin-top: 20px; }
#uses, #commons, #privacy { scroll-margin-top: 24px; }
.hero__text { padding-top: 30px; }
.hero__lead { margin-bottom: 24px; font-size: 1.3125rem; line-height: 1.36; }
.hero__text .note { margin-top: 8px; }

/* The hero's example: tabs choose a plan; each plan is your AI's write-up, your yes and Dan's reply. */
.example__tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.example__choose { margin-right: 4px; font-size: 0.9375rem; font-weight: 600; color: var(--text-3); }
.example__tabs button { min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 600 0.9375rem/1 var(--font-body); cursor: pointer; }
.example__tabs button:hover { background: var(--white); }
.example__tabs button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.example__tabs button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.example__plan[hidden] { display: none; }
/* Your yes is part of the example, so it's smaller than what you say elsewhere on the page. */
.example__yes { width: fit-content; margin: 18px 0 18px auto; padding: 12px 22px 14px; background: var(--ink); color: var(--white); border-radius: 24px 24px 6px 24px; font: 700 1.625rem/1 var(--font-display); letter-spacing: -0.02em; }

/* What people do without Neeka, on paper. */
.today { background: var(--paper); padding-block: 72px; }
.today__in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.today__label { margin-bottom: 12px; font-size: 0.9375rem; font-weight: 600; color: var(--text-3); }
.today h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.08; }
.today__text { font-size: 1.25rem; line-height: 1.45; color: var(--text-2); }

/* How what you've found travels: four stops joined by one line, which runs down the side on a phone. */
.route { padding-block: 88px 80px; scroll-margin-top: 24px; }
.route__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 72px; align-items: end; }
.route__head h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.05; }
.route__head p { max-width: 32em; color: var(--text-2); }
.route__stops { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 40px 0 0; padding: 0; list-style: none; }
.route__stops::before { content: ""; position: absolute; top: 22px; left: 0; right: calc((100% - 96px) / 4); height: 2px; background: var(--ink); }
.route__stops li { position: relative; }
.route__who { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; white-space: nowrap; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; font: 700 1.125rem/1 var(--font-display); letter-spacing: -0.015em; }
.route__who img { width: 24px; height: 24px; }
.route__stops li + li .route__who::before { content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); border-style: solid; border-width: 7px 0 7px 10px; border-color: transparent transparent transparent var(--ink); }
.route__stops h3 { margin: 16px 0 6px; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.route__stops li > p:last-child { color: var(--text-2); font-size: 1.0625rem; }
.route__back { margin-top: 28px; font-weight: 600; }

.uses { background: var(--paper); padding-block: 80px; }
.uses h2 { max-width: 18em; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.05; }
.uses__lead { max-width: 36em; margin-top: 14px; color: var(--text-2); }
.uses__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.use { padding: 28px 28px 30px; background: var(--white); border-radius: 28px; }
.use h3 { margin-bottom: 10px; font-size: 1.625rem; line-height: 1.1; letter-spacing: -0.02em; }
.use > p { margin-bottom: 20px; font-size: 1.0625rem; color: var(--text-2); }
.use ul { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--rule); }
.use li { font-size: 0.9375rem; color: var(--text-2); }
.use strong { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); }

/* The explanation beside the example, so the two read as one thing with no gaps between. */
.commons { background: var(--plum); color: var(--white); padding-block: 72px; }
.commons__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px 72px; align-items: start; }
.commons__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 20px; font-weight: 500; color: var(--on-plum-2); }
.commons__text h2 { margin-bottom: 16px; font-size: clamp(1.625rem, 2.6vw, 2.375rem); line-height: 1.1; }
.commons__text > p:last-child { max-width: 32em; color: var(--on-plum-2); }
.commons__ask { padding: .36em .5em .4em; background: var(--accent); color: var(--ink); border-radius: 40px 40px 12px 40px; font: 700 var(--text-ask)/1.06 var(--font-display); letter-spacing: -0.026em; }
.commons__reach { margin: 12px 0 24px; text-align: right; font-size: 1.0625rem; color: var(--on-plum-2); }
.commons .who { color: var(--on-plum-2); }
.commons__reply { padding: 26px 32px 24px; background: rgba(255, 255, 255, .1); border-radius: 40px 40px 40px 12px; font-size: 1.375rem; line-height: 1.3; }
.commons__reply .approved { margin-top: 14px; }

.privacy { background: var(--white); padding-block: 104px 88px; }
.privacy h2 { max-width: 14em; font-size: clamp(2.25rem, 5.6vw, 5.125rem); line-height: 1.02; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.rules li { padding-top: 16px; border-top: 1px solid var(--ink); }
.rules h3 { margin-bottom: 8px; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }
.rules p { font-size: 1.0625rem; color: var(--text-2); }

.close { padding-block: 72px 80px; }
.close__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: end; margin-bottom: 84px; }
.close h2 { margin-bottom: 10px; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.05; }
.close__row p { max-width: 38em; font-size: 1.1875rem; color: var(--text-2); }

.site-footer { background: var(--plum-deep); color: var(--on-plum-2); padding-block: 36px; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 0.9375rem; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------- narrower */

/* Four stops don't fit in a row here, so they sit two by two, without the line between them. */
@media (max-width: 1080px) {
  .route__stops { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
  .route__stops::before, .route__stops li + li .route__who::before { display: none; }
}

@media (max-width: 900px) {
  body { font-size: 1.0625rem; }
  :root { --text-promise: clamp(2rem, 9.6vw, 3.5rem); --text-you: clamp(2rem, 10.2vw, 3.5rem); }
  .hero { padding-block: 12px 28px; }
  .hero h1 { margin-bottom: 14px; }
  .hero__say { grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 10px; }
  .hero__where { max-width: 68%; font-size: 1.0625rem; }
  .you-say img { right: 8%; top: -66px; width: 58px; }
  .you-bubble { border-radius: 26px 26px 8px 26px; }
  .hero__below { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .hero__text { order: -1; padding-top: 0; }
  .hero__lead { margin-bottom: 18px; font-size: 1.25rem; }
  .ai-bubble { padding: 22px 22px 18px; border-radius: 32px 32px 32px 10px; font-size: 1.0625rem; }
  .ai-bubble--reply { padding: 22px 22px 20px; font-size: 1.25rem; }
  .example__choose { flex-basis: 100%; }
  .example__tabs button { padding: 0 14px; }
  .example__yes { font-size: 1.375rem; }
  .today { padding-block: 48px; }
  .today__in { grid-template-columns: minmax(0, 1fr); }
  .today__text { font-size: 1.125rem; }
  .route { padding-block: 48px 56px; }
  .route__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .route__stops { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 28px; }
  .route__stops::before { display: none; }
  .route__stops li + li .route__who::before { display: none; }
  .route__stops li + li::before { content: ""; display: block; width: 2px; height: 22px; margin: 0 0 8px 22px; background: var(--ink); }
  .route__stops h3 { margin-top: 12px; }
  .uses { padding-block: 56px; }
  .uses__cards { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
  .use { padding: 24px 22px 26px; }
  .commons { padding-block: 56px 64px; }
  .commons__in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .commons__ask { border-radius: 30px 30px 10px 30px; padding: 22px 24px 24px; }
  .commons__reach { text-align: left; }
  .commons__reply { padding: 22px; border-radius: 32px 32px 32px 10px; font-size: 1.25rem; }
  .privacy { padding-block: 64px 56px; }
  .rules { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 36px; }
  .close__row { grid-template-columns: minmax(0, 1fr); align-items: start; margin-bottom: 72px; }
}

@media (max-width: 760px) {
  .site-nav { gap: 16px; }
  .site-nav__sections { display: none; }
}
