/* aicorn website: layout, type and components.
   Brand colours: purple and lilac from the intro animation, on cream. */

@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/montserrat.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/source-sans-3.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-italic.woff2) format('woff2'); }

:root {
  --purple: #432C83;
  --purple-deep: #2B1B5C;
  --purple-ink: #1F1638;
  --lilac: #A58BE6;
  --lilac-soft: #ECE5FA;
  --cream: #FBF7EF;
  --cream-deep: #F3EADB;
  --paper: #FFFFFF;
  --ink: #1F1638;
  --muted: #564E6B;
  --line: rgba(67, 44, 131, .16);
  --oak: #8A6A3B;
  --display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --wrap: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--purple); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--purple-deep); text-decoration-color: var(--lilac); }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--purple-ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.2vw + 1rem, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; color: var(--purple-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--purple); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--display); letter-spacing: .01em; text-decoration: none;
  padding: 15px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-ghost:hover { background: var(--purple); color: #fff; }
.btn-light { background: var(--cream); color: var(--purple-ink); }
.btn-light:hover { background: #fff; color: var(--purple); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.text-link { font-family: var(--display); font-weight: 600; font-size: .98rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* The page panel: opens below the tree, rounded, almost full width */
main { padding: 0 clamp(8px, 1.6vw, 24px) clamp(24px, 4vw, 48px); }
.sheet {
  position: relative; max-width: 1480px; min-height: 92vh; margin: 0 auto;
  background: var(--cream); border-radius: clamp(18px, 2.4vw, 32px); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -50px rgba(31, 22, 56, .55);
  transition: opacity .2s ease;
}
.sheet:focus { outline: none; }
.sheet.is-loading { opacity: .45; }
.sheet-tabs { position: absolute; top: 18px; right: 22px; z-index: 2; display: flex; gap: 6px; padding: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.sheet-tabs a { padding: 9px 16px; border-radius: 999px; font: 600 .9rem/1 var(--display); text-decoration: none; color: var(--purple-ink); }
.sheet-tabs a:hover { background: var(--lilac-soft); }
.sheet-tabs a[aria-current="page"] { background: var(--purple); color: #fff; }

/* Floating button back up to the tree */
.to-tree {
  position: fixed; left: 50%; bottom: 18px; z-index: 40; transform: translate(-50%, 20px);
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px 11px 14px; border-radius: 999px;
  background: var(--purple); color: #fff; text-decoration: none; font: 600 .92rem/1 var(--display);
  box-shadow: 0 12px 30px -12px rgba(31, 22, 56, .6);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-tree svg { width: 16px; height: 16px; }
.to-tree.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.to-tree:hover { background: var(--purple-deep); color: #fff; }

/* Sections */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding: clamp(44px, 5vw, 72px) 0; }
.section-paper { background: var(--paper); }
.section-deep { background: var(--cream-deep); }
.section-purple { background: var(--purple); color: #EFEAFB; }
.section-purple h2, .section-purple h3, .section-purple strong { color: #fff; }
.section-ink { background: var(--purple-ink); color: #DCD5EE; }
.section-ink h2, .section-ink h3, .section-ink strong { color: #fff; }
.section-ink a:not(.btn), .section-purple a:not(.btn) { color: #fff; }
.eyebrow { display: inline-block; font: 600 .78rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--purple); margin-bottom: 16px; }
.section-ink .eyebrow { color: var(--lilac); }
.section-purple .eyebrow { color: #CDBDF5; }
.lead { font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem); color: var(--muted); max-width: 46em; }
.section-ink .lead, .section-purple .lead { color: #D9D1EE; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--purple-ink); line-height: 1.45; }

/* Home hero */
.hero { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.hero h1 { max-width: 13em; }
.hero .sub { font: 600 clamp(1.2rem, 1vw + 1rem, 1.6rem)/1.3 var(--display); color: var(--purple); margin: -.2em 0 .9em; }
.hero p.lead { max-width: 40em; }
.hero-mark { position: absolute; right: -60px; top: 40px; width: 360px; opacity: .05; fill: var(--purple); pointer-events: none; }
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; list-style: none; margin: 0; padding: 20px 0; }
.trust-strip li { margin: 0; display: inline-flex; align-items: center; gap: 9px; font: 600 .95rem/1.2 var(--display); color: var(--purple-ink); }
.trust-strip svg { width: 18px; height: 18px; color: var(--purple); flex: none; }

/* Page hero */
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); background: var(--cream-deep); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 16em; }
.page-hero .lead { margin-bottom: 0; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.step-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font: 600 .86rem/1 var(--display); color: var(--purple); text-decoration: none; }

/* Problem list */
.check-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 36px; margin: 0; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .28em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--lilac-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23432C83' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}
.pain-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pain-list li { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.callout { margin-top: 36px; padding: 26px 30px; border-left: 4px solid var(--lilac); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.callout p:last-child { margin-bottom: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; }
.stat-figure { font: 700 clamp(1.6rem, 1.4vw + .9rem, 2.1rem)/1.1 var(--display); color: #fff; letter-spacing: -.02em; margin-bottom: 12px; }
.stat p { font-size: 1rem; color: #DCD5EE; flex: 1; }
.stat cite { font-style: normal; font-size: .84rem; color: var(--lilac); }
.stat cite a { color: var(--lilac) !important; }
.stat-note { margin-top: 30px; font: 600 1.15rem/1.4 var(--display); color: #fff; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(31, 22, 56, .45); border-color: var(--lilac); color: var(--ink); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--lilac-soft); color: var(--purple); display: grid; place-items: center; margin-bottom: 6px; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin: 0; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.card .more { margin-top: auto; padding-top: 10px; font: 600 .9rem/1 var(--display); color: var(--purple); }
.card.is-star { grid-column: span 2; background: var(--purple); border-color: var(--purple); color: #E9E3F8; }
.card.is-star h3 { color: #fff; font-size: 1.45rem; }
.card.is-star p { color: #DCD5EE; font-size: 1.08rem; }
.card.is-star .ico { background: rgba(255, 255, 255, .14); color: #fff; }
.card.is-star .more { color: #fff; }
.card.is-star .tag { background: transparent; color: #CDBDF5; border-color: rgba(205, 189, 245, .6); margin: 0 0 4px; align-self: flex-start; }
a.card.is-star:hover { color: #fff; border-color: var(--lilac); }
.cards + .center-link { margin-top: 32px; text-align: center; }

/* Legacy highlight */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.feature-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.feature-list li { margin: 0; padding: 16px 18px 16px 50px; position: relative; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; }
.feature-list li::before { content: ''; position: absolute; left: 18px; top: 21px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--lilac); }
.side-note { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 24px 26px; }
.big-quote { font: 600 clamp(1.3rem, 1vw + 1rem, 1.6rem)/1.35 var(--display); color: #fff; margin: 28px 0 0; }

/* Connection diagram (legacy) */
.flow { display: grid; gap: 14px; }
.flow-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.flow-chip { border-radius: 10px; padding: 12px 10px; text-align: center; font: 600 .86rem/1.25 var(--display); }
.flow-old { background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .35); color: #fff; }
.flow-new { background: rgba(255, 255, 255, .14); color: #fff; }
.flow-ai { background: var(--lilac); color: var(--purple-ink); padding: 18px; font-size: 1rem; border-radius: 12px; text-align: center; font-family: var(--display); font-weight: 700; }
.flow-log { border-top: 2px dotted rgba(165, 139, 230, .7); padding-top: 10px; text-align: center; font-size: .88rem; color: #CDBDF5; font-family: var(--display); font-weight: 600; letter-spacing: .04em; }
.flow-arrow { text-align: center; color: var(--lilac); font-size: 1.2rem; line-height: 1; }

/* Approach rings */
.rings-layout { display: grid; grid-template-columns: minmax(280px, 560px) 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.rings svg { width: 100%; height: auto; display: block; }
.rings-layout { align-items: start; }
.rings { position: sticky; top: 24px; margin: 0; }
.rings text { font-family: var(--display); font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { margin: 0; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem/1 var(--display); color: #fff; background: var(--purple); }
.steps .num.assure { background: var(--oak); }
.steps h3 { margin: 6px 0 4px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }
.steps p a { font-weight: 600; }

/* Examples */
.examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; padding: 0; }
.examples li { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; font-size: 1.02rem; }

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.why-grid li { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.why-grid strong { display: block; font-family: var(--display); font-size: 1.08rem; margin-bottom: 6px; }
.why-grid span { color: var(--muted); font-size: 1rem; }

/* Start small */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: j; }
.journey li { margin: 0; position: relative; padding: 30px 26px 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.journey li::before { counter-increment: j; content: counter(j); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--lilac-soft); color: var(--purple); font: 700 1.05rem/1 var(--display); margin-bottom: 16px; }
.journey h3 { margin-bottom: 8px; }
.journey p { margin: 0; color: var(--muted); }

/* Teaser + CTA */
.teaser { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 4vw, 48px); }
.teaser h2 { margin-bottom: .3em; }
.teaser p { margin: 0; color: var(--muted); max-width: 36em; }
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18em; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 40em; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }

/* Prose pages */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul li::marker { color: var(--lilac); }
.prose .note { font-style: italic; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.8em; font-size: 1rem; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--purple-ink); background: var(--lilac-soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; color: var(--purple-ink); width: 38%; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 1.6em 0; }
.box > :last-child { margin-bottom: 0; }
.box-purple { background: var(--purple); border-color: var(--purple); color: #E9E3F8; }
.box-purple h2, .box-purple h3, .box-purple strong { color: #fff; }
.result { font-family: var(--display); font-weight: 600; color: var(--purple); font-size: 1.08rem; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside .box { margin: 0; }
.aside h3 { font-size: 1.05rem; margin-bottom: .5em; }
.aside ul { list-style: none; padding: 0; margin: 0; }
.aside li { margin: 0; border-top: 1px solid var(--line); }
.aside li a { display: block; padding: 9px 0; text-decoration: none; font-size: .98rem; }
.aside li a[aria-current="page"] { font-weight: 600; color: var(--purple-ink); }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; }
.principles li { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative; font: 600 1.08rem/1.35 var(--display); color: var(--purple-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 500; color: var(--purple); }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding: 0 24px 20px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Forms (contact + calculator) */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 600 .95rem/1.3 var(--display); color: var(--purple-ink); }
.field .opt { font-family: var(--sans); font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid rgba(67, 44, 131, .3); border-radius: 10px; padding: 13px 14px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(165, 139, 230, .35); }
.field-error { color: #A12A3A; font-size: .9rem; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--purple); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: 12px; display: none; }
.form-status.is-ok { display: block; background: #EAF6EE; color: #1E5631; border: 1px solid #A9D8B8; }
.form-status.is-err { display: block; background: #FBECEE; color: #7C1F2C; border: 1px solid #EDB7BF; }
.form-small { font-size: .93rem; color: var(--muted); margin-top: 16px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 44px); }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.calc .contact-card { display: grid; gap: 18px; align-content: start; }
.calc-result { background: var(--purple); color: #E3DCF6; border-radius: 20px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.calc-result .big { font: 700 clamp(2rem, 3vw + 1rem, 3rem)/1.05 var(--display); color: #fff; display: block; margin: 4px 0 14px; letter-spacing: -.02em; }
.calc-result p { font-size: 1.08rem; }
.calc-result strong { color: #fff; }
.calc-result hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .2); margin: 10px 0 22px; width: 100%; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-prefix input { padding-left: 30px; }

/* Footer */
.site-footer { padding: 4px 0 28px; font-size: .9rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.footer-row p { margin: 0; }
.footer-row ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.footer-row li { margin: 0; }
.footer-row a { color: var(--muted); }
.footer-row a:hover { color: var(--purple); }

/* Contact form: the human check status beside Send */
.send-row { margin-top: 18px; align-items: center; }
.human-check { font-size: .92rem; color: var(--muted); }
.human-check.is-ok { color: #1E6B3A; }

/* 404 */
.not-found { min-height: 50vh; display: grid; align-content: center; }

/* Responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card.is-star { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .layout-aside { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .split, .rings-layout, .calc { grid-template-columns: 1fr; }
  .why-grid, .journey { grid-template-columns: 1fr; }
  .examples, .pain-list, .principles { grid-template-columns: 1fr; }
  .rings { max-width: 440px; margin: 0 auto; position: static; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .sheet-tabs { position: static; margin: 14px 14px 0; justify-content: center; }
  .sheet-tabs a { padding: 9px 12px; font-size: .84rem; white-space: nowrap; }
  .cards, .stats { grid-template-columns: 1fr; }
  .card.is-star { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; width: 100%; }
  .prose thead { display: none; }
  .prose td:first-child { width: 100%; padding-bottom: 4px; border-bottom: 0; }
  .prose td + td { padding-top: 0; }
  .trust-strip ul { justify-content: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Print */
@media print {
  .site-footer, .intro, .to-tree, .btn-row, .sheet-tabs { display: none !important; }
  .sheet { box-shadow: none; }
  body { background: #fff; }
}
