/* Ọjà design tokens.
   Market green: trust and money, Nigerian without waving a flag. Amber is not
   decoration here — it marks a stale price or a gap too wide to trust, so it is
   reserved for exactly those two jobs and used nowhere else. Paper is warm rather
   than white: this is a building-materials product, not a SaaS dashboard. */

:root {
  /* brand */
  --green: #0B5D45;
  --green-deep: #074436;
  --green-wash: #E6F0EC;
  --green-line: #9CC4B6;
  --amber: #D98C2B;
  --amber-deep: #8A5410;
  --amber-wash: #FBF1E2;
  --amber-line: #E8BE84;

  /* surfaces */
  --paper: #F7F5EF;
  --card: #FFFFFF;
  --line: #E2E0D8;
  --line-strong: #C7C4B8;

  /* ink */
  --ink: #1A1A17;
  --ink-soft: #52554E;
  --ink-faint: #7A7D74;

  /* states */
  --red: #A32D2D;
  --red-wash: #FBEAEA;
  --red-line: #E8A5A5;
  --red-ink: #7A1F1F;

  /* type */
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: Fraunces, Georgia, "Times New Roman", serif;

  /* form */
  --radius: 12px;
  --radius-sm: 8px;
  --measure: 60ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1040px, 100% - 2.5rem); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* masthead: the mark and the name, nothing else. Navigation a visitor does not
   need is navigation that makes a product feel like an admin tool. */

.masthead { background: var(--card); border-bottom: 1px solid var(--line); }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 0; text-decoration: none; color: inherit;
}
.mark { width: 28px; height: 28px; flex: none; }
.mark rect { fill: var(--green); }
.mark .mark-accent { fill: var(--amber); }
.wordmark { font-family: var(--display); font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }

/* hero */

.hero { padding: 3rem 0 2.5rem; }
h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 6.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 .75rem;
  max-width: 18ch;
}
.lede { margin: 0 0 1.75rem; color: var(--ink-soft); max-width: var(--measure); font-size: 1.05rem; }

.ask-form { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 44rem; }
.ask-form input {
  flex: 1 1 20rem; min-width: 0;
  padding: .95rem 1rem; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.ask-form input::placeholder { color: var(--ink-faint); }
.ask-form input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.ask-form button {
  padding: .95rem 1.4rem; font: inherit; font-weight: 500;
  color: #fff; background: var(--green);
  border: 1px solid var(--green); border-radius: var(--radius); cursor: pointer;
  min-height: 44px;
}
.ask-form button:hover { background: var(--green-deep); border-color: var(--green-deep); }
.ask-form button:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; }
.ask-form button[disabled] { opacity: .6; cursor: progress; }

.examples { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 0; }
.example {
  font: inherit; font-size: .9rem; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; min-height: 44px; padding: .5rem 1rem;
  cursor: pointer; text-align: left;
}
.example:hover { color: var(--green-deep); border-color: var(--green-line); }
.example:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.board-section { padding-bottom: 2.5rem; }
.panel-section { padding-bottom: 3rem; }

/* board */

.board-empty {
  max-width: var(--measure);
  color: var(--ink-faint);
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 0;
}
.board-request { margin: 0 0 1rem; color: var(--ink-soft); font-size: 0.95rem; }

.quote-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.quote-card h3 { color: var(--green-deep); }

.quote-price {
  font-family: var(--sans);
  font-feature-settings: "tnum" 1, "ss01" 1;
  margin: 0.35rem 0 0;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.quote-unit { margin: 0 0 0.7rem; color: var(--ink-faint); font-size: 0.88rem; }

.quote-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.9rem; font-size: 0.9rem; }
.quote-card dt { color: var(--ink-faint); }
.quote-card dd { margin: 0; color: var(--ink-soft); }

.quote-date {
  margin: 0.8rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-faint);
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}
.quote-date-stale { color: var(--amber); background: var(--amber-wash); border-radius: 6px; padding: 0.4rem 0.55rem; border-top: 0; }
.quote-note { margin: 0.6rem 0 0; font-size: 0.86rem; color: var(--ink-soft); }

.quote-card-failed { background: var(--red-wash); border-color: var(--red-line); }
.quote-card-failed h3 { color: var(--red); }
.quote-failed-reason { margin: 0.3rem 0 0; font-size: 0.9rem; color: var(--red-ink); }

/* spread */

.spread {
  margin-top: 1.25rem;
  background: var(--green-wash);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.spread h3 { color: var(--green-deep); }
.spread-line { margin: 0.2rem 0 0; font-size: 1.05rem; font-weight: 500; }
.spread-gap { margin: 0.25rem 0 0; color: var(--green-deep); }

.spread-wide { background: var(--amber-wash); border-color: var(--amber-line); }
.spread-wide h3, .spread-wide .spread-gap { color: var(--amber); }
.spread-warning { margin: 0.7rem 0 0; font-size: 0.92rem; color: var(--amber-deep); max-width: var(--measure); }

/* assistant */

.assistant-intro { max-width: var(--measure); color: var(--ink-soft); margin: 0 0 1rem; }
#app {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 9rem;
  padding: 0.5rem;
}

/* Approval, asked on the board rather than in the chat panel. The profile
   requires the visitor to approve each third-party contact, so this card stands
   where that dealer's answer is about to appear. */
.quote-card-consent { background: var(--green-wash); border-color: var(--green-line); }
.quote-card-consent h3 { color: var(--green-deep); }
.consent-ask { margin: .3rem 0 .1rem; font-size: .95rem; color: var(--ink); }
.consent-origin {
  margin: 0 0 .9rem; font-size: .8rem; color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}
.consent-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; }
.consent-actions button {
  font: inherit; font-size: .9rem; font-weight: 500;
  min-height: 44px; padding: .5rem 1rem; cursor: pointer;
  color: #fff; background: var(--green);
  border: 1px solid var(--green); border-radius: var(--radius);
}
.consent-actions button:hover { background: var(--green-deep); border-color: var(--green-deep); }
.consent-actions button:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; }
.consent-actions button.ghost { color: var(--ink-soft); background: transparent; border-color: var(--line-strong); }
.consent-actions button.ghost:hover { color: var(--red-ink); border-color: var(--red-line); background: var(--red-wash); }

/* the agent panel is a tool, not the product. It stays closed until wanted. */

#assistant-details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
#assistant-details > summary {
  cursor: pointer; padding: 1rem 1.2rem; list-style: none;
  display: flex; flex-direction: column; gap: .15rem; min-height: 44px;
}
#assistant-details > summary::-webkit-details-marker { display: none; }
#assistant-details > summary:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; border-radius: var(--radius); }
.summary-title { font-weight: 500; }
.summary-hint { font-size: .88rem; color: var(--ink-faint); }
#app { border-top: 1px solid var(--line); padding: .5rem; min-height: 9rem; }

/* sections below the tool: the explanation, not the product */

.section-lede { max-width: var(--measure); color: var(--ink-soft); margin: 0 0 1.75rem; }
.eyebrow {
  margin: 0 0 .9rem; font-size: .78rem; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; color: var(--green-deep);
}
h1 em { font-family: var(--display); font-style: italic; font-weight: 600; }

.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead-link { font-size: .92rem; color: var(--ink-soft); text-decoration: none; padding: .5rem 0; }
.masthead-link:hover { color: var(--green-deep); }

h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.45rem, 4.4vw, 2rem); letter-spacing: -0.012em; margin: 0 0 .6rem; }

/* how it works */

.how { background: var(--card); border-block: 1px solid var(--line); padding: 3.5rem 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem 1.6rem; }
.step-number { display: block; font-family: var(--display); font-size: 2.1rem; font-weight: 600; line-height: 1; color: var(--green); margin-bottom: 1.4rem; }
.step h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.step-last { background: var(--green); border-color: var(--green); }
.step-last .step-number, .step-last h3 { color: #fff; }
.step-last p { color: #D6E7E0; }

/* rules the page keeps */

.rules { background: var(--ink); color: #fff; padding: 3.5rem 0; }
.rules h2 { color: #fff; }
.section-lede-dark { color: #A9ADA4; }
.rules-list { margin: 0; border: 1px solid #343630; border-radius: var(--radius); overflow: hidden; }
.rule { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .95rem 1.2rem; border-bottom: 1px solid #343630; }
.rule:last-child { border-bottom: 0; }
.rule dt { font-size: .96rem; }
.rule dd { margin: 0; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #8FCBB8; flex: none; }

/* dealers */

.dealers-section { padding: 3.5rem 0; }
.dealer-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.dealer-card {
  display: flex; flex-direction: column; gap: .2rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; text-decoration: none; color: inherit;
}
.dealer-card:hover { border-color: var(--green-line); }
.dealer-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.dealer-card h3 { font-size: 1.05rem; margin: 0; color: var(--green-deep); }
.dealer-place { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.dealer-note { margin: .5rem 0 1rem; font-size: .85rem; color: var(--ink-faint); }
.dealer-go { margin-top: auto; font-size: .88rem; font-weight: 500; color: var(--green); }
.dealer-go::after { content: " \2192"; }

/* limits */

.limits { background: var(--card); border-block: 1px solid var(--line); padding: 3.5rem 0; }
.limit { border-top: 1px solid var(--line); padding: 1.3rem 0; max-width: var(--measure); }
.limit:first-of-type { border-top: 0; padding-top: 0; }
.limit h3 { font-size: 1.02rem; margin: 0 0 .3rem; }
.limit p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* closing */

.closing { padding: 3.5rem 0; text-align: center; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; }
.mark-lg { width: 40px; height: 40px; margin-bottom: 1rem; }
.closing h2 { margin-bottom: .4rem; }
.closing p { margin: 0 0 1.6rem; color: var(--ink-soft); max-width: 36ch; }
.closing-cta {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: .8rem 1.6rem; font-weight: 500; text-decoration: none;
  color: #fff; background: var(--green); border-radius: var(--radius);
}
.closing-cta:hover { background: var(--green-deep); }
.closing-cta:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; }

/* footer */

footer { border-top: 1px solid var(--line); background: var(--card); padding: 2rem 0 3rem; }
.colophon { margin: 0; font-size: .85rem; color: var(--ink-faint); }
.colophon a { color: var(--green-deep); }

@media (max-width: 34rem) {
  body { font-size: 16px; }
  .hero { padding: 2rem 0 1.75rem; }
  .how, .rules, .dealers-section, .limits, .closing { padding: 2.5rem 0; }
  .quote-price { font-size: 1.6rem; }
  .ask-form button { flex: 1 1 100%; }
  .rule { flex-direction: column; gap: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* A dealer that has not answered yet. Asking three dealers one at a time takes
   minutes; showing who is still to come is the difference between a page that
   looks slow and a page that looks broken. */
.quote-card-waiting { background: transparent; border-style: dashed; }
.quote-card-waiting h3 { color: var(--ink-faint); }
.quote-waiting { margin: .3rem 0 0; font-size: .9rem; color: var(--ink-faint); }

/* The dealer disclosure, rendered by the page rather than generated by each dealer.
   A page-owned disclosure cannot be softened or omitted by a model having an off turn,
   and three agents writing the same sentence is time the buyer waits through. */
.quote-status {
  margin: .7rem 0 0;
  padding-top: .6rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--ink-faint);
}
