/* ============================================================================
   ResumeD — landing page (/)

   Same rule as app.css: every value comes from a token. The illustrations are
   inline SVG rather than image files so they follow the three themes: an
   <img> cannot read the page's tokens, and the theme is chosen on the page,
   not only by the OS (prefers-color-scheme would miss a manual choice).
   ========================================================================= */


/* ---------- Layout ---------- */

/* The hero's tint is cut on the brand's 140° diagonal. */
.lp-hero {
  background:
    linear-gradient(140deg, transparent 62%, var(--c-primary-subtle) 62% 100%),
    var(--c-bg);
}

.lp-hero > .page { padding-block: var(--space-8); }

.lp-hero-text { max-width: 720px; }

.lp-hero-text h1 {
  font-size: clamp(var(--text-2xl), 6vw, calc(var(--text-2xl) * 2));
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.lp-lead {
  font-size: var(--text-md);
  color: var(--c-text-muted);
  margin-bottom: var(--space-5);
}

.lp-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-primary-text);
  margin-bottom: var(--space-3);
}

/* A capture of the editor, light whatever the theme: it is a picture of the
   product, not part of the page. */
.lp-shot {
  width: 80%;
  margin: var(--space-7) auto 0;
}

.lp-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-7);
  align-items: center;
}

.lp-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-block: var(--space-8);
}

/* Text and picture swap sides from one feature to the next. */
.lp-flip > .lp-window { order: -1; }

.lp-feature h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.lp-feature p { color: var(--c-text-muted); }

.lp-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--c-primary-text);
  font-weight: var(--weight-bold);
}

.lp-points {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.lp-points li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.lp-points .icon {
  flex: none;
  margin-top: 2px;
  color: var(--c-success-text);
}

.lp-actions { margin-top: var(--space-5); }

/* Full-width bands break the run of text-and-picture rows. */
.lp-band { background: var(--c-primary-subtle); }

.lp-band > .page { padding-block: var(--space-8); }

.lp-more {
  background: var(--c-surface);
  border-block: var(--border-width) solid var(--c-border);
}

.lp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6) var(--space-5);
  padding-block: var(--space-8);
}

.lp-grid h3 { margin-bottom: var(--space-2); }

.lp-grid p { margin: 0; color: var(--c-text-muted); }

.lp-grid .icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: var(--space-2);
  color: var(--c-primary-text);
}

@media (max-width: 860px) {
  .lp-feature { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  /* Text first on a phone, whatever side the picture is on above. */
  .lp-flip > .lp-window { order: 0; }
  .lp-shot { width: 100%; }
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .lp-hero > .page { padding-block: var(--space-6); }
  .lp-grid { grid-template-columns: minmax(0, 1fr); }
}


/* ---------- Closing call to action ---------- */

/* Its own stops rather than --stripes, as .auth-art: across a full-width
   band, a green running to the corner would be a wedge, not a line. */
.lp-cta {
  background: linear-gradient(140deg,
    var(--neutral-950) calc(40% - 1px), var(--neutral-900) 40% calc(64% - 1px),
    var(--neutral-800) 64% calc(84% - 1px), var(--green-500) 84% calc(86% - 1px),
    var(--neutral-700) 86%);
  color: var(--neutral-0);
}

.lp-cta .page {
  padding-block: var(--space-8);
  text-align: center;
}

.lp-cta h2 { font-size: var(--text-2xl); }

.lp-cta p { color: var(--neutral-200); }

.lp-cta .row { justify-content: center; }

/* The band is dark in every theme: the secondary button is drawn for it. */
.lp-cta .btn-secondary {
  --btn-fg:           var(--neutral-0);
  --btn-border:       var(--neutral-400);
  --btn-bg-hover:     rgb(255 255 255 / 0.1);
  --btn-bg-active:    rgb(255 255 255 / 0.2);
  --btn-border-hover: var(--neutral-0);
}

.lp-footer {
  padding-block: var(--space-5);
  color: var(--c-text-muted);
}

.lp-footer .row { justify-content: space-between; }


/* ---------- Illustrations ----------
   A window of the app: the frame is drawn here once, the SVG only holds
   what is inside it. Shapes are coloured by class; a tone class (t-*) sets the
   colour family a group draws with, so a chip or a badge changes family by
   changing one class. */

.lp-window {
  overflow: hidden;
  border: var(--border-width) solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-lg);
}

.lp-window > svg {
  display: block;
  width: 100%;
  height: auto;
}

.t-primary { --tone: var(--c-primary); --tone-soft: var(--c-primary-subtle); --tone-text: var(--c-primary-text); --tone-on: var(--c-primary-on); }
.t-ok      { --tone: var(--c-success); --tone-soft: var(--c-success-subtle); --tone-text: var(--c-success-text); --tone-on: var(--c-success-on); }
.t-warn    { --tone: var(--c-warning); --tone-soft: var(--c-warning-subtle); --tone-text: var(--c-warning-text); --tone-on: var(--c-warning-on); }
.t-bad     { --tone: var(--c-danger);  --tone-soft: var(--c-danger-subtle);  --tone-text: var(--c-danger-text);  --tone-on: var(--c-danger-on); }
.t-info    { --tone: var(--c-info);    --tone-soft: var(--c-info-subtle);    --tone-text: var(--c-info-text);    --tone-on: var(--c-info-on); }
.t-neutral { --tone: var(--c-text-muted); --tone-soft: var(--c-surface-sunken); --tone-text: var(--c-text-muted); --tone-on: var(--c-surface); }
.t-action  { --tone: var(--c-action);  --tone-on: var(--c-action-on); }

.lp-window .a-fill   { fill: var(--tone); }
.lp-window .a-soft   { fill: var(--tone-soft); }
.lp-window .a-stroke { stroke: var(--tone); stroke-width: 1.5; }
.lp-window .a-tone-text { fill: var(--tone-text); }
.lp-window .a-label  { fill: var(--tone-text, var(--c-text)); font-size: 13px; font-weight: var(--weight-bold); }
.lp-window .a-mini   { font-size: 9px; }

.lp-window .a-icon {
  fill: none;
  stroke: var(--tone, var(--c-text-muted));
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-window .a-on     { stroke: var(--tone-on); }

.lp-window .a-sunken { fill: var(--c-surface-sunken); }
.lp-window .a-surface { fill: var(--c-surface); }
.lp-window .a-edge   { stroke: var(--c-border); }
.lp-window .a-edge-strong { stroke: var(--c-border-strong); }
.lp-window .a-track  { fill: none; stroke: var(--c-border); }
/* What a gauge has left to fill: a surface step, as the border is black in daltonism. */
.lp-window .a-ring   { fill: none; stroke: var(--c-surface-hover); }
.lp-window .a-text   { fill: var(--c-text); }
.lp-window .a-strong { fill: var(--c-text); opacity: 0.75; }
.lp-window .a-faint  { fill: var(--c-text-muted); opacity: 0.35; }
.lp-window .a-shadow { fill: var(--c-text); opacity: 0.08; }
.lp-window .a-action { fill: var(--c-action); }
.lp-window .a-action-on { fill: var(--c-action-on); }
.lp-window .a-display { font-family: var(--font-display); font-weight: 700; }

.lp-window .a-link {
  fill: none;
  stroke: var(--c-primary);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

/* Paper is white in every theme, as the resume itself is. */
.lp-window .a-paper     { fill: var(--neutral-0); stroke: var(--c-border); }
.lp-window .a-ink       { fill: var(--neutral-800); }
.lp-window .a-ink-faint { fill: var(--neutral-300); }
.lp-window .a-ink-line  { fill: none; stroke: var(--neutral-300); }
.lp-window .a-white     { fill: var(--neutral-0); }
.lp-window .a-accent    { fill: var(--green-500); }
.lp-window .a-highlight { fill: var(--green-100); }
