:root {
  --landing-paper: #f4f8f3;
  --landing-ink: #142821;
  --landing-muted: #4b6057;
  --landing-line: #d9e4da;
  --landing-green: #173f31;
  --landing-dark: #0e2922;
  --landing-lime: #d8fc83;
  --landing-white: #fff;
}

body:not(.tool-mode) { background: var(--landing-paper); }
body:not(.tool-mode) .sidebar { display: none; }
body:not(.tool-mode) .shell { margin-left: 0; }
body:not(.tool-mode) main { max-width: 1320px; padding: 0 clamp(18px,4vw,52px); }
body:not(.tool-mode) footer { border-top: 1px solid var(--landing-line); color: var(--landing-muted); }
.landing { color: var(--landing-ink); }
.landing :is(h1,h2,h3) { color: inherit; }
.landing a, .landing button { transition: background-color .18s, border-color .18s, box-shadow .18s; }
.landing :focus-visible { outline: 3px solid #147d54; outline-offset: 4px; }
.landing-hero :focus-visible { outline-color: var(--landing-lime); }
.landing-nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.landing-brand { display: inline-flex; gap: 0; align-items: center; min-height: 44px; font: 800 23px Manrope,system-ui,sans-serif; letter-spacing: -.065em; white-space: nowrap; }
.landing-brand > span:last-child { color: #446755; }
.landing-mark { width: 35px; height: 35px; border-radius: 9px; background: var(--landing-dark); display: grid; place-content: center; gap: 3px; margin-right: 9px; }
.landing-mark i { display: block; background: var(--landing-lime); height: 3px; width: 16px; border-radius: 3px; transform: skew(-24deg); }
.landing-mark i:nth-child(2) { width: 12px; }
.landing-mark i:nth-child(3) { width: 8px; }
.landing-nav nav { display: flex; align-items: center; gap: clamp(10px,2vw,24px); }
.landing-nav nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 3px; color: var(--landing-muted); font-size: 14px; font-weight: 700; white-space: nowrap; }
.landing-nav nav a:hover { color: var(--landing-dark); }
.landing-nav nav .landing-start { color: var(--landing-paper); background: var(--landing-green); border-radius: 8px; padding: 0 14px; }
.landing-nav nav .landing-start:hover { background: #245641; color: #fff; }

.landing-hero {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  min-height: 456px;
  align-items: center;
  overflow: hidden;
  border-radius: 23px;
  background: var(--landing-dark);
  color: var(--landing-white);
}
.landing-copy { position: relative; z-index: 1; padding: clamp(30px,5vw,68px); padding-right: 0; }
.landing-kicker { color: #4d6e59; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.landing-hero .landing-kicker { color: #b9dc98; }
.landing-hero h1 { margin: 16px 0 17px; font-size: clamp(45px,6.15vw,85px); line-height: .99; font-weight: 800; letter-spacing: -.075em; }
.landing-hero h1 em { color: var(--landing-lime); font-style: normal; }
.landing-description { max-width: 440px; color: #d2e2d8; font-size: clamp(16px,1.45vw,18px); }
.landing-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.landing-button,.landing-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 8px; padding: 8px 15px; font-weight: 800; font-size: 14px; }
.landing-button { background: var(--landing-lime); color: #172b17; }
.landing-button:hover { background: #edffbc; }
.landing-outline { border: 1px solid #6e917e; color: #f6fff3; }
.landing-outline:hover { background: #28483a; }

.landing-art { position: relative; height: 100%; min-height: 400px; background: radial-gradient(ellipse at 44% 54%,#224c37,transparent 72%); }
.art-orbit { position: absolute; inset: 0 0 0 -13%; opacity: .68; background: repeating-radial-gradient(ellipse at 51% 54%,transparent 0 26px,#64947950 27px 28px,transparent 29px 49px); mask-image: radial-gradient(ellipse,#000 30%,transparent 72%); }
.art-stamp { position: absolute; top: 13%; right: 12%; border: 1px solid #a6c295; border-radius: 5px; color: #c5ddad; padding: 6px 8px; transform: rotate(8deg); font: 700 10px monospace; letter-spacing: .12em; }
.art-label,.art-profit { position: absolute; box-shadow: 0 20px 46px #071b15ad; }
.art-label { top: 20%; left: 12%; width: 43%; max-width: 210px; padding: 14px; border-radius: 8px; transform: rotate(-15deg); color: #152a20; background: #fffcf0; }
.art-label-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 2px solid #172f24; gap: 6px; font: 800 clamp(8px,1vw,11px) monospace; }
.art-label-head span { background: var(--landing-lime); padding: 4px; }
.art-label-rules { height: 23px; margin-top: 6px; border-bottom: 1px solid #9aac9b; background: repeating-linear-gradient(90deg,#c6d1c1 0 1px,transparent 1px 25%); }
.art-label-address { background: repeating-linear-gradient(#647a6a 0 2px,transparent 2px 8px); width: 63%; height: 30px; margin: 12px 0 6px; opacity: .65; }
.art-barcode { height: 44px; margin: 10px 0 2px; background: repeating-linear-gradient(90deg,#20372b 0 2px,transparent 2px 4px,#20372b 4px 5px,transparent 5px 8px,#20372b 8px 12px,transparent 12px 15px); }
.art-label-bottom { font: 750 9px monospace; letter-spacing: .14em; }
.art-profit { top: 43%; left: 37%; width: 52%; max-width: 255px; padding: 14px; border-radius: 12px; background: #e6f3dd; color: #183429; transform: rotate(9deg); border: 1px solid #f8ffe8; }
.art-profit-head { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.art-profit-head small { display: block; font-size: 10px; color: #435f50; }
.art-ledger-icon { width: 29px; height: 29px; border-radius: 7px; background: #245341; display: flex; align-items: end; justify-content: center; gap: 2px; padding-bottom: 7px; }
.art-ledger-icon i { width: 3px; height: 9px; background: var(--landing-lime); }
.art-ledger-icon i:nth-child(2) { height: 12px; }
.art-ledger-icon i:nth-child(3) { height: 15px; }
.art-bars { height: 70px; margin: 10px 0; padding: 0 4px; display: flex; gap: 5px; align-items: end; border-bottom: 1px solid #aabd9f; background: repeating-linear-gradient(0deg,transparent 0 22px,#b5c8ae75 23px 24px); }
.art-bars i { flex: 1; height: 35%; background: #83ac78; border-radius: 3px 3px 0 0; }
.art-bars i:nth-child(2n) { height: 51%; }
.art-bars i:nth-child(3n) { height: 63%; }
.art-bars i:nth-child(n+6) { background: #327654; }
.art-bars i:nth-child(8) { height: 77%; }
.art-bars i:nth-child(9) { height: 90%; }
.art-profit-foot { display: flex; justify-content: space-between; gap: 6px; color: #314f40; font: 700 9px monospace; }

.landing-note { display: flex; flex-wrap: wrap; justify-content: center; margin: 0 auto; gap: 8px clamp(20px,5vw,62px); padding: 19px 2px; color: var(--landing-muted); font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--landing-line); }
.landing-note span::before { content: ''; display: inline-block; vertical-align: 2px; margin-right: 7px; width: 6px; height: 6px; background: #548b56; border-radius: 50%; }
.landing #tools { margin: clamp(34px,6vw,75px) 0; }
.landing .section-head h2,.landing-workflow h2 { font-size: clamp(29px,4.1vw,52px); line-height: 1.07; letter-spacing: -.06em; }
.landing .section-head p { color: var(--landing-muted); margin-top: 7px; }
.landing .tool-count { color: #40614f; background: #e7f0e5; border: 1px solid var(--landing-line); }
.landing .filters { margin: 18px 0 13px; }
.landing .filter { border-color: var(--landing-line); color: #354e43; }
.landing .filter[aria-pressed=true] { background: var(--landing-green); border-color: var(--landing-green); color: #fff; }
.landing .card { border-color: var(--landing-line); border-radius: 13px; padding: 17px; }
.landing .card:hover { border-color: #86aa92; box-shadow: 0 8px 22px #16382a15; }
.landing .tile { background: #e9f2e6; color: #286242; }
.landing .inventory .tile { background: #edf0e4; color: #4f633b; }
.landing .finance .tile { background: #dcf2d2; color: #24573c; }
.landing .extension .tile { background: #eef0ed; color: #4d5b53; }
.landing .tag,.landing .card p { color: var(--landing-muted); }
.landing .card p { font-size: 15px; }
.landing .card-action { color: #215b3c; }
.landing .extension { grid-column: 1 / -1; min-height: 0; background: #edf3eb; }
.landing-workflow { margin: 0 0 52px; display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 18px; padding: clamp(22px,4vw,48px); background: #e6f0e3; border: 1px solid #d6e5d5; border-radius: 18px; }
.landing-workflow h2 { margin-top: 8px; }
.landing-workflow-links { display: grid; gap: 8px; }
.landing-workflow a { display: grid; gap: 4px; padding: 12px; color: var(--landing-ink); border: 1px solid #cbdcc9; border-radius: 9px; background: #f9fcf7; }
.landing-workflow a:hover { border-color: #7da487; background: #fff; }
.landing-workflow a span { color: var(--landing-muted); font-size: 14px; }

@media (max-width: 820px) {
  .landing-hero { min-height: 390px; }
  .landing-art { min-height: 370px; }
  .art-label { left: 5%; width: 52%; }
  .art-profit { left: 31%; width: 62%; }
}
@media (max-width: 610px) {
  .landing-nav { min-height: 68px; }
  .landing-nav nav a:nth-child(2), .landing-nav nav .landing-start { display: none; }
  .landing-hero { grid-template-columns: 1fr; border-radius: 16px; }
  .landing-copy { padding: 28px 19px 0; }
  .landing-hero h1 { font-size: clamp(41px,10.5vw,60px); }
  .landing-art { min-height: 245px; margin-top: 6px; }
  .art-label { top: 10%; left: 19%; width: 36%; max-width: 150px; padding: 10px; }
  .art-profit { top: 37%; left: 45%; width: 44%; max-width: 190px; padding: 10px; }
  .art-stamp { top: 13%; right: 8%; }
  .art-bars { height: 42px; }
  .art-barcode { height: 31px; }
  .landing-note { justify-content: flex-start; gap: 7px 13px; font-size: 13px; }
  .landing-workflow { grid-template-columns: 1fr; margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing a,.landing button { transition: none; }
}
