/* ══════════════════════════════════════════════════════════════════════
   BLAÐ — landing edition.

   Blað proper (assets/css/blad.css) is the treatment the tools wear:
   forms, cards, tabs, and the sheet that turns generated text into a
   document. A landing page needs none of that chrome, but it does need
   to look like the same product — so this takes Blað's palette, its
   serif, and its one memorable mark (the amber stroke) and applies them
   to the shapes a landing page actually has.

   Everything is scoped to body.home-page. It cannot leak into the app,
   the blog, or the static pages.

   ── What this replaces ────────────────────────────────────────────────

   The page was the last surviving piece of the pre-Blað patchwork:

     .tagline       #491fac on rgba(78,47,253,.1)   violet
     .gradient-text #7AD0BD → #407CB5 → #EF5277 → #F58244   four-stop rainbow
     .masthead      pink-to-lilac wash

   plus 67 lines of dead CSS in the view itself, including a
   #667eea → #764ba2 hero gradient that was never applied to anything.

   The rotating headline was the loudest element on the page and the
   furthest from the brand. It is amber now.
   ══════════════════════════════════════════════════════════════════════ */

body.home-page {
  --amber:      #c98a1e;
  --amber-deep: #a86f13;
  --glow:       #f0c060;
  --ink:        #1a1815;
  --muted:      #77736b;
  --rule:       #e5e3de;
  --paper:      #ffffff;
  --paper-warm: #fbf9f5;

  --bs-primary:               #c98a1e;
  --bs-primary-rgb:           201, 138, 30;
  --bs-primary-bg-subtle:     rgba(201, 138, 30, 0.12);
  --bs-primary-border-subtle: rgba(201, 138, 30, 0.3);

  --serif: 'Iowan Old Style', Charter, 'Bitstream Charter', 'Source Serif 4', Georgia, serif;

  color: var(--ink);
  background: var(--paper);
}

/* ── Hero ───────────────────────────────────────────────────────────── */

body.home-page .masthead {
  position: relative;
  padding: 9rem 0 5rem;
  background-image: linear-gradient(to bottom, #fdfaf4 0%, #fdfbf7 45%, var(--paper) 100%);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

/* The glow the logo's gold casts on paper. One soft source, off-centre,
   rather than the four competing radials this page used to carry. */
body.home-page .masthead::after {
  content: '';
  position: absolute;
  top: -18rem;
  left: 50%;
  width: 46rem;
  height: 34rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(240, 192, 96, 0.28), rgba(240, 192, 96, 0) 68%);
  pointer-events: none;
}

body.home-page .masthead > .container {
  position: relative;
  z-index: 1;
}

/* The eyebrow wears the stroke — the same amber rule that marks
   machine-written output inside the app. It is the one mark the landing
   page and the tools share. */
body.home-page .tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border: 0;
  border-left: 3px solid var(--amber);
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--amber-deep);
  background-color: rgba(201, 138, 30, 0.1);
}

body.home-page .masthead h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 20ch;
  margin: 0 auto;
  color: var(--ink);
}

/* The rotating line. Kept as a single amber so the motion carries the
   interest instead of the colour — a gradient that changes every three
   seconds is two things competing. */
body.home-page .gradient-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  line-height: 1.2;
  margin: -10px 0;
  padding-left: 8px;
  color: var(--amber);
  background: none;
  -webkit-text-fill-color: currentColor;
}

body.home-page .masthead .fs-4 {
  max-width: 44rem;
  margin-inline: auto;
  font-size: 1.15rem !important;
  line-height: 1.6;
  color: var(--muted);
}

body.home-page .masthead .small {
  color: var(--muted);
}

/* ── Buttons ────────────────────────────────────────────────────────── */

body.home-page .btn-primary {
  --bs-btn-bg: var(--amber);
  --bs-btn-border-color: var(--amber);
  --bs-btn-hover-bg: var(--amber-deep);
  --bs-btn-hover-border-color: var(--amber-deep);
  --bs-btn-active-bg: var(--amber-deep);
  --bs-btn-active-border-color: var(--amber-deep);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.18);
}

body.home-page .btn-primary:focus-visible,
body.home-page .btn-outline-secondary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  box-shadow: none;
}

body.home-page .btn-light,
body.home-page .btn-outline-secondary {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: var(--rule);
  --bs-btn-bg: var(--paper);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--paper-warm);
  --bs-btn-hover-border-color: var(--amber);
}

/* ── Section rhythm ─────────────────────────────────────────────────── */

body.home-page .section {
  padding: 5.5rem 0;
  background: var(--paper);
}

body.home-page .section:nth-of-type(even) {
  background: var(--paper-warm);
}

body.home-page .section .display-6,
body.home-page .section .display-5 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
}

body.home-page .section .text-center > p.fs-5 {
  max-width: 42rem;
  margin-inline: auto;
  font-size: 1.05rem !important;
  line-height: 1.65;
  color: var(--muted);
}

/* ── The three steps ────────────────────────────────────────────────── */

/* These are numbered because they genuinely are a sequence — choose,
   describe, receive. The numeral sits on the stroke rather than floating
   as decoration. */
body.home-page .section .display-4 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  width: 3.4rem;
  margin: 0 auto 1rem;
  padding: 0.35rem 0 0.35rem 0.9rem;
  border-left: 3px solid var(--amber);
  color: var(--amber);
  text-align: left;
}

/* ── The tool catalogue ─────────────────────────────────────────────── */

/* Rendered from Config/Tools.php, so the group headings are the same three
   a teacher sees in the sidebar once they are inside. The point of showing
   all of them is that the number is the product: this is not one assistant
   with a wide prompt, it is a drawer of separate instruments. */

body.home-page .tool-group + .tool-group {
  margin-top: 3.25rem;
}

body.home-page .tool-group-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.7rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

body.home-page .tool-tile {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color .18s ease, background-color .18s ease;
}

body.home-page .tool-tile:hover {
  border-color: rgba(201, 138, 30, 0.55);
  background: rgba(240, 192, 96, 0.05);
}

body.home-page .tool-tile-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9px;
  color: var(--amber-deep);
  background: rgba(201, 138, 30, 0.1);
}

body.home-page .tool-tile-icon svg {
  width: 20px;
  height: 20px;
}

body.home-page .tool-tile-name {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--ink);
}

/* The count on a door tile — Verkfærin and Aðstoðarmenn hold 66 and 22
   things respectively, and a tile that reads like a single tool without it
   is what made the first draft of this section undersell the product. */
body.home-page .tool-tile-count {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid rgba(201, 138, 30, 0.35);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--amber-deep);
  background: rgba(201, 138, 30, 0.09);
  vertical-align: 2px;
}

body.home-page .tool-tile-beta {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber-deep);
  background: rgba(201, 138, 30, 0.14);
  vertical-align: 2px;
}

body.home-page .tool-tile-desc {
  margin: 0.2rem 0 0;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Cards: template, testimonial, pricing ──────────────────────────── */

body.home-page .card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.home-page a.card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 24, 21, 0.07);
}

body.home-page a.card .h6 {
  color: var(--ink);
}

body.home-page a.card p {
  color: var(--muted) !important;
  font-size: 0.92rem;
  line-height: 1.55;
}

body.home-page .gradient-background {
  background: var(--paper);
}

body.home-page .section:nth-of-type(even) .card {
  background: var(--paper);
}

/* Stars: the app's gold, not browser `gold`. */
body.home-page .testimonial-stars {
  color: var(--glow);
}

/* Pricing */
body.home-page .plan-featured {
  border-color: var(--amber) !important;
  box-shadow: 0 8px 28px rgba(201, 138, 30, 0.14);
}

body.home-page .plan-flag {
  color: #fff;
  background-color: var(--amber);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border-radius: 12px 12px 0 0;
}

body.home-page .nav-pills .nav-link {
  color: var(--muted);
  font-weight: 600;
}

body.home-page .nav-pills .nav-link.active {
  color: #fff;
  background-color: var(--amber);
}

body.home-page .card .h2 {
  font-family: var(--serif);
  font-weight: 600;
}

/* ── FAQ ────────────────────────────────────────────────────────────── */

body.home-page .accordion-item {
  border-bottom: 1px solid var(--rule) !important;
}

body.home-page .accordion-button {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
}

body.home-page .accordion-button:not(.collapsed) {
  color: var(--amber-deep);
  box-shadow: none;
}

body.home-page .accordion-button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -2px;
}

body.home-page .accordion-body {
  color: var(--muted);
  line-height: 1.65;
  max-width: 44rem;
}

/* ── Motion ─────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  body.home-page * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Narrow ─────────────────────────────────────────────────────────── */

@media (max-width: 575.98px) {
  body.home-page .masthead {
    padding: 7rem 0 3.5rem;
  }
  body.home-page .section {
    padding: 3.75rem 0;
  }
  body.home-page .masthead::after {
    width: 28rem;
    top: -14rem;
  }
}

/* ── Dark ───────────────────────────────────────────────────────────── */

/* Blað itself is a light-only treatment — it is paper. If the site is
   ever switched to the dark theme these keep the landing page coherent
   rather than half-inverted. */
[data-bs-theme=dark] body.home-page {
  --ink:        #f2efe9;
  --muted:      #a8a29a;
  --rule:       #34322e;
  --paper:      #171614;
  --paper-warm: #1d1b18;
  --amber:      #e0a63c;
  --amber-deep: #c98a1e;
}

[data-bs-theme=dark] body.home-page .masthead {
  background-image: linear-gradient(to bottom, #201d18 0%, #1a1815 55%, var(--paper) 100%);
}

[data-bs-theme=dark] body.home-page .masthead::after {
  background: radial-gradient(ellipse at center, rgba(240, 192, 96, 0.14), rgba(240, 192, 96, 0) 68%);
}

[data-bs-theme=dark] body.home-page .tagline {
  color: var(--amber);
  background-color: rgba(224, 166, 60, 0.12);
}

[data-bs-theme=dark] body.home-page .btn-primary {
  --bs-btn-color: #1a1815;
  --bs-btn-hover-color: #1a1815;
  --bs-btn-active-color: #1a1815;
}
