/* ============================================================
   isi.jaringleads.id — the one-time onboarding form for the free
   link-in-bio pages, and its DNS guides.

   A SUBSET of astro/src/styles/tokens.css (v4, light block only) and
   of the jl-* component rules in astro/src/styles/global.css. This
   project has no build, so it cannot import them; the values are
   copied, and the same rule holds here as on the site: raw scales
   are private, components read semantic tokens only. When the site's
   tokens change, re-copy the ones below rather than editing a value.
   The page is always light: no dark block.
   ============================================================ */

@font-face {
  font-family: 'Sora Fallback';
  font-weight: 400 800;
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'),
    local('LiberationSans-Bold'), local('Helvetica Bold'), local('Roboto Bold'), local('Roboto-Bold');
  size-adjust: 106.9%;
  ascent-override: 90.74%;
  descent-override: 27.13%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Manrope Fallback';
  font-weight: 400 700;
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'),
    local('Helvetica'), local('Roboto'), local('Roboto-Regular');
  size-adjust: 101.87%;
  ascent-override: 105.03%;
  descent-override: 29.45%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/sora-latin-v2000-811e1196.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/manrope-latin-v4504-a30ddcd3.woff2') format('woff2');
}

:root {
  color-scheme: light;

  /* Raw scales (private) */
  --navy-800: #16213a;
  --navy-950: #020617;
  --teal-700: #128f76;
  --teal-800: #0e6b59;
  --gray-50: #faf8f5;
  --gray-100: #ede9e2;
  --gray-500: #7d7566;
  --gray-600: #5c564a;
  --gray-700: #423e36;
  --green-600: #16a34a;
  --green-50: #dcfce7;
  --red-600: #dc2626;
  --red-50: #fee2e2;

  /* Semantic */
  --surface-page: var(--gray-50);
  --surface-card: #ffffff;
  --surface-sunken: var(--gray-100);
  --text-strong: var(--navy-950);
  --text-body: var(--gray-700);
  --text-muted: var(--gray-600);
  --text-faint: var(--gray-500);
  --text-link: var(--teal-800);
  --text-on-primary: #ffffff;
  --color-primary: var(--navy-950);
  --color-primary-hover: var(--navy-800);
  --color-signal: var(--teal-700);
  --border-subtle: rgba(2, 6, 23, 0.07);
  --border-default: rgba(2, 6, 23, 0.13);
  --border-strong: rgba(2, 6, 23, 0.55);
  --border-ink: var(--navy-950);
  --overlay-hover: rgba(2, 6, 23, 0.05);
  --status-success: var(--green-600);
  --status-success-soft: var(--green-50);
  --status-danger: var(--red-600);
  --status-danger-soft: var(--red-50);
  --status-success-ink: color-mix(in srgb, var(--green-600) 70%, var(--navy-950));
  --status-danger-ink: color-mix(in srgb, var(--red-600) 85%, var(--navy-950));
  --focus-ring-color: var(--teal-700);
  --focus-ring-width: 3px;
  --focus-ring-offset: 2px;
  --grain: url('/latar/grain-terang.svg');
  --selection-bg: color-mix(in srgb, var(--color-signal) 30%, transparent);
  --surface-selected: color-mix(in srgb, var(--surface-card), var(--text-strong) 5%);

  /* Type */
  --font-stack-sans: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-stack-display: 'Sora', 'Sora Fallback', 'Manrope', system-ui, sans-serif;
  --font-stack-mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --leading-title: 1;
  --leading-mid: 1.4;
  --leading-lede: 1.45;
  --leading-small: 1.5;
  --leading-normal: 1.55;
  --tracking-title: -0.035em;
  --tracking-heading: -0.02em;
  --tracking-ui: -0.01em;
  --tracking-wordmark: -0.05em;
  --text-13: 13px;
  --text-sm: 14px;
  --text-15: 15px;
  --text-base: 16px;
  --text-17: 17px;
  --text-21: 21px;
  --text-form-title: clamp(32px, 4.4vw, 52px);

  /* Space, size, shape, motion */
  --page-gutter: clamp(16px, 4vw, 56px);
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-56: 56px;
  --width-560: 560px;
  --control-h-md: 44px;
  --control-h-lg: 52px;
  --mark-20: 20px;
  --mark-28: 28px;
  --signal-dot: 8px;
  --radius-2: 2px;
  --radius-round: 999px;
  --border-width: 1px;
  --border-width-dash: 2px;
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.18s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
::selection {
  background: var(--selection-bg);
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--surface-page) var(--grain);
  color: var(--text-body);
  font-family: var(--font-stack-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}
a {
  color: var(--text-link);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
[hidden] {
  display: none !important;
}

/* ── Page frame ─────────────────────────────────────────── */
.isi-shell {
  width: 100%;
  max-width: calc(var(--width-560) + 2 * var(--page-gutter));
  margin: 0 auto;
  padding: var(--space-24) var(--page-gutter) var(--space-56);
}
.isi-brand {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  margin-bottom: var(--space-40);
  color: var(--text-strong);
  text-decoration: none;
}
.isi-brand img {
  width: var(--mark-28);
  height: var(--mark-28);
}
.isi-wordmark {
  font-family: var(--font-stack-display);
  font-weight: 600;
  font-size: var(--text-17);
  letter-spacing: var(--tracking-wordmark);
}
.isi-title {
  margin: var(--space-12) 0 var(--space-12);
  font-family: var(--font-stack-display);
  font-weight: 600;
  font-size: var(--text-form-title);
  line-height: var(--leading-title);
  letter-spacing: var(--tracking-title);
  color: var(--text-strong);
  text-wrap: balance;
}
.isi-lede {
  margin: 0 0 var(--space-32);
  font-size: var(--text-17);
  line-height: var(--leading-lede);
  color: var(--text-body);
}
.isi-h2 {
  margin: 0 0 var(--space-6);
  font-family: var(--font-stack-display);
  font-weight: 600;
  font-size: var(--text-21);
  line-height: 1.15;
  letter-spacing: var(--tracking-heading);
  color: var(--text-strong);
}
.isi-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding: var(--space-24) 0;
  border-top: var(--border-width) solid var(--border-default);
}
.isi-step:last-of-type {
  border-bottom: var(--border-width) solid var(--border-default);
}
.isi-note {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-small);
  color: var(--text-muted);
}
.isi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-top: var(--space-24);
}

/* ── Label (the dot) ───────────────────────────────────── */
.jl-label {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--leading-mid);
  color: var(--text-muted);
}
.jl-label::before {
  content: '';
  flex: none;
  width: var(--signal-dot);
  height: var(--signal-dot);
  border-radius: var(--radius-round);
  background: var(--color-signal);
}

/* ── Button: solid and ghost only. The bright CTA belongs to the bound
   label on the site, and this page has none. ─────────────────────── */
.jl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-14);
  border-radius: var(--radius-2);
  border: var(--border-width) solid transparent;
  font-family: var(--font-stack-sans);
  font-weight: 600;
  letter-spacing: var(--tracking-ui);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition:
    background-color var(--dur-fast) ease-out,
    border-color var(--dur-fast) ease-out,
    color var(--dur-fast) ease-out;
}
.jl-btn-md {
  height: var(--control-h-md);
  padding: 0 var(--space-16);
  font-size: var(--text-15);
}
.jl-btn-lg {
  height: var(--control-h-lg);
  padding: 0 var(--space-20);
  font-size: var(--text-base);
}
.jl-btn-solid {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-on-primary);
}
.jl-btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-strong);
}
@media (hover: hover) {
  .jl-btn-solid:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
  }
  .jl-btn-ghost:hover {
    background: var(--overlay-hover);
    border-color: var(--border-ink);
  }
}
.jl-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}
.jl-btn-full {
  width: 100%;
}

/* ── Fields ────────────────────────────────────────────── */
.jl-field-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.jl-field-label,
.jl-legend {
  padding: 0;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: var(--leading-small);
  color: var(--text-strong);
}
.jl-field-label-optional {
  font-weight: 400;
  color: var(--text-faint);
}
.jl-field-hint {
  margin: 0;
  font-size: var(--text-13);
  line-height: var(--leading-small);
  color: var(--text-muted);
}
.jl-field-error {
  margin: 0;
  font-size: var(--text-13);
  line-height: var(--leading-small);
  color: var(--status-danger);
}
:is(input, textarea).jl-field {
  width: 100%;
  padding: 0 var(--space-14);
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius-2);
  background: var(--surface-card);
  font-family: var(--font-stack-sans);
  font-size: var(--text-15);
  color: var(--text-strong);
  transition: border-color var(--dur-fast) var(--ease-soft);
}
input.jl-field {
  height: var(--control-h-md);
}
textarea.jl-field {
  padding: var(--space-12) var(--space-14);
  line-height: var(--leading-small);
  resize: vertical;
}
:is(input, textarea).jl-field::placeholder {
  color: var(--text-faint);
}
:is(input, textarea).jl-field:focus {
  border-color: var(--border-ink);
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
:is(input, textarea).jl-field[aria-invalid='true'] {
  border-color: var(--status-danger);
}
.jl-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* ── Choice row: zero turquoise, a chosen answer is not a conversion ── */
.jl-choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
  min-height: var(--control-h-md);
  padding: calc(var(--space-12) - var(--border-width)) var(--space-14);
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius-2);
  background: var(--surface-card);
  color: var(--text-body);
  font-size: var(--text-sm);
  line-height: var(--leading-small);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) ease-out,
    background-color var(--dur-fast) ease-out;
}
@media (hover: hover) {
  .jl-choice:hover {
    border-color: var(--border-ink);
  }
}
.jl-choice:has(input:checked) {
  border-color: var(--border-ink);
  background-color: var(--surface-selected);
  color: var(--text-strong);
}
.jl-choice:has(input:focus-visible) {
  border-color: var(--border-ink);
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
.jl-choice input:focus-visible {
  outline: none;
}
.jl-choice-control {
  flex: none;
  width: var(--mark-20);
  height: var(--mark-20);
  margin: calc((var(--text-sm) * var(--leading-small) - var(--mark-20)) / 2) 0 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.jl-choice-sub {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-13);
}
.isi-host {
  font-family: var(--font-stack-mono);
  font-size: var(--text-13);
  word-break: break-all;
}

/* ── Draft preview link ────────────────────────────────── */
.isi-draft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  padding: var(--space-14) var(--space-16);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-2);
  background: var(--surface-card);
}
.isi-draft-url {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-stack-mono);
  font-size: var(--text-13);
  color: var(--text-strong);
}

/* ── File picker ───────────────────────────────────────── */
.isi-file {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-20) var(--space-16);
  border: var(--border-width-dash) dashed var(--border-default);
  border-radius: var(--radius-2);
  background: var(--surface-card);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  cursor: pointer;
}
.isi-file strong {
  color: var(--text-strong);
  font-weight: 600;
}
.isi-file input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.isi-file:has(input:focus-visible) {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
.isi-files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.isi-files li {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  min-height: var(--control-h-md);
  padding: var(--space-6) var(--space-6) var(--space-6) var(--space-12);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-2);
  background: var(--surface-card);
  font-size: var(--text-13);
}
.isi-files .isi-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-strong);
}
.isi-files .isi-file-state {
  flex: none;
  color: var(--text-muted);
}
.isi-files [data-state='selesai'] .isi-file-state {
  color: var(--status-success-ink);
}
.isi-files [data-state='gagal'] .isi-file-state {
  color: var(--status-danger-ink);
}

/* ── Link rows ─────────────────────────────────────────── */
.isi-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}
.isi-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  padding: var(--space-10);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-2);
  background: var(--surface-card);
}
.isi-link-row .jl-field:nth-of-type(2) {
  grid-column: 1;
}
.isi-link-row .isi-remove {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
}
/* The one link chosen as the main button reads as chosen the way a choice
   row does: ink edge and the selected ground. Never turquoise here either;
   the bio page decides how the main button looks. */
.isi-link-row:has(.isi-utama input:checked) {
  border-color: var(--border-ink);
  background: var(--surface-selected);
}
.isi-utama {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-10);
  min-height: var(--control-h-md);
  font-size: var(--text-sm);
  color: var(--text-body);
  cursor: pointer;
}
.isi-utama input {
  flex: none;
  width: var(--mark-20);
  height: var(--mark-20);
  margin: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.isi-utama:has(input:checked) {
  color: var(--text-strong);
  font-weight: 600;
}

/* ── Featured projects ─────────────────────────────────── */
.isi-proyek {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}
.isi-proyek-kartu {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding: var(--space-16);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-2);
  background: var(--surface-card);
}
.isi-proyek-kepala {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}
.isi-proyek-nomor {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-strong);
}
.isi-proyek-kartu .isi-file {
  padding: var(--space-14) var(--space-16);
}
.isi-remove {
  height: var(--control-h-md);
  padding: 0 var(--space-12);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: var(--text-13);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ── Status / result panels ────────────────────────────── */
.isi-progress {
  margin: var(--space-12) 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.isi-alert {
  margin: var(--space-12) 0 0;
  padding: var(--space-12) var(--space-14);
  border-radius: var(--radius-2);
  background: var(--status-danger-soft);
  color: var(--status-danger-ink);
  font-size: var(--text-sm);
}
.isi-record {
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-8) var(--space-16);
  padding: var(--space-16);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-2);
  background: var(--surface-card);
  font-size: var(--text-sm);
}
.isi-record dt {
  color: var(--text-muted);
}
.isi-record dd {
  margin: 0;
  font-family: var(--font-stack-mono);
  color: var(--text-strong);
  word-break: break-all;
}
.isi-message {
  margin: 0;
  padding: var(--space-16);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-2);
  background: var(--surface-card);
  font-family: var(--font-stack-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-small);
  color: var(--text-strong);
  white-space: pre-wrap;
}
.isi-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── DNS guides ────────────────────────────────────────── */
.isi-steps {
  margin: 0 0 var(--space-24);
  padding-left: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}
.isi-steps li::marker {
  color: var(--text-faint);
  font-weight: 600;
}
.isi-steps strong {
  color: var(--text-strong);
}
.isi-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
