/* =========================================================================
   AI SEO Malaysia — aiseomalaysia.com.my
   Design system. Everything visual is controlled from the token block below.

   >>> TO MATCH robinooi.com.my EXACTLY: change the six hex values marked
   >>> "BRAND" below. Nothing else needs to be touched.
   ========================================================================= */

:root {
  /* ---- BRAND (edit these six) ---- */
  --ink:        #0B1424;   /* BRAND  deep indigo-black, dark sections   */
  --brass:      #C8A44B;   /* BRAND  primary accent, rules and marks    */
  --signal:     #3DBFA8;   /* BRAND  positive state, "cited" indicator  */
  --alert:      #D2603F;   /* BRAND  missing state, "not cited"         */
  --paper:      #F6F5F1;   /* BRAND  light page background              */
  --text:       #16202E;   /* BRAND  body text on light                 */

  /* ---- Derived ---- */
  --ink-2:      #13223A;
  --ink-3:      #1E3253;
  --ink-text:   #DCE4EF;
  --ink-muted:  #8FA1B8;
  --paper-2:    #FFFFFF;
  --line:       #E1DED4;
  --muted:      #566475;

  /* ---- Type ---- */
  --display: "Bricolage Grotesque", "Poppins", system-ui, sans-serif;
  --body:    "Newsreader", Georgia, "Times New Roman", serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-hero: clamp(2.5rem, 6vw, 4.4rem);
  --fs-h2:   clamp(1.85rem, 3.5vw, 2.7rem);
  --fs-h3:   clamp(1.15rem, 1.6vw, 1.35rem);
  --fs-body: clamp(1.02rem, 0.55vw + 0.9rem, 1.14rem);
  --fs-lead: clamp(1.12rem, 0.9vw + 0.95rem, 1.34rem);
  --fs-mono: 0.75rem;

  /* ---- Space ---- */
  --wrap: 1160px;
  --gut: clamp(1.15rem, 4vw, 2.5rem);
  --sec-y: clamp(4rem, 8vw, 7.5rem);
  --r: 3px;
}

/* ========================= reset ========================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.68;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem;
  font-family: var(--mono); font-size: var(--fs-mono);
}
.skip:focus { left: .5rem; top: .5rem; }

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

/* ========================= layout ========================= */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 760px; }

.sec { padding-block: var(--sec-y); position: relative; }
.sec--tight { padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.sec--dark { background: var(--ink); color: var(--ink-text); }
.sec--dark h1, .sec--dark h2, .sec--dark h3 { color: #fff; }
.sec--white { background: var(--paper-2); }
.sec--rule { border-top: 1px solid var(--line); }

.grid { display: grid; gap: clamp(1.4rem, 2.5vw, 2.2rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: 1fr 1fr; align-items: start; }
.split--wide { grid-template-columns: 1.15fr 0.85fr; }

@media (max-width: 900px) {
  .g-3, .g-4, .split, .split--wide { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .g-2, .g-4 { grid-template-columns: 1fr; }
}

/* ========================= type helpers ========================= */
/* The mono eyebrow is a citation marker. It is used only where the content
   genuinely is a source, a section reference or a data label. */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px; background: var(--brass); flex: none;
}
.sec--dark .eyebrow,
.hero .eyebrow,
.phero .eyebrow { color: var(--brass); }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); }
.sec--dark .lead,
.hero .lead,
.phero .lead { color: var(--ink-muted); }

.h2-block { max-width: 30ch; }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--fs-h2); margin: 2.6rem 0 1rem; }
.prose h3 { font-size: var(--fs-h3); margin: 2rem 0 .7rem; }
.prose ul, .prose ol { padding-left: 1.15rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: .55em; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: rgba(200,164,75,.18); }
.prose strong { font-weight: 600; }

.mono-note { font-family: var(--mono); font-size: var(--fs-mono); color: var(--muted); letter-spacing: .04em; }
.sec--dark .mono-note,
.hero .mono-note,
.phero .mono-note { color: var(--ink-muted); }
.sec--dark .mono-note a,
.hero .mono-note a,
.phero .mono-note a { color: #FFFFFF; }

/* ========================= buttons ========================= */
.btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .95rem 1.4rem; border-radius: var(--r);
  text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brass); color: #16130A; border-color: var(--brass); }
.btn--primary:hover { background: #DDBB63; }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }

/* Every dark container, not only .sec--dark. The hero and the subpage heroes
   are dark too, and a ghost button inheriting the light-mode text colour there
   renders near-black on near-black. */
.sec--dark .btn--ghost,
.hero .btn--ghost,
.phero .btn--ghost,
.ftr .btn--ghost {
  border-color: rgba(255, 255, 255, .34);
  color: #FFFFFF;
  background: rgba(255, 255, 255, .045);
}
.sec--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.phero .btn--ghost:hover,
.ftr .btn--ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
  background: rgba(200, 164, 75, .12);
}
.btn--sm { padding: .68rem 1rem; font-size: .72rem; }

.arrow-link {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .06em;
  text-decoration: none; border-bottom: 1px solid var(--brass);
  padding-bottom: 2px; display: inline-block;
}
.arrow-link:hover { border-bottom-width: 2px; }

/* ========================= header ========================= */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,20,36,.88);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hdr__in { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.hdr__logo { display: flex; align-items: center; text-decoration: none; margin-right: auto; flex: none; }
.hdr__logo svg { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a, .nav button {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-text);
  text-decoration: none; padding: .55rem .7rem; border-radius: var(--r);
  background: none; border: 0; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; gap: .35rem;
}
.nav a:hover, .nav button:hover { color: var(--brass); }
.nav a[aria-current="page"] { color: var(--brass); }

.drop { position: relative; }
.drop__menu {
  position: absolute; top: calc(100% + .5rem); left: 0; min-width: 268px;
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--r);
  padding: .45rem; display: none; box-shadow: 0 24px 50px rgba(0,0,0,.45);
}
.drop[data-open="true"] .drop__menu { display: block; }
.drop__menu a { display: block; padding: .6rem .7rem; text-transform: none; letter-spacing: .01em; font-size: .82rem; font-family: var(--body); }
.drop__menu a:hover { background: rgba(255,255,255,.05); }

.burger { display: none; }

@media (max-width: 1040px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    background: var(--ink); border-bottom: 1px solid var(--ink-3);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gut) 1.75rem;
    max-height: calc(100dvh - 68px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav > a, .nav > .drop > button { padding: .85rem .2rem; width: 100%; justify-content: space-between; }
  .drop__menu { position: static; display: none; background: transparent; border: 0; border-left: 1px solid var(--ink-3); border-radius: 0; margin: 0 0 .5rem .2rem; padding-left: .8rem; box-shadow: none; }
  .nav .btn { margin-top: .9rem; justify-content: center; }
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 10px; background: none;
    border: 1px solid var(--ink-3); border-radius: var(--r); cursor: pointer;
  }
  .burger span { display: block; height: 1.5px; background: var(--ink-text); transition: transform .2s ease, opacity .2s ease; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ========================= hero ========================= */
.hero { background: var(--ink); color: var(--ink-text); padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: .5;
}
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1.02fr 0.98fr; align-items: center; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: var(--fs-hero); color: #fff; margin-bottom: 1.35rem; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero .lead { max-width: 52ch; margin-bottom: 1.9rem; }
.hero .btns { margin-bottom: 1.1rem; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--ink-3); }
.hero__meta div { font-family: var(--mono); font-size: var(--fs-mono); color: var(--ink-muted); letter-spacing: .04em; }
.hero__meta b { display: block; font-family: var(--display); font-size: 1.5rem; color: #fff; letter-spacing: -.02em; margin-bottom: .2rem; font-weight: 700; }

/* ---- SIGNATURE: the answer block ---- */
.answer {
  background: linear-gradient(180deg, #12203A 0%, #0E1B31 100%);
  border: 1px solid var(--ink-3); border-radius: 6px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.75);
  overflow: hidden;
}
.answer__bar {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1rem; border-bottom: 1px solid var(--ink-3);
  background: rgba(0,0,0,.22);
  font-family: var(--mono); font-size: .74rem; color: var(--ink-muted);
}
.answer__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; }
.answer__body { padding: 1.15rem 1.15rem 1.35rem; }
.answer__prompt {
  font-family: var(--mono); font-size: .82rem; color: #fff;
  background: rgba(255,255,255,.045); border: 1px solid var(--ink-3);
  border-radius: var(--r); padding: .75rem .85rem; margin-bottom: 1.1rem;
  min-height: 2.9rem; line-height: 1.5;
}
.answer__caret { display: inline-block; width: 7px; height: 1em; background: var(--brass); vertical-align: -2px; animation: blink 1.05s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.answer__reply { font-size: .93rem; line-height: 1.6; color: var(--ink-muted); margin-bottom: 1rem; }
.answer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.answer__list li {
  display: flex; align-items: center; gap: .7rem;
  padding: .72rem .85rem; border-radius: var(--r);
  background: rgba(255,255,255,.04); border: 1px solid var(--ink-3);
  font-family: var(--mono); font-size: .8rem; color: var(--ink-text);
  opacity: 0; transform: translateY(6px);
  animation: rowIn .45s ease forwards;
}
.answer__list li:nth-child(1) { animation-delay: 1.9s; }
.answer__list li:nth-child(2) { animation-delay: 2.15s; }
.answer__list li:nth-child(3) { animation-delay: 2.4s; }
@keyframes rowIn { to { opacity: 1; transform: none; } }

.answer__rank { color: var(--brass); flex: none; }
.answer__name { flex: 1; }
.answer__tag { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .45rem; border-radius: 2px; flex: none; }
.tag--cited { background: rgba(61,191,168,.14); color: var(--signal); }
.tag--empty { background: rgba(210,96,63,.14); color: #E9866A; }

.answer__list li.is-empty {
  border-style: dashed; border-color: rgba(210,96,63,.55);
  background: rgba(210,96,63,.05); color: #E9866A;
}
.answer__foot {
  margin-top: 1.1rem; padding-top: .95rem; border-top: 1px solid var(--ink-3);
  font-family: var(--mono); font-size: .7rem; color: var(--ink-muted); letter-spacing: .04em;
}
@media (prefers-reduced-motion: reduce) {
  .answer__list li { opacity: 1; transform: none; animation: none; }
  .answer__caret { animation: none; }
}

/* ========================= cards ========================= */
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.35rem, 2.2vw, 1.85rem);
  display: flex; flex-direction: column; gap: .65rem;
  transition: border-color .18s ease, transform .18s ease;
}
.card h3 { font-size: var(--fs-h3); }
.card p { font-size: .96rem; color: var(--muted); line-height: 1.62; }
.card__no { font-family: var(--mono); font-size: var(--fs-mono); color: var(--brass); letter-spacing: .12em; }
a.card { text-decoration: none; }
a.card:hover { border-color: var(--brass); transform: translateY(-3px); }
.sec--dark .card { background: var(--ink-2); border-color: var(--ink-3); }
.sec--dark .card p { color: var(--ink-muted); }

.card--flat { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 1.5rem 0 0; }
.sec--dark .card--flat { border-top-color: var(--ink-3); background: transparent; }

/* ========================= table ========================= */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
th, td { text-align: left; padding: .95rem 1.05rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
tbody tr:last-child td { border-bottom: 0; }
td strong { font-weight: 600; }

/* ========================= pricing ========================= */
.tier {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.5rem, 2.4vw, 2rem); display: flex; flex-direction: column;
}
.tier--feature { border-color: var(--ink); box-shadow: 0 24px 50px -34px rgba(11,20,36,.55); }
.tier__flag { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: .8rem; }
.tier__price { font-family: var(--display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; margin: .8rem 0 .2rem; }
.tier__unit { font-family: var(--mono); font-size: var(--fs-mono); color: var(--muted); letter-spacing: .08em; }
.tier ul { list-style: none; margin: 1.3rem 0 1.6rem; padding: 0; font-size: .94rem; }
.tier li { padding: .48rem 0 .48rem 1.5rem; position: relative; border-top: 1px solid var(--line); }
.tier li::before { content: "+"; position: absolute; left: 0; color: var(--brass); font-family: var(--mono); }
.tier .btn { margin-top: auto; justify-content: center; }

/* ========================= FAQ ========================= */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--display); font-weight: 600; font-size: 1.06rem;
  letter-spacing: -.01em; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .4rem; top: 1.15rem;
  font-family: var(--mono); color: var(--brass); font-size: 1.2rem; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 2.5rem 1.4rem 0; color: var(--muted); font-size: .98rem; }
.faq .faq__a a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }

/* ========================= breadcrumb ========================= */
.crumb { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .06em; color: var(--ink-muted); padding-top: 1.6rem; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.crumb a { color: var(--ink-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.crumb a:hover { color: var(--brass); border-bottom-color: var(--brass); }
.crumb li + li::before { content: "/"; margin-right: .5rem; color: var(--ink-3); }

/* ========================= page hero (subpages) ========================= */
.phero { background: var(--ink); color: var(--ink-text); padding-bottom: clamp(3rem, 6vw, 4.75rem); }
.phero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); color: #fff; margin: 1.5rem 0 1.2rem; max-width: 20ch; }
.phero .lead { max-width: 62ch; }
.phero .btns { margin-top: 1.9rem; }

/* ========================= callout / scan strip ========================= */
.scanstrip {
  border: 1px solid var(--brass); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(200,164,75,.10), rgba(200,164,75,.03));
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid; gap: 1.4rem; grid-template-columns: 1fr auto; align-items: center;
}
@media (max-width: 760px) { .scanstrip { grid-template-columns: 1fr; } }
.scanstrip h2, .scanstrip h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: .5rem; }
.scanstrip p { font-size: .96rem; color: var(--muted); margin: 0; }
.sec--dark .scanstrip p { color: var(--ink-muted); }

/* ========================= related links ========================= */
.related { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.related h2 { font-size: 1.05rem; font-family: var(--mono); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 700px) { .related ul { grid-template-columns: 1fr; } }
.related a { text-decoration: none; border-bottom: 1px solid var(--line); display: block; padding: .55rem 0; font-size: .97rem; }
.related a:hover { border-bottom-color: var(--brass); }
.related a span { color: var(--brass); font-family: var(--mono); font-size: .72rem; margin-right: .5rem; }

/* ========================= reveal ========================= */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ========================= footer ========================= */
.ftr { background: var(--ink); color: var(--ink-muted); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .93rem; }
.ftr__top { display: grid; gap: 2.25rem; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; }
@media (max-width: 1080px) { .ftr__top { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 820px) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .ftr__top { grid-template-columns: 1fr; } }
.ftr h2 { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 400; margin-bottom: 1rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ftr a { color: var(--ink-muted); text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr__mark svg { height: 30px; width: auto; margin-bottom: 1rem; }
.ftr__bot {
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--mono); font-size: .69rem; letter-spacing: .04em; color: #66788E;
}
address { font-style: normal; line-height: 1.75; }

/* ========================= floating whatsapp ========================= */
.wa {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ink); color: #fff; border: 1px solid var(--brass);
  padding: .7rem .95rem; border-radius: 40px; text-decoration: none;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  box-shadow: 0 14px 32px -12px rgba(0,0,0,.55);
}
.wa:hover { background: var(--ink-2); }
@media (max-width: 480px) { .wa span { display: none; } .wa { padding: .8rem; } }

/* =========================================================================
   Scanner + application form
   ========================================================================= */

input[type="text"], input[type="url"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--text);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: .88rem 1rem; line-height: 1.4;
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #98A2AE; }
input:focus, select:focus, textarea:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgba(200,164,75,.22); }
input[aria-invalid="true"] { border-color: var(--alert); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }

button.btn[type="submit"] { border: 1px solid transparent; cursor: pointer; font-family: var(--mono); }
button:disabled { opacity: .55; cursor: progress; }

.scan-msg { border-radius: var(--r); padding: 1rem 1.15rem; font-size: .96rem; margin-top: 1.2rem; }
.scan-msg--bad { background: rgba(210,96,63,.09); border: 1px solid rgba(210,96,63,.4); color: #8C3A1F; }
.scan-msg--good { background: rgba(61,191,168,.1); border: 1px solid rgba(61,191,168,.45); color: #14604F; }
.scan-msg a { color: inherit; }

/* ---- application form ---- */
.applyform { margin-top: .5rem; }
.fields { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; margin: 1.8rem 0 1.5rem; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.field .req { color: var(--brass); }
.field .errmsg { display: block; color: #8C3A1F; font-size: .85rem; margin-top: .35rem; min-height: 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- form on dark sections ---- */
.sec--dark .field label { color: var(--ink-muted); }
.sec--dark input, .sec--dark select, .sec--dark textarea {
  background: rgba(255,255,255,.06); border-color: var(--ink-3); color: #fff;
}
.sec--dark input::placeholder, .sec--dark textarea::placeholder { color: #7E90A8; }

/* =========================================================================
   Insights: hub and articles
   ========================================================================= */

.dateline {
  font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .06em;
  color: var(--ink-muted); margin-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .4rem 0;
}
/* An explicit separator rather than relying on flex gap alone, so the line
   still reads correctly if gap is unsupported. */
.dateline span + span::before { content: "\00b7"; margin: 0 .7rem; color: var(--ink-3); }

/* The TL;DR is the passage a retrieval system is most likely to lift, so it
   sits above everything else and reads as a complete answer on its own. */
.tldr {
  border-left: 3px solid var(--brass);
  background: var(--paper-2);
  border-top: 1px solid var(--line); border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
}
.tldr p:first-of-type { margin-bottom: .7rem; }
.tldr .eyebrow { margin-bottom: .7rem; }
.tldr .tldr__a { font-size: var(--fs-lead); line-height: 1.55; margin: 0; }

.artbody { max-width: 68ch; }
.artbody h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.9rem 0 1rem; }
.artbody h3 { font-size: var(--fs-h3); margin: 2.1rem 0 .7rem; }
.artbody ul, .artbody ol { padding-left: 1.2rem; margin: 0 0 1.35em; }
.artbody li { margin-bottom: .6em; }
.artbody a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.artbody a:hover { background: rgba(200,164,75,.18); }
.artbody blockquote {
  margin: 2rem 0; padding: .2rem 0 .2rem 1.3rem;
  border-left: 3px solid var(--line); font-style: italic; color: var(--muted);
}
.artbody .tbl-wrap { margin: 1.8rem 0; }
.artbody figure { margin: 1.8rem 0; }
.artbody figcaption { font-family: var(--mono); font-size: var(--fs-mono); color: var(--muted); margin-top: .6rem; }

/* numbered list entries in the tools roundup: the order is the ranking, so
   the number carries real information */
.pick { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2.2rem; }
.pick__n { font-family: var(--mono); font-size: var(--fs-mono); color: var(--brass); letter-spacing: .12em; }
.pick h3 { margin: .35rem 0 .2rem; }
.pick__meta { font-family: var(--mono); font-size: var(--fs-mono); color: var(--muted); margin: 0 0 .8rem; }

.hublist { display: grid; gap: 0; }
.hubitem {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.4rem;
  padding: 1.6rem 0; border-top: 1px solid var(--line); text-decoration: none;
}
.hubitem:hover h2 { color: var(--brass); }
.hubitem__d { font-family: var(--mono); font-size: var(--fs-mono); color: var(--muted); letter-spacing: .04em; padding-top: .3rem; }
.hubitem h2 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); margin-bottom: .45rem; }
.hubitem p { font-size: .97rem; color: var(--muted); margin: 0; }
.hubitem__tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); display: block; margin-top: .6rem; }
@media (max-width: 620px) {
  .hubitem { grid-template-columns: 1fr; gap: .5rem; }
  .hubitem__d { padding-top: 0; }
}
