/* HAVHO Feeds — landing page (light "coastal survey", matches the portal).
   Cool paper ground · teal-cyan for data · warm ochre for place. */

@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,18..48,400;1,18..48,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:         #F5F8F6;
  --surface:    #FFFFFF;
  --surface-2:  #EDF3F0;
  --border:     #DBE5E1;
  --border-2:   #C9D6D1;

  --ink:        #10303A;
  --text:       #33474B;
  --muted:      #667C7B;
  --muted-dim:  #8A9C9A;

  --teal:       #0C8474;
  --teal-deep:  #0A6A5E;
  --teal-bright:#3FD9C1;
  --teal-soft:  #E2F4F0;
  --sun:        #B87516;
  --sun-soft:   #FBF0DD;
  --signal:     var(--teal);

  --grid: 1180px;
  --sans:  'Familjen Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 1px 2px rgba(16,48,58,.05), 0 12px 32px -14px rgba(16,48,58,.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--teal-bright); color: var(--ink); }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }

.shell { max-width: var(--grid); margin: 0 auto; padding: 0 28px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.bar .shell { display: flex; align-items: center; gap: 28px; height: 66px; }
.mark { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.01em; font-size: 16px; color: var(--ink); }
.mark i {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--teal-bright), var(--teal));
  color: var(--ink); font-style: normal; font-weight: 800; font-size: 15px;
}
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.bar nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s, background .15s; }
.bar nav a:hover { color: var(--ink); background: var(--surface-2); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 9px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s;
}
.pill.solid { background: var(--teal-bright); color: var(--ink); }
.pill.solid:hover { background: color-mix(in srgb, var(--teal-bright) 86%, white); transform: translateY(-1px); }
.pill.line { border-color: var(--border-2); color: var(--ink); background: var(--surface); }
.pill.line:hover { border-color: var(--teal); color: var(--teal-deep); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  top: -240px; right: -160px; width: 680px; height: 680px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--teal-bright) 22%, transparent), transparent 62%);
  pointer-events: none;
}
.hero .shell {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1fr);
  gap: 60px; align-items: start;
  padding-top: 58px; padding-bottom: 78px;
}
.hero-copy { max-width: 33rem; padding-top: 6px; }

.status { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); font-weight: 500; margin-bottom: 24px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 45%, transparent); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 { font-size: clamp(2.5rem, 4.8vw, 3.6rem); letter-spacing: -0.035em; text-wrap: balance; }
.hero h1 .b { display: block; font-weight: 400; font-size: 0.82em; letter-spacing: -0.028em; color: var(--text); margin-top: 0.14em; }
.lede { font-family: var(--serif); font-style: italic; font-size: 1.28rem; line-height: 1.52; color: var(--ink); margin: 24px 0 32px; max-width: 26rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- hero visualization ---------- */
.viz { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; }
.feed {
  width: 100%; max-width: 432px; min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border); border-left: 3px solid var(--teal);
  border-radius: 8px; padding: 18px 20px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  color: var(--muted); box-shadow: var(--shadow);
}
.feed .k { color: var(--teal-deep); }
.feed .s { color: var(--ink); }
.feed .n { color: var(--sun); }
.feed .muted { color: var(--muted-dim); }
.feed .row { opacity: 0; transform: translateY(5px); }

.conduit {
  width: 2px; height: 34px; margin: 6px 356px 6px 0;
  background: linear-gradient(var(--teal), color-mix(in srgb, var(--teal) 30%, var(--sun)));
  transform: scaleY(0); transform-origin: top; position: relative; align-self: flex-end;
}
.conduit::after {
  content: ""; position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 10px color-mix(in srgb, var(--teal) 60%, transparent);
  top: 0; opacity: 0;
}

.listing {
  width: 400px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  opacity: 0; transform: translateY(12px); box-shadow: var(--shadow);
}
.listing .photo {
  height: 134px; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, color-mix(in srgb, var(--sun) 42%, transparent), transparent 55%),
    linear-gradient(150deg, #2f6a70 0%, #4a7178 45%, #9a7746 100%);
}
.listing .photo::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 66%;
  background:
    linear-gradient(#1a3d44 0 0) 8% 100% / 16% 62% no-repeat,
    linear-gradient(#1a3d44 0 0) 27% 100% / 12% 84% no-repeat,
    linear-gradient(#1a3d44 0 0) 44% 100% / 20% 46% no-repeat,
    linear-gradient(#1a3d44 0 0) 68% 100% / 14% 100% no-repeat,
    linear-gradient(#1a3d44 0 0) 86% 100% / 18% 70% no-repeat;
  opacity: .8;
}
.listing .photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: color-mix(in srgb, var(--sun) 60%, transparent); }
.listing .ribbon {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink); background: var(--sun); color: #fff;
  padding: 3px 9px; border-radius: 5px; transform: scaleX(0); transform-origin: left;
}
.listing .body { padding: 15px 17px 17px; }
.listing .lt { font-family: var(--sans); font-weight: 600; font-size: 15.5px; color: var(--ink); letter-spacing: -0.01em; }
.listing .lp { color: var(--sun); font-weight: 700; margin-top: 4px; font-size: 15px; }
.listing .lm { color: var(--muted); font-size: 13px; margin-top: 7px; }
.listing .la { color: var(--muted-dim); font-size: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

/* motion: one orchestrated load sequence */
.viz .feed .row { animation: settle .5s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.25s + var(--i) * .07s); }
.viz .conduit   { animation: draw .45s ease forwards; animation-delay: .95s; }
.viz .conduit::after { animation: travel .55s ease-in forwards; animation-delay: 1.15s; }
.viz .listing   { animation: rise .55s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: 1.35s; }
.viz .ribbon    { animation: sweep .4s ease forwards; animation-delay: 1.7s; }
@keyframes settle { to { opacity: 1; transform: none; } }
@keyframes draw   { to { transform: scaleY(1); } }
@keyframes travel { 0% { opacity: 1; top: -4px; } 100% { opacity: 0; top: 34px; } }
@keyframes rise   { to { opacity: 1; transform: none; } }
@keyframes sweep  { to { transform: scaleX(1); } }

/* ---------- sample feed strip ---------- */
.samples {
  margin-top: 26px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
}
.samples .lbl { font-size: 13px; font-weight: 600; color: var(--ink); }
.samples .lbl span { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.samples .dl {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  background: var(--teal-soft); color: var(--teal-deep); border: 1px solid color-mix(in srgb, var(--teal) 22%, transparent);
}
.samples .dl:hover { background: color-mix(in srgb, var(--teal-soft) 70%, white); border-color: var(--teal); }
.samples .dl::before { content: "↓"; font-weight: 700; }
.samples .view { font-size: 13.5px; color: var(--muted); margin-left: auto; }
.samples .view:hover { color: var(--teal-deep); }

/* ---------- section rhythm ---------- */
.rule { border: 0; border-top: 1px solid var(--border); }
.band { padding: 78px 0; }
.band h2 { font-size: clamp(1.65rem, 2.7vw, 2.2rem); max-width: 24ch; text-wrap: balance; }
.band .intro { font-family: var(--serif); color: var(--muted); font-size: 1.1rem; line-height: 1.6; max-width: 34ch; margin-top: 14px; }

.how .shell { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 64px; align-items: start; }
.how .lead { position: sticky; top: 96px; }
.how .lead h2 { max-width: 12ch; }
.flow { position: relative; padding-left: 34px; }
.flow::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--teal), var(--border) 70%); }
.flow li { list-style: none; position: relative; padding-bottom: 34px; max-width: 52ch; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { content: ""; position: absolute; left: -34px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--teal); }
.flow h3 { font-size: 1.12rem; font-weight: 600; }
.flow p { color: var(--muted); margin-top: 6px; font-size: 15.5px; line-height: 1.55; }
.flow code { font-family: var(--mono); font-size: .86em; color: var(--teal-deep); background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }

.split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 36px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.split > div { padding: 30px 32px; }
.split > div:first-child { border-right: 1px solid var(--border); background: color-mix(in srgb, var(--teal) 3%, var(--surface)); }
.split > div:last-child { background: color-mix(in srgb, var(--sun) 4%, var(--surface)); }
.split .tag { font-size: 12.5px; font-weight: 700; color: var(--teal-deep); }
.split .tag.warm { color: var(--sun); }
.split h3 { font-size: 1.28rem; margin: 9px 0 11px; }
.split p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 34ch; }
.split .links { margin-top: 16px; font-size: 14.5px; display: flex; gap: 16px; flex-wrap: wrap; }
.split .links a { color: var(--teal-deep); border-bottom: 1px solid var(--border-2); padding-bottom: 1px; }
.split .links a:hover { border-color: var(--teal); }
.split .links a.w { color: var(--sun); }
.split .links a.w:hover { border-color: var(--sun); }

.close { padding: 88px 0; }
.close h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); max-width: 20ch; text-wrap: balance; }
.close .cta-row { margin-top: 28px; }

.foot { border-top: 1px solid var(--border); padding: 30px 0; color: var(--muted-dim); font-size: 13.5px; background: var(--surface); }
.foot .shell { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--teal); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .shell { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 50px; padding-bottom: 60px; }
  .hero-copy { max-width: none; }
  .viz { align-items: stretch; }
  .feed { max-width: none; }
  .conduit { align-self: flex-start; margin: 8px 0 8px 26px; }
  .listing { width: 100%; max-width: 420px; }
  .how .shell { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .how .lead { position: static; }
  .how .lead h2 { max-width: 20ch; }
  .flow li { max-width: none; }
  .split { grid-template-columns: 1fr; }
  .split > div:first-child { border-right: 0; border-bottom: 1px solid var(--border); }
  .band { padding: 60px 0; }
  .close { padding: 68px 0; }
}
@media (max-width: 620px) {
  html { font-size: 15px; }
  .shell { padding: 0 18px; }
  .bar .shell { gap: 12px; }
  .bar nav { gap: 2px; }
  .bar nav a:not(.pill) { display: none; }
  .bar nav .pill { padding: 8px 13px; font-size: 14px; }
  .hero h1 { font-size: clamp(2.1rem, 8.5vw, 2.7rem); }
  .feed { overflow-x: auto; font-size: 12px; padding: 16px; white-space: nowrap; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-row .pill { justify-content: center; }
  .samples .view { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .viz .feed .row, .viz .conduit, .viz .listing, .viz .ribbon { animation: none; }
  .viz .feed .row { opacity: 1; transform: none; }
  .viz .conduit { transform: scaleY(1); }
  .viz .conduit::after { display: none; }
  .viz .listing { opacity: 1; transform: none; }
  .viz .ribbon { transform: scaleX(1); }
  .pill:hover { transform: none; }
}
