/* Linsa website. Same colour roles as the app: pink = action, peach = personality,
   lime = activity, sky = facts. Fonts are self-hosted (no third-party requests). */

@font-face { font-family: 'Archivo'; src: url('fonts/archivo-800.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Familjen Grotesk'; src: url('fonts/familjen-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Familjen Grotesk'; src: url('fonts/familjen-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --pink: #ff6b9a;
  --pink-deep: #b81e52;
  --peach: #ffd9c2;
  --peach-ink: #9c3d14;
  --lime: #c6f24e;
  --lime-ink: #3d5400;
  --sky: #d5e4ff;
  --sky-ink: #2d4f99;
  --ink: #141414;
  --paper: #ffffff;
  --muted: #5c554c;
  --line: #e6ddcf;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Familjen Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Top bar ───────────────────────────────────────── */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 26px/1 var(--display); letter-spacing: -0.03em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.lang { font-weight: 600; font-size: 16px; }

/* ── Hero: the friend's note ───────────────────────── */
.hero { background: var(--pink); color: var(--ink); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(24px, 6vw, 72px) 0 clamp(56px, 9vw, 120px);
}
.hero h1 {
  margin: 0;
  font: 800 clamp(48px, 8.2vw, 112px)/0.92 var(--display);
  letter-spacing: -0.045em;
  max-width: 9.5ch;
}
.hero .lede { margin: 28px 0 0; max-width: 34ch; font-size: clamp(19px, 2vw, 22px); line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 18px;
  background: var(--ink); color: #fff; text-decoration: none;
  font: 600 18px/1 var(--text);
}
.btn:hover { text-decoration: none; background: #000; }
.btn svg { width: 18px; height: 18px; }
.note-small { font-size: 16px; }

/* The bubble is the logo shape, large. Its note is written the way the app writes them. */
.bubble { position: relative; justify-self: end; width: min(100%, 520px); }
.bubble svg.shape { width: 100%; height: auto; overflow: visible; }
.bubble .copy {
  position: absolute; inset: 12% 15% 27% 8%;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.bubble .from { font-weight: 600; font-size: clamp(14px, 1.5vw, 16px); color: var(--peach-ink); }
.bubble .says { margin: 0; font: 800 clamp(24px, 3.3vw, 40px)/1.08 var(--display); letter-spacing: -0.03em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.chip.activity { background: var(--lime); color: var(--ink); }
.chip.facts { background: var(--sky); color: var(--ink); }
.chip.personality { background: var(--peach); color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .bubble svg.shape { transform-origin: 22% 92%; animation: pop 900ms cubic-bezier(.2, 1.4, .4, 1) 150ms both; }
  .bubble .copy { animation: fade 500ms ease-out 650ms both; }
  .spark { transform-box: fill-box; transform-origin: center; animation: twinkle 1100ms ease-out 900ms both; }
  .spark.small { animation-delay: 1050ms; }
}
@keyframes pop { from { transform: scale(0.4) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes twinkle { 0% { transform: scale(0); } 55% { transform: scale(1.35) rotate(20deg); } 100% { transform: none; } }

/* ── How it works: one line per colour role ───────── */
.how { padding: clamp(64px, 10vw, 128px) 0; }
.how h2, .beta h2 {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font: 800 clamp(34px, 5vw, 60px)/1 var(--display);
  letter-spacing: -0.04em;
  max-width: 16ch;
}
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.roles li {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 32px; align-items: baseline;
  padding: 28px 0; border-top: 1.5px solid var(--line);
}
.roles li:last-child { border-bottom: 1.5px solid var(--line); }
.roles .chip { justify-self: start; }
.roles h3 { margin: 0; font: 800 clamp(22px, 2.6vw, 30px)/1.15 var(--display); letter-spacing: -0.025em; }
.roles p { margin: 8px 0 0; max-width: 60ch; color: var(--muted); }

/* ── Beta ─────────────────────────────────────────── */
.beta { background: var(--ink); color: #fff; padding: clamp(64px, 10vw, 120px) 0; }
.beta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.beta h2 { margin-bottom: 20px; }
.beta p { margin: 0; max-width: 46ch; color: #d6d0c8; }
.beta .btn { background: var(--pink); color: var(--ink); }
.beta .btn:hover { background: #ff85ad; }
.steps { margin: 0; padding: 0 0 0 1.2em; color: #d6d0c8; }
.steps li { padding: 4px 0; }
.steps strong { color: #fff; font-weight: 600; }

/* ── Footer ───────────────────────────────────────── */
.foot { padding: 32px 0 40px; font-size: 16px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* ── Legal pages ──────────────────────────────────── */
.legal-head { background: var(--peach); }
.legal-head h1 { margin: 0; padding: clamp(24px, 5vw, 56px) 0 clamp(36px, 6vw, 64px); font: 800 clamp(40px, 6vw, 72px)/0.95 var(--display); letter-spacing: -0.04em; }
.legal { max-width: 72ch; padding: clamp(40px, 6vw, 72px) var(--gutter) 80px; margin: 0 auto; }
.legal h2 { margin: 48px 0 12px; font: 800 26px/1.15 var(--display); letter-spacing: -0.02em; }
.legal h3 { margin: 28px 0 8px; font-size: 19px; font-weight: 600; }
.legal p, .legal li { color: #2b2723; }
.legal ul { padding-left: 1.2em; }
.legal li { padding: 3px 0; }
.legal .meta { color: var(--muted); font-size: 16px; }
.legal address { font-style: normal; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1.5px solid var(--line); }
.legal th { font-weight: 600; width: 34%; }
.table-scroll { overflow-x: auto; }

/* ── Small screens ────────────────────────────────── */
@media (max-width: 820px) {
  .hero-grid, .beta-grid { grid-template-columns: 1fr; }
  .bubble { justify-self: start; width: min(90%, 440px); }
  .roles li { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  body { font-size: 17px; }
  .bubble .copy { inset: 11% 14% 27% 7%; gap: 10px; }
  .chip { height: 28px; font-size: 14px; padding: 0 10px; }
}
