/* ===========================================================
   Landfall — playful illustrated site
   Palette and animation approach adapted from the ToolsWaves
   illustrated-hero template; scene rebuilt as a harbour, because
   "anchor" is already a nautical word and "landfall" means
   reaching shore.
   =========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --yellow:      #ffcf3d;
  --yellow-soft: #faedc4;
  --orange:      #f64b2c;
  --orange-deep: #e23816;
  --blue:        #3b4fe8;
  --blue-deep:   #2a38b8;
  --navy:        #1b2560;
  --purple:      #4a2cd4;
  --teal:        #2fb5c4;
  --teal-deep:   #1d8593;
  --green:       #2f9e44;
  --pink:        #f8a9b3;
  --cream:       #fef5d3;
  --ink:         #0a0a1e;
  --ink-2:       #4a4a63;
  --ink-3:       #82829a;

  --amber:       #e8940c;
  --red:         #d03b3b;

  --shadow-sm: 0 4px 14px rgba(10,10,30,.07);
  --shadow-md: 0 10px 30px rgba(10,10,30,.10);
  --shadow-lg: 0 20px 50px rgba(10,10,30,.14);
  --pop: cubic-bezier(.34,1.56,.64,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

h1,h2,h3,.font-display { font-family: 'Fredoka', 'Nunito', sans-serif; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
a { color: inherit; }

/* ================= LOADER ================= */
.loader {
  position: fixed; inset: 0; z-index: 999; background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.loader__blocks { position: relative; width: 220px; height: 160px; }
.loader__block { position: absolute; border-radius: 14px; will-change: transform; }
.loader__block--1 { left: 40px;  bottom: 0;    width: 70px; height: 70px; background: var(--orange); }
.loader__block--2 { left: 110px; bottom: 0;    width: 70px; height: 70px; background: var(--blue); border-radius: 14px 14px 14px 70px; }
.loader__block--3 { left: 75px;  bottom: 70px; width: 70px; height: 70px; background: var(--teal); }
.loader__block--4 { left: 110px; bottom: 70px; width: 0; height: 0;
  border-left: 35px solid transparent; border-right: 35px solid transparent;
  border-bottom: 70px solid var(--purple); border-radius: 0; }
.loader__meta {
  display: flex; gap: 1.25rem; align-items: center;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: .85rem;
  letter-spacing: .25em; color: var(--ink);
}
.loader__counter { font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }
.loader__cover {
  position: absolute; inset: auto 0 0 0; height: 0; background: var(--orange);
  border-radius: 50% 50% 0 0 / 10% 10% 0 0; transform: translateY(100%);
}

/* ================= NAV ================= */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 1rem 0; transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.topnav.stuck { background: rgba(255,207,61,.94); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); padding: .55rem 0; }
.topnav__in { display: flex; align-items: center; gap: 1rem; }

.topnav__logo {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.6rem; letter-spacing: -.01em;
}
.topnav__logo-mark { width: 34px; height: 34px; flex: none; }
.topnav__logo em { color: var(--orange); font-style: normal; }

.topnav__pill {
  margin-left: auto; display: flex; align-items: center;
  background: #fff; border-radius: 999px; padding: .4rem .5rem; box-shadow: var(--shadow-sm);
}
.topnav__item { position: relative; }
.topnav__link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem 1.1rem; font-weight: 700; font-size: .93rem;
  text-decoration: none; border-radius: 999px; transition: background .2s;
  border: none; background: none; cursor: pointer; font-family: inherit; color: var(--ink);
}
.topnav__link:hover, .topnav__item.open .topnav__link { background: var(--yellow-soft); }
.topnav__caret { font-size: .7em; color: var(--orange); transition: transform .25s; }
.topnav__item.open .topnav__caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 268px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: .6rem; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s, transform .22s, visibility .22s;
}
.topnav__item.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; gap: .8rem; padding: .7rem .8rem; border-radius: 12px; text-decoration: none; transition: background .18s; }
.dropdown a:hover { background: var(--cream); }
.dropdown .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-content: center; flex: none; font-size: 1rem; }
.dropdown b { display: block; font-size: .92rem; }
.dropdown span { display: block; font-size: .78rem; color: var(--ink-3); }

.topnav__actions { display: flex; align-items: center; gap: .6rem; }
/* Any author `display` rule outranks the user-agent stylesheet's
   `[hidden] { display: none }`, so `.btn` below silently defeats the hidden
   attribute. That is how a "Load more" button stayed on screen under a table
   with nothing more to load. One rule, applied once, rather than remembering
   it at every call site. */
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: inherit; font-weight: 800; font-size: .93rem; text-decoration: none;
  padding: .8rem 1.5rem; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .25s var(--pop), box-shadow .25s, background .2s, color .2s;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(246,75,44,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(246,75,44,.45); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); background: var(--ink); }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: none; background: #fff; box-shadow: var(--shadow-sm); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 190; background: var(--cream);
  padding: 6rem 1.5rem 2rem; display: flex; flex-direction: column; gap: .3rem;
  opacity: 0; visibility: hidden; transform: translateY(-14px); transition: opacity .3s, transform .3s, visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { padding: 1rem .5rem; font-family: 'Fredoka', sans-serif; font-size: 1.5rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid rgba(10,10,30,.06); }
.mobile-menu .btn { margin-top: 1.2rem; }

/* ================= HERO ================= */
.hero { position: relative; width: 100%; min-height: 100svh; overflow: hidden; padding-top: 90px; }
.bg { position: absolute; inset: 0; z-index: 0; }
.bg__base { position: absolute; inset: 0; background: linear-gradient(180deg, #ffd85e 0%, var(--yellow) 46%, #ffc21f 100%); }
.bg__tri { position: absolute; background: var(--cream); will-change: transform; }
.bg__tri--left  { bottom: 0; left: 0;  width: 55%; height: 46%; clip-path: polygon(0 100%, 100% 100%, 0 18%); }
.bg__tri--right { bottom: 0; right: 0; width: 55%; height: 46%; clip-path: polygon(100% 100%, 0 100%, 100% 18%); }

.scene { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.scene > * { position: absolute; will-change: transform; }
.scene svg { width: 100%; height: auto; display: block; }

.scene__sun       { top: 12%;  left: 8%;   width: 130px; }
.scene__cloud-a   { top: 16%;  left: 20%;  width: 210px; }
.scene__cloud-b   { top: 30%;  right: 8%;  width: 165px; }
.scene__birds     { top: 22%;  right: 30%; width: 130px; }
.scene__lighthouse{ bottom: 16%; left: 6%; width: 210px; }
.scene__sea       { bottom: 0;  left: 0;   width: 100%; }
.scene__anchors   { bottom: 13%; right: 7%; width: 300px; }
.scene__coins     { top: 26%;  left: 44%;  width: 300px; }

.scene__dot { position: absolute; border-radius: 50%; }
.scene__dot--1 { top: 38%; left: 16%; width: 18px; height: 18px; background: var(--orange); }
.scene__dot--2 { top: 62%; right: 12%; width: 12px; height: 12px; background: var(--purple); }
.scene__dot--3 { top: 20%; left: 40%; width: 10px; height: 10px; background: var(--teal); }

/* carousel arrows */
.arrow {
  position: absolute; top: 58%; z-index: 25; width: 54px; height: 54px; border-radius: 50%;
  border: none; background: #fff; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  transition: transform .3s var(--pop), box-shadow .3s;
}
.arrow svg { width: 22px; height: 22px; }
.arrow--left  { left: 2rem; }
.arrow--right { right: 2rem; }
.arrow:hover { transform: scale(1.14); box-shadow: var(--shadow-lg); }
.arrow:active { transform: scale(.95); }

/* hero card */
.card {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); z-index: 20;
  background: var(--orange); padding: 2rem 2.6rem 1.5rem; border-radius: 24px;
  box-shadow: 0 14px 40px rgba(246,75,44,.42), 0 6px 16px rgba(10,10,30,.15);
  text-align: center; min-width: 380px; max-width: min(560px, 92vw); overflow: hidden;
}
.card__eyebrow { font-size: .7rem; font-weight: 800; letter-spacing: .22em; color: rgba(254,245,211,.75); margin-bottom: .7rem; }
.card__title {
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: .98; color: var(--cream); letter-spacing: .01em; margin-bottom: .9rem;
  display: flex; flex-direction: column; gap: .06em;
}
.card__line { display: block; overflow: hidden; }
.card__tag { display: inline-block; background: var(--cream); color: var(--ink); font-weight: 800; font-size: .72rem; letter-spacing: .18em; padding: .5rem 1.1rem; border-radius: 999px; }
.card__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.card__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(254,245,211,.4); border: none; padding: 0; cursor: pointer; transition: background .3s, transform .3s; }
.card__dot.is-active { background: var(--cream); transform: scale(1.35); }

[data-nav-el], [data-card], [data-el] { opacity: 0; }

/* ================= SECTIONS ================= */
.section { padding: 100px 0; position: relative; }
.section--cream { background: var(--cream); }
.section--white { background: #fff; }
.section--navy  { background: var(--navy); color: #fff; }
.section--navy .lede { color: rgba(255,255,255,.72); }

.eyebrow { display: inline-block; font-weight: 800; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); background: rgba(246,75,44,.1); padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1.2rem; }
.section--navy .eyebrow { background: rgba(255,207,61,.16); color: var(--yellow); }
h2.big { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.02em; font-weight: 700; margin-bottom: 1rem; max-width: 18ch; }
.lede { font-size: clamp(1rem, 1.7vw, 1.15rem); color: var(--ink-2); max-width: 58ch; margin-bottom: 3rem; line-height: 1.65; }
.lede b { color: var(--ink); }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 1.2rem; }
.stat { background: #fff; border-radius: 22px; padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--pop), box-shadow .3s; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat__v { font-family: 'Fredoka', sans-serif; font-size: clamp(2.1rem,4vw,2.9rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__v.pop { color: var(--orange); }
.stat__k { font-weight: 800; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: .8rem; }
.stat__n { font-size: .86rem; color: var(--ink-3); margin-top: .25rem; }

/* chart */
.panel { background: #fff; border-radius: 26px; padding: 2.2rem; box-shadow: var(--shadow-md); }
.legend { display: flex; gap: 1.3rem; flex-wrap: wrap; margin-bottom: 1.6rem; font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.lg { display: flex; align-items: center; gap: .5rem; }
.sw { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.sw-hatch { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.32) 0 2px, transparent 2px 5px); }

.chart { position: relative; }
.row { display: grid; grid-template-columns: 200px 1fr 100px; align-items: center; gap: 14px; padding: 5px 0; }
.row-label { font-size: .82rem; font-weight: 700; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-label i { color: var(--ink-3); font-style: normal; font-weight: 500; }
.track { position: relative; height: 24px; }
.bar { position: absolute; left: 0; top: 3px; height: 18px; width: 0; border-radius: 0 9px 9px 0; transition: width 1s var(--pop), filter .2s; }
.bar.is-dark { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.3) 0 3px, transparent 3px 7px); }
.row:hover .bar { filter: brightness(1.08) saturate(1.15); }
.row-val { font-size: .84rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.row-state { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.threshold { position: absolute; top: 0; bottom: 30px; width: 2px; background: repeating-linear-gradient(var(--ink-3) 0 4px, transparent 4px 8px); opacity: .5; }
.threshold::after { content: "30 days"; position: absolute; top: -20px; left: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.axis { display: grid; grid-template-columns: 200px 1fr 100px; gap: 14px; margin-top: 8px; }
.axis-in { position: relative; height: 20px; border-top: 2px solid rgba(10,10,30,.08); }
.tick { position: absolute; top: 5px; font-size: .7rem; font-weight: 700; color: var(--ink-3); transform: translateX(-50%); }

.tip { position: fixed; pointer-events: none; opacity: 0; z-index: 300; background: var(--navy); color: #fff; border-radius: 14px; padding: .8rem 1rem; font-size: .78rem; box-shadow: var(--shadow-lg); transition: opacity .12s; max-width: 260px; }
.tip .t { font-weight: 800; margin-bottom: .4rem; }
.tip .l { display: flex; justify-content: space-between; gap: 1.2rem; color: rgba(255,255,255,.62); padding: 1px 0; }
.tip .l b { color: #fff; font-variant-numeric: tabular-nums; }

details.tbl { margin-top: 1.4rem; border-top: 2px solid rgba(10,10,30,.06); }
details.tbl summary { cursor: pointer; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 1rem 0; list-style: none; }
details.tbl summary::-webkit-details-marker { display: none; }
details.tbl summary::before { content: "+ "; color: var(--orange); }
details.tbl[open] summary::before { content: "- "; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { text-align: right; padding: .6rem .5rem; border-bottom: 1px solid rgba(10,10,30,.06); }
th:first-child, td:first-child { text-align: left; }
th { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
td { font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: 1.4rem; }
.step { background: #fff; border-radius: 24px; padding: 2rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--pop), box-shadow .3s; }
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.step__n { width: 52px; height: 52px; border-radius: 16px; display: grid; place-content: center; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: 1.2rem; }
.step h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.step p { color: var(--ink-2); font-size: .96rem; }

/* code block */
.code { background: var(--ink); border-radius: 22px; padding: 1.6rem 1.8rem; overflow-x: auto; box-shadow: var(--shadow-lg); }
.code pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .84rem; line-height: 1.85; color: #e8e8f2; }
.code .c { color: #6b6b8a; }
.code .k { color: #ff9c7a; }
.code .s { color: #8fe3a0; }
.code .f { color: #ffd75e; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.4rem; }
.tier { background: #fff; border-radius: 26px; padding: 2.2rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.tier.featured { background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); transform: scale(1.03); }
.tier__name { font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.tier.featured .tier__name { color: var(--yellow); }
.tier__price { font-family: 'Fredoka', sans-serif; font-size: 2.6rem; font-weight: 700; margin: .7rem 0 .2rem; }
.tier__per { font-size: .85rem; color: var(--ink-3); margin-bottom: 1.4rem; }
.tier.featured .tier__per { color: rgba(255,255,255,.6); }
.tier ul { list-style: none; margin-bottom: 1.8rem; flex: 1; }
.tier li { padding: .45rem 0 .45rem 1.6rem; position: relative; font-size: .93rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.tier.featured li::before { color: var(--yellow); }

/* faq */
.faq { max-width: 780px; }
.qa { background: #fff; border-radius: 20px; margin-bottom: .8rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.qa summary { cursor: pointer; padding: 1.3rem 1.6rem; font-weight: 800; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--orange); font-size: 1.5rem; font-weight: 400; flex: none; transition: transform .25s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 1.6rem 1.4rem; color: var(--ink-2); font-size: .95rem; }

/* caveat */
.caveat { background: #fff; border-radius: 26px; border-left: 6px solid var(--amber); padding: 2.2rem 2.4rem; box-shadow: var(--shadow-sm); }
.caveat p { color: var(--ink-2); margin-bottom: 1rem; max-width: 70ch; }
.caveat p:last-child { margin-bottom: 0; }
.caveat b { color: var(--ink); }

/* contact */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; padding: .95rem 1.1rem; border-radius: 14px;
  border: 2px solid rgba(10,10,30,.1); background: #fff; color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); }
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: .82rem; color: var(--ink-3); }
.form__ok { display: none; background: rgba(47,158,68,.1); color: var(--green); border-radius: 14px; padding: 1rem 1.2rem; font-weight: 700; font-size: .92rem; }
.form__ok.show { display: block; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal.open { opacity: 1; visibility: visible; }
.modal__scrim { position: absolute; inset: 0; background: rgba(10,10,30,.55); backdrop-filter: blur(4px); }
.modal__box { position: relative; background: #fff; border-radius: 28px; padding: 2.4rem; width: min(430px, 100%); box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.97); transition: transform .3s var(--pop); }
.modal.open .modal__box { transform: none; }
.modal__x { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--cream); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.modal h3 { font-size: 1.7rem; margin-bottom: .4rem; }
.modal .sub { color: var(--ink-3); font-size: .92rem; margin-bottom: 1.6rem; }
.modal .alt { text-align: center; font-size: .86rem; color: var(--ink-3); margin-top: 1.2rem; }
.modal .alt a { color: var(--orange); font-weight: 800; text-decoration: none; }

/* footer */
footer { background: var(--ink); color: rgba(255,255,255,.62); padding: 4.5rem 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.foot-brand { font-family: 'Fredoka', sans-serif; font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: .7rem; }
.foot-brand em { color: var(--orange); font-style: normal; }
.foot-col h4 { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; font-family: 'Nunito', sans-serif; font-weight: 800; }
.foot-col a { display: block; padding: .35rem 0; text-decoration: none; font-size: .92rem; transition: color .2s; }
.foot-col a:hover { color: var(--yellow); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.rv.in { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .scene__lighthouse { width: 160px; }
  .scene__anchors { width: 220px; right: 4%; }
  .scene__coins { width: 220px; left: 40%; }
  .scene__cloud-a { width: 160px; }
}
@media (max-width: 900px) {
  .topnav__pill { display: none; }
  .topnav__actions .btn { display: none; }
  .burger { display: block; }
}
@media (max-width: 700px) {
  .arrow { width: 44px; height: 44px; }
  .arrow--left { left: .6rem; } .arrow--right { right: .6rem; }
  .card { min-width: 0; width: calc(100% - 2rem); padding: 1.5rem 1.4rem 1.2rem; }
  .scene__lighthouse { width: 110px; bottom: 20%; }
  .scene__anchors { width: 150px; bottom: 18%; }
  .scene__coins { display: none; }
  .scene__birds { display: none; }
  .row, .axis { grid-template-columns: 104px 1fr 74px; gap: 8px; }
  .row-label { font-size: .7rem; }
  .section { padding: 70px 0; }
  .tier.featured { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  [data-nav-el], [data-card], [data-el] { opacity: 1; }
  .loader { display: none; }
}

/* Data freshness. A page that serves month-old numbers as current is the
   exact failure this project exists to detect, so provenance is always shown. */
.freshness {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.freshness::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.freshness.is-live     { background: rgba(47,158,68,.12);  color: #2f9e44; }
.freshness.is-live::before     { background: #2f9e44; }
.freshness.is-snapshot { background: rgba(232,148,12,.12); color: #b8720a; }
.freshness.is-snapshot::before { background: #e8940c; }
.tier li em { font-style: normal; opacity: .6; font-size: .85em; }

/* ===========================================================
   TRANSACTION DASHBOARD
   =========================================================== */
.dash-body { background: var(--cream); }
.dash { padding: 110px 0 80px; min-height: 70vh; }

.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.dash-title { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.02em; margin-bottom: .5rem; }
.dash-sub { color: var(--ink-2); max-width: 58ch; }
.dash-note { color: var(--ink-3); font-size: .88rem; max-width: 78ch; margin-top: 1.4rem; }
.dash-note code, .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.muted { color: var(--ink-3); }

.dash-empty { background: #fff; border-radius: 26px; padding: 3rem; box-shadow: var(--shadow-sm); max-width: 62ch; }
.dash-empty h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.dash-empty p { color: var(--ink-2); margin-bottom: 1rem; }
.dash-empty .mono { font-size: .82rem; color: var(--red); word-break: break-all; }

/* ---- anchor picker ---- */
.anchor-strip { display: flex; gap: .8rem; overflow-x: auto; padding-bottom: .8rem; margin-bottom: 1.6rem; }
.anchor-card {
  flex: none; text-align: left; cursor: pointer; font-family: inherit;
  background: #fff; border: 2px solid transparent; border-radius: 18px;
  padding: 1rem 1.3rem; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--pop), border-color .2s, box-shadow .2s;
}
.anchor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.anchor-card.is-on { border-color: var(--orange); }
.anchor-card.is-dark .anchor-card__name::before { content: "▲ "; color: var(--red); }
.anchor-card__name { display: block; font-weight: 800; font-size: .98rem; }
.anchor-card__meta { display: block; font-size: .78rem; color: var(--ink-3); margin-top: .2rem; }
.anchor-card__meta b { color: var(--red); }

.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 1rem; margin-bottom: 1.6rem; }

/* ---- filters ---- */
.filters { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.filter-group { display: flex; background: #fff; border-radius: 999px; padding: .3rem; box-shadow: var(--shadow-sm); }
.chip {
  border: none; background: none; font-family: inherit; font-weight: 800; font-size: .85rem;
  padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.chip:hover { color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; }
.filter-select { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.filter-select select {
  font-family: inherit; font-size: .9rem; font-weight: 700; text-transform: none; letter-spacing: 0;
  color: var(--ink); padding: .55rem .9rem; border-radius: 12px;
  border: 2px solid rgba(10,10,30,.1); background: #fff;
}
.filter-select select:focus { outline: none; border-color: var(--orange); }
.filter-spacer { flex: 1; }

/* ---- transaction table ---- */
.tx-panel { padding: 0; overflow: hidden; }
.tx-scroll { overflow-x: auto; }
table.tx { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.tx th {
  text-align: left; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); padding: 1rem 1.1rem; border-bottom: 2px solid rgba(10,10,30,.07);
  position: sticky; top: 0; background: #fff; z-index: 1;
}
table.tx td { padding: .8rem 1.1rem; border-bottom: 1px solid rgba(10,10,30,.05); vertical-align: middle; }
table.tx th.num, table.tx td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tx tbody tr:hover td { background: var(--cream); }
table.tx tbody tr.is-dust td { opacity: .5; }
table.tx tbody tr:last-child td { border-bottom: none; }

.tx-when { display: block; font-weight: 700; }
.tx-abs { display: block; font-size: .72rem; color: var(--ink-3); }
.tx-domain { display: block; font-size: .72rem; color: var(--ink-3); font-family: var(--sans); }
.tx-memo { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.tx-dust { display: inline-block; margin-left: .4rem; font-size: .62rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); background: rgba(10,10,30,.06); padding: .12rem .4rem; border-radius: 5px; }
.tx-link { color: var(--blue); text-decoration: none; font-weight: 700; font-size: .82rem; }
.tx-link:hover { text-decoration: underline; }
.tx-none { text-align: center; color: var(--ink-3); padding: 3rem 1rem !important; }

.dir { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  padding: .25rem .6rem; border-radius: 8px; white-space: nowrap; }
.dir--in  { background: rgba(47,158,68,.12);  color: #2f9e44; }
.dir--out { background: rgba(59,79,232,.10);  color: var(--blue); }

.tx-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.4rem; border-top: 2px solid rgba(10,10,30,.06); flex-wrap: wrap; }
#txCount { font-size: .82rem; color: var(--ink-3); }

@media (max-width: 700px) {
  .dash { padding: 90px 0 50px; }
  .tx-abs, .tx-domain { display: none; }
  table.tx th, table.tx td { padding: .7rem .6rem; font-size: .8rem; }
}

/* ============================================================ 404 =========
   Styled rather than left to the browser, because a bare Chrome error page on
   a site that argues for verifiability reads as a site that stopped being
   maintained. */

.notfound { min-height: 100vh; display: grid; place-items: center; padding: 60px 0; }
.notfound__in {
  display: flex; align-items: center; gap: 4rem;
  flex-wrap: wrap; justify-content: center; text-align: left;
}
.notfound__lighthouse { width: 150px; flex: 0 0 auto; }
.notfound__code {
  font-family: var(--font-display, "Fredoka", sans-serif);
  font-size: 4.5rem; line-height: 1; margin: 0 0 .2rem;
  color: #f64b2c; letter-spacing: -.03em;
}
.notfound__title { font-size: 1.9rem; margin: 0 0 .8rem; max-width: 20ch; }
.notfound__body  { max-width: 42ch; margin: 0 0 1.6rem; opacity: .82; }
.notfound__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.notfound__note {
  margin-top: 1.8rem; max-width: 46ch;
  font-size: .85rem; opacity: .6; border-left: 3px solid rgba(0,0,0,.1);
  padding-left: .9rem;
}

@media (max-width: 700px) {
  .notfound__in { gap: 2rem; }
  .notfound__lighthouse { width: 100px; }
  .notfound__code { font-size: 3.2rem; }
  .notfound__title { font-size: 1.45rem; }
}
