/* Popsy on popsy.co. Values follow Transkripcija's Miha UI preset (white, ink text, one warm orange, Clash Grotesk
   headings), so the page looks like Transkripcija's site. */
@font-face {
  font-family: "Clash Grotesk";
  src: url("/fonts/clash-grotesk-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #ffffff;
  --foreground: #0d0d0d;
  --muted-foreground: #5d5d5d;
  --band: #f7f7f7;
  --card: #ffffff;
  --border: rgba(13, 13, 13, 0.1);
  --border-strong: rgba(13, 13, 13, 0.15);
  --brand: #d33a13;
  --brand-hover: #bf2e0b;
  --brand-foreground: #ffffff;
  --brand-soft: #fae7e3;
  --brand-text: #c92f01;
  --primary: #181818;
  --primary-foreground: #ffffff;
  --ok: #1a7f37;
  --err: #c92f01;
  --radius-card: 16px;
  --radius-control: 10px;
  --font-sans: ui-sans-serif, -apple-system, system-ui, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --font-display: "Clash Grotesk", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 16px/1.5 var(--font-sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); }
h1, h2, h3 { margin: 0; color: var(--foreground); }
h1, h2 { font-family: var(--font-display); font-weight: 700; }
h3 { font: 600 20px/1.3 var(--font-sans); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--primary); color: var(--primary-foreground); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.mark { display: inline-flex; align-items: center; gap: 2px; font: 700 28px/1 var(--font-display); color: var(--foreground); text-decoration: none; letter-spacing: -0.015em; }
.mark .logo { width: 32px; height: auto; margin-right: 8px; }
.mark .dot { order: 2; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); align-self: flex-end; margin: 0 0 5px 2px; }
.top-cta, button, .button {
  font: 600 16px/1 var(--font-sans); padding: 13px 18px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-foreground); text-decoration: none; white-space: nowrap; display: inline-block;
}
.top-cta:hover, button:hover, .button:hover { background: var(--brand-hover); }
button[disabled] { opacity: 0.6; cursor: progress; }

/* hero */
.hero { text-align: center; padding-top: 56px; padding-bottom: 72px; }
.hero-text { max-width: 760px; margin: 0 auto; }
.eyebrow { display: inline-block; margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-text); background: var(--brand-soft); padding: 4px 10px; border-radius: 4px; }
h1 { font-size: clamp(42px, 7vw, 68px); line-height: 0.98; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--brand); display: block; }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted-foreground); margin: 22px auto 30px; max-width: 600px; }

/* form */
.join { max-width: 540px; margin: 0 auto; text-align: left; }
.join .row { display: flex; gap: 10px; }
.join input[type=email], .join input[type=text] {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: var(--radius-control);
  border: 1px solid var(--border-strong); background: var(--card); color: var(--foreground);
}
.join input:focus { outline: none; border-color: var(--foreground); box-shadow: 0 0 0 3px var(--brand-soft); }
.join .small { margin-top: 10px; align-items: center; font-size: 15px; color: var(--muted-foreground); }
.join .small label { white-space: nowrap; }
.join .small input[type=text] { padding: 9px 12px; font-size: 15px; }
.hp { position: absolute; left: -9999px; }
.note { margin: 12px 0 0; font-size: 14px; color: var(--muted-foreground); min-height: 1.5em; text-align: center; }
.note.ok { color: var(--ok); font-weight: 600; font-size: 16px; }
.note.err { color: var(--err); font-weight: 600; }
.join.done .row { display: none; }

.cta-row { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; }
.button.big { font-size: 18px; padding: 16px 34px; border-radius: 10px; }
.link { color: var(--foreground); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* sign-up pop-up */
dialog.signup { width: min(460px, calc(100vw - 32px)); border: 0; border-radius: 20px; padding: 28px 26px 22px; background: var(--card); color: var(--foreground); box-shadow: 0 30px 80px -20px rgb(13 13 13 / 0.45); }
dialog.signup::backdrop { background: rgb(13 13 13 / 0.45); }
dialog.signup:target:not([open]) { display: block; position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 20; }
dialog.signup h2 { text-align: left; font-size: 32px; margin: 0 0 8px; }
dialog.signup .eyebrow { margin-bottom: 12px; }
dialog.signup .pop-logo { display: block; width: 44px; height: auto; margin-bottom: 14px; }
dialog.signup .intro { margin: 0 0 18px; color: var(--muted-foreground); }
dialog.signup .close { position: absolute; top: 12px; right: 16px; font-size: 28px; line-height: 1; color: var(--muted-foreground); text-decoration: none; }
dialog.signup .close:hover { color: var(--foreground); }
dialog .join { max-width: none; }
dialog .field { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
dialog .field span { font-weight: 400; color: var(--muted-foreground); }
dialog .join input[type=email], dialog .join input[type=text] { width: 100%; margin-bottom: 14px; }
dialog .join button { width: 100%; font-size: 17px; padding: 15px; }
dialog .note { text-align: left; }

/* example day */
.feed { max-width: 620px; margin: 56px auto 0; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 18px; box-shadow: 0 24px 60px -30px rgb(13 13 13 / 0.25); }
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 700 22px/1.2 var(--font-display); padding: 2px 4px 14px; }
.feed-head > span:first-child { white-space: nowrap; }
.pill { font: 600 12px/1 var(--font-sans); letter-spacing: 0.04em; background: var(--brand-soft); color: var(--brand-text); padding: 6px 9px; border-radius: 4px; white-space: nowrap; }
.source { background: var(--band); border-radius: 12px; padding: 12px 14px; margin-bottom: 6px; }
.source p, .inbox p { margin: 0; }
.source .label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
.source .title { font-weight: 600; font-size: 17px; margin-top: 2px; }
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { display: grid; grid-template-columns: 108px 1fr auto; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--border); font-size: 14px; }
.posts li:first-child { border-top: 0; }
.posts .ch { font-weight: 700; }
.posts span:nth-child(2) { color: var(--muted-foreground); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.posts .ok { color: var(--ok); font-weight: 700; }
.posts .wait { font: 600 12px/1 var(--font-sans); background: var(--primary); color: var(--primary-foreground); padding: 6px 10px; border-radius: 9999px; }
.langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-top: 1px solid var(--border); padding: 10px 4px; font-size: 13px; color: var(--muted-foreground); }
.langs b { font: 700 12px/1 var(--font-sans); color: var(--brand-text); background: var(--brand-soft); padding: 5px 7px; border-radius: 4px; }
.inbox { background: var(--band); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.inbox p + p { margin-top: 4px; }
.feed figcaption { font-size: 13px; color: var(--muted-foreground); text-align: center; padding-top: 8px; }

/* icons */
.i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.tile { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.tile .i { width: 24px; height: 24px; }
.tile.big { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 12px; }
.tile.big .i { width: 34px; height: 34px; }
.platforms { list-style: none; padding: 0; margin: 28px 0 0; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.platforms li { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--band); color: var(--foreground); border: 1px solid var(--border); }
.platforms .i { width: 19px; height: 19px; }
.posts .ch { display: inline-flex; align-items: center; gap: 6px; }
.posts .ch .i { width: 14px; height: 14px; }

/* one in, many out */
.flow { padding-top: 8px; padding-bottom: 80px; }
.flow-grid { display: grid; grid-template-columns: 220px 1fr 300px; align-items: center; max-width: 860px; margin: 0 auto; }
.flow-in { text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px 18px; box-shadow: 0 18px 40px -28px rgb(13 13 13 / 0.3); }
.flow-in p { margin: 0; }
.flow-k { font: 700 22px/1.2 var(--font-display); }
.flow-v { color: var(--muted-foreground); font-size: 14px; margin-top: 4px !important; }
.flow-lines { width: 100%; height: 300px; }
.flow-lines path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 4 5; opacity: 0.55; vector-effect: non-scaling-stroke; }
.flow-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.flow-out li { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; height: 42px; font-size: 15px; }
.flow-out b { font-weight: 600; }
.flow-out span { margin-left: auto; color: var(--muted-foreground); font-size: 13px; }
.flow-out .i { width: 18px; height: 18px; }
.flow-langs { text-align: center; color: var(--muted-foreground); margin: 26px 0 0; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.flow-langs .i { color: var(--brand); }

/* sections */
h2 { font-size: clamp(32px, 4.5vw, 44px); line-height: 1.05; letter-spacing: -0.02em; text-align: center; margin-bottom: 36px; }
.how { background: var(--band); max-width: none; padding-top: 72px; padding-bottom: 80px; }
.steps, .cards, .promises { list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li, .cards li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.steps .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--brand-foreground); font-weight: 600; font-size: 13px; margin-right: 8px; vertical-align: 2px; }
.steps p, .cards p, .promises p { margin: 12px 0 0; color: var(--muted-foreground); }
.night { padding: 80px 0; }
.promise { padding-top: 0; padding-bottom: 40px; }
.promises li { border-top: 2px solid var(--foreground); padding-top: 16px; }
.again { text-align: center; padding-top: 56px; padding-bottom: 80px; }
.again h2 { margin-bottom: 10px; }
.again p { color: var(--muted-foreground); margin: 0 0 24px; font-size: 18px; }
.foot { border-top: 1px solid var(--border); padding-top: 22px; padding-bottom: 36px; font-size: 14px; color: var(--muted-foreground); }
.foot p { margin: 0; }

/* privacy page */
.doc { max-width: 720px; padding-top: 32px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); margin-bottom: 18px; }
.doc h2 { font-size: 26px; margin: 34px 0 8px; text-align: left; }
.doc .remove { margin: 12px 0 0; }
.doc .note { text-align: left; }

@media (max-width: 860px) {
  .steps, .cards, .promises { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; padding-bottom: 56px; }
  .how, .night { padding-top: 56px; padding-bottom: 56px; }
  .join .small { flex-wrap: wrap; }
  .flow-grid { grid-template-columns: 1fr; max-width: 420px; }
  .flow-lines { display: none; }
  .flow-out { position: relative; margin-top: 44px; }
  .flow-out::before { content: ""; position: absolute; left: 50%; top: -38px; height: 30px; border-left: 2px dashed var(--brand); opacity: 0.55; }
}
@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .join .fields { flex-direction: column; }
  .join button { width: 100%; }
  .top-cta { padding: 10px 12px; font-size: 14px; }
  .lede { font-size: 17px; }
  .posts li { grid-template-columns: 100px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
