/* Typefaces are served from this site (SIL Open Font License), not from Google. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* Layout concept: the site reads like a Charter itself - a paper page with intent codes in the margin,
   and petrol-teal bands where the product makes its case. One light look, chosen on purpose (the brand
   is paper and ink), so every colour is set explicitly. */
:root {
  --ink: #1c3b4a;          /* petrol teal: type, dark bands, primary buttons */
  --ink-deep: #122a36;     /* the darkest band */
  --ink-2: #3a5562;        /* secondary text */
  --muted: #5e6f77;        /* captions */
  --paper: #f6f4f1;        /* page ground */
  --panel: #f3f0eb;        /* raised surfaces */
  --white: #ffffff;
  --line: #e2ddd4;         /* hairlines */
  --gold: #a39277;         /* highlight rules and marks */
  --gold-ink: #7d6c52;     /* gold text on paper */
  --gold-soft: #cdbb9a;    /* gold text on teal */
  --on-ink: #f6f4f1;       /* text on teal */
  --on-ink-2: #c6d2d7;     /* secondary text on teal */
  --ok: #2f7d73;
  --watch: #a0600f;
  --drift: #b23a30;
  --drift-light: #f8e5e2;
  --ok-light: #e2f0ec;

  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.83rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.9vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.7rem + 1.8vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.2vw, 4.6rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-family: var(--body); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--body); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.prose { max-width: 62ch; color: var(--ink-2); }
.prose p + p { margin-top: 1em; }
.code { font-family: var(--mono); font-size: 0.82em; font-weight: 500; letter-spacing: 0.02em; color: var(--gold-ink); background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 0.05em 0.4em; white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0 1.4em; border-radius: var(--radius); font-weight: 500; font-size: var(--step-0); text-decoration: none; border: 1px solid var(--ink); transition: background 0.15s, color 0.15s; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--ink-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--white); }
.band-dark .btn-primary { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink-deep); }
.band-dark .btn-primary:hover { background: var(--on-ink); }
.band-dark .btn-ghost { color: var(--on-ink); border-color: var(--on-ink-2); }
.band-dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(246, 244, 241, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.brand-by { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; text-decoration: none; font-size: 0.95rem; color: var(--ink-2); border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--panel); }
.nav .btn { margin-left: 8px; min-height: 40px; padding: 0 1.1em; color: var(--on-ink); font-size: 0.95rem; }
.nav .btn:hover { color: var(--on-ink); background: var(--ink-deep); }
.menu { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; background: var(--white); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: grid; gap: 2px; box-shadow: 0 12px 30px rgba(18, 42, 54, 0.12); }
  .menu-panel a { padding: 12px; text-decoration: none; border-radius: var(--radius); }
  .menu-panel a:hover { background: var(--panel); }
  .menu-panel .btn { margin-top: 6px; color: var(--on-ink); }
}

/* Sections */
section { padding-block: clamp(64px, 9vw, 120px); }
.band-white { background: var(--white); }
.band-panel { background: var(--panel); }
.band-dark { background: var(--ink); color: var(--on-ink); }
.band-deep { background: var(--ink-deep); color: var(--on-ink); }
.band-dark .eyebrow, .band-deep .eyebrow { color: var(--gold-soft); }
.band-dark .prose, .band-deep .prose, .band-dark .lede, .band-deep .lede { color: var(--on-ink-2); }
.band-dark a, .band-deep a { color: var(--on-ink); }
.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero-copy h1 em { font-style: italic; color: var(--gold-ink); }
.hero-note { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* The change review card (the hero's proof) */
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 24px 60px -30px rgba(18, 42, 54, 0.35); overflow: hidden; min-width: 0; }
.review-top { padding: 18px 22px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.review-meta { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-ink); }
.review-title { font-family: var(--display); font-size: 1.75rem; line-height: 1.1; font-weight: 500; }
.review-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.review-facts div { padding: 12px 22px; display: grid; gap: 2px; border-right: 1px solid var(--line); min-width: 0; }
.review-facts div:last-child { border-right: 0; }
.review-facts dt { font-size: 0.75rem; color: var(--muted); }
.review-facts dd { margin: 0; font-weight: 500; font-size: 0.95rem; }
.review-body { padding: 18px 22px 22px; display: grid; gap: 14px; }
.review-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; border-radius: 999px; padding: 4px 10px; }
.pill-high { background: var(--drift-light); color: var(--drift); }
.pill-ok { background: var(--ok-light); color: var(--ok); }
.review-quote { font-family: var(--display); font-size: 1.4rem; line-height: 1.25; color: var(--ink); }
.review-touch { font-size: 0.92rem; color: var(--ink-2); }
.review-option { background: var(--panel); border-radius: var(--radius); padding: 12px 14px; font-size: 0.92rem; color: var(--ink-2); }
.review-option strong { color: var(--ink); }
.review-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.85rem; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.review-foot b { color: var(--ink); font-weight: 600; }
@media (max-width: 480px) { .review-facts { grid-template-columns: minmax(0, 1fr); } .review-facts div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 780px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.problem { display: grid; gap: 12px; padding-top: 22px; border-top: 2px solid var(--ink); min-width: 0; }
.problem p { color: var(--ink-2); }

/* The primitive: Charter parts with their codes */
.parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(205, 187, 154, 0.35); }
@media (max-width: 1000px) { .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .parts { grid-template-columns: minmax(0, 1fr); } }
.part { padding: 26px 24px 28px 0; display: grid; gap: 12px; align-content: start; min-width: 0; }
.part + .part { padding-left: 24px; border-left: 1px solid rgba(205, 187, 154, 0.35); }
@media (max-width: 1000px) { .part:nth-child(3) { padding-left: 0; border-left: 0; } .part:nth-child(n+3) { border-top: 1px solid rgba(205, 187, 154, 0.35); } }
@media (max-width: 560px) { .part, .part + .part { padding-left: 0; border-left: 0; } .part + .part { border-top: 1px solid rgba(205, 187, 154, 0.35); } }
.part h3 { color: var(--on-ink); }
.part p { color: var(--on-ink-2); font-size: 0.97rem; }
.charter-line { border-left: 2px solid var(--gold-soft); padding: 4px 0 4px 12px; font-size: 0.95rem; color: var(--on-ink); }
.charter-line .tag { display: block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--gold-soft); margin-bottom: 2px; }
.footnote { margin-top: 28px; font-size: var(--step--1); color: var(--on-ink-2); max-width: 70ch; }

/* Steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--gold); }
.steps h3 { font-family: var(--display); font-size: var(--step-2); font-weight: 500; }
.steps p { color: var(--ink-2); font-size: 0.98rem; }

/* Audience paths */
.path { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; align-content: start; text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s; min-width: 0; }
.path:hover { border-color: var(--gold); transform: translateY(-2px); }
.path h3 { font-family: var(--display); font-size: var(--step-2); font-weight: 500; }
.path p { color: var(--ink-2); }
.path ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); display: grid; gap: 4px; }
.path .more { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* Product tour */
.tour-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tour-tabs button { font: inherit; font-size: 0.92rem; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); cursor: pointer; }
.tour-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.shot { margin: 0; display: grid; gap: 12px; }
.shot img { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 24px 60px -34px rgba(18, 42, 54, 0.45); background: var(--white); }
.shot figcaption { font-size: var(--step--1); color: var(--muted); max-width: 80ch; }
.tour .shot + .shot { margin-top: 56px; }
.js .tour .shot + .shot { margin-top: 0; }

/* AI band */
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: minmax(0, 1fr); } }
.ai-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ai-list li { padding: 16px 0; border-top: 1px solid rgba(205, 187, 154, 0.3); display: grid; gap: 4px; }
.ai-list li:last-child { border-bottom: 1px solid rgba(205, 187, 154, 0.3); }
.ai-list b { color: var(--on-ink); font-weight: 600; }
.ai-list span { color: var(--on-ink-2); font-size: 0.97rem; }

/* Works with */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.tool { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.tool b { font-weight: 600; }
.tool span { color: var(--ink-2); font-size: 0.95rem; }
.small { font-size: var(--step--1); color: var(--muted); }

/* Built with */
.built { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .built { grid-template-columns: minmax(0, 1fr); } }
.pair { display: grid; gap: 18px; }
.pair div { border-top: 2px solid var(--ink); padding-top: 14px; display: grid; gap: 6px; }
.pair p { color: var(--ink-2); }

/* CTA */
.cta { text-align: left; }
.cta .head { margin-bottom: 28px; }

/* Feature pages */
.page-hero { padding-block: clamp(48px, 7vw, 90px) clamp(40px, 6vw, 70px); }
.page-hero .head { margin-bottom: 0; max-width: 820px; }
.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); } }
.feature-head { display: grid; gap: 10px; align-content: start; }
.feature-head h2 { font-size: var(--step-2); }
.feature ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--ink-2); }
.feature ul b { color: var(--ink); font-weight: 600; }
.feature .shot { margin-top: 22px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
@media (max-width: 780px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.fact { padding-block: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.fact p { color: var(--ink-2); }

/* Footer */
.site-foot { background: var(--ink-deep); color: var(--on-ink-2); padding-block: 56px 40px; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
.site-foot h4 { margin: 0 0 12px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--on-ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: var(--gold-soft); }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand .brand-name { color: var(--on-ink); }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(205, 187, 154, 0.25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
.select { user-select: all; }

.foot-legal .foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-company { margin-top: 12px; font-size: 0.8rem; color: var(--on-ink-2); max-width: 90ch; }
