@import url("fonts.css");

/* ---------------------------------------------------------------
   QuoteScout — design tokens (taken verbatim from the approved design)
   --------------------------------------------------------------- */
:root {
  --page:        #FAFAF8;
  --surface:     #FFFFFF;
  --input:       #FCFCFA;

  --navy:        #0B2740;
  --navy-hover:  #081D30;
  --navy-soft:   #B9C9DA;
  --navy-softer: #8FAAC5;
  --navy-tint:   #EAF0F6;
  --navy-tint-b: #DCE6EF;

  --orange:      #C2500E;
  --orange-hover:#A8450B;
  --orange-dot:  #F0872B;
  --orange-tint: #F5EDE5;
  --orange-tint-b:#EDDFD2;

  --ink:         #0F1417;
  --body:        #4A545E;
  --muted:       #5C6670;
  --muted-2:     #6B747D;
  --muted-3:     #39434D;
  --muted-4:     #8B939B;

  --line:        #E9E6DF;
  --line-input:  #DFDBD2;
  --line-soft:   #F2F0EA;
  --line-softer: #EFECE5;
  --chip:        #F0EEE8;
  --chip-line:   #E4E0D8;

  --green:       #12734A;
  --green-dot:   #5FD08A;
  --amber:       #8A5A00;
  --red:         #A32617;

  --shadow-card: 0 1px 2px rgba(15,20,23,0.04), 0 12px 28px -20px rgba(15,20,23,0.35);
  --shadow-flat: 0 1px 2px rgba(15,20,23,0.04);
  --shadow-navy: 0 1px 2px rgba(11,39,64,0.2), 0 16px 32px -22px rgba(11,39,64,0.8);
  --shadow-btn:  0 1px 2px rgba(15,20,23,0.12);

  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --------------------------------- reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------- shell -------------------------------- */
.page { background: var(--page); min-height: 100vh; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,248,0.86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  padding-block: 9px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.brand-mark i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange-dot); display: block; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 7px 10px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--muted-3);
  white-space: nowrap; transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--chip); color: var(--ink); }

/* -------------------------------- sections ------------------------------ */
.section { padding: 40px 0 0 0; scroll-margin-top: 62px; }
.section-hero { padding: 14px 0 6px 0; }

h1 {
  font-size: 27px; line-height: 1.12; font-weight: 700;
  letter-spacing: -1.1px; color: var(--ink);
  text-wrap: balance; margin-bottom: 6px;
}
h2.section-title {
  font-size: 24px; line-height: 1.15; font-weight: 700;
  letter-spacing: -0.8px; color: var(--ink); margin-bottom: 14px;
}
h2.section-title.tight { margin-bottom: 7px; }
.lede { font-size: 17px; line-height: 1.5; color: var(--muted); margin-bottom: 14px; }
.lede.hero { line-height: 1.4; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.7px;
  text-transform: uppercase; margin-bottom: 10px;
}
.tag-supplier { background: var(--orange-tint); border: 1px solid var(--orange-tint-b); color: var(--orange-hover); }
.tag-customer { background: var(--navy-tint);  border: 1px solid var(--navy-tint-b);  color: var(--navy); }

/* --------------------------------- cards -------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 15px; box-shadow: var(--shadow-flat);
}
.card.raised { box-shadow: var(--shadow-card); }
.card.navy {
  background: var(--navy); border: none; color: #fff;
  box-shadow: var(--shadow-navy);
}
.card h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; color: var(--ink); margin-bottom: 11px; }
.card.navy h2 {
  color: #fff; margin-bottom: 5px;
  display: flex; align-items: center; gap: 7px;
}
.card.navy p { font-size: 15.5px; line-height: 1.4; color: var(--navy-soft); margin-bottom: 11px; }

.dot { width: 7px; height: 7px; border-radius: 50%; display: block; flex: none; }
.dot-live { background: var(--green-dot); }

.hero-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* --------------------------------- forms -------------------------------- */
.form { display: grid; gap: 8px; }

.field {
  height: 46px; padding: 0 13px; width: 100%;
  font-size: 16px;
  border: 1px solid var(--line-input); border-radius: 10px;
  background: var(--input); color: var(--ink);
  transition: background .15s ease, border-color .15s ease;
}
.field::placeholder { color: var(--muted-2); }
.field:focus { background: var(--surface); border-color: var(--navy); outline: none; }
.field:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }

.field-code {
  height: 52px; padding: 0 14px;
  font-size: 20px; font-family: var(--mono); font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
}
.field-code::placeholder { letter-spacing: 2px; }

.btn {
  height: 50px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 10px; cursor: pointer;
  font-size: 16px; font-weight: 600; letter-spacing: -0.2px;
  transition: background .15s ease, color .15s ease;
}
.btn-orange { background: var(--orange); color: #fff; box-shadow: var(--shadow-btn); }
.btn-orange:hover { background: var(--orange-hover); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-hover); }

.btn-lg { height: 54px; border-radius: 12px; font-size: 17px; margin-top: 9px; }

.btn-on-navy {
  height: 46px; font-size: 16px; font-weight: 600;
  background: #fff; color: var(--navy); border-radius: 10px;
}
.btn-on-navy:hover { background: var(--navy-tint); color: var(--navy); }
.btn-ghost {
  height: 46px; font-size: 15.5px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.22); color: #fff; border-radius: 10px;
  background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

.stack { display: grid; gap: 8px; }
.stack-9 { display: grid; gap: 9px; }

.note { font-size: 13.5px; line-height: 1.35; color: var(--muted-2); margin-top: 9px; }
.note.flush { margin-top: 0; }
.note.center { text-align: center; font-size: 14px; line-height: 1.4; margin-top: 8px; }

.code-inline {
  font-family: var(--mono); font-size: 15px; font-weight: 500;
  background: var(--chip); border: 1px solid var(--chip-line);
  padding: 1px 6px; border-radius: 6px; color: var(--ink);
  white-space: nowrap;
}

/* ------------------------------ activity bar ---------------------------- */
.activity {
  margin-top: 10px;
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; font-size: 14px; color: var(--muted);
}
.activity strong { font-family: var(--mono); color: var(--ink); font-weight: 600; }

/* ------------------------------ verify result --------------------------- */
.result {
  margin-top: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; box-shadow: var(--shadow-flat);
}
.result[hidden] { display: none; }
.result-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.result-head .dot { width: 9px; height: 9px; background: var(--navy); }
.result-head strong { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; color: var(--ink); }
.result p { font-size: 16px; line-height: 1.5; color: var(--body); }
.result .btn { margin-top: 14px; }
.result code {
  font-family: var(--mono); font-weight: 600; color: var(--ink);
}

/* ------------------------------ numbered list --------------------------- */
.steps { display: grid; gap: 9px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px; display: grid; grid-template-columns: 30px 1fr; gap: 13px;
  align-items: start;
}
.step-num {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  background: var(--chip); color: var(--navy);
}
.step-num.warm { background: var(--orange-tint); color: var(--orange-hover); }
.step strong {
  display: block; font-size: 17px; font-weight: 600;
  letter-spacing: -0.3px; color: var(--ink); margin-bottom: 3px;
}
.step span { font-size: 16px; line-height: 1.5; color: var(--body); }

/* ------------------------------- statements ----------------------------- */
.statement {
  margin-top: 10px; background: var(--navy); border-radius: 14px;
  padding: 16px; color: #fff;
}
.statement strong {
  display: block; font-size: 18px; font-weight: 600;
  letter-spacing: -0.4px; margin-bottom: 5px;
}
.statement span { font-size: 16px; line-height: 1.5; color: var(--navy-soft); }

.note-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.note-card strong { display: block; font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.note-card span { font-size: 15.5px; line-height: 1.5; color: var(--body); }

.rules {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.rules li { padding: 14px 15px; font-size: 16px; line-height: 1.5; color: var(--body); }
.rules li + li { border-top: 1px solid var(--line-soft); }

.stop {
  margin-top: 9px; background: var(--surface); border: 1px solid var(--orange-tint-b);
  border-radius: 14px; padding: 16px;
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
}
.stop-badge {
  font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: 1px;
  color: #fff; background: var(--orange); padding: 10px 14px; border-radius: 10px;
}
.stop div:last-child { font-size: 16px; line-height: 1.5; color: var(--body); }
.stop strong { color: var(--ink); font-weight: 600; }

/* --------------------------------- facts -------------------------------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 9px; margin-top: 9px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.fact-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--muted-4); margin-bottom: 6px;
}
.fact-value { font-size: 26px; font-weight: 700; letter-spacing: -1px; color: var(--ink); margin-bottom: 5px; }
.fact span { font-size: 15.5px; line-height: 1.45; color: var(--body); }

/* -------------------------------- identity ------------------------------ */
.identity { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.identity-head { background: var(--navy); padding: 18px; }
.identity-head .label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--navy-softer); margin-bottom: 8px;
}
.identity-uen {
  font-family: var(--mono); font-size: 30px; font-weight: 600;
  letter-spacing: 1px; color: #fff; line-height: 1.05;
}
.identity-head p { font-size: 15px; line-height: 1.45; color: var(--navy-soft); margin-top: 9px; }
.identity-head a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.dl { display: grid; grid-template-columns: auto 1fr; font-size: 16px; margin: 0; padding: 4px 16px 12px 16px; }
.dl dt { color: var(--muted-2); padding: 11px 0; }
.dl dd { padding: 11px 0; text-align: right; font-weight: 500; color: var(--ink); }
.dl dt:not(:first-of-type), .dl dd:not(:first-of-type) { border-top: 1px solid var(--line-soft); }
.dl a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.dl a:hover { color: var(--orange-hover); }

/* -------------------------------- footer -------------------------------- */
.site-footer { margin-top: 44px; background: var(--navy); color: var(--navy-soft); }
.site-footer .wrap { padding: 26px 20px 34px 20px; display: grid; gap: 13px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; }
.footer-brand .brand-mark { width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,0.12); }
.footer-brand .brand-mark i { width: 6px; height: 6px; }
.footer-brand span { font-size: 15.5px; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15.5px; }
.footer-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--orange-dot); }
.footer-fine { font-size: 14.5px; line-height: 1.55; color: var(--navy-softer); }

/* ------------------------------ legal pages ----------------------------- */
.legal { padding: 22px 0 0 0; }
.legal h1 { font-size: 27px; margin-bottom: 6px; }
.legal .updated { font-size: 14.5px; color: var(--muted-2); margin-bottom: 18px; }
.legal-body {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px; box-shadow: var(--shadow-flat);
}
.legal-body h2 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.3px;
  color: var(--ink); margin: 22px 0 7px 0;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { font-size: 16px; line-height: 1.6; color: var(--body); margin-bottom: 10px; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul { list-style: none; display: grid; gap: 7px; margin: 0 0 12px 0; }
.legal-body ul li {
  font-size: 16px; line-height: 1.55; color: var(--body);
  padding-left: 18px; position: relative;
}
.legal-body ul li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--orange);
}
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--orange-hover); }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 500; color: var(--muted-3); margin-bottom: 14px;
}
.back-link:hover { color: var(--ink); }

/* ------------------------------ small screens --------------------------- */
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 6px 8px; font-size: 13.5px; }
  h1 { font-size: 25px; letter-spacing: -0.9px; }
  .stop { grid-template-columns: 1fr; gap: 11px; }
  .stop-badge { justify-self: start; }
  .identity-uen { font-size: 26px; }
  .dl { grid-template-columns: 1fr; padding-bottom: 8px; }
  .dl dt { padding: 10px 0 0 0; }
  .dl dd { text-align: left; padding: 2px 0 10px 0; border-top: none !important; }
  .dl dt:not(:first-of-type) { border-top: 1px solid var(--line-soft); padding-top: 10px; }
}

/* Below ~380px the two header links no longer fit beside the wordmark.
   "How it works" is dropped rather than shrunk — the navy hero card already
   links to #how, so nothing becomes unreachable. */
@media (max-width: 380px) {
  .site-nav a.nav-how { display: none; }
}
