/* Dailyk — dailyk.app site styles (Poster Pop direction).
   One file for all pages: /, /join/, /privacy/, /404.html */

:root {
  --ink: #2E2233;
  --ink-soft: #3B2E47;
  --cream: #FFF5EC;
  --cream-deep: #FDF0E4;
  --paper: #FFFFFF;
  --orange: #FF6B2C;
  --orange-deep: #E5561B;
  --pink: #FF5C8A;
  --yellow: #FFC94D;
  --green: #3ED598;
  --violet: #6C5CE7;
  --blue: #4D9FFF;
  --ink-muted: rgba(255, 245, 236, 0.72);
  --ink-faint: rgba(255, 245, 236, 0.45);
  --body-muted: #6E6070;
  --hairline: rgba(46, 34, 51, 0.12);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; min-height: 100%;
  /* Блокуємо горизонтальний скрол/панорамування (iOS Safari слухає html, не body).
     clip — сучасний надійний варіант, hidden — фолбек. */
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
/* height:auto обов'язково: інакше HTML-атрибут height фіксує висоту
   при стиснутій max-width ширині → картинки деформуються. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, .display { font-family: "Unbounded", "Manrope", sans-serif; letter-spacing: -0.01em; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span {
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 19px; color: #fff;
}
.on-cream .brand span { color: var(--ink); }

/* ---------- buttons ---------- */
.btn-orange {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #fff; text-decoration: none;
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 999px;
  border: none; box-shadow: 0 4px 0 var(--orange-deep);
  transition: transform 0.06s ease;
}
.btn-orange:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-deep); }
.btn-orange.small { padding: 10px 20px; font-size: 14px; box-shadow: 0 3px 0 var(--orange-deep); }

.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  background: #fff; color: #000; text-decoration: none;
  padding: 11px 22px; border-radius: 14px; min-width: 210px;
  justify-content: center; border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}
.appstore:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.25); }
.appstore .txt { text-align: left; line-height: 1.1; }
.appstore .small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; }
.appstore .big { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.appstore.dark { background: #000; color: #fff; border-color: transparent; box-shadow: 0 4px 0 rgba(46,34,51,0.35); }

.rating { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.rating .stars { color: var(--yellow); letter-spacing: 2px; font-size: 14px; }
.ink-section .rating { color: var(--ink-muted); }

/* ---------- hero ---------- */
.ink-section { background: var(--ink); color: #fff; }
.hero { padding: 30px 0 0; }
.hero-grid { display: grid; gap: 36px; padding: 34px 0 64px; text-align: center; }
.hero h1 {
  font-size: clamp(30px, 9.4vw, 84px);
  font-weight: 700; line-height: 1.06; margin: 0;
}
.hero h1 .w-pink { color: var(--pink); }
.hero h1 .w-yellow { color: var(--yellow); }
.hero .sub {
  font-size: 17px; line-height: 1.55; color: var(--ink-muted);
  max-width: 460px; margin: 22px auto 0;
}
.hero .cta-row {
  display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px;
}
.phone {
  width: min(300px, 72vw); margin: 26px auto 0;
  border-radius: 42px; border: 10px solid #1D1524;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- marquee ribbon ---------- */
.ribbon {
  background: var(--orange); color: var(--ink);
  transform: rotate(-2deg); margin: -18px -40px 0;
  padding: 12px 0; overflow: hidden; position: relative; z-index: 2;
}
.ribbon-track {
  display: flex; gap: 0; white-space: nowrap; width: max-content;
  animation: ribbon-scroll 28s linear infinite;
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em;
}
.ribbon-track span { padding: 0 18px; }
.ribbon-track .dot { color: #fff; }
@keyframes ribbon-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } }

/* ---------- cream sections ---------- */
.cream-section { background: var(--cream); padding: 74px 0; }
.eyebrow {
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin: 0 0 14px;
}
.ink-section .eyebrow { color: var(--yellow); }
.h2 {
  font-size: clamp(24px, 6.6vw, 48px); font-weight: 700; line-height: 1.14; margin: 0 0 16px;
}
@media (min-width: 880px) { .h2 { font-size: clamp(34px, 3.4vw, 48px); } }
.lead { font-size: 16.5px; line-height: 1.6; color: var(--body-muted); max-width: 560px; margin: 0 0 8px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 34px; }
.feature-card {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 20px;
  padding: 22px 20px; box-shadow: 0 3px 0 rgba(46, 34, 51, 0.08);
}
.feature-card .chip {
  width: 44px; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.chip.c-orange { background: #FFE8DA; color: var(--orange-deep); }
.chip.c-violet { background: #EAE6FF; color: var(--violet); }
.chip.c-blue { background: #E0EEFF; color: #2277DD; }
.chip.c-green { background: #DDF7EC; color: #14A06B; }
.feature-card h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; }
.feature-card p { font-size: 14.5px; line-height: 1.55; color: var(--body-muted); margin: 0; }

/* groups */
.groups-grid { display: grid; gap: 36px; align-items: center; }
.bullets { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.bullets li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.bullets .chip { width: 38px; height: 38px; flex: 0 0 auto; margin: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--hairline); box-shadow: 0 2px 0 rgba(46,34,51,0.07); }
.plan-note { margin-top: 22px; font-size: 13.5px; color: var(--body-muted); }
.plan-note b { color: var(--orange); }
.phone-wrap { position: relative; width: min(300px, 76vw); margin: 0 auto; }
.phone-wrap .phone { width: 100%; margin: 0; }
.invite-chip {
  position: absolute; top: -16px; right: -12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--blue); border-radius: 999px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 700; color: var(--blue);
  box-shadow: 0 4px 12px rgba(46, 34, 51, 0.16);
}
.invite-chip .av { width: 20px; height: 20px; border-radius: 999px; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.av-1 { background: #E0EEFF; color: #2277DD; }
.av-2 { background: #FFE3EC; color: #D9447A; }
.av-3 { background: #DDF7EC; color: #14A06B; }

/* themes */
.themes { padding: 74px 0; }
/* Мобайл: теми одна за одною, великі; десктоп (media нижче): 4 в ряд */
.theme-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 36px; }
.theme-card { text-align: center; }
.theme-card img {
  width: min(280px, 74vw);
  border-radius: 24px; border: 6px solid #1D1524;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); margin: 0 auto;
}
.theme-pill {
  display: inline-block; margin-top: 14px; padding: 6px 16px; border-radius: 999px;
  font-family: "Unbounded", sans-serif; font-size: 12.5px; font-weight: 700;
  border: 1.5px solid; background: transparent;
}
.pill-classic { color: #A99DF5; border-color: #A99DF5; }
.pill-pop { color: var(--orange); border-color: var(--orange); }
.pill-nocturne { color: var(--blue); border-color: var(--blue); }
.pill-journal { color: var(--yellow); border-color: var(--yellow); }

/* footer CTA */
.footer-cta { text-align: center; padding: 84px 0 0; }
.footer-cta .display { font-size: clamp(26px, 4.4vw, 44px); font-weight: 700; margin: 0 0 26px; }
.footer-cta .cta-row { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.site-footer {
  margin-top: 64px; border-top: 1px solid rgba(255, 245, 236, 0.14);
  padding: 26px 0 34px; display: flex; flex-wrap: wrap; gap: 10px 26px;
  align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-faint);
}
.site-footer a { color: var(--ink-faint); text-decoration: none; }
.site-footer a:hover { color: var(--ink-muted); }

/* ---------- /join ---------- */
.join-page { min-height: 100vh; display: flex; flex-direction: column; }
.join-page .site-header { justify-content: center; }
.join-main { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px 22px 60px; }
.join-icon-wrap { position: relative; width: 96px; margin: 0 auto 26px; }
.join-icon-wrap img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4); }
.join-plus {
  position: absolute; top: -10px; right: -12px;
  width: 30px; height: 30px; border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--ink); font-family: "Manrope", sans-serif;
}
.join-main h1 { font-size: clamp(28px, 6.4vw, 42px); font-weight: 700; line-height: 1.18; margin: 0 0 14px; color: #fff; }
.join-main h1 .accent { color: var(--green); }
.join-main .sub { font-size: 15.5px; line-height: 1.55; color: var(--ink-muted); max-width: 420px; margin: 0 auto 30px; }
.join-ctas { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.join-note { margin-top: 22px; font-size: 13px; color: var(--ink-faint); }
.join-code { margin-top: 8px; font-size: 12px; color: var(--ink-faint); word-break: break-all; }

/* ---------- /privacy ---------- */
.prose-page { background: var(--cream); min-height: 100vh; }
.prose-header {
  background: var(--cream-deep); border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
}
.prose-header .container { display: flex; align-items: center; justify-content: space-between; }
.back-home { font-size: 14px; font-weight: 700; color: var(--orange); text-decoration: none; }
.prose { max-width: 680px; margin: 0 auto; padding: 52px 22px 80px; }
.prose h1 { font-size: clamp(32px, 5.5vw, 44px); margin: 0 0 6px; }
.prose .last-updated { color: var(--body-muted); font-size: 14px; margin: 0 0 34px; }
.prose h2 { font-size: 22px; margin: 38px 0 12px; scroll-margin-top: 24px; }
.prose h3 { font-size: 17px; margin: 26px 0 10px; scroll-margin-top: 24px; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.7; color: #4A3D4E; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--orange-deep); }

/* ---------- 404 ---------- */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.digits { font-family: "Unbounded", sans-serif; font-size: clamp(96px, 22vw, 160px); font-weight: 700; line-height: 1; margin: 0; }
.digits .d1 { color: var(--pink); }
.digits .d2 { color: var(--yellow); }
.digits .d3 { color: var(--green); }
.page-404 p { color: var(--ink-muted); font-size: 16px; margin: 18px 0 30px; }

/* ---------- desktop ---------- */
@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr; text-align: left; align-items: center;
    padding: 56px 0 90px;
  }
  .hero .sub { margin-left: 0; }
  .hero .cta-row { flex-direction: row; align-items: center; gap: 22px; }
  .phone { margin: 0 0 0 auto; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .groups-grid { grid-template-columns: 1.05fr 0.95fr; }
  .theme-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-cta .cta-row { flex-direction: row; justify-content: center; gap: 22px; }
}
