/* E5 Elements — corporate site
   Palette inherited from the WuJi product (static/css/style.css) so the company
   site and the app read as one brand. */

:root {
  --pine: #2F5D50;
  --pine-deep: #1E4237;
  --pine-light: #55806F;
  --pine-tint: #EAF1ED;
  --paper: #F6F2E9;
  --paper-card: #FDFBF4;
  --paper-line: #E5DCC8;
  --gold: #B08A4F;
  --gold-light: #D3B67F;
  --cinnabar: #9E3D2E;
  --ink: #2A2E27;
  --ink-2: #5C6156;
  --ink-3: #8E9284;

  --wood: #4E7C59;
  --fire: #AE4A3C;
  --earth: #B98A42;
  --metal: #8E9299;
  --water: #46698C;

  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --wrap: 1080px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(42, 46, 39, .05), 0 8px 24px -12px rgba(42, 46, 39, .18);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  font-feature-settings: 'kern' 1;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--pine-deep); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --- Typography ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--pine-deep);
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.05rem); font-weight: 600; }
h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); font-weight: 600; margin-top: 2.2em; }
h3 { font-size: 1.16rem; font-weight: 600; margin-top: 1.9em; color: var(--pine); }
h4 { font-size: 1rem; font-weight: 700; margin-top: 1.5em; font-family: var(--sans); }

p, ul, ol, dl, table, figure { margin: 0 0 1.1em; }
li { margin: .35em 0; }
li > ul, li > ol { margin: .35em 0 .35em; }

a { color: var(--pine); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cinnabar); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px;
}

code { font: 500 .88em/1.4 var(--mono); background: var(--pine-tint); padding: .15em .42em; border-radius: 4px; }
strong { font-weight: 650; color: var(--pine-deep); }
abbr[title] { text-decoration: underline dotted; cursor: help; }
hr { border: 0; border-top: 1px solid var(--paper-line); margin: 2.5em 0; }

.lede { font-size: 1.16em; color: var(--ink-2); line-height: 1.65; max-width: 68ch; }
.small { font-size: .9rem; color: var(--ink-2); }
.eyebrow {
  font: 600 .74rem/1 var(--sans); letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.1em;
}

/* --- Masthead ------------------------------------------------------------ */

.masthead {
  background: var(--paper-card);
  border-bottom: 1px solid var(--paper-line);
  position: sticky; top: 0; z-index: 40;
}
.masthead-in { display: flex; align-items: center; gap: 20px; min-height: 72px; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font: 600 1.16rem/1.2 var(--serif); color: var(--pine-deep); letter-spacing: .01em; }
.brand-sub { font-size: .69rem; color: var(--ink-3); letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  padding: 8px 11px; border-radius: 7px; text-decoration: none;
  font-size: .935rem; color: var(--ink-2); white-space: nowrap;
}
.nav a:hover { background: var(--pine-tint); color: var(--pine-deep); }
.nav a[aria-current="page"] { color: var(--pine-deep); font-weight: 600; background: var(--pine-tint); }
.nav .nav-cta {
  background: var(--pine-deep); color: #fff; margin-left: 8px; font-weight: 500; padding: 9px 16px;
}
.nav .nav-cta:hover { background: var(--pine); color: #fff; }

.navtoggle, .navbtn { display: none; }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 26px; border-radius: 9px; border: 1px solid transparent;
  font: 500 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--pine-deep); color: #fff; }
.btn-primary:hover { background: var(--pine); color: #fff; }
.btn-ghost { border-color: var(--pine-light); color: var(--pine-deep); background: transparent; }
.btn-ghost:hover { background: var(--pine-tint); color: var(--pine-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 0; }

/* --- Sections and layout ------------------------------------------------- */

.section { padding: clamp(48px, 6vw, 80px) 0; }
.section-tint { background: var(--paper-card); border-block: 1px solid var(--paper-line); }
.section-head { max-width: 66ch; margin-bottom: 2.2em; }
.section-head h2 { margin-top: 0; }

.hero { padding: clamp(56px, 7vw, 104px) 0 clamp(44px, 5vw, 72px); }
.hero h1 { margin-bottom: .45em; }
.hero .lede { font-size: 1.24em; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.card {
  background: var(--paper-card); border: 1px solid var(--paper-line);
  border-radius: var(--radius); padding: 26px 24px;
}
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card-tint { background: var(--pine-tint); border-color: #D3E0D8; }

/* Prose column for legal and long-form pages. */
.prose { max-width: 74ch; }
.prose h2 { padding-top: .2em; border-top: 1px solid var(--paper-line); }
.prose h2:first-of-type { border-top: 0; }
.prose ul, .prose ol { padding-left: 1.35em; }

.doc-meta {
  display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 2em;
  padding: 14px 18px; border-radius: 10px;
  background: var(--paper-card); border: 1px solid var(--paper-line);
  font-size: .88rem; color: var(--ink-2);
}
.doc-meta span { white-space: nowrap; }

.callout {
  border-left: 3px solid var(--gold); background: var(--paper-card);
  padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 1.6em 0;
}
.callout > :last-child { margin-bottom: 0; }
.callout-strong { border-left-color: var(--cinnabar); }
.callout h3 { margin-top: 0; }

/* --- Feature and phase lists -------------------------------------------- */

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.6em; }
.ticks li::before {
  content: ""; position: absolute; left: .15em; top: .62em;
  width: .45em; height: .78em; border: solid var(--pine-light);
  border-width: 0 2px 2px 0; transform: rotate(42deg) translateY(-.2em);
}
.crosses { list-style: none; padding: 0; }
.crosses li { position: relative; padding-left: 1.6em; }
.crosses li::before {
  content: "×"; position: absolute; left: .25em; top: -.03em;
  color: var(--cinnabar); font-size: 1.15em; font-weight: 700;
}

.phases { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 1.4em; }
.phases li {
  display: flex; align-items: center; gap: 8px; font-size: .92rem;
  background: var(--paper-card); border: 1px solid var(--paper-line);
  border-radius: 999px; padding: 7px 15px 7px 11px;
}
.phases i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.p-wood i { background: var(--wood); } .p-fire i { background: var(--fire); }
.p-earth i { background: var(--earth); } .p-metal i { background: var(--metal); }
.p-water i { background: var(--water); }

/* --- Steps -------------------------------------------------------------- */

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 1.5em 3.1em; }
.steps > li:not(:last-child) {
  border-left: 1px solid var(--paper-line); margin-left: 1.05em; padding-left: 2.05em;
}
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: -.1em;
  width: 2.1em; height: 2.1em; border-radius: 50%;
  background: var(--pine-tint); color: var(--pine-deep);
  border: 1px solid #CBDCD2;
  display: grid; place-items: center; font: 600 .86rem/1 var(--sans);
}
.steps > li:not(:last-child)::before { left: -1.06em; }
.steps h3 { margin: 0 0 .3em; }
.steps > li > :last-child { margin-bottom: 0; }

/* --- Pricing ------------------------------------------------------------ */

.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); align-items: start; }
.plan {
  background: var(--paper-card); border: 1px solid var(--paper-line);
  border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; height: 100%;
}
.plan-featured { border-color: var(--pine-light); box-shadow: var(--shadow); position: relative; }
.plan-flag {
  position: absolute; top: -11px; left: 22px; background: var(--pine-deep); color: #fff;
  font: 600 .68rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
}
.plan h3 { margin: 0 0 .3em; font-size: 1.08rem; }
.plan-price { font: 600 2.2rem/1 var(--serif); color: var(--pine-deep); display: flex; align-items: baseline; gap: .1em; }
.plan-price .cur { font-size: .95rem; font-weight: 600; align-self: flex-start; padding-top: .35em; }
.plan-price .per { font: 400 .87rem/1 var(--sans); color: var(--ink-2); margin-left: .25em; }
.plan-cadence { font-size: .84rem; color: var(--ink-3); margin: .55em 0 0; }
.plan-summary { font-size: .95rem; color: var(--ink-2); margin: 1em 0; }
.plan .ticks { font-size: .92rem; margin: 0 0 1.4em; }
.plan .ticks li::before { top: .55em; }
.plan-foot { margin-top: auto; }
.plan-save { font-size: .85rem; color: var(--wood); font-weight: 600; margin: .6em 0 0; }

/* --- Tables ------------------------------------------------------------- */

.table-scroll { overflow-x: auto; margin: 0 0 1.3em; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
caption { text-align: left; font-size: .86rem; color: var(--ink-2); padding-bottom: .7em; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
th { font: 600 .82rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); background: var(--paper-card); }
tbody tr:last-child td { border-bottom: 0; }

/* --- FAQ ---------------------------------------------------------------- */

.faq { border-top: 1px solid var(--paper-line); }
.faq details { border-bottom: 1px solid var(--paper-line); }
.faq summary {
  cursor: pointer; padding: 18px 40px 18px 2px; list-style: none;
  font: 600 1.02rem/1.45 var(--sans); color: var(--pine-deep); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 10px; top: 1.55em;
  width: .5em; height: .5em; border: solid var(--pine-light);
  border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq .faq-body { padding: 0 40px 18px 2px; color: var(--ink-2); }
.faq .faq-body > :last-child { margin-bottom: 0; }

/* --- Definition list for contact / entity facts -------------------------- */

.facts { display: grid; gap: 0; margin: 0; }
.facts > div {
  display: grid; grid-template-columns: minmax(150px, 15em) 1fr; gap: 4px 24px;
  padding: 13px 0; border-bottom: 1px solid var(--paper-line);
}
.facts dt { font-weight: 600; color: var(--pine-deep); font-size: .93rem; }
.facts dd { margin: 0; color: var(--ink-2); }
.facts dd > :last-child { margin-bottom: 0; }

/* --- Footer ------------------------------------------------------------- */

.footer {
  background: var(--pine-deep); color: #C9D8D0;
  padding: clamp(44px, 5vw, 68px) 0 34px; margin-top: 0;
  font-size: .93rem;
}
.footer a { color: #EAF1ED; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: minmax(240px, 1.5fr) repeat(auto-fit, minmax(140px, 1fr)); }
.footer-legal-name { font: 600 1.05rem/1.3 var(--serif); color: #fff; margin: 0 0 .7em; letter-spacing: .02em; }
.footer address { font-style: normal; margin: 0 0 1em; line-height: 1.65; }
.footer-meta { margin: 0 0 .7em; color: #A9BEB3; font-size: .88rem; line-height: 1.65; }
.footer-col h2 {
  font: 600 .74rem/1 var(--sans); letter-spacing: .13em; text-transform: uppercase;
  color: #8FAA9C; margin: 0 0 1.1em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0 0 .62em; }
.footer-boundary {
  margin: 34px 0 0; padding: 18px 0 0; border-top: 1px solid #2F5D50;
  font-size: .855rem; line-height: 1.7; color: #A9BEB3; max-width: 88ch;
}
.footer-copy { margin: 1.1em 0 0; font-size: .82rem; color: #8FAA9C; }
.footer code { background: #2F5D50; color: #EAF1ED; }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 860px) {
  .navbtn {
    display: block; width: 42px; height: 42px; cursor: pointer;
    border: 1px solid var(--paper-line); border-radius: 8px; position: relative;
    background: var(--paper);
  }
  .navbtn span, .navbtn span::before, .navbtn span::after {
    content: ""; position: absolute; left: 11px; width: 18px; height: 2px;
    background: var(--pine-deep); border-radius: 2px;
  }
  .navbtn span { top: 20px; }
  .navbtn span::before { top: -6px; left: 0; }
  .navbtn span::after { top: 6px; left: 0; }

  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: 0; padding: 6px 0 14px;
  }
  .navtoggle:checked ~ .nav { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 8px; }
  .nav .nav-cta { margin: 10px 0 0; text-align: center; justify-content: center; }

  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .card { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .masthead, .nav, .footer-grid, .btn-row { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .footer { background: #fff; color: #000; border-top: 1px solid #999; }
  a { color: #000; }
}
