/* Standalone foundation for the editorial website. The studio lab owns its CSS. */
:root {
  --paper: #f4f1ea;
  --paper-bright: #fcfaf5;
  --ink: #252620;
  --muted: #68695e;
  --acid: #c5cf6b;
  --signal: #9c442f;
  --line: #d2d1c6;
  --line-light: #4b4f40;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --container: min(100% - 96px, 1440px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { min-width: 0; margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }
p { margin-bottom: 1em; }
main, section, article, form, fieldset { min-width: 0; }
:focus-visible { outline: 2px solid #535c30; outline-offset: 4px; }
.container { width: var(--container); margin-inline: auto; }
.narrow { max-width: 1184px; }
.section { padding: clamp(54px, 7vw, 104px) 0; }
.section-ink, .section-dark { color: var(--paper); background: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: -100px; left: 16px; padding: 12px 18px; color: var(--paper); background: var(--ink); }
.skip-link:focus { top: 12px; }
.eyebrow, .section-index { display: inline-flex; align-items: center; gap: 8px; font: 11px/1.5 "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow-light { color: #c1c5b7; }
.status-dot { display: inline-block; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; padding: 13px 21px; border: 1px solid var(--ink); border-radius: 2px; color: var(--paper); background: var(--ink); font-size: 14px; }
.button-full { width: 100%; }
.button-small { min-height: 44px; padding: 10px 15px; }
.button-light { color: var(--ink); background: var(--paper); }
.button-ghost { color: var(--ink); background: transparent; }

/* Familiar navigation, with a visible no-JavaScript mobile fallback. */
.site-header { position: relative; width: 100%; z-index: 100; }
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 112px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 14px; min-height: 44px; font-size: 18px; line-height: 1.1; font-weight: 500; }
.brand-symbol { display: block; flex-shrink: 0; width: 51px; aspect-ratio: 900 / 477; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a:not(.nav-cta), .nav-link-button { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; border: 0; color: inherit; background: none; font-size: 13px; }
.site-nav > a:not(.nav-cta)::after, .nav-link-button::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: currentColor; visibility: hidden; }
.site-nav > a:hover::after, .site-nav > a[aria-current="page"]::after, .nav-link-button:hover::after { visibility: visible; }
.site-nav form { display: contents; }
.nav-user { max-width: 130px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.nav-cta { display: inline-flex; align-items: center; justify-content: space-between; }
.nav-toggle { display: none; width: 48px; height: 48px; min-height: 44px; padding: 12px; border: 1px solid var(--line); border-radius: 2px; color: inherit; background: transparent; }
.nav-toggle span:not(.sr-only) { display: block; width: 100%; height: 1px; margin: 4px 0; background: currentColor; }
.nav-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-5px) rotate(-45deg); }

/* Footer: shared structure, with the art direction supplied by editorial.css. */
.site-footer { color: var(--paper); background: #292d23; }
.footer-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.footer-orbit { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; }
.footer-orbit i { font-style: normal; line-height: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.brand-footer { color: var(--paper); }
.footer-grid p { margin: 24px 0 0; }
.footer-grid h3 { margin: 0 0 16px; }
.footer-grid > div:not(:first-child) a { display: flex; align-items: center; width: fit-content; max-width: 100%; margin: 3px 0; overflow-wrap: anywhere; }
.footer-grid > div:not(:first-child) a:hover { color: var(--acid); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-bottom span { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom > a { display: inline-flex; align-items: center; min-height: 44px; }

/* Form essentials. Hidden fields remain hidden; only textareas are resizable. */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-group { min-width: 0; margin-bottom: 22px; }
.field-group label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 500; }
.field-group label span { color: var(--muted); font-weight: 400; }
.field-group input, .field-group select, .field-group textarea { width: 100%; padding: 14px; border: 1px solid #b7baaa; border-radius: 2px; color: var(--ink); background: #f8f6ef; font-size: 16px; }
.field-group input, .field-group select { height: 56px; min-height: 56px; resize: none; }
.field-group textarea { min-height: 150px; resize: vertical; }
.field-group :is(input, select, textarea):focus { outline: 2px solid #535c30; outline-offset: 2px; }
.field-error, .form-errors { margin: 7px 0 0; color: #932e22; font-size: 13px; }
.form-errors { margin-bottom: 24px; }
.help-text, .privacy-note { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.help-text ul { margin: 5px 0 0; padding-left: 17px; }
.human-check { display: grid; grid-template-columns: minmax(0, 1fr) 120px; min-width: 0; gap: 12px 20px; align-items: end; margin: 24px 0; padding: 20px; border: 1px solid #b7baaa; color: var(--ink); background: #dedfcf; }
.human-check-heading { display: flex; grid-column: 1 / -1; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid #b7baaa; }
.human-check-heading span { font: 11px/1.5 monospace; letter-spacing: .06em; text-transform: uppercase; }
.human-check-heading small { color: #535549; font-size: 11px; }
.human-check > p { min-width: 0; margin: 0; color: #535549; font-size: 13px; }
.human-check > p strong { display: block; margin-top: 6px; color: var(--ink); font: 500 27px/1.15 monospace; letter-spacing: .08em; }
.human-check .field-group { margin: 0; }
.human-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.messages { position: static; inset: auto; transform: none; margin: 24px auto 0; }
.message { padding: 16px 20px; border: 1px solid #a9b073; background: #d8dfab; color: var(--ink); }
.message.error { color: #932e22; background: #f3ded4; border-color: #c49a89; }
.auth-page { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.auth-aside { position: relative; display: flex; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; aspect-ratio: 900 / 477; background: url("../brand/cd-mark-solid.b8bbfacf2cd4.png") center / contain no-repeat; }
.auth-aside > div { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside blockquote { margin-inline: 0; }
.auth-main { display: grid; place-items: center; }
.auth-card { width: min(100%, 470px); }
.auth-card form { margin-top: 32px; }
.auth-card > p { color: var(--muted); }

/* Service detail and written commercial terms. */
.detail-list { border-top: 1px solid var(--line); }
.detail-row { display: grid; grid-template-columns: .18fr 1fr 1fr; gap: 48px; padding: 70px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.detail-row > div:first-child { display: flex; flex-direction: column; gap: 24px; }
.detail-row h2 { margin: 16px 0 0; }
.check-list { margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "+"; margin-right: 13px; color: var(--muted); }
.pricing-layout { align-items: start; }
.pricing-layout > div:first-child > p { max-width: 640px; }
.performance-principles { margin: 32px 0; padding: 0; border-top: 1px solid #aaae99; list-style: none; }
.performance-principles li { display: grid; grid-template-columns: 35px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid #aaae99; }
.performance-principles strong { display: block; margin-bottom: 5px; }
.performance-principles p, .pricing-terms { margin: 0; }
.partnership-card h3 { margin: 14px 0 26px; }
.partnership-card > p { margin-bottom: 24px; color: var(--muted); }
.partnership-factors { margin: 0 0 28px; border-top: 1px solid var(--line); }
.partnership-factors > div { display: grid; grid-template-columns: .85fr 1.15fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.partnership-factors dt { color: var(--muted); font: 11px/1.6 monospace; letter-spacing: .05em; text-transform: uppercase; }
.partnership-factors dd { margin: 0; font-size: 13px; }

/* The existing private TaskManager entry remains usable. */
.page-hero .button { margin-top: 16px; }
.remote-access-page { padding: 70px 0 90px; }
.remote-access-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: start; }
.remote-access-intro h1 { margin: 30px 0; font-size: clamp(44px, 5.8vw, 86px); line-height: 1.05; letter-spacing: -.05em; }
.remote-access-intro h1 em { color: var(--acid); }
.remote-access-lede { max-width: 550px; color: #c1c5b7; font-size: 18px; }
.remote-access-steps { margin: 45px 0 0; padding: 0; list-style: none; border-top: 1px solid #686f58; }
.remote-access-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid #686f58; }
.remote-access-steps span { color: var(--acid); font: 11px monospace; }
.remote-access-steps p { margin: 0; color: #d8dcce; font-size: 15px; }
.remote-access-panel { padding: 34px; color: var(--ink); background: var(--paper); border: 1px solid #b7baaa; }
.remote-access-panel-head { display: flex; align-items: start; gap: 16px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.remote-access-panel-head .status-dot { margin-top: 6px; background: #697637; }
.remote-access-panel-head h2 { margin: 12px 0 0; font-size: 30px; font-weight: 500; line-height: 1.1; letter-spacing: -.035em; }
.remote-access-privacy { margin-top: 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.remote-access-qr-note { display: flex; gap: 16px; padding-top: 22px; margin-top: 25px; border-top: 1px solid var(--line); }
.remote-access-qr-note > span { font-size: 24px; }
.remote-access-qr-note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.remote-access-qr-note strong { color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .remote-access-layout { grid-template-columns: 1fr; gap: 40px; }
  .remote-access-intro h1 { font-size: 65px; }
}
@media (max-width: 760px) {
  .remote-access-page { padding: 45px 0 60px; }
  .remote-access-intro h1 { font-size: clamp(39px, 8vw, 56px); }
  .remote-access-panel { padding: 25px 20px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .human-check { grid-template-columns: 1fr; }
  .human-check-heading { align-items: start; flex-direction: column; gap: 4px; }
  .human-check > p strong { max-width: 100%; font-size: clamp(21px, 6vw, 27px); letter-spacing: .05em; white-space: nowrap; }
  .human-check-answer { grid-column: 1; }
}
