/* feld.ai brand layer for Use Case Erstbewertung (Machbarkeit und Ökonomie).
 *
 * Tokens mirror feld-ai/web src/styles/_variables.scss and the fonts and logos
 * come from feld-ai/web public/ (complete Inter and IBM Plex Mono, so arrows,
 * ≈ and ✓ are covered). Run `python3 tools/sync_brand.py --check` after a
 * style-guide change; tests/test_brand.py fails when a token drifts.
 * Everything is self-hosted: no font or asset is loaded from a third party.
 */

@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/inter-400.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/inter-500.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/inter-600.woff2") format("woff2")}
/* IBM Plex Mono draws ✓ like a root sign; the product name needs a real tick. */
@font-face{font-family:"Brand Tick";font-weight:400 700;font-display:swap;src:url("fonts/inter-600.woff2") format("woff2");unicode-range:U+2713}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/ibm-plex-mono-400.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/ibm-plex-mono-500.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/ibm-plex-mono-600.woff2") format("woff2")}

:root{
  /* feld-ai/web _variables.scss */
  --brand-white:#fff;
  --brand-black:#232323;
  --brand-green:#3fba73;
  --brand-gray-dark:#393939;
  --brand-purple:#ba86ff;
  --brand-gray:#7b7b7b;
  /* feld-ai/web _root.scss body background */
  --brand-bg-dark:#272727;
  --brand-selection:#d5bff2;

  /* Roles used by workspace.css (light theme on brand colours) */
  --ink:var(--brand-black);
  --muted:#6b6b6b;               /* brand gray darkened for AA contrast on white */
  --line:#e6e6e6;
  --paper:#f7f7f7;
  --white:#fff;
  --lime:var(--brand-green);
  --green:#1f8a4c;               /* brand green darkened for text on white */
  --pale:#eaf7ef;
  --sans:"Brand Tick","Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --mono:"Brand Tick","IBM Plex Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
}
::selection{background:var(--brand-selection)}

/* Headings and labels in the brand's mono face, as on feld.ai */
.intro h1{font-family:var(--mono);font-weight:600;letter-spacing:-1.2px}
.panel-heading h2,.section-top h2,.check-card h2,.opportunity-card h2,.estimate .scope-row h2{font-family:var(--mono);font-weight:600;letter-spacing:-.4px}

/* Top banner in the site's dark surface */
.top-banner{background:var(--brand-bg-dark);font-family:var(--sans)}
.top-banner strong{color:var(--brand-green);font-family:var(--mono)}

/* Header: the feld logo instead of a text mark */
.brand{display:inline-flex;align-items:center}
.brand img{height:30px;width:auto;display:block}
.header-label{font-family:var(--mono);color:var(--ink);font-size:12px}

/* Buttons as on feld.ai: dark grey, green mono text; primary inverts to green on hover */
.primary-button{background:var(--brand-gray-dark);color:var(--brand-green);font-family:var(--mono);font-weight:600;border-radius:8px}
.primary-button:hover{background:var(--brand-green);color:var(--brand-black)}
.stage-button{background:var(--brand-black);color:var(--brand-green);box-shadow:0 6px 18px rgba(35,35,35,.18)}
.stage-button:hover{background:var(--brand-green);color:var(--brand-black)}
.send-button{background:var(--brand-black);color:var(--brand-green)}
.mic-button{background:var(--pale);color:var(--green);border-color:#cdebd9}
.mic-button:hover{background:#d3efdf}
.role-chips button[aria-pressed=true]{background:var(--brand-black);border-color:var(--brand-black);color:var(--brand-green)}

/* The feld symbol replaces the decorative spark */
.brand-symbol{width:22px;height:22px;display:block;flex-shrink:0}
.opportunity-icon .brand-symbol{width:28px;height:28px;margin-top:2px}

/* Data-centre statement, notes */
.top-bar{position:sticky;top:0;z-index:50}
.top-bar .top-banner{position:static}
.beta-link{background:none;border:0;padding:0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}
.hosting-tag{display:inline-flex;align-items:center;gap:8px;white-space:normal;max-width:360px;text-align:left;line-height:1.45;color:var(--ink);border-color:#cdebd9;background:var(--pale)}
.hosting-symbol{width:16px;height:16px;flex-shrink:0}
.use-note{margin:8px 22px 0;font-size:11px;color:var(--muted)}
.use-note .beta-link{color:var(--green)}
.notes-dialog{border:1px solid var(--line);border-radius:16px;padding:0;width:min(640px,calc(100vw - 28px));color:var(--ink)}
.notes-body{padding:24px 26px}
.notes-body h2{font-family:var(--mono);font-size:18px;margin-bottom:14px}
.notes-body ul{margin:0 0 14px;padding-left:18px;display:flex;flex-direction:column;gap:9px;font-size:13px;line-height:1.6}
.notes-footer{display:flex;justify-content:flex-end;margin-top:16px}
@media(max-width:740px){.hosting-tag{max-width:none;margin-top:10px}.use-note{margin:8px 16px 0}}

/* Phones: compact banner, one-line header, readable heading, 44px touch targets */
@media(max-width:740px){
  .top-bar{position:static}
  .top-banner{font-size:11px;padding:7px 14px;gap:2px}
  .top-banner strong{font-size:12px;flex-basis:100%}
  .app-header .header-divider,.app-header .header-label{display:none}
  .brand img{height:26px}
  .header-actions>.text-button{white-space:nowrap;font-size:12px}
  .language-switch button{padding:10px 11px;font-size:11px}
  .intro{flex-direction:column;align-items:flex-start;gap:14px}
  .intro h1{font-size:24px;line-height:1.25;letter-spacing:-.6px}
  .hosting-tag{border-radius:12px;font-size:11px;padding:9px 12px}
  .answer-form textarea{padding-right:104px;font-size:16px}  /* 16px: iOS does not zoom into the field */
  .mic-button,.send-button{width:44px;height:44px;bottom:9px}
  .send-button{right:8px}
  .mic-button{right:58px}
  .conversation-actions .text-button{min-height:44px;font-size:12px}
  .example-chips button,.answer-chips button{min-height:44px;font-size:13px;padding:10px 13px}
  .role-chips button{min-height:40px}
  .stage-button,.primary-button{min-height:48px}
  .export-buttons .text-button{min-height:40px;font-size:12px}
  .use-note{font-size:12px}
  .use-note .beta-link,.app-footer .beta-link{min-height:32px}
}
@media(max-width:740px){
  .check-prompt-actions .text-button,.check-prompt-actions .small-button,#project-cta,.opportunity-actions .text-button,.benefit-chips button,.check-share,.icon-button{min-height:44px}
  .check-share{display:block;padding:10px 0}
}

/* During the ✓ stage the estimate card is a brief: no figures yet */
.estimate.brief-only .headline-row,.estimate.brief-only .metric-grid,.estimate.brief-only #estimate-explanation,
.estimate.brief-only #estimate-status,.estimate.brief-only #known-costs,.estimate.brief-only .latest-change,
.estimate.brief-only #time-use{display:none!important}
.estimate.brief-only{padding-bottom:22px}
