/* AI Flow landing page styles. Black and white only, to match the logo: the dotted
   artwork does the decorating. Sections run top to bottom in the same order as index.html. */

:root {
  --black: #000;
  --surface: #0e0e10;
  --surface-2: #151518;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --fog: #8c8c90;
  --mist: #b9b9bc;
  --paper: #f2f2ef;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --section: clamp(96px, 14vw, 180px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); color: var(--black); padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.dim { color: var(--fog); }
.sq { width: 6px; height: 6px; background: currentColor; flex: none; display: inline-block; }

/* Type */
h1 {
  font-size: clamp(44px, 8.4vw, 104px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 500;
}
.h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 500;
  text-wrap: balance;
}
.h2--xl { font-size: clamp(40px, 6.6vw, 84px); letter-spacing: -.04em; }
.lede { color: var(--mist); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; max-width: 34em; text-wrap: pretty; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--mist);
  padding: 7px 14px 7px 12px;
  background: var(--surface-2);
  border-left: 2px solid var(--paper);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 500 15px/1 var(--sans); text-decoration: none; letter-spacing: -.005em;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn--solid { background: var(--paper); color: var(--black); }
.btn--solid:hover { background: #fff; transform: translateY(-1px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--ghost {
  position: relative; color: var(--paper);
  background:
    linear-gradient(var(--paper), var(--paper)) top left / 8px 1px,
    linear-gradient(var(--paper), var(--paper)) top left / 1px 8px,
    linear-gradient(var(--paper), var(--paper)) top right / 8px 1px,
    linear-gradient(var(--paper), var(--paper)) top right / 1px 8px,
    linear-gradient(var(--paper), var(--paper)) bottom left / 8px 1px,
    linear-gradient(var(--paper), var(--paper)) bottom left / 1px 8px,
    linear-gradient(var(--paper), var(--paper)) bottom right / 8px 1px,
    linear-gradient(var(--paper), var(--paper)) bottom right / 1px 8px;
  background-repeat: no-repeat;
}
.btn--ghost:hover { background-color: rgba(255, 255, 255, .07); }
.textlink { color: var(--paper); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.textlink:hover { text-decoration-color: var(--paper); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; padding: 6px 0; }
.brand__mark { width: 52px; height: 24px; fill: var(--paper); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { font-size: 14px; color: var(--mist); text-decoration: none; padding: 8px 14px; transition: color .2s; }
.nav__links a:hover { color: var(--paper); }
.nav__toggle { display: none; }
.mobile-menu { display: none; }

/* Hero */
.hero { position: relative; padding-top: clamp(72px, 11vw, 140px); overflow: hidden; }
.hero__hand {
  position: absolute; z-index: 0; pointer-events: none;
  left: max(-150px, calc(50% - 870px)); top: 150px;
  width: min(760px, 54vw);
  mix-blend-mode: screen; opacity: .9;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 40% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 40% 45%, #000 55%, transparent 100%);
}
.hero__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gutter); }
.hero h1 { margin-top: 32px; }
.hero__sub { margin-top: 28px; max-width: 33em; color: var(--mist); font-size: clamp(17px, 1.5vw, 19px); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.hero__note { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--fog); }

/* Hero stage: the framed feed panel */
.stage {
  position: relative; z-index: 1; margin-top: clamp(72px, 9vw, 120px);
  border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2);
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 5px);
}
.stage__frame {
  position: relative; max-width: 1040px; margin: 0 auto;
  padding: clamp(14px, 2.4vw, 28px);
  background: var(--black);
  border-left: 1px dashed var(--line-2); border-right: 1px dashed var(--line-2);
}
.tick { position: absolute; width: 17px; height: 17px; }
.tick::before, .tick::after { content: ""; position: absolute; background: var(--paper); }
.tick::before { left: 8px; top: 0; width: 1px; height: 17px; }
.tick::after { top: 8px; left: 0; height: 1px; width: 17px; }
.tick--tl { left: -9px; top: -9px; } .tick--tr { right: -9px; top: -9px; }
.tick--bl { left: -9px; bottom: -9px; } .tick--br { right: -9px; bottom: -9px; }

.window { background: var(--surface); border: 1px solid var(--line); }
.window__bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--mist); }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3e; }
.window__title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--paper); }
.live .sq { animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.window__body { display: grid; grid-template-columns: 1.35fr 1fr; }
.col-title { font: 500 13px/1 var(--mono); color: var(--fog); margin-bottom: 16px; letter-spacing: 0; }
.feed { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.msg { background: var(--surface-2); border: 1px solid var(--line); padding: 16px 18px; font-size: 14.5px; line-height: 1.5; color: var(--mist); }
.msg p + p { margin-top: 6px; }
.msg__lead { color: var(--paper); font-weight: 600; font-size: 15px; letter-spacing: -.005em; }
.msg__foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px !important; }
.msg__link { color: var(--paper); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.msg time { font-family: var(--mono); font-size: 11.5px; color: var(--fog); }

.dropped { padding: 24px; }
.dropped li { padding: 13px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.dropped li:last-child { border-bottom: 0; }
.dropped s { font-size: 14.5px; color: var(--fog); text-decoration-color: rgba(242, 242, 239, .55); text-decoration-thickness: 1px; }
.dropped span { font-family: var(--mono); font-size: 12px; color: #6f6f74; }

/* Page-load sequence: the only automatic motion on the page */
.load { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 80ms); }
.hero__hand { opacity: 0; animation: fade 1.6s var(--ease) .2s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: .9; } }

/* Who it's for */
.who { padding-top: var(--section); }
.who__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.who__intro { position: sticky; top: 120px; }
.who__intro .lede { margin-top: 24px; }
.who__art {
  margin-top: 24px; width: 100%; max-width: 380px; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.who__list { border-top: 1px solid var(--line); }
.who__list li { padding: 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.who__list h3 { font-size: clamp(21px, 2vw, 24px); font-weight: 500; letter-spacing: -.02em; }
.who__list p { color: var(--mist); max-width: 34em; }
.who__list .eg {
  margin-top: 10px; padding: 12px 16px; background: var(--surface); border-left: 2px solid var(--line-2);
  font-family: var(--mono); font-size: 13px; line-height: 1.55; color: var(--paper);
}

/* How posts are picked */
.how { padding-top: var(--section); }
.how__head { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.how__head .lede { max-width: 30em; }
.how__art { margin-top: clamp(40px, 6vw, 72px); }
.how__art img {
  width: 100%; height: clamp(260px, 38vw, 560px); object-fit: cover; object-position: 30% 50%;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: step; margin-top: clamp(32px, 5vw, 64px); }
.steps li { counter-increment: step; padding: 32px 32px 40px 0; border-top: 1px solid var(--line); }
.steps li:nth-child(n+4) { border-top-color: var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: 13px; color: var(--fog); margin-bottom: 20px;
}
.steps p { margin-top: 10px; color: var(--mist); font-size: 16px; max-width: 26em; }

/* What we leave out */
.out { padding-top: var(--section); }
.out__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.out__art {
  width: 100%; max-width: 440px; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.strike { margin: 40px 0 36px; border-top: 1px solid var(--line); }
.strike li {
  position: relative; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.025em; color: var(--fog);
}
.strike li > span {
  background: linear-gradient(var(--paper), var(--paper)) no-repeat 0 58% / 0% 1.5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .8s var(--ease);
}
.strike.is-in li > span { background-size: 100% 1.5px; }
.strike.is-in li:nth-child(2) > span { transition-delay: .1s; }
.strike.is-in li:nth-child(3) > span { transition-delay: .2s; }
.strike.is-in li:nth-child(4) > span { transition-delay: .3s; }
.strike.is-in li:nth-child(5) > span { transition-delay: .4s; }
.strike.is-in li:nth-child(6) > span { transition-delay: .5s; }

/* Recent posts */
.posts { padding-top: var(--section); }
.posts__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font: 500 14px/1 var(--sans); color: var(--mist); background: transparent;
  border: 1px solid var(--line-2); min-height: 40px; padding: 0 16px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s;
}
.chip:hover { color: var(--paper); border-color: var(--mist); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--black); border-color: var(--paper); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.post {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--black);
  text-decoration: none; color: var(--mist); font-size: 15.5px; line-height: 1.55;
  transition: background-color .25s var(--ease);
}
.post:hover { background: var(--surface); }
.post[hidden] { display: none; }
.post__kind { font-family: var(--mono); font-size: 12px; color: var(--fog); margin-bottom: 6px; }
.post__lead { color: var(--paper); font-weight: 600; font-size: 17px; line-height: 1.4; letter-spacing: -.01em; }
.post ul li { padding-left: 16px; position: relative; }
.post ul li::before { content: "•"; position: absolute; left: 0; }
.post__link { margin-top: auto; padding-top: 10px; color: var(--paper); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.post:hover .post__link { text-decoration-color: var(--paper); }
.post__sig { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--fog); padding-top: 14px; border-top: 1px solid var(--line); margin-top: 8px; }
.posts__more { margin-top: 28px; }

/* FAQ */
.faq { padding-top: var(--section); }
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: clamp(18px, 1.6vw, 20px); font-weight: 500; letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(var(--paper), var(--paper)) center / 12px 1px no-repeat, linear-gradient(var(--paper), var(--paper)) center / 1px 12px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mist); padding: 0 40px 28px 0; max-width: 36em; }

/* Join */
.join { position: relative; margin-top: var(--section); padding: clamp(96px, 12vw, 160px) 0; overflow: hidden; border-top: 1px solid var(--line); }
.join__art {
  position: absolute; right: max(16px, calc(50% - 720px)); top: 50%; transform: translateY(-50%);
  width: min(900px, 66vw); height: auto;
  mix-blend-mode: screen; opacity: .85;
  -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 5%, #000 55%);
}
.join__inner { position: relative; }
.join__copy { max-width: 640px; }
.join__copy .lede { margin: 24px 0 40px; }
.join__row { display: flex; align-items: center; gap: 28px; }
.qr { display: flex; align-items: center; gap: 16px; padding-left: 28px; border-left: 1px solid var(--line-2); }
.qr__code { width: 88px; padding: 8px; background: var(--paper); flex: none; }
.qr__code img { width: 100%; image-rendering: pixelated; }
.qr p { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--fog); max-width: 11em; }

/* Footer */
.foot { padding-top: 64px; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 48px; }
.foot__brand p { margin-top: 18px; color: var(--fog); font-size: 15px; max-width: 22em; }
.foot__col { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.foot__col a { color: var(--mist); text-decoration: none; padding: 6px 0; transition: color .2s; }
.foot__col a:hover { color: var(--paper); }
.foot__made .dim { font-size: 14px; }
.foot__made .foot__sf { color: var(--paper); font-size: 22px; font-weight: 600; letter-spacing: -.02em; padding: 4px 0 8px; }
.foot__made .foot__sf:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; padding-bottom: 32px; background: linear-gradient(var(--line), var(--line)) top center / calc(100% - var(--gutter) * 2) 1px no-repeat; font-family: var(--mono); font-size: 12px; color: var(--fog); }
.foot__base a { color: var(--fog); text-decoration: none; }
.foot__base a:hover { color: var(--paper); }

/* Tablet */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span { width: 20px; height: 1.5px; background: var(--paper); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-menu:not([hidden]) {
    display: flex; flex-direction: column; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
  }
  .mobile-menu a:not(.btn) { padding: 14px 0; font-size: 20px; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 20px; }
  .window__body { grid-template-columns: 1fr; }
  .feed { border-right: 0; border-bottom: 1px solid var(--line); }
  .who__grid, .how__head, .out__grid, .faq__grid { grid-template-columns: 1fr; }
  .who__intro { position: static; }
  .who__art { display: none; }
  .out__art { max-width: 320px; margin: 0 auto; order: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__inner { height: 64px; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }

  .hero { padding-top: 48px; display: flex; flex-direction: column; }
  .hero__copy { order: 1; }
  .hero__hand { order: 2; position: relative; left: auto; top: auto; width: 118vw; max-width: none; margin: 8px 0 -34vw -30vw; }
  .stage { order: 3; }
  .hero h1 { margin-top: 24px; font-size: clamp(42px, 12.4vw, 56px); }
  .hero__sub { margin-top: 20px; }
  .hero__ctas { flex-direction: column; align-self: stretch; margin-top: 32px; gap: 10px; }
  .hero__ctas .btn { width: 100%; min-height: 52px; }
  .stage { margin-top: 0; background: none; border-left: 0; border-right: 0; }
  .stage__frame { border: 0; padding: 14px var(--gutter); }
  .tick { display: none; }
  .feed, .dropped { padding: 18px; }
  .dropped .hide-sm { display: none; }
  .msg--clip { display: none; }

  .who__list li { padding: 26px 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 26px 0 30px; }
  .how__art img { height: 320px; object-position: 30% 50%; }
  .strike { margin: 28px 0; }
  .post-grid {
    display: flex; gap: 12px; background: none; border: 0;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter);
  }
  .post-grid::-webkit-scrollbar { display: none; }
  .post { flex: 0 0 84%; scroll-snap-align: start; padding: 24px 20px; border: 1px solid var(--line); background: var(--surface); }
  .posts__head { margin-bottom: 28px; }
  .faq details p { padding-right: 0; }

  .join { padding: 120px 0 72px; }
  .join__art { top: 0; right: 0; transform: none; width: 104vw; opacity: .7; -webkit-mask-image: linear-gradient(200deg, #000 30%, transparent 70%); mask-image: linear-gradient(200deg, #000 30%, transparent 70%); }
  .join__inner { flex-direction: column; align-items: stretch; }
  .join__copy .btn { width: 100%; min-height: 52px; }
  .qr { display: none; }
  .join__row { display: block; }
  .foot__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .load, .hero__hand { animation: none; opacity: 1; transform: none; }
  .hero__hand { opacity: .9; }
  .live .sq { animation: none; }
  .strike li > span { transition: none; }
}
