/* readaround landing — scrapbook brand: paper ground, ink outlines, hard offset shadows, sticker colours. */
:root {
  --paper: #F6F1E9;
  --linen: #EFE7DA;
  --white: #FFFFFF;
  --ink: #1A1714;
  --muted: #6B645B;
  --chili: #D93A22;
  --chili-text: #C2311B;
  --sun: #FFC93C;
  --mint: #9FE3C4;
  --lilac: #CDB8FF;
  --line: 2.5px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 7px 7px 0 var(--ink);
  --display: "Karantina", "Arial Narrow", sans-serif;
  --ui: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
main { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--ui);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--chili); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 50; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 10.5vw, 148px);
  line-height: .86;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
.display-lg { font-size: clamp(54px, 8vw, 112px); }
.display-md { font-size: clamp(40px, 5vw, 60px); line-height: .92; }
html[lang="en"] .display { line-height: .9; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink); max-width: 34em; margin: 0; text-wrap: pretty; }
.muted { color: var(--muted); }

/* ---------- atoms ---------- */
.pill {
  display: inline-block;
  font: 700 15px/1 var(--ui);
  padding: 9px 16px 10px;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}
.pill.mini { font-size: 12px; padding: 6px 10px 7px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
.pill-sun { background: var(--sun); }
.pill-mint { background: var(--mint); }
.pill-lilac { background: var(--lilac); }
.pill-chili { background: var(--chili); color: var(--white); }
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(3deg); }

.tape { position: absolute; width: 128px; height: 30px; opacity: .88; transform: rotate(var(--r, -3deg)); pointer-events: none; z-index: 2; }
.tape-sun { background: var(--sun); }
.tape-mint { background: var(--mint); }
.tape-lilac { background: var(--lilac); }

.card { background: var(--white); border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg); }

.btn {
  --bg: var(--chili);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg); color: var(--white);
  font: 700 17px/1 var(--ui);
  text-decoration: none;
  padding: 15px 24px 16px;
  min-height: 48px;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-small { font-size: 15px; padding: 10px 16px 11px; min-height: 42px; }
.btn-big { font-size: 19px; padding: 18px 28px 19px; width: 100%; }
.btn-ghost { --bg: var(--white); color: var(--ink); }
.btn-paper { --bg: var(--paper); color: var(--ink); width: auto; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-logo { direction: ltr; }
.nav-logo img { height: 40px; width: auto; }
.nav-end { display: flex; gap: 10px; align-items: center; }
.lang {
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px;
  font: 700 14px/1 var(--ui); padding: 0 14px; height: 42px; min-width: 52px; cursor: pointer;
}
.lang:hover { background: var(--sun); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 96px);
  max-width: 1320px; margin: 0 auto;
}
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-copy .pill { margin-bottom: 4px; }

.form-card { width: 100%; max-width: 560px; padding: clamp(18px, 3vw, 28px); margin-top: 10px; position: relative; }
.form-title { font: 700 22px/1.2 var(--ui); margin: 0 0 14px; }
#signup { display: grid; gap: 14px; }
#signup[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.field input {
  font: 400 17px/1.2 var(--ui); color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink); border-radius: 12px;
  padding: 13px 14px; min-height: 48px; width: 100%;
}
.field input::placeholder { color: #8F877D; }
.field input:focus { outline: none; background: var(--white); box-shadow: 3px 3px 0 var(--ink); }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
html[dir="rtl"] .field input[dir="ltr"]:not(:placeholder-shown) { text-align: left; }
.field input[aria-invalid="true"] { border-color: var(--chili); background: #FFF4F1; }

.platform { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.platform legend { float: inline-start; font-weight: 600; font-size: 14px; margin-inline-end: 4px; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 600; background: var(--white);
  transition: background 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.chip input:checked + span { background: var(--sun); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px) rotate(-2deg); }
.chip input:focus-visible + span { outline: 3px solid var(--chili); outline-offset: 3px; }
.platform.invalid .chip span { border-color: var(--chili); }

.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }
.form-error { margin: 0; color: var(--chili-text); font-weight: 600; font-size: 15px; }

.success { display: grid; gap: 14px; justify-items: start; }
.success[hidden] { display: none; }
.success p { margin: 0; }
.success:focus { outline: none; }

/* hero art */
.hero-art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 600px; justify-self: center; }
.carousel { width: 86%; margin: 7% auto 0; overflow: visible; }
.carousel .lent { transform-box: view-box; transform-origin: 48px 19px; animation: lend 5.2s var(--ease) infinite; }
@keyframes lend {
  0%, 14% { transform: translateY(0) rotate(0); }
  34%, 66% { transform: translateY(-20px) rotate(16deg); }
  86%, 100% { transform: translateY(0) rotate(0); }
}
.cover {
  position: absolute; width: 34%; aspect-ratio: 2 / 3;
  border: var(--line) solid var(--ink); border-radius: 4px 8px 8px 4px;
  box-shadow: var(--shadow-lg);
  padding: 12% 10%;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  transform: rotate(var(--r));
}
.cover::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 7%; width: 3px; background: rgba(26,23,20,.18); }
.cover-title { font: 700 clamp(26px, 3.4vw, 44px)/.9 var(--display); }
.cover-mint { background: var(--mint); inset-inline-end: -2%; bottom: 2%; }
.cover-lilac { background: var(--lilac); inset-inline-start: -8%; top: 6%; width: 26%; }
.cover-lilac .cover-title { font-size: clamp(22px, 2.6vw, 34px); }
.bubble {
  position: absolute; top: 2%; inset-inline-end: 0;
  background: var(--mint); border: var(--line) solid var(--ink); border-radius: 22px;
  border-end-end-radius: 6px;
  padding: 12px 18px; font-weight: 700; font-size: clamp(14px, 1.4vw, 17px);
  box-shadow: var(--shadow); transform: rotate(var(--r));
  z-index: 3;
}
.float { animation: bob 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--ink); border-block: var(--line) solid var(--ink); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 8px -12px; }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 38s linear infinite; }
html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee .pill { box-shadow: 3px 3px 0 rgba(255,255,255,.25); font-size: 17px; padding: 11px 18px 12px; border-color: var(--paper); }
.marquee .pill:nth-child(odd) { transform: rotate(-2deg); }
.marquee .pill:nth-child(even) { transform: rotate(2deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.section-head { display: grid; gap: 18px; justify-items: start; margin-bottom: clamp(32px, 5vw, 56px); }
.section-ink { max-width: none; background: var(--ink); color: var(--paper); }
.section-ink .lead { color: #D9D1C5; }
.section-ink > * { max-width: 1320px; margin-inline: auto; }

/* scrapbook of teaser posts */
.scrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.scrap figure { margin: 0; position: relative; transform: rotate(var(--r)); transition: transform 260ms var(--ease); }
.scrap figure:hover { transform: rotate(0) scale(1.03); z-index: 3; }
.scrap img { border: var(--line) solid var(--ink); border-radius: 6px; box-shadow: var(--shadow-lg); background: var(--paper); height: auto; }
.scrap .tape { top: -12px; inset-inline-start: 30%; width: 40%; height: 26px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.feature {
  border: var(--line) solid var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 18px 18px 26px; display: grid; align-content: start; gap: 10px;
}
.f-lilac { background: var(--lilac); }
.f-mint { background: var(--mint); }
.f-sun { background: var(--sun); }
.feature h3 { font: 700 clamp(30px, 3.2vw, 42px)/.95 var(--display); margin: 10px 4px 0; }
.feature p { margin: 0 4px; font-size: 16px; }
.demo { background: var(--paper); border: var(--line) solid var(--ink); border-radius: 14px; height: 230px; position: relative; overflow: hidden; display: grid; place-items: center; padding: 16px; }

.post { width: 100%; max-width: 280px; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: 12px; display: grid; gap: 10px; font-size: 14px; }
.post-head { display: flex; align-items: center; gap: 8px; }
.post-head .muted { margin-inline-start: auto; font-size: 12px; }
.av { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.post-body { display: flex; gap: 10px; align-items: center; }
.post-body p { margin: 0; line-height: 1.35; }
.mini-cover { flex: none; width: 44px; height: 64px; border: 2px solid var(--ink); border-radius: 3px; transform: rotate(-4deg); }
.post-foot { display: flex; align-items: center; gap: 10px; }
.heart { font-size: 24px; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.react { font-weight: 700; font-size: 12px; background: var(--lilac); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 10px; opacity: 0; transform: scale(.6) rotate(-6deg); }
.in .heart { animation: like 3.6s var(--ease) infinite; }
.in .react { animation: pop 3.6s var(--ease) infinite; }
@keyframes like {
  0%, 20% { color: transparent; transform: scale(1); }
  28% { color: var(--chili); transform: scale(1.35); }
  36%, 90% { color: var(--chili); transform: scale(1); }
  100% { color: transparent; }
}
@keyframes pop {
  0%, 34% { opacity: 0; transform: scale(.6) rotate(-6deg); }
  44%, 90% { opacity: 1; transform: scale(1) rotate(-6deg); }
  100% { opacity: 0; }
}

.demo-shelf { gap: 14px; }
.shelf { display: flex; align-items: flex-end; gap: 6px; height: 130px; border-bottom: 5px solid var(--ink); padding: 0 10px; }
.shelf i { display: block; width: 26px; height: var(--h); border: 2px solid var(--ink); border-radius: 3px; position: relative; }
.shelf .out { transform-origin: bottom center; }
.in .shelf .out { animation: lendout 4.4s var(--ease) infinite; }
.shelf .out .pill { position: absolute; bottom: 104%; inset-inline-start: 50%; translate: -50% 0; opacity: 0; }
html[dir="rtl"] .shelf .out .pill { translate: 50% 0; }
.in .shelf .out .pill { animation: tagshow 4.4s var(--ease) infinite; }
@keyframes lendout {
  0%, 15% { transform: translateY(0) rotate(0); }
  35%, 70% { transform: translateY(-34px) rotate(6deg); }
  90%, 100% { transform: translateY(0) rotate(0); }
}
@keyframes tagshow { 0%, 30% { opacity: 0; } 38%, 68% { opacity: 1; } 76%, 100% { opacity: 0; } }
.fake { pointer-events: none; }

.month { width: 100%; max-width: 230px; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: 12px; display: grid; gap: 10px; transform: rotate(-2deg); }
.month-title { font: 700 26px/.95 var(--display); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grid4 i { aspect-ratio: 2 / 3; border: 2px solid var(--ink); border-radius: 3px; opacity: 0; transform: translateY(-40px) rotate(-10deg); }
.in .grid4 i { animation: drop 4.8s var(--ease) infinite; }
.in .grid4 i:nth-child(2) { animation-delay: .25s; }
.in .grid4 i:nth-child(3) { animation-delay: .5s; }
.in .grid4 i:nth-child(4) { animation-delay: .75s; }
@keyframes drop {
  0% { opacity: 0; transform: translateY(-40px) rotate(-10deg); }
  12%, 82% { opacity: 1; transform: translateY(0) rotate(-3deg); }
  95%, 100% { opacity: 0; transform: translateY(0) rotate(-3deg); }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.features .reveal:nth-child(2) { transition-delay: 90ms; }
.features .reveal:nth-child(3) { transition-delay: 180ms; }

/* videos */
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.phone { margin: 0; position: relative; transform: rotate(var(--r)); }
.phone video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border: 3px solid var(--paper); border-radius: 22px; background: #2a2622;
  box-shadow: 7px 7px 0 var(--chili); cursor: pointer;
}
.phone:nth-child(2) video { box-shadow: 7px 7px 0 var(--mint); }
.phone:nth-child(3) video { box-shadow: 7px 7px 0 var(--sun); }
.phone:nth-child(4) video { box-shadow: 7px 7px 0 var(--lilac); }
.phone figcaption { margin-top: 16px; font-weight: 700; text-align: center; }
.sound {
  position: absolute; top: 12px; inset-inline-end: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); cursor: pointer;
  display: grid; place-items: center;
}
.sound::before { content: ""; width: 20px; height: 20px; background: var(--ink); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='m23 9-6 6M17 9l6 6'/%3E%3C/svg%3E"); }
.sound[aria-pressed="true"] { background: var(--sun); }
.sound[aria-pressed="true"]::before { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E"); }

/* faq */
.faq { display: grid; gap: 16px; max-width: 820px; }
.faq details { padding: 0; box-shadow: var(--shadow); border-radius: 16px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 19px; padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 28px/1 var(--ui); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* final */
.final {
  position: relative; margin: 0 var(--gutter) clamp(48px, 6vw, 80px);
  background: var(--chili); color: var(--white);
  border: var(--line) solid var(--ink); border-radius: 28px; box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 72px);
  display: grid; gap: 28px; justify-items: center; text-align: center;
  max-width: 1224px;
}
@media (min-width: 1320px) { .final { margin-inline: auto; } }
.final .display { text-shadow: 4px 4px 0 var(--ink); }
.carousel-sm { width: 120px; margin: 0; }

.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding: 28px var(--gutter) 40px; border-top: 2px solid var(--ink); font-size: 14px; color: var(--muted); }
.foot img { height: 30px; width: auto; }
.ico { width: 20px; height: 20px; flex: none; }
.social { display: flex; gap: 10px; margin-inline-start: auto; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--white); color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink); transition: transform 120ms var(--ease), box-shadow 120ms var(--ease), background 200ms var(--ease);
}
.social a:hover { background: var(--sun); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.social a:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; margin-top: 4px; border-top: 2px dashed #E3DED7; width: 100%; }
.follow-label { font-weight: 600; font-size: 15px; width: 100%; }
.social-pill { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-height: 44px; }
.social-pill:hover { background: var(--sun); }
.foot p { margin: 0; }

/* confetti: tiny book spines */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -40px; width: 10px; height: 26px; border: 2px solid var(--ink); border-radius: 2.5px; animation: fall var(--t) cubic-bezier(.25,.6,.4,1) forwards; }
@keyframes fall { to { transform: translate(var(--x), 110vh) rotate(var(--rot)); } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; width: 88%; margin-top: 4px; }
  .features { grid-template-columns: 1fr; max-width: 560px; }
  .scrap, .phones {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px var(--gutter) 28px; margin-inline: calc(var(--gutter) * -1);
    scrollbar-width: none;
  }
  .scrap::-webkit-scrollbar, .phones::-webkit-scrollbar { display: none; }
  .scrap figure, .phone { scroll-snap-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-logo img { height: 28px; }
  .nav-end { gap: 8px; }
  .lang { min-width: 44px; padding: 0 10px; }
  .nav .btn-small { font-size: 14px; padding: 10px 14px 11px; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding-top: 8px; }
  .hero-art { width: 82%; max-width: 320px; }
  .hero-art .tape { top: auto !important; bottom: 4%; inset-inline-start: 30% !important; width: 96px; }
  .scrap, .phones { grid-auto-columns: 78%; }
  .final { box-shadow: 6px 6px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .react, .grid4 i { opacity: 1; transform: none; }
}
