/* The public company preview — /selskab/:cvr/forhaandsvisning, and the letter
 * landing /p/:code that renders the same partial.
 *
 * LOAD ORDER. Propshaft's `stylesheet_link_tag :app` (app/views/shared/_head)
 * emits every sheet in this directory alphabetically, so this file lands after
 * marketing.css and after notarium.css — which is what lets it lean on the
 * tokens and reuse `.nt-cvr-*` / `.nt-cta-btn*` without redeclaring any of
 * them. Nothing here introduces a colour: every value is a `--nt-*` token.
 *
 * The design is docs/design/preview.md. Two columns on desktop, sheet left at
 * full size, a sticky rail right; on a phone the sheet comes first and the
 * price/CTA block sticks to the bottom of the viewport — sticky INSIDE the
 * page, never fixed, because a fixed bar would sit on top of the chat
 * launcher that ChatWidgetMount injects on every marketing page.
 */

/* <turbo-frame> is a real element with no box behaviour of its own; absent
   this it is inline, and the two-column grid inside it collapses. */
.nt-preview-frame { display: block; }

.nt-preview-band { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.nt-preview-grid {
  display: grid;
  gap: clamp(2.25rem, 4vw, 3.5rem);
  align-items: start;
}

/* 7/12 · 5/12, at the breakpoint the design names (64rem). Below it the rail
   simply follows the sheet in document order — sheet, frister, price, CTA,
   jurist — which is the phone reading order the design asks for, for free. */
@media (min-width: 64rem) {
  .nt-preview-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

  .nt-preview-rail {
    position: sticky;
    /* Clears the sticky marketing bar. */
    top: 5.5rem;
  }
}

/* ── Left column: the words, then the sheet ───────────────────────────── */

.nt-preview-eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--nt-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nt-ink-faint);
}

.nt-preview-h1 {
  font-family: var(--nt-font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 14, "WONK" 1;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}

.nt-preview-lede {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--nt-ink-soft);
  text-wrap: pretty;
}

/* The sheet is the teaser's, at the teaser's size. The one override: the hero
   caps it so the two halves of the hero stay the same height, and here there
   is no second half to match — it gets the column. */
.nt-preview-sheet .nt-cvr-stage .nt-doc { font-size: clamp(0.6rem, 0.9vw, 0.72rem); }

/* ── Right column: four blocks, hairline-separated ─────────────────────── */

.nt-preview-rail {
  display: grid;
  gap: 0;
  border: 1px solid var(--nt-hairline);
  border-radius: var(--nt-radius-lg);
  background: var(--nt-surface);
  overflow: clip;
}

.nt-preview-block { padding: 1.35rem 1.5rem; }
.nt-preview-block + .nt-preview-block { border-top: 1px solid var(--nt-hairline); }

.nt-preview-block-title {
  margin: 0 0 0.9rem;
  font-family: var(--nt-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--nt-ink);
}

.nt-preview-block-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--nt-ink-soft);
}

/* ── The frist rows ────────────────────────────────────────────────────── */

.nt-preview-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

/* label and value on one baseline, the chip pushed to the end, the note on
   its own line under both. A three-column grid rather than flex so the chips
   line up down the block instead of floating wherever the label ends. */
.nt-preview-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: baseline;
  font-size: 0.9rem;
  line-height: 1.45;
}

.nt-preview-row-label {
  grid-column: 1;
  color: var(--nt-ink);
}

.nt-preview-row-value {
  grid-column: 1;
  color: var(--nt-ink-soft);
}

.nt-preview-row-value b { font-weight: 600; color: var(--nt-ink); }

/* The days chip and the "ukendt for os" status share a slot: same column,
   same row as the label, so a dated row and an undated one read alike. */
.nt-preview-row .nt-cvr-sheet-days,
.nt-preview-row-status {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--nt-font-mono);
  font-size: 0.76rem;
  white-space: nowrap;
}

.nt-preview-row-status {
  color: var(--nt-ink-faint);
  letter-spacing: 0.04em;
}

.nt-preview-row-note {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--nt-ink-faint);
}

.nt-preview-basis {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--nt-hairline);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--nt-ink-faint);
}

/* ── Price and guarantee ───────────────────────────────────────────────── */

.nt-preview-price-line {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--nt-ink);
}

.nt-preview-guarantee {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--nt-ink-faint);
}

/* ── The door ──────────────────────────────────────────────────────────── */

.nt-preview-cta-btn {
  width: 100%;
  justify-content: center;
}

.nt-preview-cta-note {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--nt-ink-faint);
}

/* Phone: the CTA block is the bottom bar. Sticky, not fixed — it stops at the
   end of the rail instead of covering the jurist line and the footer forever,
   and it never lands on top of the chat launcher. `background` is explicit
   because the block is sitting over scrolling content once it sticks. */
@media (max-width: 63.999rem) {
  .nt-preview-cta {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: var(--nt-surface);
    box-shadow: var(--nt-shadow-2);
  }
}

/* ── The jurist ────────────────────────────────────────────────────────── */

.nt-preview-jurist {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.35rem 1.5rem;
  border-top: 1px solid var(--nt-hairline);
}

.nt-preview-jurist-copy { min-width: 0; }

.nt-preview-jurist-line {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--nt-ink);
}

.nt-preview-jurist-who {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--nt-ink-faint);
}

.nt-preview-tel {
  font-family: var(--nt-font-mono);
  color: var(--nt-ink);
  text-decoration: underline;
  text-decoration-color: var(--nt-hairline);
  text-underline-offset: 0.22em;
}

.nt-preview-jurist-hours { margin-left: 0.5rem; }

/* ── The guarantee strip (pages/_guarantee, /priser and /stiftelse) ─────── */

/* A rule-bounded strip rather than a full section: on both pages it sits
   between two bands that already have their own grounds, and a third tall
   band there reads as a page that will not stop. The hairlines are what keep
   it from merging into the paper band under it. */
.nt-guarantee {
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-block: 1px solid var(--nt-hairline);
}

.nt-guarantee-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 44rem;
  margin-inline: auto;
}

.nt-guarantee-title {
  margin: 0 0 0.3rem;
  font-family: var(--nt-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--nt-ink);
}

.nt-guarantee-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--nt-ink-soft);
}
