/**
 * FENN Financial Picture — warm, calm completeness surface.
 * One next step first; what FENN can see; short gaps. No giant refresh.
 */

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1100px 520px at 8% -12%, #e7efe9 0%, transparent 55%),
    radial-gradient(900px 480px at 100% 0%, #f0e8dc 0%, transparent 52%),
    linear-gradient(180deg, #f7f4ee 0%, var(--bg) 42%, #efebe3 100%);
  color: var(--text);
  font-family: var(--sans);
}

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem 5.5rem;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.subtitle {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.controls {
  display: flex;
  gap: 0.65rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.ghost {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.ghost:hover {
  color: var(--text);
}

.hero {
  padding: 1.6rem 0 0.85rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.05rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 40rem;
}

.meta {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.review-note {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(15, 107, 99, 0.08);
  color: var(--accent);
  font-size: 0.88rem;
}

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.next-step {
  margin-top: 1.1rem;
  padding: 1.1rem 1.15rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.next-step-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.next-step-copy {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.next-step-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.9rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: var(--text);
  color: #f7f4ee;
  text-decoration: none;
  font-weight: 600;
}

.next-step-link:hover {
  background: var(--accent);
}

.seen {
  margin-top: 1.75rem;
}

.seen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.seen-card {
  padding: 0.95rem 1rem;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  border-left: 3px solid var(--line);
}

.seen-card[data-tone="good"] {
  border-left-color: var(--good);
}

.seen-card[data-tone="watch"] {
  border-left-color: var(--watch);
}

.seen-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
}

.seen-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.seen-link {
  display: inline-flex;
  margin-top: 0.55rem;
  min-height: 44px;
  align-items: center;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.gaps {
  margin-top: 1.75rem;
}

.gap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.gap-list li {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.55);
  border: 1px solid var(--line);
}

.gap-title {
  margin: 0;
  font-weight: 650;
}

.gap-body {
  margin: 0.3rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.gap-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.gap-note {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.deep-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.deep-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.error {
  margin-top: 1.5rem;
  padding: 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.error h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.error p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.error button {
  margin-top: 0.85rem;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: #f7f4ee;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.error button:hover {
  background: var(--accent);
}

@media (min-width: 640px) {
  .seen-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 1rem 1rem 5.5rem;
  }

  .controls .ghost:not([href="/"]):not([href="/accounts"]) {
    display: none;
  }

  .seen-grid {
    grid-template-columns: 1fr;
  }
}

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