/* I-STRATA site styles, design refresh.
   Light warm paper, deep brown ink, indigo for action, lilac as a quiet mark.
   Headings: Instrument Serif. Body: Inter. Labels: JetBrains Mono. */
:root {
  --paper: #faf7f2;
  --paper-2: #f3ede4;
  --ink: #1a1410;
  --muted: #6a5d51;
  --line: #e3dacd;
  --field-line: #b9ab9a;
  --indigo: #324376;
  --lilac: #d59fe4;
  --dark: #1a1410;
  --dark-ink: #f5ebde;
  --dark-muted: #b9ab9a;
  --dark-line: #3a2c20;
  --radius: 10px;
  --wrap: 70rem;
  --font-head: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* names kept from the earlier stylesheet so older rules and inline uses still resolve */
  --bg: var(--paper); --panel: var(--paper-2); --panel-2: var(--paper-2); --accent: var(--indigo); --on-accent: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden], .hidden { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--lilac); color: var(--ink); }
img { max-width: 100%; height: auto; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0 0 0.6em; }
h1, h2 { font-family: var(--font-head); font-weight: 400; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.7rem, 1.5rem + 5.6vw, 5.4rem); line-height: 1.02; max-width: 15ch; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); line-height: 1.08; max-width: 22ch; }
h3 { font: 600 1.0625rem/1.35 var(--font-body); letter-spacing: -0.005em; }
h4.level { font: 600 1.0625rem/1.35 var(--font-body); letter-spacing: -0.005em; margin: 1.75rem 0 0.4rem; }
h3 a { color: inherit; text-decoration: none; }
h3 a:hover { color: var(--indigo); }
p, ul, ol, dl { margin: 0 0 1em; }
.accent { font-style: italic; color: var(--ink); background: linear-gradient(transparent 68%, rgba(213, 159, 228, 0.6) 68%, rgba(213, 159, 228, 0.6) 92%, transparent 92%); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }
.narrow { max-width: 44rem; }
.center { text-align: center; }
.center h2 { margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 30; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 15; background: rgba(250, 247, 242, 0.88); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; max-width: 80rem; }
.brand { display: inline-flex; margin-right: auto; }
.brand img { display: block; height: 18px; width: auto; filter: brightness(0); opacity: 0.92; }
@media (min-width: 30rem) { .brand img { height: 20px; } }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-btn { font: 500 0.72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); border: 1px solid var(--field-line); border-radius: 999px; padding: 0.6rem 0.9rem; cursor: pointer; }
.nav-toggle:focus-visible + .nav-btn { outline: 2px solid var(--indigo); outline-offset: 3px; }
.nav-toggle:checked + .nav-btn { background: var(--paper-2); }
.site-nav { display: none; width: 100%; }
.nav-toggle:checked ~ .site-nav { display: block; }
.nav { list-style: none; margin: 0; padding: 0.5rem 0 0.25rem; }
.nav a { display: block; padding: 0.85rem 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 500 0.95rem/1.2 var(--font-body); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--indigo); }
.site-header .header-cta { display: none; }
@media (min-width: 30rem) { .site-header .header-cta { display: inline-block; } }
@media (min-width: 72rem) {
  .nav-btn, .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; order: 0; }
  .header-cta { order: 1; margin-left: 0.5rem; }
  .nav { display: flex; gap: 1.6rem; padding: 0; }
  .nav a { border: 0; padding: 0.4rem 0; font-size: 0.875rem; white-space: nowrap; color: var(--muted); transition: color 0.15s; }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
}

/* Buttons: one solid style, one outline. No colour blocks. */
.btn { display: inline-block; padding: 0.85rem 1.4rem; border-radius: 999px; font: 500 0.9375rem/1.2 var(--font-body); text-decoration: none; text-align: center; border: 1px solid var(--ink); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--indigo); border-color: var(--indigo); }
.btn-secondary, .btn-ghost { background: transparent; color: var(--ink); border-color: var(--field-line); }
.btn-secondary:hover, .btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn-block { display: block; width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin: 2rem 0 0; }
.actions .more { margin-top: 0; align-self: center; }
.center-actions { justify-content: center; }

/* Sections */
.hero { padding: 4rem 0 3rem; }
@media (min-width: 40rem) { .hero { padding: 7.5rem 0 5.5rem; } }
.hero-page { padding-top: 2.5rem; padding-bottom: 1rem; }
@media (min-width: 40rem) { .hero-page { padding-top: 4rem; padding-bottom: 1.5rem; } }
.hero-page h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.2rem); max-width: 18ch; }
.eyebrow, .step-label, .footer-head, .meta { font: 500 0.72rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }
.eyebrow { margin-bottom: 1.4rem; }
.eyebrow::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lilac); margin-right: 0.6rem; vertical-align: 0.02em; }
.step-label { margin-bottom: 0.5rem; }
.meta { margin-bottom: 0.6rem; }
.lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.55; color: var(--muted); max-width: 38rem; margin-top: 1.6rem; }
.section { padding: 4rem 0; }
@media (min-width: 40rem) { .section { padding: 6.5rem 0; } }
.alt { background: var(--paper-2); }
.section-lead { color: var(--muted); max-width: 38rem; font-size: 1.125rem; margin-bottom: 2.5rem; }
.small { font-size: 0.9rem; color: var(--muted); }
.muted { color: var(--muted); font-size: 0.9rem; }

.facts { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; list-style: none; padding: 1.5rem 0 0; margin: 3.5rem 0 0; border-top: 1px solid var(--line); font: 500 0.72rem/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Cards and panels: open blocks on a hairline, not boxes */
.cards { display: grid; gap: 2.75rem 2.5rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.card.wide { max-width: 44rem; margin-bottom: 1.5rem; }
.card p, .panel p { color: var(--muted); }
.panel { background: var(--paper-2); border-radius: var(--radius); padding: 1.75rem; }
.alt .panel { background: var(--paper); }
.plan .btn, .card > .btn { margin-top: auto; }
.plan .ticks { margin-bottom: 1.5rem; }
.plan-pay { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.plan-pay .btn { flex: 1 1 7rem; margin-top: 0; }
.more { font-weight: 500; font-size: 0.9375rem; margin-top: auto; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--field-line); align-self: flex-start; padding-bottom: 1px; transition: border-color 0.15s, color 0.15s; }
.more::after { content: " \2192"; display: inline-block; margin-left: 0.3em; transition: transform 0.15s; }
.more:hover { color: var(--indigo); border-color: var(--indigo); }
.more:hover::after { transform: translateX(3px); }
.price { font: 400 1.75rem/1.15 var(--font-head); color: var(--ink) !important; margin-bottom: 0.75rem; }
.price span { font: 400 0.9rem var(--font-body); color: var(--muted); }
.price.big { font-size: 2.4rem; margin: 1.5rem 0 0.25rem; }
.callout { border-left: 2px solid var(--lilac); border-radius: 0 var(--radius) var(--radius) 0; }
.callout h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .split { grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; } }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: 0.55rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.7rem; height: 1px; background: var(--ink); }

/* Steps */
.steps { list-style: none; padding: 0; margin-top: 2.5rem; counter-reset: step; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); } }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.09em; color: var(--muted); margin-bottom: 1.6rem; }
.steps p { margin: 0; color: var(--muted); }

/* Homepage: the three lines as rows, and the short problem list */
.lines { list-style: none; padding: 0; margin: 3rem 0 0; border-bottom: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 1fr; gap: 0.4rem 2rem; padding: 2rem 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: padding 0.2s; }
.line-no, .line-price { font: 500 0.72rem/1.6 var(--font-mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.line-title { font: 400 clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem)/1.1 var(--font-head); letter-spacing: -0.01em; margin: 0; }
.line-text { color: var(--muted); margin: 0; max-width: 34rem; }
.line-go { display: none; }
@media (min-width: 56rem) {
  .line { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.15fr) 11rem 1.5rem; align-items: baseline; padding: 2.4rem 0; }
  .line-price { text-align: right; }
  .line-go { display: block; font-size: 1.25rem; transition: transform 0.2s; }
  .line:hover { padding-left: 0.75rem; }
  .line:hover .line-title { color: var(--indigo); }
  .line:hover .line-go { transform: translateX(4px); }
}
.solve { list-style: none; padding: 0; margin: 3rem 0 2.5rem; display: grid; grid-template-columns: 1fr; gap: 0 3rem; }
@media (min-width: 48rem) { .solve { grid-template-columns: 1fr 1fr; } }
.solve li { display: grid; grid-template-columns: 2.5rem 1fr; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.solve li span { font: 500 0.72rem/1.9 var(--font-mono); letter-spacing: 0.09em; color: var(--muted); }
.solve strong { font-weight: 600; }
.solve p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.975rem; }
.statement { font: 400 clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem)/1.12 var(--font-head); letter-spacing: -0.015em; max-width: 27ch; margin: 0 0 2.25rem; }
.inline-links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 0; }

/* Questions */
details { border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.75rem 0 0; color: var(--muted); max-width: 44rem; }

/* Dark moments: closing call, work strip, footer */
.cta-band, .work-strip, .site-footer, .dark { background: var(--dark); color: var(--dark-ink); }
.cta-band { padding: 5rem 0; }
@media (min-width: 40rem) { .cta-band { padding: 8rem 0; } }
.cta-band h2 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.2rem); max-width: 18ch; }
.cta-band p, .dark p:not(.eyebrow) { color: var(--dark-muted); font-size: 1.125rem; }
.cta-band .btn, .dark .btn { border-color: var(--dark-ink); }
.cta-band .btn-primary, .dark .btn-primary { background: var(--dark-ink); color: var(--dark); }
.cta-band .btn-primary:hover, .dark .btn-primary:hover { background: var(--lilac); border-color: var(--lilac); }
.cta-band .btn-secondary, .cta-band .btn-ghost, .dark .btn-secondary { color: var(--dark-ink); border-color: #6a5d51; }
.cta-band .btn-secondary:hover, .cta-band .btn-ghost:hover { border-color: var(--dark-ink); }
.dark a:not(.btn), .dark .more { color: var(--dark-ink); }
.dark .statement { color: var(--dark-ink); }
.dark .eyebrow { color: var(--dark-muted); }
.share { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.share-row p { margin: 0 auto 0 0; color: var(--muted); }
.share-row strong { color: var(--ink); }
.work-strip { border-top: 1px solid var(--dark-line); padding: 1.4rem 0; font-size: 0.95rem; }
.work-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.work-strip p { margin: 0 auto 0 0; color: var(--dark-muted); }
.work-strip strong { color: var(--dark-ink); font-weight: 500; }
.work-strip a { color: var(--dark-ink); font-weight: 500; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 1.5rem 0 0; margin: 0; font: 500 0.72rem/1.5 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 0.5rem; color: var(--field-line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* Long text pages: a quiet reading column */
.article { padding-top: 2rem; }
.article > .wrap { max-width: 44rem; line-height: 1.75; font-size: 1.125rem; }
.article h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); max-width: none; }
.article h2 { margin-top: 2.5rem; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); max-width: none; }
.article h3 { margin-top: 1.75rem; font-size: 1.125rem; }
.article ul, .article ol { padding-left: 1.25rem; }
.article li { margin-bottom: 0.4rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.issue-list { list-style: none; padding: 0; }
.issue-list li { border-top: 1px solid var(--line); padding: 1.75rem 0; }
.draft-note, .template-note { border-left: 2px solid var(--lilac); background: var(--paper-2); padding: 0.75rem 1rem; border-radius: 0 6px 6px 0; }
.empty { border: 1px dashed var(--field-line); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; color: var(--muted); }

/* Team and details */
.person { max-width: 36rem; }
.role { color: var(--muted); font-weight: 400; }
.details-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; }
.details-list dt { font-weight: 600; }
.details-list dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 30rem) { .details-list { grid-template-columns: 1fr; gap: 0.1rem; } .details-list dd { margin-bottom: 0.6rem; } }
.contact-panel .details-list { margin-top: 1.5rem; }

/* Forms */
.form { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 500; font-size: 0.9rem; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--field-line); border-radius: 8px; padding: 0.8rem 0.9rem; width: 100%; transition: border-color 0.15s, box-shadow 0.15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(50, 67, 118, 0.15); }
textarea { resize: vertical; }
.check { grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; accent-color: var(--indigo); }
.check label { font-weight: 400; }
.form .btn { justify-self: start; }

/* Footer */
.site-footer { border-top: 1px solid var(--dark-line); padding: 4rem 0 6rem; font-size: 0.9rem; }
.footer-brand { margin-bottom: 3rem; max-width: 30rem; }
.footer-brand img { display: block; height: 20px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--dark-muted); margin-bottom: 0.4rem; }
.footer-grid { display: grid; gap: 2.5rem 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: repeat(5, 1fr); } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer li a { color: var(--dark-ink); text-decoration: none; opacity: 0.85; }
.site-footer li a:hover { opacity: 1; text-decoration: underline; }
.footer-head { color: var(--dark-muted); margin-bottom: 1rem; }
.footer-base { border-top: 1px solid var(--dark-line); margin-top: 3rem; padding-top: 1.25rem; }
.site-footer .muted, .site-footer .small { color: var(--dark-muted); }

/* Floating WhatsApp button: one small quiet circle */
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 20; display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--ink); color: var(--paper); border: 1px solid rgba(245, 235, 222, 0.25); border-radius: 50%; text-decoration: none; transition: background 0.15s, transform 0.15s; }
.wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wa-float:hover { background: var(--indigo); transform: translateY(-2px); }

/* Gentle reveal on scroll. Only when the script is running and motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

@media print {
  body { background: #fff; color: #000; }
  .site-header, .cta-band, .share, .work-strip, .site-footer, .wa-float, .crumbs { display: none; }
  .alt, .panel { background: #fff; }
  a, .eyebrow, .price, .accent { color: #000 !important; background: none; }
  .lead, .card p, .panel p, .small, .meta { color: #222; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Archive articles: photos, tables, quotes */
.article figure { margin: 2rem 0 2.5rem; }
.article figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.article table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: 0.95rem; }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 0.65rem 0.9rem 0.65rem 0; text-align: left; vertical-align: top; }
.article th { font: 500 0.72rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom-color: var(--ink); }
.article blockquote { border-left: 2px solid var(--lilac); margin: 1.75rem 0; padding: 0.25rem 0 0.25rem 1.25rem; font: 400 1.5rem/1.35 var(--font-head); color: var(--ink); }
