:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17211b;
  background: #eef2ed;
  font-synthesis: none;
  --ink: #17211b;
  --muted: #657269;
  --surface: #ffffff;
  --line: #dce5dc;
  --accent: #176b49;
  --accent-dark: #0f4e35;
  --accent-soft: #dff3e8;
  --warning: #fff3d8;
  --shadow: 0 10px 30px rgba(26, 48, 36, 0.08);
  --steel: #324554;
  --amber: #f4c95d;
  --clay: #a4472e;
  --blue-soft: #e6eef5;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.marketing-page {
  color: #17211b;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(238,242,237,.96) 48%, #eef2ed 100%),
    repeating-linear-gradient(90deg, rgba(50,69,84,.05) 0 1px, transparent 1px 84px);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(23,33,27,.1);
  background: rgba(250,252,249,.92);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.nav-links a,
.site-button,
.hero-actions a,
.featured-tool a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.site-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 850;
}

.site-button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 24px rgba(23,107,73,.16);
}

.site-button.primary:hover {
  background: var(--accent-dark);
}

.site-button.secondary {
  border-color: rgba(23,33,27,.14);
  background: white;
  color: var(--ink);
}

.site-button.large {
  min-height: 48px;
  padding: 12px 18px;
}

.site-eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 48px;
}

.hero-content {
  max-width: 920px;
}

.hero-content h1 {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: .98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 22px 0 0;
  color: #46544c;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  border: 1px solid rgba(50,69,84,.13);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(255,255,255,.76);
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}

.hero-proof strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.product-preview {
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid rgba(23,33,27,.12);
  border-radius: 8px;
  background: #122b20;
  color: white;
  box-shadow: 0 22px 70px rgba(18,43,32,.18);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.74);
  font-size: .88rem;
  font-weight: 850;
}

.preview-toolbar strong {
  border-radius: 999px;
  background: rgba(244,201,93,.15);
  color: var(--amber);
  padding: 5px 9px;
  font-size: .72rem;
  text-transform: uppercase;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.12);
}

.preview-grid article {
  min-height: 122px;
  padding: 18px;
  background: #173829;
}

.preview-grid span,
.preview-flow span,
.quote-lines span {
  color: rgba(255,255,255,.62);
  font-size: .76rem;
  font-weight: 800;
}

.preview-grid strong {
  display: block;
  margin-top: 13px;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.preview-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.12);
}

.preview-flow span {
  position: relative;
  padding: 15px 18px;
  background: #10291d;
}

.content-band,
.platform-section,
.roadmap-section,
.pricing-section,
.assistant-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-intro {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-intro h2,
.knowledge-panel h2,
.assistant-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-intro p,
.knowledge-panel p,
.quote-module p,
.assistant-section p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: stretch;
}

.featured-tool,
.tool-categories article,
.platform-grid article,
.knowledge-panel,
.quote-module,
.roadmap article,
.pricing-grid article {
  border: 1px solid rgba(23,33,27,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}

.featured-tool {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background: #f9fbf8;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #eaf4ee;
  color: var(--accent-dark);
  padding: 6px 9px;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-tool h3,
.tool-categories h3,
.platform-grid h3,
.quote-module h3,
.roadmap h3,
.pricing-grid h3 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 1.12rem;
}

.featured-tool p,
.tool-categories p,
.platform-grid p,
.roadmap p,
.pricing-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.featured-tool .site-button {
  margin-top: auto;
}

.tool-categories,
.platform-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tool-categories article,
.platform-grid article,
.pricing-grid article {
  padding: 20px;
}

.platform-section {
  border-top: 1px solid rgba(23,33,27,.08);
  border-bottom: 1px solid rgba(23,33,27,.08);
}

.platform-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-grid article span {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 950;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr);
  gap: 18px;
  align-items: stretch;
}

.knowledge-panel,
.quote-module {
  padding: 26px;
}

.resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.resource-list span {
  border: 1px solid rgba(50,69,84,.13);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
  color: var(--steel);
  font-size: .84rem;
  font-weight: 850;
}

.quote-module {
  background: #122b20;
  color: white;
}

.quote-module h3,
.quote-module p {
  color: white;
}

.quote-module p {
  opacity: .78;
}

.quote-lines {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.quote-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 10px 12px;
}

.quote-lines strong {
  color: var(--amber);
  font-size: .82rem;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.roadmap article {
  padding: 18px;
}

.roadmap article strong {
  color: var(--clay);
  font-size: .78rem;
  text-transform: uppercase;
}

.pricing-section {
  border-top: 1px solid rgba(23,33,27,.08);
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid article {
  display: grid;
  align-content: start;
}

.price {
  margin: 10px 0 4px;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 950;
}

.price span {
  color: var(--muted);
  font-size: .95rem;
}

.highlighted-plan {
  border-color: rgba(23,107,73,.32) !important;
  background: #f5fbf7 !important;
}

.assistant-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(23,33,27,.12);
  border-radius: 8px;
  background: #17211b;
  color: white;
  padding: 34px;
}

.assistant-section h2,
.assistant-section p {
  color: white;
}

.assistant-section p {
  max-width: 760px;
  opacity: .76;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
  border-top: 1px solid rgba(23,33,27,.1);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.legal-page,
.contact-page {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 72px;
}

.legal-page h1,
.contact-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.legal-updated {
  margin: 14px 0 30px;
  color: var(--muted);
  font-weight: 800;
}

.legal-page section {
  border-top: 1px solid rgba(23,33,27,.12);
  padding: 24px 0;
}

.legal-page h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.legal-page p,
.contact-hero p {
  color: var(--muted);
  line-height: 1.65;
}

.legal-page a,
.contact-card a {
  color: var(--accent-dark);
  font-weight: 850;
}

.contact-page {
  width: min(1180px, calc(100% - 40px));
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .42fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}

.contact-card {
  border: 1px solid rgba(23,33,27,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.84);
  padding: 20px;
  box-shadow: var(--shadow);
}

.contact-card span {
  color: var(--clay);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-card a {
  display: block;
  margin-top: 10px;
  font-size: 1.15rem;
  text-decoration: none;
}

.contact-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

.waitlist-section {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 64px;
  grid-template-columns: minmax(0, .82fr) minmax(340px, 1fr);
  gap: 22px;
  align-items: start;
  border: 1px solid rgba(23,33,27,.12);
  border-radius: 8px;
  background: #17211b;
  color: white;
  padding: 28px;
  box-shadow: 0 22px 70px rgba(18,43,32,.15);
}

.waitlist-copy h2 {
  margin: 0;
  color: white;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.waitlist-copy p {
  color: rgba(255,255,255,.72);
  line-height: 1.62;
}

.waitlist-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.waitlist-benefits span {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  font-size: .82rem;
  font-weight: 850;
}

.waitlist-form {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  padding: 18px;
}

.waitlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.waitlist-form label {
  color: rgba(255,255,255,.72);
}

.waitlist-form input,
.waitlist-form select,
.waitlist-form textarea {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.94);
}

.waitlist-form small {
  min-height: 1em;
  color: #ffd3ca;
  font-size: .72rem;
}

.waitlist-form button {
  width: fit-content;
}

.waitlist-status {
  min-height: 1.2em;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: .84rem;
  font-weight: 800;
}

.waitlist-status[data-status="success"] {
  color: #bce9c8;
}

.waitlist-status[data-status="error"] {
  color: #ffd3ca;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.compact-waitlist {
  margin-top: 0;
}

.inline-waitlist-form {
  margin-top: 16px;
  border-color: var(--line);
  background: #122b20;
}

.app-waitlist-card .section-heading {
  margin-bottom: 8px;
}

.tool-hero {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .42fr);
  gap: 24px;
  align-items: end;
  padding: 54px 0 30px;
}

.tool-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.tool-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.tool-hero-panel {
  border: 1px solid rgba(23,33,27,.12);
  border-radius: 8px;
  background: #122b20;
  color: white;
  padding: 20px;
  box-shadow: var(--shadow);
}

.tool-hero-panel span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(244,201,93,.14);
  color: var(--amber);
  padding: 6px 9px;
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tool-hero-panel strong {
  display: block;
  margin-top: 16px;
  font-size: 1.25rem;
}

.tool-hero-panel p {
  margin-bottom: 0;
  color: rgba(255,255,255,.72);
  font-size: .92rem;
}

.tool-shell {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px 0 70px;
}

.tool-positioning-strip {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-positioning-strip article {
  border: 1px solid rgba(23,33,27,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  padding: 18px;
  box-shadow: var(--shadow);
}

.tool-positioning-strip span {
  color: var(--clay);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tool-positioning-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.tool-positioning-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.tool-nav-panel {
  position: sticky;
  top: 88px;
  border: 1px solid rgba(23,33,27,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.84);
  padding: 16px;
  box-shadow: var(--shadow);
}

.tool-nav-panel h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.tool-nav-panel nav {
  display: grid;
  gap: 14px;
}

.tool-nav-group {
  display: grid;
  gap: 6px;
}

.tool-nav-group strong {
  color: var(--ink);
  font-size: .74rem;
  text-transform: uppercase;
}

.tool-nav-panel a {
  border-radius: 7px;
  padding: 8px 9px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 850;
  text-decoration: none;
}

.tool-nav-panel a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.tool-hub {
  display: grid;
  gap: 28px;
}

.tool-group {
  display: grid;
  gap: 18px;
}

.tool-group-heading {
  max-width: 820px;
}

.tool-group-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.tool-group-heading p:not(.site-eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.tool-card {
  scroll-margin-top: 96px;
  overflow: hidden;
  border: 1px solid rgba(23,33,27,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
}

.tool-card-heading {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(23,33,27,.09);
}

.tool-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.tool-meta-row span {
  color: var(--clay);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tool-meta-row strong {
  border-radius: 999px;
  background: #eaf4ee;
  color: var(--accent-dark);
  padding: 5px 8px;
  font-size: .7rem;
  text-transform: uppercase;
}

.tool-card-heading h2 {
  margin: 8px 0 6px;
  font-size: 1.35rem;
}

.tool-card-heading p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.tool-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 0;
}

.tool-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
}

.input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(54px, auto);
  align-items: stretch;
}

.input-with-unit input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-with-unit small {
  display: grid;
  min-width: 54px;
  place-items: center;
  border: 1px solid #cfdacf;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #f1f5f1;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
}

.tool-results {
  display: grid;
  align-content: start;
  gap: 1px;
  min-height: 100%;
  background: rgba(23,33,27,.1);
}

.tool-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 13px 16px;
  background: #122b20;
  color: white;
}

.tool-result-row span {
  color: rgba(255,255,255,.64);
  font-size: .78rem;
  font-weight: 850;
}

.tool-result-row strong {
  text-align: right;
  font-size: 1rem;
}

.tool-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: #10291d;
  padding: 12px 16px;
}

.tool-actions .site-button {
  min-height: 36px;
  padding: 8px 12px;
}

.tool-actions span {
  color: var(--amber);
  font-size: .8rem;
  font-weight: 850;
}

.tool-trust-panel {
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,.12);
}

.tool-trust-panel div {
  background: #173829;
  padding: 14px 16px;
}

.tool-trust-panel strong {
  color: rgba(255,255,255,.86);
  font-size: .78rem;
  text-transform: uppercase;
}

.tool-trust-panel p {
  margin: 7px 0 0;
  color: rgba(255,255,255,.66);
  font-size: .82rem;
  line-height: 1.5;
}

.tool-error {
  padding: 16px;
  background: #fff0ed;
  color: #993a2f;
  font-weight: 800;
}

.tool-card-cta {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: #10291d;
  color: white;
  padding: 16px;
}

.tool-card-cta strong {
  font-size: .98rem;
}

.tool-card-cta p {
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  line-height: 1.45;
}

.tool-card-cta .site-button {
  width: fit-content;
  min-height: 38px;
}

.app-header {
  min-height: 92px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: white;
  background: linear-gradient(120deg, #10291d, #176b49);
}
.app-header h1 { margin: 2px 0 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.eyebrow { margin: 0; opacity: .72; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; }
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.button { border: 1px solid transparent; border-radius: 9px; padding: 9px 13px; font-weight: 700; }
.button.primary { background: #f4c95d; color: #26200f; }
.button.secondary { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.25); color: white; }
.form-card .button.secondary { background: white; border-color: var(--line); color: var(--accent-dark); }
.button.small { padding: 6px 10px; font-size: .86rem; }
.file-button input { display: none; }

.app-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 92px); }
.sidebar { padding: 22px 16px; background: #e6ede6; border-right: 1px solid #d3ddd4; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; }
.sidebar h2 { margin: 0; font-size: 1rem; }
.status { font-size: .72rem; color: var(--muted); }
.project-list { display: grid; gap: 8px; margin-top: 14px; }
.project-item { display: flex; align-items: stretch; background: rgba(255,255,255,.65); border: 1px solid transparent; border-radius: 10px; overflow: hidden; }
.project-item.active { border-color: var(--accent); background: white; }
.project-open { flex: 1; border: 0; background: transparent; padding: 10px; text-align: left; }
.project-open strong { display: block; }
.project-open small { color: var(--muted); }
.project-delete { border: 0; background: transparent; padding: 10px; color: #8b382f; }
.warning-box { margin-top: 24px; padding: 14px; border-radius: 10px; background: var(--warning); font-size: .78rem; line-height: 1.45; }
.warning-box p { margin: 5px 0 0; }

.workspace { padding: 26px; max-width: 1500px; width: 100%; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.form-card { padding: 20px; margin-bottom: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-heading > div { display: flex; align-items: center; gap: 10px; }
.section-heading h2 { margin: 0; font-size: 1.06rem; }
.step { display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: var(--accent); background: var(--accent-soft); font-size: .74rem; font-weight: 800; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.form-grid { display: grid; gap: 14px; }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-grid { max-width: 720px; margin-bottom: 14px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: .79rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cfdacf; border-radius: 8px; padding: 9px 10px; color: var(--ink); background: #fbfdfb; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23,107,73,.11); }
textarea { resize: vertical; }
.metric-inline { display: flex; flex-direction: column; justify-content: center; padding: 10px 12px; border-radius: 9px; background: var(--accent-soft); }
.metric-inline span { font-size: .72rem; color: var(--muted); }
.metric-inline strong { font-size: 1.2rem; }
.field-note { margin: 12px 0 0; color: var(--muted); font-size: .75rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 9px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #f4f7f4; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
td input, td select { padding: 7px 8px; }
.remove-ply { border: 0; background: #fff0ed; color: #993a2f; border-radius: 7px; padding: 6px 8px; }

.results-section { margin-top: 10px; }
.results-heading { margin: 28px 0 14px; }
.results-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.result-card { padding: 16px; background: #122b20; color: white; border-radius: 12px; box-shadow: var(--shadow); }
.result-card .label { font-size: .74rem; opacity: .66; }
.result-card .value { display: block; margin-top: 8px; font-size: 1.35rem; font-weight: 800; }
.result-card .subvalue { display: block; margin-top: 5px; font-size: .76rem; opacity: .66; }
.breakdown-card { margin-top: 14px; padding: 18px; }
.breakdown-card h3 { margin: 0 0 12px; }
.breakdown-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.breakdown-row.total { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 6px; }
.cure-warning { margin-top: 12px; padding: 10px; border-radius: 8px; background: var(--warning); font-size: .78rem; }

.toast { position: fixed; right: 22px; bottom: 22px; background: #10291d; color: white; border-radius: 9px; padding: 10px 14px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 26px;
  border-top: 1px solid #d3ddd4;
  background: #e6ede6;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .form-grid.cols-4, .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-grid, .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app-header { align-items: flex-start; flex-direction: column; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid #d3ddd4; }
  .two-column { grid-template-columns: 1fr; }
  .site-nav { align-items: flex-start; flex-direction: column; }
  .nav-links { flex-wrap: wrap; gap: 14px; }
  .hero-section { padding-top: 42px; }
  .calculator-layout, .split-band { grid-template-columns: 1fr; }
  .assistant-section { align-items: flex-start; flex-direction: column; }
  .tool-hero, .tool-shell, .tool-card-body { grid-template-columns: 1fr; }
  .tool-nav-panel { position: static; }
  .waitlist-section { grid-template-columns: 1fr; }
  .tool-positioning-strip { grid-template-columns: 1fr; }
  .contact-hero { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .workspace { padding: 14px; }
  .form-grid.cols-4, .form-grid.cols-3, .form-grid.cols-2, .results-grid { grid-template-columns: 1fr; }
  .header-actions { width: 100%; }
  .header-actions .button { flex: 1 1 auto; text-align: center; }
  .site-nav,
  .site-footer,
  .app-footer {
    padding-right: 18px;
    padding-left: 18px;
  }
  .site-nav .site-button { width: 100%; }
  .hero-section,
  .content-band,
  .platform-section,
  .roadmap-section,
  .pricing-section,
  .assistant-section,
  .tool-hero,
  .tool-shell,
  .tool-positioning-strip,
  .waitlist-section,
  .legal-page,
  .contact-page {
    width: min(100% - 28px, 1180px);
  }
  .hero-actions .site-button { width: 100%; }
  .hero-proof { display: grid; grid-template-columns: 1fr; }
  .preview-grid,
  .preview-flow,
  .tool-categories,
  .platform-grid,
  .roadmap,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .preview-grid article { min-height: auto; }
  .site-footer, .app-footer { flex-direction: column; }
  .tool-inputs { grid-template-columns: 1fr; padding: 14px; }
  .tool-card-heading { padding: 16px; }
  .tool-result-row { grid-template-columns: 1fr; }
  .tool-result-row strong { text-align: left; }
  .tool-actions { align-items: flex-start; flex-direction: column; }
  .tool-actions .site-button { width: 100%; }
  .waitlist-section { padding: 18px; }
  .waitlist-grid { grid-template-columns: 1fr; }
  .waitlist-form { padding: 14px; }
  .waitlist-form button,
  .tool-card-cta .site-button {
    width: 100%;
  }
}
