/* ============================================================================
   Tensor — contact & support surfaces
   ----------------------------------------------------------------------------
   Shared by /contact, /support and the Help & Support section of the workspace
   settings. It only adds classes on top of the existing shell tokens
   (notely-shell.css) so both themes, the `data-theme` system and the
   notely-theme.js transition keep working untouched.

   Naming: .nc-* (contact) to stay clearly outside the landing page's .n-* and
   the workspace's .nw-* namespaces.
   ========================================================================== */

.nc-page {
  min-height: 100vh;
  background: var(--n-bg);
  color: var(--n-ink);
  font-family: var(--n-font-ui);
}

/* --- Header -------------------------------------------------------------- */
.nc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--n-bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--n-line);
}
.nc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 10px 0;
}
.nc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--n-font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--n-ink);
  text-decoration: none;
}
.nc-brand img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.nc-brand span em {
  display: block;
  font-family: var(--n-font-mono);
  font-style: normal;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--n-muted);
}
.nc-header__nav { display: flex; align-items: center; gap: 4px; }
.nc-header__nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--n-ink-2);
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}
.nc-header__nav a:hover { color: var(--n-ink); background: var(--n-surface-2); }
.nc-header__nav a[aria-current="page"] { color: var(--n-ink); background: var(--n-surface-2); }
.nc-header__actions { display: flex; align-items: center; gap: 8px; }

/* --- Page scaffolding ---------------------------------------------------- */
.nc-main { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); }
.nc-eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--n-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--n-cyan);
  margin: 0 0 14px;
}
.nc-eyebrow i { font-style: normal; opacity: 0.55; }
html[data-theme="light"] .nc-eyebrow { color: #155b96; }

.nc-title {
  font-family: var(--n-font-display);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 0 0 14px;
  max-width: 22ch;
}
.nc-lead {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.68;
  color: var(--n-ink-2);
  max-width: 62ch;
  margin: 0;
}
.nc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--n-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-muted);
}
.nc-meta span { display: inline-flex; align-items: center; gap: 7px; }
.nc-meta .nc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--n-success); }

.nc-section { margin-top: clamp(36px, 5vw, 56px); scroll-margin-top: 92px; }
.nc-section__head { margin-bottom: 18px; }
.nc-section__head h2 {
  font-family: var(--n-font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.nc-section__head p { font-size: 13.5px; line-height: 1.66; color: var(--n-muted); margin: 0; max-width: 68ch; }
.nc-rule { border: 0; border-top: 1px solid var(--n-line); margin: clamp(32px, 4vw, 48px) 0 0; }

/* --- Contact cards ------------------------------------------------------- */
.nc-grid { display: grid; gap: 16px; }
.nc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 780px) { .nc-grid--2 { grid-template-columns: minmax(0, 1fr); } }

.nc-card {
  background: var(--n-surface);
  border: 1px solid var(--n-line);
  border-radius: var(--n-radius-lg);
  padding: clamp(20px, 3vw, 28px);
}
.nc-card__icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--n-line);
  background: var(--n-cyan-soft);
  color: var(--n-cyan);
  margin-bottom: 14px;
}
html[data-theme="light"] .nc-card__icon { background: rgba(31, 111, 181, 0.09); color: #155b96; }
.nc-card__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nc-card h3 {
  font-family: var(--n-font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.nc-card p { font-size: 13px; line-height: 1.66; color: var(--n-muted); margin: 0 0 16px; }
.nc-card p:last-child { margin-bottom: 0; }

.nc-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.nc-address__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--n-line-strong);
  background: var(--n-surface-2);
  color: var(--n-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.nc-address__link:hover { border-color: var(--n-cyan); color: var(--n-cyan); text-decoration: none; }
html[data-theme="light"] .nc-address__link:hover { color: #155b96; border-color: #1f6fb5; }
.nc-address__link svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.nc-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--n-line);
  background: transparent;
  color: var(--n-ink-2);
  font-family: var(--n-font-ui);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.nc-copy:hover { color: var(--n-ink); border-color: var(--n-line-strong); background: var(--n-surface-2); }
.nc-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nc-copy.is-copied { color: var(--n-success); border-color: color-mix(in srgb, var(--n-success) 55%, transparent); }
.nc-copy[hidden] { display: none; }

.nc-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.nc-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
  color: var(--n-ink-2);
}
.nc-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--n-cyan);
  opacity: 0.85;
}
html[data-theme="light"] .nc-list li::before { background: #1f6fb5; }

/* --- Notice -------------------------------------------------------------- */
.nc-notice {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--n-radius);
  border: 1px solid var(--n-line);
  background: var(--n-surface);
  font-size: 13px;
  line-height: 1.62;
  color: var(--n-ink-2);
  margin-top: 20px;
}
.nc-notice svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--n-cyan); }
html[data-theme="light"] .nc-notice svg { color: #155b96; }
.nc-notice strong { color: var(--n-ink); font-weight: 600; }
.nc-notice a { color: var(--n-cyan); }
html[data-theme="light"] .nc-notice a { color: #155b96; }

/* --- Link tiles (support destinations) ----------------------------------- */
.nc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .nc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nc-tiles { grid-template-columns: minmax(0, 1fr); } }
.nc-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--n-radius);
  border: 1px solid var(--n-line);
  background: var(--n-surface);
  color: var(--n-ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms var(--n-ease), background 160ms ease;
}
.nc-tile:hover { border-color: var(--n-cyan); transform: translateY(-2px); text-decoration: none; }
html[data-theme="light"] .nc-tile:hover { border-color: #1f6fb5; }
.nc-tile:focus-visible { outline: 2px solid var(--n-cyan); outline-offset: 2px; }
.nc-tile__head { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; }
.nc-tile__head svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--n-cyan); }
html[data-theme="light"] .nc-tile__head svg { color: #155b96; }
.nc-tile__desc { font-size: 12.5px; line-height: 1.6; color: var(--n-muted); }

/* --- FAQ ----------------------------------------------------------------- */
.nc-faq { display: grid; gap: 10px; }
.nc-faq details {
  border: 1px solid var(--n-line);
  border-radius: var(--n-radius);
  background: var(--n-surface);
  padding: 0;
  overflow: hidden;
}
.nc-faq details[open] { border-color: var(--n-line-strong); }
.nc-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--n-ink);
  cursor: pointer;
  list-style: none;
}
.nc-faq summary::-webkit-details-marker { display: none; }
.nc-faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid var(--n-muted);
  border-bottom: 1.8px solid var(--n-muted);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}
.nc-faq details[open] summary::after { transform: rotate(225deg); }
.nc-faq summary:focus-visible { outline: 2px solid var(--n-cyan); outline-offset: -2px; }
.nc-faq .nc-faq__body {
  padding: 0 18px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--n-ink-2);
}
.nc-faq .nc-faq__body p { margin: 0 0 10px; }
.nc-faq .nc-faq__body p:last-child { margin-bottom: 0; }
.nc-faq .nc-faq__body a { color: var(--n-cyan); }
html[data-theme="light"] .nc-faq .nc-faq__body a { color: #155b96; }

/* --- Form ---------------------------------------------------------------- */
.nc-form { display: grid; gap: 14px; margin-top: 4px; }
.nc-field { display: grid; gap: 6px; }
.nc-field > label { font-size: 12.5px; font-weight: 600; color: var(--n-ink); }
.nc-field .nc-hint { font-size: 11.5px; color: var(--n-muted); }
.nc-field input,
.nc-field select,
.nc-field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--n-radius-sm);
  border: 1px solid var(--n-line-strong);
  background: var(--n-bg-elev);
  color: var(--n-ink);
  font-family: var(--n-font-ui);
  font-size: 13.5px;
  line-height: 1.55;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.nc-field textarea { min-height: 148px; resize: vertical; }
.nc-field input:focus,
.nc-field select:focus,
.nc-field textarea:focus {
  outline: none;
  border-color: var(--n-cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--n-cyan) 22%, transparent);
}
.nc-field input[aria-invalid="true"],
.nc-field textarea[aria-invalid="true"] { border-color: var(--n-danger); }
.nc-field input::placeholder,
.nc-field textarea::placeholder { color: var(--n-muted); opacity: 1; }
.nc-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .nc-row { grid-template-columns: minmax(0, 1fr); } }
.nc-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.nc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nc-actions .nc-hint { font-size: 11.5px; color: var(--n-muted); }
.nc-form__status {
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: var(--n-radius-sm);
  border: 1px solid var(--n-line);
  background: var(--n-surface-2);
  color: var(--n-ink-2);
}
.nc-form__status[data-state="error"] { border-color: color-mix(in srgb, var(--n-danger) 50%, transparent); color: var(--n-danger); }
.nc-form__status[data-state="success"] { border-color: color-mix(in srgb, var(--n-success) 50%, transparent); color: var(--n-success); }
.nc-form__status[hidden] { display: none; }
.nc-submit[disabled] { opacity: 0.6; cursor: progress; }

/* --- Social -------------------------------------------------------------- */
.n-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.n-social__item { margin: 0; }
.n-social__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--n-line);
  background: var(--n-surface);
  color: var(--n-ink-2);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
a.n-social__link:hover { color: var(--n-ink); border-color: var(--n-line-strong); background: var(--n-surface-2); text-decoration: none; }
a.n-social__link:focus-visible { outline: 2px solid var(--n-cyan); outline-offset: 2px; }
.n-social__icon { width: 16px; height: 16px; flex: 0 0 auto; }
.n-social__link.is-soon {
  color: var(--n-muted);
  border-style: dashed;
  cursor: not-allowed;
}
.n-social__soon {
  font-family: var(--n-font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--n-line);
  color: var(--n-muted);
}
.n-social--compact .n-social__label { display: none; }
.n-social--compact .n-social__link { padding: 9px; }

/* --- Footer -------------------------------------------------------------- */
.nc-footer {
  border-top: 1px solid var(--n-line);
  padding: 28px 0 36px;
  background: var(--n-bg-elev);
}
.nc-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--n-muted);
}
.nc-footer__links { display: flex; flex-wrap: wrap; gap: 16px; }
.nc-footer a { color: var(--n-muted); text-decoration: none; transition: color 150ms ease; }
.nc-footer a:hover { color: var(--n-ink); text-decoration: none; }
.nc-footer__legal {
  font-family: var(--n-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Accessibility helpers ---------------------------------------------- */
.nc-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--n-cyan);
  color: #06101d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: top 160ms var(--n-ease);
}
.nc-skip:focus { top: 12px; text-decoration: none; }
.nc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .nc-header__nav { display: none; }
  .nc-header__inner { min-height: 60px; }
  .nc-title { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nc-tile:hover { transform: none; }
  .nc-skip { transition: none; }
  .nc-faq summary::after { transition: none; }
}

/* --- Bug report template -------------------------------------------------- */
.nc-template {
  margin: 0;
  padding: 16px;
  border-radius: var(--n-radius-sm);
  border: 1px solid var(--n-line);
  background: var(--n-bg-elev);
  color: var(--n-ink-2);
  font-family: var(--n-font-mono);
  font-size: 11.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* --- Turnstile mount ------------------------------------------------------ */
.nc-turnstile { margin: 4px 0 2px; min-height: 0; }
.nc-turnstile:empty { display: none; }
