/* Pinsetter AI — landing page (concept 02 · Ink on watercolor paper) */

:root {
  --paper: #F3F2EE;
  --paper-glass: rgba(246, 245, 242, 0.78);
  --ink: #17191C;
  --ink-soft: #3A3D42;
  --ink-muted: #4A4D52;
  --on-ink: #F5F2EA;
  --accent: #2B4672;
  --wash: #3D5C92;
  --rule: rgba(23, 25, 28, 0.18);
  --serif: 'Gloock', Georgia, 'Times New Roman', serif;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink); }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Page shell & paper texture ---------- */
.page { position: relative; overflow: hidden; min-height: 100vh; }

.svg-defs { position: absolute; width: 0; height: 0; }

.paper-texture {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; mix-blend-mode: multiply; opacity: 0.32;
}

.inked { filter: url(#ink-rough); }

.container { max-width: var(--max); margin: 0 auto; }

section, footer, .divider { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.cta {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 18px 26px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font: 500 18px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.cta:hover { color: var(--on-ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 25, 28, .22); }
.cta--sm { padding: 12px 20px; font-size: 15px; }

/* ---------- Nav ---------- */
.site-header { position: sticky; top: 14px; z-index: 10; padding: 0 24px; margin-top: 14px; }
.nav {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 8px 8px 8px 20px;
  background: var(--paper-glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(23, 25, 28, 0.12); border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__name { font-family: var(--serif); font-size: 22px; }
.nav__links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.nav__link { font-size: 15px; text-decoration: none; padding: 12px 14px; }

@media (max-width: 720px) {
  .site-header { top: 8px; margin-top: 8px; padding: 0 12px; }
  .nav { border-radius: 24px; padding: 8px 8px 8px 16px; }
  .nav__link { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 88px 24px 112px; }
.hero__inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; }
.hero__copy { position: relative; flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero__title {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6vw, 60px); line-height: 1.02; letter-spacing: -0.015em;
}
.hero__title > span { display: block; }
.hero__title em { font-style: normal; text-decoration: underline 3px; text-underline-offset: 10px; }
.hero__lede { margin: 0; font-size: 21px; line-height: 1.55; color: var(--ink-soft); max-width: 480px; }

/* Slot reserved for the hero illustration — drop an <img> inside .hero__art */
.hero__art { flex: 0 0 242px; align-self: center; width: 242px; min-height: 216px; margin-left: auto; display: flex; justify-content: center; align-items: center; }
.hero__art:empty { display: none; }
.hero__art img { width: 100%; height: auto; display: block; }

/* Headline carousel */
.rotator { height: 1.18em; overflow: hidden; white-space: nowrap; }
.rotator__track { display: flex; flex-direction: column; }
.rotator__track > span { display: block; height: 1.18em; line-height: 1.18em; }
.rotator__track.is-animating { transition: transform .7s cubic-bezier(.7, 0, .3, 1); }
.hl {
  color: inherit; padding: 0 .08em; margin: 0 -.08em;
  background: linear-gradient(transparent 58%, rgba(61, 92, 146, .2) 58%, rgba(61, 92, 146, .2) 90%, transparent 90%);
}

/* Longest item ("Qwen 3.8 Flash Next") must fit a phone width */
@media (max-width: 520px) {
  .rotator { font-size: .72em; }
}

/* ---------- Section scaffolding ---------- */
.divider { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.divider svg { display: block; width: 100%; height: 10px; }

.section { padding: 112px 24px; }
.section__stack { display: flex; flex-direction: column; gap: 48px; }
.section__head { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.08; max-width: 820px; }

/* ---------- How it works ---------- */
.how .section__stack { gap: 64px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 56px; }
.pillar { display: flex; flex-direction: column; gap: 18px; }
.pillar h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.pillar p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }

/* ---------- What's included ---------- */
.included {
  padding: 104px 24px;
  background: rgba(23, 25, 28, 0.035);
  border-top: 1px solid rgba(23, 25, 28, 0.08);
  border-bottom: 1px solid rgba(23, 25, 28, 0.08);
}
.included__stack { display: flex; flex-direction: column; gap: 40px; }
.included__layout { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
/* Reserved space for the section illustration */
.included__art { flex: 1 1 380px; min-width: 0; min-height: 340px; display: flex; align-items: center; justify-content: center; }
.included__art img { width: 100%; height: auto; display: block; }
.included__list { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.included__item { display: flex; flex-direction: column; gap: 12px; }
.included__title { display: flex; align-items: baseline; gap: 14px; }
.included__num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent); }
.included__item h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 30px); line-height: 1.15; }
.included__item p { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.included__rule { display: block; width: 100%; height: 8px; }

/* On phones, collapse the empty illustration slot until artwork is added */
@media (max-width: 720px) {
  .included__art:empty { display: none; }
}

/* ---------- Supported software ---------- */
.software { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px 56px; align-items: start; }
.software__group { display: flex; flex-direction: column; gap: 8px; }
.software__group h3 {
  margin: 0; padding-bottom: 14px; border-bottom: 2px solid var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.software__group ul { margin: 0; padding: 0; list-style: none; }
.software__group li { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.software__name { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.software__desc { font-size: 15px; color: var(--ink-muted); }
.and-more { margin: 0; font-family: var(--serif); font-size: 32px; line-height: 1.1; color: var(--accent); }

/* ---------- Notify ---------- */
.notify { padding: 120px 24px 136px; }
.notify__inner { position: relative; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.notify__wash { position: absolute; left: 50%; top: 50%; width: 720px; max-width: 120%; height: auto; transform: translate(-50%, -50%); z-index: -1; }
.notify__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 72px); line-height: 1.04; text-wrap: balance; }

.signup {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 10px;
  width: 100%; max-width: 640px; text-align: left;
}
.signup__input {
  min-width: 0; height: 52px; padding: 0 20px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: rgba(255, 255, 255, 0.55); color: var(--ink);
  font: 400 16px var(--sans);
}
.signup__input::placeholder { color: #6A6D72; }
.signup__input[aria-invalid="true"] { border-color: #8A2A1B; }
.signup__submit { height: 52px; padding: 0 24px; font-size: 16px; justify-content: center; white-space: nowrap; }
.signup__submit:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.signup__status { grid-column: 1 / -1; margin: 4px 0 0; min-height: 1.4em; font-size: 15px; color: var(--ink-soft); text-align: center; }
.signup__status[data-state="error"] { color: #8A2A1B; }

@media (max-width: 640px) {
  .signup { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 28px 24px 40px; border-top: 1px solid rgba(23, 25, 28, 0.12); }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--ink-muted); }
.site-footer .brand__name { font-size: 18px; color: var(--ink); }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--accent); }

/* ---------- Analytics consent banner ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 720px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-radius: 16px;
  background: var(--paper); border: 1px solid var(--rule);
  box-shadow: 0 10px 30px rgba(23, 25, 28, 0.14);
  font-size: 15px; line-height: 1.45; color: var(--ink-soft);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 320px; }
.consent__actions { display: flex; gap: 10px; }
.consent__btn {
  font: 500 15px/1 var(--sans); padding: 12px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink);
}
.consent__btn--ghost { background: transparent; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rotator__track.is-animating { transition: none; }
  .cta { transition: none; }
}
