/* ============================================================
   Researchly — global stylesheet
   Fonts: Instrument Sans (variable 400–700) + Instrument Serif,
   self-hosted in ../fonts/.
   ============================================================ */

/* ---- Instrument Sans — italic ---- */
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/instrument-sans-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/instrument-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Instrument Sans — normal (variable weight 400–700) ---- */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Instrument Serif — italic ---- */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Instrument Serif — normal ---- */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Base ---- */
html, body {
  margin: 0;
  padding: 0;
  background: #fff;
}
body {
  font-family: 'Instrument Sans', sans-serif;
  color: oklch(0.21 0.01 262);
  -webkit-font-smoothing: antialiased;
}
a {
  color: oklch(0.21 0.01 262);
  text-decoration: none;
}
a:hover {
  color: oklch(0.4 0.015 262);
}

/* ---- Nav links ---- */
.nav-link {
  color: oklch(0.48 0.015 262);
}
.nav-link:hover {
  color: oklch(0.21 0.01 262);
}
.nav-link.current {
  color: oklch(0.21 0.01 262);
}

/* ---- Brand lockup (mark + MarketResearchly wordmark) ---- */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.46em;
  line-height: 1;
  white-space: nowrap;
  font-size: 19px; /* overridden inline per placement */
}
.brand-mark {
  width: 1.32em;
  height: 1.32em;
  display: block;
  flex-shrink: 0;
}
.brand-word {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 1em;
  letter-spacing: -0.022em;
  color: #1D1F26;
  /* Subtle warm beige shadow for a premium, dimensional feel. The glyphs
     stay crisp — the tint sits behind the text, not on its edges. */
  text-shadow: 0 1px 5px rgba(188, 168, 128, 0.32), 0 3px 16px rgba(168, 148, 108, 0.22);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.brand-word em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: 0.004em;
}
.brand-lockup.is-reversed .brand-word {
  color: #fff;
  /* A touch stronger on dark surfaces so the warm cream glow reads clearly. */
  text-shadow: 0 1px 6px rgba(226, 210, 174, 0.42), 0 3px 18px rgba(206, 188, 148, 0.30);
}

/* ---- FAQ ---- */
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 18px;
  color: oklch(0.55 0.015 262);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: '\2212';
}

/* ---- Buttons ---- */
.btn-dark {
  color: #fff;
  background: oklch(0.21 0.01 262);
}
.btn-dark:hover {
  color: #fff;
  background: #000;
}
.btn-light {
  color: oklch(0.25 0.01 262);
  background: #fff;
  border: 1px solid oklch(0.9 0.004 262);
}
.btn-light:hover {
  color: oklch(0.21 0.01 262);
  border-color: oklch(0.75 0.008 262);
}

/* ---- Feature cards ---- */
.feature-card {
  transition: border-color 0.2s;
}
.feature-card:hover {
  border-color: oklch(0.75 0.008 262);
}

/* ---- Methodology: interactive engine layers ---- */
.layer-cyl {
  cursor: pointer;
  opacity: 0.32;
  transition: opacity 0.25s, transform 0.25s;
}
.layer-cyl.active {
  opacity: 1;
  transform: translateX(10px);
}
.layer-row {
  cursor: pointer;
  border-left: 2px solid oklch(0.93 0.003 262);
  background: transparent;
  transition: background 0.2s;
}
.layer-row:hover {
  background: oklch(0.985 0.001 262);
}
.layer-row.active {
  border-left-color: oklch(0.21 0.01 262);
  background: oklch(0.985 0.001 262);
}

/* ---- Dashboard: sidebar ---- */
.side-item {
  display: block;
  padding: 8px 10px;
  border-radius: 7px;
  color: oklch(0.48 0.015 262);
  transition: background 0.15s, color 0.15s;
}
.side-item:hover {
  background: oklch(0.96 0.002 262);
  color: oklch(0.21 0.01 262);
}
.side-item.active {
  background: oklch(0.945 0.003 262);
  color: oklch(0.21 0.01 262);
  font-weight: 600;
}

/* ---- Dashboard: tables & cards ---- */
.table-row {
  transition: background 0.15s;
}
.table-row:hover {
  background: oklch(0.99 0.001 262);
}
.card-hover {
  transition: border-color 0.2s;
}
.card-hover:hover {
  border-color: oklch(0.75 0.008 262);
}

/* ---- Forms (login) ---- */
.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: oklch(0.35 0.01 262);
  margin-bottom: 7px;
}
.field-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  color: oklch(0.21 0.01 262);
  background: #fff;
  border: 1px solid oklch(0.9 0.004 262);
  border-radius: 9px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-input::placeholder {
  color: oklch(0.65 0.01 262);
}
.field-input:focus {
  border-color: oklch(0.21 0.01 262);
  box-shadow: 0 0 0 3px oklch(0.21 0.01 262 / 0.08);
}
textarea.field-input {
  resize: vertical;
  min-height: 90px;
}
select.field-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.btn-submit {
  display: block;
  width: 100%;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: oklch(0.21 0.01 262);
  border: none;
  border-radius: 9px;
  padding: 12px 0;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-submit:hover {
  background: #000;
}
