/* Shared visual system. Layout and feature behavior remain in their modules. */
:root {
  --paper: #fbf0ea;
  --ink: #292727;
  --green: #292727;
  --muted: #b83b25;
  --line: #efd8cf;
  --surface: #fff;
  --accent-soft: #fbf0ea;
  --shadow-card: 0 3px 5px #29272703, 0 16px 40px #29272706;
}
body { font-family: 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: #efd8cf; color: #292727; }
h1,h2,h3 { letter-spacing: -.04em; }
h1,h2 { font-weight: 600; }
p { color: var(--muted); }
.brand { letter-spacing: -1.1px; font-weight: 750; }
.brand-mark { background: var(--green); color: #fff; border-radius: 11px; box-shadow: inset 0 1px #ffffff24; }
.button { border-radius: 9px; min-height: 44px; box-shadow: 0 2px 3px #29272710; }
.button.secondary { background: #fff; border-color: #efd8cf; box-shadow: none; }
.button.secondary:hover { background: #fbf0ea; }
.icon-button { min-width: 36px; min-height: 36px; border-radius: 9px; }
button:disabled { cursor: not-allowed; }
button:focus-visible,a:focus-visible,summary:focus-visible {
  outline: 3px solid #b83b25; outline-offset: 4px;
}
input:not([type=checkbox]):not([type=radio]),textarea,select {
  border-color: #efd8cf; background: #fff; border-radius: 9px;
  min-height: 44px; transition: border-color .15s, box-shadow .15s;
}
input:focus,textarea:focus,select:focus { outline: 2px solid #b83b25; outline-offset: 2px; }
input::placeholder,textarea::placeholder { color: #b83b25; }
label { font-size: 13px; font-weight: 500; color: #292727; }
.eyebrow { color: var(--green); font-size: 11px; letter-spacing: 1.6px; }
.site-header,.customer-header,.live-header { background: #fff; border-color: var(--line); }
.site-nav a { font-weight: 500; }
.site-footer { background: #fbf0ea; }
.form-card,.customer-panel,.customer-guide,.plan,.simple-card.bordered,.contact-card,.domain-panel {
  background: var(--surface); border-color: var(--line); border-radius: 16px; box-shadow: var(--shadow-card);
}
.form-card { padding: 36px; }
.form-card h2 { font-size: 28px; letter-spacing: -.8px; }
.form-card>p,.form-card>small { font-size: 13px; }
.form-card label { margin-bottom: 22px; }
.entry-page,.customer-entry { gap: 72px; padding-top: 64px; padding-bottom: 80px; }
.entry-intro h1,.customer-entry h1 { font-size: clamp(36px,4.5vw,58px); line-height: 1.08; }
.customer-entry>section { padding: 24px 0; }
.customer-entry>section>p { max-width: 440px; font-size: 16px; }
.customer-intro-steps { list-style: none; counter-reset: setup; padding: 0; }
.customer-intro-steps li { counter-increment: setup; display: flex; align-items: center; gap: 14px; padding: 10px 0; line-height: 1.6; }
.customer-intro-steps li::before { content: counter(setup,decimal-leading-zero); color: var(--green); background: var(--accent-soft); border-radius: 9px; padding: 7px 10px; font-size: 12px; font-weight: 700; }
.entry-art { background: var(--accent-soft); color: var(--green); border-radius: 18px; transform: none; }
.customer-header { min-height: 82px; }
.customer-header nav { font-size: 13px; font-weight: 500; }
.customer-main { padding-top: 44px; }
.customer-main h1 { margin-bottom: 12px; }
.customer-panel h2,.customer-guide h2 { font-weight: 600; margin-bottom: 16px; }
.customer-progress { gap: 12px; margin-block: 32px 24px; }
.customer-progress li { background: #fbf0ea; border-radius: 0 0 10px 10px; font-size: 13px; }
.customer-progress li.done { background: var(--accent-soft); }
.customer-domain { border-radius: 10px; padding: 15px; }
.customer-domain.selected { background: var(--accent-soft); border-color: #b83b25; }
.customer-record { background: #fbf0ea; border: 1px solid var(--line); border-radius: 12px; }
.customer-record code { line-height: 1.8; }
.customer-pending { background: #fff9ed; border-radius: 0 10px 10px 0; color: #785a29; }
.customer-guide details { padding: 20px 0; }
.customer-guide summary { font-size: 15px; }
.customer-guide details[open] summary { color: var(--green); margin-bottom: 14px; }
.stats-grid { gap: 18px; }
.stats-grid>div { border-radius: 14px; padding: 24px; background: #fff; box-shadow: var(--shadow-card); }
.stats-grid strong { font-size: 32px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats-grid span { font-size: 12px; }
.stats-grid .icon { color: var(--green); }
.table-scroll { background: #fff; border-radius: 12px; }
th { background: #fbf0ea; font-size: 11px; font-weight: 650; color: #b83b25; letter-spacing: .3px; }
td { font-size: 13px; padding-block: 20px; }
tbody tr:hover { background: #fffaf7; }
.table-person small { font-size: 12px; }
.tabs { gap: 24px; }
.tabs button { font-size: 14px; padding: 14px 5px; color: #b83b25; }
.tabs button.selected { font-weight: 600; }
.admin-page h1 { font-size: 36px; }
.admin-heading p { font-size: 14px; }
.owner-main .customer-panel { padding: 30px; }
.workspace { background: #fbf0ea; }
.app-rail { background: #292727; border: 0; padding-inline: 12px; }
.app-rail .brand-mark { background: #efd8cf; color: #292727; }
.rail-item { color: #efd8cf; border-radius: 11px; width: 44px; height: 44px; }
.rail-item.selected,.rail-item:hover { color: #fff; background: #ffffff1c; }
.workspace-header { background: #fff; height: 76px; }
.workspace-title { font-weight: 650; }
.back-site { font-size: 12px; }
.demo-banner { background: #fbf0ea; color: #b83b25; font-size: 11px; padding-block: 8px; }
.demo-pill { border-radius: 20px; color: #b83b25; padding: 4px 9px; font-size: 10px; }
.mail-sidebar { background: #fbf0ea; width: 220px; }
.folder { color: #b83b25; font-size: 13px; padding: 12px; border-radius: 9px; }
.folder.selected { background: #efd8cf; color: var(--green); }
.folder>span { font-size: 11px; }
.mail-content,.message-detail { background: #fff; }
.mail-toolbar { padding: 26px 28px; }
.search-field { background: #fbf0ea; border-radius: 10px; }
.search-field input { background: transparent; font-size: 13px; }
.message-row { min-height: 104px; }
.message-row.unread { background: #fffaf7; }
.message-row.active,.message-row.unread.active { background: #fbf0ea; box-shadow: inset 3px 0 var(--green); }
.message-sender { font-size: 13px; }
.message-info>strong { font-size: 13px; }
.message-preview { font-size: 12px; color: #b83b25; }
.message-sender small { font-size: 10px; color: #b83b25; }
.message-body { font-size: 14px; color: #b83b25; }
.sender-detail strong { font-size: 14px; }
.sender-detail small { font-size: 11px; color: #b83b25; }
.inbox-welcome { background: #fbf0ea; }
.inbox-welcome p { font-size: 14px; color: #b83b25; }
.inbox-welcome h2 { color: var(--green); }
.empty-state { color: #b83b25; }
.empty-state p { font-size: 14px; }
.live-mail { background: var(--paper); color: var(--ink); }
.live-header { min-height: 82px; }
.live-header>span { font-size: 13px; color: var(--muted); }
.live-layout { grid-template-columns: 230px minmax(0,1fr); }
.live-folders { background: #fbf0ea; border-right: 1px solid var(--line); padding: 26px 16px; }
.live-folders h2 { font-size: 23px; }
.live-folders button { border-radius: 9px; min-height: 44px; font-size: 14px; color: #b83b25; }
.live-folders button:hover { background: #efd8cf; }
.live-folders button[aria-current=true] { background: #efd8cf; color: #292727; }
.live-content { padding: 28px; }
.live-toolbar { gap: 14px; margin-bottom: 24px; }
.live-split { background: #fff; border-color: var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
.live-message { padding: 22px 20px; font-size: 14px; gap: 7px; }
.live-message.unread { background: #fbf0ea; }
#live-detail { padding: 32px; }
.live-body { font-size: 14px; }
.live-pagination { font-size: 13px; }
dialog,.live-compose { border-radius: 18px; background: #fff; border-color: var(--line); box-shadow: 0 24px 100px #29272738; }
dialog::backdrop { background: #29272766; backdrop-filter: blur(5px); }
.contact-card h3 { font-size: 22px; }
.contact-card p,.contact-card .text-button { font-size: 13px; }
.agenda,.calendar-grid { background: white; border-radius: 12px; }
.task-list { border-radius: 12px; }
.task-row { background: white; }
.plan.featured { border: 2px solid var(--green); }
.plan-label { border-radius: 12px 12px 0 0; color: #fff; font-size: 10px; }
.plan li { font-size: 13px; }
/* Marketing keeps its editorial layout while sharing the product palette. */
.landing { --ink: #292727; --green: #292727; --paper: #fbf0ea; --muted: #b83b25; --line: #efd8cf; background: var(--paper); color: var(--ink); font-family: inherit; }
.landing .site-header { background: #fff; }
.landing .brand-mark { background: var(--green); border-radius: 11px; }
.landing .button,.landing .lp-primary { background: var(--green); border-color: var(--green); color: #fff; border-radius: 9px; }
.landing .button:hover,.landing .lp-primary:hover { background: #292727; }
.landing .site-nav a:hover { color: var(--green); }
.landing .lp-kicker>span { background: var(--green); }
.landing .lp-headline-inbox svg { stroke: #88645b; }
.landing .lp-hero h1 { font-weight: 600; letter-spacing: -.065em; }
.landing .lp-product-window { border-radius: 16px; border: 1px solid #efd8cf; box-shadow: 0 28px 70px #29272712; }
.landing .lp-window-header { background: #fbf0ea; }
.landing .lp-directory { background: #fbf0ea; }
.landing .lp-product-row { border-radius: 0; }
.landing .lp-final { background: #292727; color: #fff; }
.landing .lp-final h2,.landing .lp-final .lp-section-number { color: #fff; }
.landing .lp-final p { color: #efd8cf; }
.landing .lp-final .lp-primary { background: #efd8cf; color: #292727; border-color: #efd8cf; }
.landing .lp-footer { padding-top: 42px; }
@media(max-width:1000px) {
  .entry-page,.customer-entry { gap: 36px; }
  .live-content { padding: 18px; }
  .live-layout { grid-template-columns: 190px minmax(0,1fr); }
  .mail-sidebar { width: 180px; }
}
@media(max-width:800px) {
  .entry-page,.customer-entry { padding-top: 28px; padding-bottom: 40px; gap: 24px; }
  .customer-entry>section { padding: 0; }
  .form-card,.customer-panel,.customer-guide,.owner-main .customer-panel { padding: 24px; }
  .customer-progress { gap: 6px; }
  .customer-progress li { font-size: 12px; padding: 10px 6px; }
  .stats-grid { gap: 12px; }
  .stats-grid>div { padding: 18px; }
  .stats-grid strong { font-size: 26px; }
}
@media(max-width:760px) {
  .live-layout,.live-split { grid-template-columns: 1fr; }
  .live-folders { padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .live-content { padding: 14px; }
  .live-header { padding: 16px; }
  #live-detail { padding: 22px; }
  .live-message { padding: 18px; }
  .mail-toolbar { padding: 20px 16px; }
  .landing .lp-hero h1 { font-size: clamp(48px,10vw,72px); }
  .landing .lp-hero-main>p { font-size: 15px; }
  .landing .lp-kicker { font-size: 10px; }
  .landing .lp-hero-actions { flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition: none !important; animation: none !important; }
}
