/* ============================================================
   Fur Forecast — site-specific visual identity (ff.css)
   Loaded after /_ue/sky.css + /_ue/components.css on every page.
   Scoped to this site only (other portfolio sites never load it),
   so overrides here are safe. Adds: a paw-print atmosphere, a
   button overhaul, the hero + 3-tool feature index, breed answer
   bands, the cost breakdown bars, the paw-print loader, and the
   E-E-A-T trust strip. Theme-aware via the sky tokens + art vars.
   ============================================================ */

/* ---- illustration palette (consumed by the inline SVG art) ---- */
:root {
  --ff-dog: #e8b06f; --ff-dog-2: #d9974c; --ff-dog-light: #f6e7d0;
  --ff-cat: #aab6d6; --ff-cat-2: #8a98c1; --ff-cat-pink: #e7a6b6;
  --ff-ink: #2b2540;
  --ff-sun: #ffce72; --ff-cloud: rgba(255, 255, 255, 0.72);
  --ff-ground: var(--border-strong); --ff-shadow: rgba(0, 0, 0, 0.16);
  --ff-art-bg: var(--accent-bg);
  /* per-tool accent colors (clear differential between the three features) */
  --fc-ins: var(--accent); --fc-food: #e89a3c; --fc-cost: #58a6db;
}
:root[data-theme="day"] { --ff-ink: #2b2540; --ff-shadow: rgba(20, 40, 80, 0.10); --ff-cloud: #ffffff; }

/* ---- paw-print atmosphere (rides the shared sky-fx layer; dark phases) ---- */
.sky-fx::after {
  content: "";
  position: absolute; inset: 0;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='150'%20height='150'%20viewBox='0%200%20150%20150'%3E%3Cg%20fill='%23000'%3E%3Cellipse%20cx='60'%20cy='80'%20rx='22'%20ry='18'/%3E%3Cellipse%20cx='33'%20cy='54'%20rx='9'%20ry='12'/%3E%3Cellipse%20cx='87'%20cy='54'%20rx='9'%20ry='12'/%3E%3Cellipse%20cx='48'%20cy='36'%20rx='8'%20ry='11'/%3E%3Cellipse%20cx='72'%20cy='36'%20rx='8'%20ry='11'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='150'%20height='150'%20viewBox='0%200%20150%20150'%3E%3Cg%20fill='%23000'%3E%3Cellipse%20cx='60'%20cy='80'%20rx='22'%20ry='18'/%3E%3Cellipse%20cx='33'%20cy='54'%20rx='9'%20ry='12'/%3E%3Cellipse%20cx='87'%20cy='54'%20rx='9'%20ry='12'/%3E%3Cellipse%20cx='48'%20cy='36'%20rx='8'%20ry='11'/%3E%3Cellipse%20cx='72'%20cy='36'%20rx='8'%20ry='11'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-size: 150px 150px; mask-size: 150px 150px;
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
  opacity: 0.05;
}

/* ---- generic SVG sizing ---- */
.ff-paw { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.12em; }
.ff-btn-paw { width: 1.05em; height: 1.05em; fill: currentColor; }
.ff-btn-icon { width: 1.1em; height: 1.1em; }
.ff-brand-glyph { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -0.16em; }

/* ============================ buttons ============================ */
.btn {
  border-radius: 12px;
  transition: background .14s ease, filter .14s ease, transform .08s ease, box-shadow .16s ease, border-color .14s ease;
}
.btn-primary, .btn-cta { padding: 12px 22px; }
.btn-primary {
  box-shadow: 0 7px 20px -8px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 12px 26px -10px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn-cta {
  box-shadow: 0 7px 20px -8px var(--ignite), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-cta:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 26px -10px var(--ignite), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn:not(.btn-primary):not(.btn-cta) { background: var(--surface); }
.btn:not(.btn-primary):not(.btn-cta):hover { background: var(--surface-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }

/* ============================ hero ============================ */
.ff-hero {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 20px; align-items: center;
  margin: 6px 0 10px;
}
.ff-hero-copy { min-width: 0; }
.ff-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.ff-hero h1 { font-size: clamp(1.55rem, 4.4vw, 2.15rem); margin: 10px 0 8px; }
.ff-hero .lede { font-size: 1rem; color: var(--muted); line-height: 1.55; margin: 0; }
.ff-hero-cta { margin-top: 18px; }
.ff-hero-cta .btn-cta { font-size: 1rem; padding: 14px 24px; }
.ff-quickpick { display: block; margin-top: 16px; max-width: 340px; }
.ff-quickpick > span { display: block; font-size: 0.76rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.ff-hero-fig { display: flex; justify-content: center; }
.ff-hero-art { width: 100%; max-width: 420px; height: auto; }
@media (max-width: 640px) {
  .ff-hero { grid-template-columns: 1fr; gap: 6px; }
  .ff-hero-fig { order: -1; }
  .ff-hero-art { max-width: 300px; }
}

/* ===================== section headings ===================== */
.ff-section-title { font-size: 1.3rem; margin: 0 0 2px; }
.ff-section-sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; }
.ff-features { margin-top: 26px; }

/* ===================== 3-tool feature index ===================== */
.ff-feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px;
}
@media (max-width: 720px) { .ff-feature-grid { grid-template-columns: 1fr; } }
.ff-feature {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 18px; color: inherit;
  background: var(--panel); border: 1px solid var(--border);
  border-top: 3px solid var(--fc); border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .1s ease, border-color .14s ease, box-shadow .16s ease;
}
.ff-feature:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--fc); box-shadow: 0 16px 38px -16px var(--fc); }
.ff-feature--ins { --fc: var(--fc-ins); }
.ff-feature--food { --fc: var(--fc-food); }
.ff-feature--cost { --fc: var(--fc-cost); }
.ff-feature-icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fc); background: var(--surface); border: 1px solid var(--border);
}
.ff-feature-icon .ff-ficon { width: 28px; height: 28px; }
.ff-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-accent, #06210f); background: var(--fc);
  padding: 3px 9px; border-radius: 999px;
}
.ff-feature-eyebrow { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fc); }
.ff-feature-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.ff-feature-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.ff-feature-points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.ff-feature-points li { position: relative; padding-left: 20px; font-size: 0.82rem; color: var(--muted); }
.ff-feature-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--fc); font-weight: 800; }
.ff-feature-cta { margin-top: auto; padding-top: 6px; color: var(--fc); font-weight: 700; font-size: 0.86rem; }

/* ===================== trust row ===================== */
.ff-why { margin-top: 22px; }
.ff-trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ===================== page + section icons ===================== */
.ff-page-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 8px;
  color: var(--accent); background: var(--surface); border: 1px solid var(--border);
}
.ff-page-icon .ff-ficon { width: 26px; height: 26px; }
.ff-h-icon { display: inline-flex; vertical-align: -0.18em; margin-right: 4px; }
.ff-h-icon .ff-ficon { width: 1.05em; height: 1.05em; }
.ff-tint-ins { color: var(--fc-ins); }
.ff-tint-food { color: var(--fc-food); }
.ff-tint-cost { color: var(--fc-cost); }

/* ===================== breed answer band ===================== */
.ff-answerband { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 6px; }
@media (max-width: 460px) { .ff-answerband { grid-template-columns: 1fr; } }
.ff-answer {
  display: flex; flex-direction: column; gap: 2px;
  padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
}
.ff-answer-k { font-size: 0.66rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ff-answer-v { font-size: 1.4rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ff-answer-v small { font-size: 0.7rem; font-weight: 600; color: var(--faint); }
.ff-answer-sub { font-size: 0.74rem; color: var(--muted); }

/* ===================== cost breakdown ===================== */
.ff-cost-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
@media (max-width: 460px) { .ff-cost-split { grid-template-columns: 1fr; } }
.ff-breakdown { margin-top: 16px; }
.ff-breakdown-h { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.ff-brow { display: grid; grid-template-columns: 96px 1fr 70px; align-items: center; gap: 10px; margin: 7px 0; }
.ff-blabel { font-size: 0.8rem; color: var(--muted); }
.ff-btrack { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ff-bfill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #58a6db)); }
.ff-bval { text-align: right; font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ff-budget-tip { margin-top: 14px; font-size: 0.84rem; line-height: 1.5; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--accent-bg); color: var(--text); }
/* modeled-range bar (lucky / typical / unlucky) */
.ff-rangebar { margin: 12px 0 2px; }
.ff-rangebar-h { font-size: 0.74rem; color: var(--muted); margin-bottom: 6px; }
.ff-rangebar-track { position: relative; height: 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ff-rangebar-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--success), var(--warn) 60%, var(--danger)); opacity: 0.55; }
.ff-rangebar-pin { position: absolute; top: -3px; width: 3px; height: 20px; border-radius: 2px; background: var(--text); transform: translateX(-50%); }
.ff-rangebar-ends { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--faint); margin-top: 5px; font-variant-numeric: tabular-nums; }

/* ===================== paw-print loader ===================== */
.ff-loader { display: flex; align-items: center; gap: 12px; padding: 14px 4px; }
.ff-loader-paws { display: inline-flex; gap: 7px; }
.ff-loader-paws .ff-paw { width: 22px; height: 22px; fill: var(--accent); opacity: 0.2; transform-origin: center; animation: ff-walk 1s infinite ease-in-out; }
.ff-loader-paws .ff-paw:nth-child(1) { animation-delay: 0s; }
.ff-loader-paws .ff-paw:nth-child(2) { animation-delay: 0.15s; transform: translateY(-4px); }
.ff-loader-paws .ff-paw:nth-child(3) { animation-delay: 0.3s; }
.ff-loader-paws .ff-paw:nth-child(4) { animation-delay: 0.45s; transform: translateY(-4px); }
.ff-loader-label { font-size: 0.85rem; color: var(--muted); }
@keyframes ff-walk { 0%, 70%, 100% { opacity: 0.18; } 35% { opacity: 1; } }

/* ===================== E-E-A-T trust strip ===================== */
.ff-eeat {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 16px 0; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  font-size: 0.78rem; color: var(--muted); line-height: 1.5;
}
.ff-eeat-paw { width: 1.2em; height: 1.2em; fill: var(--accent); flex: none; margin-top: 1px; }
.ff-eeat-by strong { color: var(--text); }
.ff-eeat-sep { color: var(--faint); margin: 0 2px; }
.ff-eeat a { color: var(--accent); white-space: nowrap; }

/* tool card: a touch more presence than a plain .card */
.ff-tool { border-color: var(--border-strong); }

/* ===================== insurer comparison matrix ===================== */
.ff-fit-note { font-size: 0.9rem; color: var(--text); background: var(--accent-bg); border-radius: var(--radius-sm); padding: 11px 14px; margin: 4px 0 12px; }
.ff-bestfit { display: inline-block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-accent, #06210f); background: var(--accent); border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: middle; }
table.tbl tr.ff-row-best td { background: var(--accent-bg); }
table.tbl td { white-space: normal; }
table.tbl td:nth-child(6) { min-width: 200px; }
.ff-assumptions { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; }

/* ===================== cost-ranking hub ===================== */
.ff-rank-callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 4px; }
@media (max-width: 540px) { .ff-rank-callouts { grid-template-columns: 1fr; } }
.ff-rank-callout { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--panel-shadow); }
.ff-rank-callout h3 { font-size: 1rem; margin: 0 0 8px; }
.ff-rank-callout ol { margin: 0; padding-left: 20px; font-size: 0.88rem; }
.ff-rank-callout li { margin: 4px 0; color: var(--muted); }
.ff-rank-callout li strong { color: var(--text); }
.ff-rank-table th.ff-sortable { cursor: pointer; user-select: none; }
.ff-rank-table th.ff-sortable:hover { color: var(--accent); }
.ff-rank-table th.ff-sortable::after { content: " ↕"; opacity: 0.4; font-size: 0.8em; }
.ff-rank-table th.ff-sorted { color: var(--accent); }
.ff-rank-table th.ff-sorted::after { content: " ▾"; opacity: 1; }
.ff-rank-table td.ff-rank { color: var(--faint); font-weight: 700; }
.ff-cmp-table td:first-child { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .ff-loader-paws .ff-paw { animation: none !important; opacity: 0.7; }
}
