/* Fimbul — product page. Implements Fimbul Site.dc.html.
   Shared shell (wrap, kicker, btn, header, footer) comes from site.css. */

/* ---------- hero ---------- */

.f-hero {
  padding-block: var(--space-8) 88px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
}
.f-hero__badge {
  display: flex;
  align-items: center;
  gap: 14px;
}
.f-hero__icon {
  border-radius: 13px;
  box-shadow: 0 4px 12px rgba(23,25,28,0.12);
  display: block;
}
.f-hero__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
}
.f-hero__title {
  font-size: var(--text-hero);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin: 22px 0 0;
  text-wrap: pretty;
}
.f-hero__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 20px 0 0;
  text-wrap: pretty;
}
.f-hero__cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: 32px;
  flex-wrap: wrap;
}
.f-hero__note {
  font-size: 13px;
  color: var(--text-caption);
}
.f-hero__shot {
  display: flex;
  justify-content: center;
}

/* ---------- features ---------- */

.f-features {
  background: var(--frost-3);
  border-block: 1px solid var(--border-faint);
}
.f-features > .wrap { padding-block: var(--space-8); }
.f-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: var(--space-5);
}
.f-feature {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card-lg);
  padding: 26px;
}
.f-feature__rune {
  font-size: 26px;
  color: var(--accent);
  line-height: 1;
}
.f-feature__title {
  font-size: var(--text-title-3);
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-top: var(--space-4);
}
.f-feature__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: var(--space-2);
  text-wrap: pretty;
}

/* ---------- emergency stock ---------- */

.f-stock { padding-block: 88px; }
.f-stock__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-7);
  align-items: center;
}
.f-stock__title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin: 14px 0 0;
  text-wrap: pretty;
}
.f-stock__body {
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 18px 0 0;
  max-width: 52ch;
  text-wrap: pretty;
}
.f-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-5);
  padding: 0;
  list-style: none;
}
.f-points li {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.f-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
  flex-shrink: 0;
  position: relative;
  top: -2px;
}

/* The one dark surface on the page — the myth aside. */
.f-quote {
  background: var(--ink);
  border-radius: 24px;
  padding: var(--space-6);
  color: #fff;
}
.f-quote__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--accent-2);
}
.f-quote__lead {
  font-size: 20px;
  line-height: 1.5;
  margin: var(--space-4) 0 0;
  font-weight: 500;
  text-wrap: pretty;
}
.f-quote__sub {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  margin: 14px 0 0;
  text-wrap: pretty;
}

/* ---------- get the app ---------- */

.f-get {
  background: var(--frost-tile);
  border-top: 1px solid var(--border-faint);
}
.f-get > .wrap {
  padding-block: 80px;
  text-align: center;
}
.f-get__rune {
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
}
.f-get__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 18px 0 0;
}
.f-get__body {
  font-size: var(--text-body);
  color: var(--text-muted);
  margin: 10px 0 0;
}
.f-get .btn { margin-top: 28px; padding-inline: 30px; }

/* ============================================================
   Device shot — a static render of Fimbul's item list.
   The frame is drawn at its true 402x874 and scaled down; the
   slot reserves the *scaled* box so layout matches what's seen.
   ============================================================ */

.device {
  --s: 0.82;
  width: calc(402px * var(--s));
  height: calc(874px * var(--s));
  position: relative;
}
.device__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 402px;
  height: 874px;
  transform: scale(var(--s));
  transform-origin: top left;
  border-radius: 48px;
  overflow: hidden;
  background: #F2F2F7;
  box-shadow: 0 40px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.12);
  -webkit-font-smoothing: antialiased;
}
.device__island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  border-radius: 24px;
  background: #000;
  z-index: 50;
}
.device__statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  gap: 154px;
  align-items: center;
  justify-content: center;
  padding: 21px 24px 19px;
  box-sizing: border-box;
}
.device__statusbar > div {
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device__time {
  font-weight: 590;
  font-size: 17px;
  line-height: 22px;
  color: #000;
  padding-top: 1.5px;
}
.device__icons { gap: 7px; padding-top: 1px; padding-right: 1px; }
.device__indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 8px;
  pointer-events: none;
}
.device__indicator > div {
  width: 139px;
  height: 5px;
  border-radius: 100px;
  background: rgba(0,0,0,0.25);
}

/* ---- Fimbul item-list screen ---- */

.fs {
  height: 100%;
  position: relative;
  background: var(--surface-app);
  display: flex;
  flex-direction: column;
}
.fs__head { padding: 80px 24px 0; }
.fs__titlerow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}
.fs__title {
  font-size: var(--text-title-1);
  font-weight: 700;
  letter-spacing: var(--tracking-title);
  color: var(--ink);
}
.fs__summary {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.fs__chips {
  display: flex;
  gap: var(--space-2);
  margin-top: 14px;
}
.fs__chip {
  padding: 7px 15px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}
.fs__chip--on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.fs__scroll {
  flex: 1;
  overflow: hidden;
  padding: 2px 24px 132px;
}
.fs__group { margin-top: 22px; }
.fs__cat {
  font-size: var(--text-kicker);
  font-weight: 700;
  letter-spacing: var(--tracking-kicker);
  color: var(--text-caption);
  padding-left: 2px;
}
.fs__card {
  margin-top: var(--space-2);
  background: var(--surface-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.fs__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-faint);
}
.fs__row:last-child { border-bottom: none; }
.fs__rowmain { flex: 1; min-width: 0; }
.fs__name {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--ink);
}
.fs__meta {
  font-size: var(--text-caption);
  color: var(--text-caption);
  margin-top: 2px;
}
.fs__rowside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.fs__badge {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
/* Freshness bar: track + fill, fill colour carries the state. */
.fs__track {
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--track);
  position: relative;
  overflow: hidden;
}
.fs__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 2px;
  background: var(--accent);
  width: var(--pct);
}
/* State colours: accent (fine) -> warn -> danger (use within 14 days). */
.fs__badge--warn { color: var(--warn); }
.fs__fill--warn { background: var(--warn); }
.fs__badge--due { color: var(--danger); }
.fs__fill--due { background: var(--danger); }

/* Floating frosted tab bar — the one glass surface in the system. */
.fs__tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  display: flex;
  justify-content: center;
  z-index: 30;
}
.fs__tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--nav-bg);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  border: 1px solid rgba(23,25,28,0.06);
  border-radius: 34px;
  padding: 6px;
  box-shadow: var(--shadow-float);
}
.fs__tab {
  display: flex;
  align-items: center;
  padding-inline: 20px;
  height: 46px;
  border-radius: 23px;
  font-size: var(--text-secondary);
  font-weight: 600;
  color: var(--text-muted);
}
.fs__tab--on {
  background: rgba(23,25,28,0.06);
  color: var(--ink);
}
.fs__scan {
  width: 54px;
  height: 54px;
  border-radius: 27px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 6px;
  flex-shrink: 0;
}

/* ---------- narrow screens ---------- */

@media (max-width: 640px) {
  .f-hero { padding-block: var(--space-7) 64px; gap: var(--space-6); }
  .f-features > .wrap { padding-block: var(--space-7); }
  .f-stock { padding-block: 64px; }
  .f-get > .wrap { padding-block: 64px; }
  .device { --s: 0.62; }
}

/* ---------- hero without a device shot (Mund) ---------- */

.f-hero--single { grid-template-columns: minmax(0, 720px); }

/* A pill that is a status, not a link. */
.btn--soon {
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  cursor: default;
}
.btn--soon:hover { background: var(--surface-card); color: var(--text-muted); }

/* ---------- Home-screen header actions in the device shot ---------- */

.fs__actions {
  display: flex;
  gap: 8px;
  padding-top: 4px;
}
.fs__action {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}
.fs__titlerow { align-items: flex-start; }
.fs__summary { margin-top: 4px; }
.fs__chips { flex-wrap: nowrap; overflow: hidden; }
.fs__chip { white-space: nowrap; }

/* ---------- the sixty-second video ---------- */

.f-video { padding-block: 0 88px; }
.f-video__player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: var(--space-4);
  border-radius: 24px;
  background: #0B0D10;
  box-shadow: var(--shadow-float);
}
.f-video__caption {
  font-size: var(--text-secondary);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 14px 0 0;
  max-width: 60ch;
  text-wrap: pretty;
}

/* ---------- principles ---------- */

.f-principles {
  background: var(--frost-3);
  border-block: 1px solid var(--border-faint);
}
.f-principles > .wrap { padding-block: var(--space-8); }
.f-principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: var(--space-5);
}
.f-principle {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card-lg);
  padding: 26px;
}
.f-principle__title {
  font-size: var(--text-title-3);
  font-weight: 700;
  letter-spacing: -0.2px;
}
.f-principle__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: var(--space-2);
  text-wrap: pretty;
}
.f-principles__link {
  margin: var(--space-5) 0 0;
  font-size: var(--text-secondary);
  font-weight: 600;
}

/* ---------- get-the-app extras ---------- */

.f-get__links {
  font-size: var(--text-secondary);
  color: var(--text-muted);
  margin: 18px 0 0;
}

@media (max-width: 640px) {
  .f-video { padding-block: 0 64px; }
  .f-video__player { border-radius: 16px; }
  .f-principles > .wrap { padding-block: var(--space-7); }
}
