/* Behaviour Brain website: the app's "Sage" brand (see the app's tailwind.config.js). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand: #3F5E50;
  --brand-hover: #344E43;
  --brand-soft: #E8EFEB;
  --brand-mid: #7FA191;
  --page: #F6F7F6;
  --card: #FFFFFF;
  --line: #E3E6E3;
  --heading: #262A28;
  --text: #4C524E;
  --muted: #7C837E;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 650; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.soft { background: var(--brand-soft); }
.lead { font-size: 1.2rem; color: var(--text); max-width: 40em; }
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.6em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background 0.15s;
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}
.btn.quiet { background: var(--card); color: var(--heading); border-color: #CDD2CE; }
.btn.quiet:hover { background: #EEF0EE; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); font-weight: 650; font-size: 1.1rem; letter-spacing: 0.02em; }
.brand img { width: 34px; height: 36px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 0.96rem; }
.nav a:hover { background: #EEF0EE; color: var(--heading); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav .btn { color: #fff; margin-left: 8px; padding: 9px 16px; }
.nav .btn:hover { background: var(--brand-hover); color: #fff; }
.menu { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; color: var(--heading); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu div { position: absolute; right: 0; top: 48px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,0.08); padding: 8px; min-width: 220px; display: flex; flex-direction: column; }
  .menu a { padding: 10px 12px; color: var(--heading); text-decoration: none; border-radius: 8px; }
  .menu a:hover { background: #EEF0EE; }
}

/* Hero */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* A screenshot shown in a simple browser frame */
.shot { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(38, 42, 40, 0.12); overflow: hidden; }
.shot .bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #FBFCFB; }
.shot .bar span { width: 9px; height: 9px; border-radius: 50%; background: #CDD2CE; }
.shot.card-only { box-shadow: 0 12px 32px rgba(38, 42, 40, 0.08); }
.note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

/* Text beside a picture */
.split > *, .grid > * { min-width: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 650; display: grid; place-items: center; }
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F5E50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Call to action band */
.band { background: var(--brand); color: #fff; border-radius: 16px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { color: #fff; margin: 0; max-width: 22em; }
.band .btn { background: #fff; color: var(--brand); border-color: #fff; }
.band .btn:hover { background: var(--brand-soft); }
@media (max-width: 600px) { .band { padding: 32px 24px; } }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; color: var(--heading); }
label span.opt { font-weight: 400; color: var(--muted); }
input, textarea, select { font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #CDD2CE; border-radius: 8px; background: #fff; color: var(--heading); width: 100%; }
textarea { min-height: 120px; resize: vertical; }
.hidden { display: none; }

/* Long text pages */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); background: var(--card); font-size: 0.92rem; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--brand); text-decoration: underline; }

/* Words Rachel still has to fill in: highlighted so they cannot go live unnoticed. */
.todo { background: #FFF3C4; outline: 1px dashed #C9A227; padding: 0 4px; border-radius: 4px; }

/* ---- Warm redesign (mock-up) ---- */
.header .wrap { height: 84px; }
.brand img.badge { width: 72px; height: auto; }
.brand { font-size: 1.15rem; }

/* Full-width photo hero with a sage wash so white text stays readable */
.photo-hero { position: relative; color: #fff; min-height: 560px; display: flex; align-items: center; background: #23342D center / cover no-repeat; }
.photo-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,32,27,0.88) 0%, rgba(35,52,45,0.72) 45%, rgba(35,52,45,0.15) 100%); }
.photo-hero .wrap { position: relative; width: 100%; }
.photo-hero .copy { max-width: 620px; }
.photo-hero h1 { color: #fff; }
.photo-hero .lead { color: #E8EFEB; }
.photo-hero .eyebrow { color: #ABC3B6; }
.photo-hero .btn.quiet { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.photo-hero .btn.quiet:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 700px) { .photo-hero { min-height: 520px; } .photo-hero::before { background: rgba(20,32,27,0.78); } }

/* Three time facts under the hero */
.facts { background: var(--brand); color: #fff; }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.facts strong { display: block; font-size: 1.6rem; font-weight: 650; letter-spacing: -0.01em; }
.facts span { color: #CFDDD5; font-size: 0.95rem; }
@media (max-width: 700px) { .facts .wrap { grid-template-columns: 1fr; gap: 16px; } }

/* A photo with an app screenshot card laid over its corner */
.layered { position: relative; }
.layered > img.photo { border-radius: 16px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.layered .float { position: absolute; right: -24px; bottom: -28px; width: 62%; border-radius: 12px; border: 1px solid var(--line); background: #fff; box-shadow: 0 20px 50px rgba(38,42,40,0.22); }
.layered.left .float { right: auto; left: -24px; }
@media (max-width: 860px) { .layered .float { right: 8px; bottom: -20px; } .layered.left .float { left: 8px; } }
.section.roomy { padding: 96px 0; }

/* Before / after comparison for leaders' time */
.compare { display: grid; gap: 12px; }
.compare .row { display: grid; grid-template-columns: 1fr 32px 1fr; gap: 12px; align-items: stretch; }
.compare .now, .compare .with { border-radius: var(--radius); padding: 18px 20px; }
.compare .now { background: #fff; border: 1px solid var(--line); color: var(--text); }
.compare .with { background: var(--brand-soft); border: 1px solid #CFDDD5; color: var(--heading); }
.compare .arrow { display: grid; place-items: center; color: var(--brand); font-size: 1.4rem; }
.compare .label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.compare .head { display: grid; grid-template-columns: 1fr 32px 1fr; gap: 12px; padding: 0 4px; }
@media (max-width: 700px) { .compare .row, .compare .head { grid-template-columns: 1fr; } .compare .arrow { transform: rotate(90deg); height: 24px; } .compare .head span:nth-child(2) { display: none; } }

/* Photo band behind a call to action */
.band.photo { background: linear-gradient(rgba(35,52,45,0.86), rgba(35,52,45,0.86)), url('img/story-time.webp') center / cover; }
.layered > img.photo.portrait { aspect-ratio: 1 / 1; object-position: 70% 12%; }
.header .wrap { height: 104px; }
.brand img.badge { width: 104px; }
@media (max-width: 860px) { .header .wrap { height: 80px; } .brand img.badge { width: 76px; } }

/* One centred line on green, for the idea a page is built on */
.quote-band { background: var(--brand); color: #fff; text-align: center; }
.quote-band .wrap { padding-top: 56px; padding-bottom: 56px; }
.quote-band p { margin: 0 auto; max-width: none; text-wrap: balance; font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 400; line-height: 1.4; letter-spacing: -0.01em; }

/* About: the short argument for why Behaviour Brain exists */
.manifesto h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.manifesto .beats { font-size: 1.15rem; color: var(--heading); font-weight: 500; }
.manifesto .signoff { margin-top: 1.4em; font-size: 1.2rem; font-weight: 650; color: var(--brand); }
