/* Terracotta Studio — shared tokens and typography. */
.terra {
    --paper: #f7f0e8;
    --ink: #462a22;
    --muted: #755b50;
    --accent: #a94029;
    --tint: #ecddd0;
    --card: #fffaf5;
    --line: #dcc9bc;
    --olive: #52603e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--paper); }
h1, h2 { font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(54px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -4px; margin: 22px 0; }
h1 em { color: var(--accent); font-weight: 400; }
h2 { font-size: 42px; line-height: 1.12; letter-spacing: -1.7px; margin: 16px 0; }
h3 { font-size: 22px; letter-spacing: -.5px; }
.wrap { max-width: 1240px; margin: auto; padding: 0 48px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.7px; line-height: 1.6; text-transform: uppercase; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.small, .example-caption { font-size: 14px; color: var(--muted); line-height: 1.7; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 10; background: var(--ink); color: var(--paper); padding: 12px 20px; }
.skip-link:focus { top: 10px; }
/* Navigation and actions. */
.nav { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { font-size: 21px; font-weight: 750; letter-spacing: -1px; display: flex; align-items: center; gap: 9px; }
.mark { display: inline-flex; width: 30px; height: 30px; background: var(--accent); color: var(--paper); align-items: center; justify-content: center; border-radius: 50% 50% 50% 5px; font-size: 20px; }
.links { display: flex; gap: 30px; align-items: center; font-size: 15px; }
.links a:not(.button) { text-underline-offset: 6px; }
.links a:not(.button):hover, .footer a:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 15px 23px; background: var(--accent); color: var(--paper); border: 1px solid var(--accent); border-radius: 40px; font-size: 15px; font-weight: 600; transition: filter .18s ease, transform .18s ease; }
.button:hover { filter: brightness(.92); transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button span { transition: transform .18s ease; }
.button:hover span { transform: translate(2px, -2px); }
.button.outline { background: transparent; color: var(--ink); border-color: var(--line); white-space: nowrap; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
/* Hero and interactive example. */
.hero { padding: 42px 0 44px; }
.split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; gap: 46px; }
.copy { padding-top: 10px; }
p.lead { max-width: 475px; margin: 22px 0 25px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.secondary-action { font-size: 15px; padding: 10px 0; }
.hero .small { margin-top: 17px; }
.visual { position: relative; background: #dfb29c; padding: 24px 20px 16px; border-radius: 44% 44% 3px 3px; }
.chat { position: relative; z-index: 1; background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 20px; transform: rotate(1.5deg); box-shadow: 10px 15px 0 #ba85634a; }
.chathead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; font-size: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chathead span { color: var(--muted); }
.bubble { font-size: 16px; background: var(--tint); padding: 10px 13px; border-radius: 14px 14px 3px 14px; margin: 16px 0 12px 12px; }
.reply { font-size: 16px; line-height: 1.55; margin: 0 0 16px; }
.product { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.product svg { width: 76px; height: 91px; flex-shrink: 0; background: #e7e3d5; border-radius: 4px; }
.product > div { min-width: 0; }
.product b { display: block; font-size: 17px; line-height: 1.4; }
.product small { display: block; color: var(--muted); font-size: 14px; }
.product strong { display: block; font-size: 18px; margin-top: 3px; }
.product-fact { display: block; font-size: 14px; line-height: 1.5; color: var(--olive); background: #edf0e5; padding: 6px 8px; border-left: 2px solid #718052; margin-top: 8px; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.demo-controls p { width: 100%; font-size: 14px; color: var(--muted); margin: 0 0 3px; }
.demo-controls button { border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; min-height: 44px; background: transparent; color: var(--ink); font-size: 14px; transition: background .18s ease, transform .18s ease; }
.demo-controls button:hover { background: var(--tint); transform: translateY(-1px); }
.demo-controls button[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.demo-note { font-size: 14px; line-height: 1.5; margin: 12px 0 0; color: var(--muted); }
.visual > .example-caption { text-align: center; margin: 12px 0 0; color: #594036; }
.platforms { display: flex; justify-content: space-between; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); padding: 27px 0; }
.platforms > span { font-size: 13px; color: var(--muted); max-width: 135px; }
.platforms b { font-size: 19px; letter-spacing: -.6px; }
.platforms b:nth-child(3) { font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
/* Editorial problem/action rows. */
.section { padding: 78px 0; }
.section-top { display: flex; justify-content: space-between; align-items: start; gap: 45px; margin-bottom: 36px; }
.section-top p { max-width: 370px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.scope-list { border-top: 1px solid var(--line); }
.scope-list article { display: grid; grid-template-columns: 45px minmax(0, 1fr) minmax(0, 1.15fr); gap: 26px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.scope-number { font: italic 28px Georgia, serif; color: var(--accent); }
.scope-problem h3 { font: 400 27px/1.25 Georgia, serif; letter-spacing: -.5px; margin: 9px 0 12px; }
.scope-problem p { font-size: 15px; line-height: 1.7; margin: 0; color: var(--muted); }
.problem-label, .scope-work-label { font-size: 14px; font-weight: 700; }
.problem-label { color: var(--muted); }
.scope-work-label { color: var(--olive); }
.scope-work { align-self: start; border-left: 2px solid #b8c29f; padding-left: 24px; min-width: 0; }
.scope-work ul { list-style: none; padding: 0; margin: 14px 0 0; }
.scope-work li { position: relative; padding-left: 19px; margin: 12px 0; font-size: 16px; line-height: 1.65; }
.scope-work li:first-child { margin-top: 0; }
.scope-work li:last-child { margin-bottom: 0; }
.scope-work li::before { content: ''; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; background: #657549; border-radius: 50%; }
.scope-caption { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 22px 0 0; }
/* Consultation versus implementation. */
.engagement { padding: 12px 0 0; }
.engagement > h2 { margin-bottom: 30px; }
.engagement-stages { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.engagement-stages article { padding: 25px 0; border-top: 2px solid var(--line); }
.engagement-stages article + article { border-color: #7d8b60; }
.stage-label { font-size: 14px; font-weight: 600; color: var(--accent); }
.engagement-stages h3 { font: 400 28px/1.25 Georgia, serif; margin: 18px 0; }
.engagement-stages p { font-size: 16px; line-height: 1.8; color: var(--muted); }
.engagement-stages .stage-outcome { padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); }
.engagement-signoff { font-size: 14px; color: var(--muted); margin: 0; }
/* FAQ. */
.faq { max-width: 780px; margin: auto; padding: 60px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--accent); }
.faq details[open] > summary::after { content: '−'; }
.faq details p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.faq details[open] > p { animation: answer-in .2s ease-out; }
@keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
/* Form, including error/success states. */
.consultation { scroll-margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 65px; padding: 60px 48px; background: var(--tint); border-radius: 6px; margin-bottom: 25px; }
.consultation h2 { font-size: 48px; margin: 25px 0; }
.consultation-intro > p { font-size: 16px; line-height: 1.85; color: #71584e; }
.consultation-intro > .small { font-size: 14px; }
.consultation-notes { margin: 30px 0; }
.consultation-notes p { position: relative; padding: 15px 0 15px 48px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.7; color: var(--muted); }
.consultation-notes strong { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.consultation-notes span { position: absolute; left: 0; top: 16px; color: var(--olive); font: 14px monospace; }
.consultation-panel { background: var(--card); border-radius: 8px; padding: 30px; min-width: 0; }
.consultation-panel h3 { margin: 0 0 8px; font-size: 22px; }
.consultation-panel .small { margin: 0 0 20px; color: #71584e; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 20px; }
label { font-size: 15px; display: block; font-weight: 600; margin-bottom: 7px; }
label span { font-weight: 400; color: #71584e; }
input, select, textarea { width: 100%; min-width: 0; background: var(--paper); border: 1px solid #9c8070; border-radius: 5px; color: var(--ink); padding: 12px; font-size: 16px; }
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: #755b50; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
[aria-invalid=true] { border-color: #a52321; }
.field-error, .field-hint { color: #972c20; font-size: 14px; }
.field-hint { margin: 7px 0 0; }
.honey-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.submit-button { width: 100%; border-radius: 30px; }
.form-privacy { font-size: 14px; color: #71584e; line-height: 1.7; margin: 15px 0 0; }
.form-privacy a { text-decoration: underline; }
.form-errors { border: 1px solid #a94c35; background: #fae7df; padding: 18px; font-size: 14px; border-radius: 6px; margin-bottom: 24px; }
.form-errors ul { padding-left: 20px; }
.form-success { padding: 15px 0; }
.form-success h3 { font: 400 36px/1.2 Georgia, serif; margin: 20px 0; }
.form-success p { font-size: 16px; }
.footer { display: flex; justify-content: space-between; align-items: center; padding: 35px 0; font-size: 14px; color: var(--muted); }
/* Shared privacy and error pages. */
.privacy-page { max-width: 760px; margin: 65px auto 90px; }
.privacy-page h1 { font-size: 56px; }
.privacy-page h2 { font-size: 26px; margin-top: 35px; }
.privacy-page p { line-height: 1.9; }
.privacy-page a { text-decoration: underline; }
/* Smaller laptops/tablets: keep text readable instead of squeezing columns. */
@media (max-width: 1100px) {
    .wrap { padding: 0 26px; }
    .split { gap: 28px; }
    h1 { font-size: clamp(48px, 5.8vw, 64px); letter-spacing: -2.8px; }
    .actions { gap: 10px; }
    .visual { padding: 20px 12px 14px; }
    .chat { padding: 16px; }
    .product { gap: 10px; }
    .product svg { width: 60px; height: 74px; }
    .consultation { padding: 36px; gap: 30px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 900px) {
    .links { gap: 18px; }
    .links a:not(.button) { display: none; }
    .split { grid-template-columns: 1fr; gap: 30px; }
    .visual { max-width: 570px; width: 100%; margin: auto; }
    .copy { padding-top: 0; }
    .platforms { flex-wrap: wrap; justify-content: center; }
    .platforms > span { max-width: none; width: 100%; text-align: center; }
    .section-top { display: block; }
    .section-top p { max-width: 600px; }
}
@media (max-width: 760px) {
    .wrap { padding: 0 22px; }
    .nav { min-height: 80px; gap: 8px; }
    .brand { font-size: 17px; letter-spacing: -.7px; }
    .mark { width: 25px; height: 25px; }
    .links .button { font-size: 14px; padding: 10px; }
    h1 { font-size: clamp(43px, 10.8vw, 54px); }
    h2 { font-size: 33px; }
    .hero { padding: 30px 0; }
    p.lead { font-size: 17px; }
    .visual { padding: 22px 12px 16px; }
    .chat { transform: none; }
    .product svg { width: 66px; height: 88px; }
    .product b { font-size: 16px; }
    .platforms b { font-size: 16px; }
    .section { padding: 50px 0; }
    .scope-list article { grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 23px 0; }
    .scope-work { grid-column: 2; border: 0; padding-left: 0; }
    .scope-number { font-size: 24px; }
    .scope-problem h3 { font-size: 25px; }
    .engagement-stages { grid-template-columns: 1fr; gap: 8px; }
    .engagement-stages article { padding: 22px 0; }
    .engagement-stages h3 { font-size: 26px; }
    .faq { padding: 45px 0; }
    .consultation { grid-template-columns: 1fr; padding: 25px 18px; gap: 20px; }
    .consultation h2 { font-size: 40px; }
    .consultation-panel { padding: 22px 16px; }
    .consultation-notes { margin: 15px 0; }
    .privacy-page h1 { font-size: 44px; }
    .footer { flex-wrap: wrap; gap: 20px; align-items: start; }
}
@media (max-width: 360px) {
    .wrap { padding: 0 16px; }
    .brand { font-size: 15px; gap: 6px; }
    .consultation { padding: 22px 10px; }
    .consultation-panel { padding: 20px 12px; }
    .product { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Product investigation introduction. */
.hero h1 { font-size: clamp(40px, 4.5vw, 60px); letter-spacing: -2px; line-height: 1.08; }
#how .engagement-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { #how .engagement-stages { grid-template-columns: 1fr; } }
