/* Intero TMS — www.intero-tms.com
   Colours and type follow the Intero Brand & Product Guidelines v1.2 (Sep 2026). */
:root {
  --charcoal: #1E242B;
  --emerald: #1C7050;
  --emerald-dark: #155A40;
  --mint: #7FD4AE;
  --emerald-tint: #E1F2EA;
  --slate: #EDF0F4;
  --paper: #F8F9FB;
  --white: #FFFFFF;
  --text: #3A434D;
  --muted: #5B6570;
  --rule: #DCE1E7;
  --input: #B8C0CA;
  --dark-rule: #3A444F;
  --dark-text: #C9D0D6;
  --err-bg: #F8E3DA;
  --err-text: #7A2406;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ring: 380px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--emerald); }
a:hover { color: var(--emerald-dark); }
img { max-width: 100%; }

h1, h2 {
  font-stretch: 112%;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin: 0;
}
h1 { font-weight: 700; font-size: clamp(40px, 6.4vw, 80px); line-height: 1.04; max-width: 17ch; }
h2 { font-weight: 600; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; }

.wrap { max-width: 1168px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.header-row { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.logo-link { display: block; }
.logo { display: block; height: 32px; width: auto; }
.header-link { color: var(--charcoal); text-decoration: none; font-weight: 500; padding: 12px 4px; }
.header-link:hover { color: var(--emerald); }

/* Hero */
.hero { padding: 120px 0 128px; }
.definition { width: min(560px, 100%); padding-bottom: 24px; margin-bottom: 40px; border-bottom: 1px solid var(--rule); }
.definition p { margin: 0; }
.definition-word { font-size: 15px; color: var(--muted); font-weight: 500; }
.definition-word i { font-size: 26px; color: var(--charcoal); margin-right: 6px; }
.definition-meaning { font-size: 26px; font-weight: 500; color: var(--emerald); line-height: 1.3; }
.lede { margin: 36px 0 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; color: var(--text); max-width: 760px; }
.proprietary { margin: 40px 0 0; display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--muted); }
.proprietary svg { flex-shrink: 0; margin-top: 3px; }

/* The whole business */
.business { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 120px 0; }
.business h2 { max-width: 820px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 56px; }
.two-col p, .modes { margin: 0; font-size: 19px; line-height: 1.65; color: var(--text); }
.modes { white-space: nowrap; }

/* Loop */
.loop { margin: 56px 0; padding: 100px 0; display: flex; justify-content: center; }
.ring {
  position: relative; width: var(--ring); height: var(--ring);
  border: 3px solid var(--charcoal); border-radius: 50%; background: var(--paper);
}
.ring-inner { position: absolute; inset: 33px; border: 1px dashed #C9D0D8; border-radius: 50%; }
.ring-centre {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.record-mark { width: 28px; height: 28px; border-radius: 5px; background: var(--emerald); }
.record-label { font-stretch: 112%; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.stop {
  position: absolute; width: 24px; height: 24px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--white); border: 3px solid var(--emerald);
  display: flex; align-items: center; justify-content: center;
}
.stop b { display: none; font-size: 12px; font-weight: 700; color: var(--emerald); font-variant-numeric: tabular-nums; }
.s1 { left: 50%; top: 0; } .s2 { left: 100%; top: 50%; } .s3 { left: 50%; top: 100%; } .s4 { left: 0; top: 50%; }
.arrow {
  position: absolute; width: 16px; height: 16px; background: var(--emerald);
  clip-path: polygon(20% 14%, 86% 50%, 20% 86%);
}
.a1 { left: 85.355%; top: 14.645%; transform: translate(-50%, -50%) rotate(45deg); }
.a2 { left: 85.355%; top: 85.355%; transform: translate(-50%, -50%) rotate(135deg); }
.a3 { left: 14.645%; top: 85.355%; transform: translate(-50%, -50%) rotate(225deg); }
.a4 { left: 14.645%; top: 14.645%; transform: translate(-50%, -50%) rotate(315deg); }
.label {
  position: absolute; display: flex; flex-direction: column; gap: 4px;
  font-stretch: 112%; font-size: 20px; font-weight: 600; white-space: nowrap; line-height: 1.2;
}
.label b, .loop-list b { font-stretch: 100%; font-size: 13px; font-weight: 600; color: var(--emerald); font-variant-numeric: tabular-nums; }
.l1 { left: 50%; bottom: calc(100% + 24px); transform: translateX(-50%); align-items: center; text-align: center; }
.l2 { left: calc(100% + 32px); top: 50%; transform: translateY(-50%); }
.l3 { left: 50%; top: calc(100% + 24px); transform: translateX(-50%); align-items: center; text-align: center; }
.l4 { right: calc(100% + 32px); top: 50%; transform: translateY(-50%); align-items: flex-end; text-align: right; }
.loop-list { display: none; }

/* Verification */
.verify { background: var(--charcoal); color: var(--paper); padding: 120px 0; }
.verify h2 { color: var(--paper); }
.verify-intro { max-width: 760px; margin: 20px 0 0; font-size: 19px; line-height: 1.65; color: var(--dark-text); }
.verify h3 { margin: 48px 0 20px; font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); }
.verify-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.verify-card { padding: 32px; border: 1px solid var(--dark-rule); border-radius: 12px; display: flex; flex-direction: column; gap: 16px; }
.verify-card p { margin: 0; font-size: 17px; color: var(--dark-text); }
.verify-card b { color: var(--paper); }
.verify-card .domain { font-size: clamp(19px, 2.2vw, 30px); font-weight: 500; color: var(--paper); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.domain .muted { color: #8FA0AE; }

/* Contact */
.contact { padding: 120px 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; }
.contact-grid > div p { margin: 20px 0 0; font-size: 19px; line-height: 1.65; color: var(--text); }
form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 15px; font-weight: 500; }
.req { color: var(--emerald); }
input, textarea {
  font: inherit; font-size: 16px; color: var(--charcoal); background: var(--white);
  border: 1px solid var(--input); border-radius: 8px; padding: 0 14px; width: 100%;
}
input { height: 48px; }
textarea { padding: 12px 14px; resize: vertical; min-height: 150px; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; align-items: center; gap: 20px; }
button {
  font: inherit; font-size: 16px; font-weight: 600; height: 52px; padding: 0 28px;
  border: 0; border-radius: 8px; background: var(--emerald); color: var(--white); cursor: pointer;
}
button:hover { background: var(--emerald-dark); }
button:disabled { opacity: 0.6; cursor: progress; }
.req-note { font-size: 13px; color: var(--muted); }
.notice { margin: 0; padding: 14px 16px; border-radius: 8px; font-size: 15px; }
.notice-ok { background: var(--emerald-tint); color: var(--emerald-dark); }
.notice-err { background: var(--err-bg); color: var(--err-text); }
.notice[hidden] { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); }
.footer-row { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.footer-row nav { display: flex; gap: 28px; }
.footer-row a { color: var(--muted); padding: 6px 0; }
.footer-row a:hover { color: var(--charcoal); }

/* Narrower screens: the loop drops its outside labels for a numbered list */
@media (max-width: 1000px) {
  :root { --ring: 220px; }
  .modes { white-space: normal; }
  .loop { flex-direction: column; align-items: center; padding: 20px 0 0; gap: 36px; }
  .ring-inner, .label { display: none; }
  .record-mark { width: 20px; height: 20px; border-radius: 4px; }
  .ring-centre { gap: 10px; }
  .record-label { font-size: 15px; }
  .stop { width: 32px; height: 32px; }
  .stop b { display: block; }
  .arrow { width: 13px; height: 13px; }
  .loop-list { display: block; list-style: none; margin: 0; padding: 0; width: min(420px, 100%); }
  .loop-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-size: 17px; font-weight: 600; }
  .loop-list li + li { border-top: 1px solid var(--rule); }
  .loop-list b { width: 20px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .header-row { height: 64px; }
  .logo { height: 26px; }
  .hero { padding: 56px 0 64px; }
  .definition { margin-bottom: 28px; padding-bottom: 20px; }
  .definition-word { font-size: 13px; }
  .definition-word i, .definition-meaning { font-size: 22px; }
  .lede { margin-top: 24px; }
  .proprietary { margin-top: 28px; font-size: 14px; }
  .business, .verify, .contact { padding: 64px 0; }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }
  .two-col p, .modes, .verify-intro, .contact-grid > div p { font-size: 17px; }
  .loop { margin: 36px 0; }
  .verify h3 { margin-top: 32px; font-size: 13px; }
  .verify-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .verify-card { padding: 22px; gap: 10px; }
  .verify-card p { font-size: 15px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .submit-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .footer-row { flex-direction: column-reverse; align-items: flex-start; justify-content: center; padding: 28px 20px 36px; gap: 12px; }
}

/* Legal pages (Privacy Policy, Terms of Use) */
.legal { padding: 88px 0 112px; }
.legal .wrap { max-width: 808px; }
.legal h1 { font-size: clamp(34px, 4.4vw, 52px); max-width: none; }
.legal .updated { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.legal .summary { margin: 40px 0 8px; padding: 24px 28px; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; }
.legal .summary p { margin: 0; }
.legal .summary ul { margin: 12px 0 0; padding-left: 20px; }
.legal h2 { font-size: 24px; margin: 56px 0 0; letter-spacing: -0.01em; }
.legal h3 { font-size: 18px; font-weight: 600; margin: 32px 0 0; }
.legal p, .legal li { color: var(--text); line-height: 1.7; }
.legal p { margin: 16px 0 0; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); }
.legal th { font-weight: 600; color: var(--charcoal); }
.legal td { color: var(--text); }
.legal .table-scroll { overflow-x: auto; }
@media (max-width: 760px) {
  .legal { padding: 48px 0 72px; }
  .legal h2 { margin-top: 44px; font-size: 21px; }
  .legal .summary { padding: 20px; }
  .legal table { font-size: 14px; min-width: 520px; }
}
