/* Our Place website. Colours follow the app (mobile/src/lib/theme.ts) and the icon:
   periwinkle and rose are the two partners. */

@font-face {
  font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/onest-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light dark;
  --paper: #F7F8FC;
  --surface: #FFFFFF;
  --ink: #263149;
  --muted: #5D6781;
  --line: #E3E7F0;
  --a: #6576BE;          /* partner one, brand */
  --b: #C9638D;          /* partner two, the heart */
  --on-partner: #FFFFFF;
  --link: #4A5AA3;
  --tint: #E8EEFA;
  --rose-tint: #F8E8EE;
  --shadow: rgba(38, 49, 73, 0.22);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12151C;
    --surface: #1C2130;
    --ink: #E7EAF2;
    --muted: #9AA3B8;
    --line: #2C3345;
    --a: #8FA8E3;
    --b: #E39BBB;
    --on-partner: #10172A;
    --link: #A9BCEB;
    --tint: #1E2A44;
    --rose-tint: #3A2230;
    --shadow: rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 Onest, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'ss01' 0;
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--a); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 680; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; display: block; }
.langs { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.langs a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 0.875rem; font-weight: 550; }
.langs a:hover { color: var(--ink); background: var(--tint); }
.langs a[aria-current] { color: var(--ink); background: var(--tint); }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 720; max-width: 13ch; }
.lead { margin-top: 24px; font-size: 1.25rem; line-height: 1.5; color: var(--muted); max-width: 36ch; }
.soon { margin-top: 28px; font-weight: 560; }

/* The shared list: two partners tick items off on load. Final state is the default,
   the animation only plays the way there, so reduced motion shows the end result. */
.demo { margin: 0; justify-self: end; width: min(100%, 360px); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 22px 20px 20px; box-shadow: 0 30px 60px -30px var(--shadow); }
.demo-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; }
.demo-head strong { font-size: 1.25rem; font-weight: 680; letter-spacing: -0.01em; }
.pair { display: flex; }
.pair .av + .av { margin-left: -5px; box-shadow: 0 0 0 2px var(--surface); }
.av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 0.8125rem; font-weight: 650; font-style: normal; color: var(--on-partner); background: var(--a); flex: none; }
.av.b { background: var(--b); }
.demo ul { list-style: none; margin: 0; padding: 0; }
.demo li { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line); }
.demo li span { flex: 1; }
.box { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; position: relative; }
.done .box { border-color: var(--a); background: var(--a); }
.done.by-b .box { border-color: var(--b); background: var(--b); }
.done .box::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--on-partner); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted); }
.done .av { width: 22px; height: 22px; font-size: 0.6875rem; }
.balance { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--tint); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 0.9375rem; }
.balance span { color: var(--muted); }
.balance strong { font-weight: 650; }

@keyframes fill { from { background: transparent; border-color: var(--line); } }
@keyframes check { from { opacity: 0; } }
@keyframes strike { from { color: var(--ink); text-decoration-color: transparent; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.done .box { animation: fill 0.3s ease-out both; }
.done .box::after { animation: check 0.2s ease-out both; }
.done span { animation: strike 0.3s ease-out both; }
.done .av { animation: pop 0.3s cubic-bezier(0.3, 1.5, 0.6, 1) both; }
.t1 .box, .t1 span, .t1 .av { animation-delay: 0.8s; }
.t1 .box::after { animation-delay: 0.9s; }
.t2 .box, .t2 span, .t2 .av { animation-delay: 1.5s; }
.t2 .box::after { animation-delay: 1.6s; }
.balance { animation: rise 0.45s ease-out 2.2s both; }
@media (prefers-reduced-motion: reduce) {
  .demo *, .demo *::after { animation: none !important; }
}

/* ---------------------------------------------------------------- features */
.features { padding-top: 24px; padding-bottom: 88px; }
.features h2 { font-size: clamp(1.5rem, 3.2vw, 2.125rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; max-width: 28ch; }
.features dl { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; margin: 48px 0 0; }
.features dl div { border-top: 1px solid var(--line); padding-top: 16px; }
.features dt { font-weight: 650; font-size: 1.125rem; }
.features dd { margin: 6px 0 0; color: var(--muted); max-width: 46ch; }
.sync { margin-top: 48px; font-size: 1.125rem; font-weight: 520; max-width: 52ch; }

.premium { background: var(--rose-tint); border-radius: 28px; padding: 40px 48px; margin-bottom: 24px; }
.premium h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
.premium p { margin-top: 12px; max-width: 62ch; }
.private { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px 56px; background: var(--tint); border-radius: 28px; padding: 48px; margin-bottom: 72px; }
.private h2 { font-size: clamp(1.5rem, 3.2vw, 2.125rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; }
.private p + p { margin-top: 16px; color: var(--muted); font-size: 0.9375rem; }

/* ---------------------------------------------------------------- documents */
.doc { padding-top: 40px; padding-bottom: 80px; }
.doc h1 { max-width: 22ch; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.doc .updated { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.doc .intro { margin-top: 24px; font-size: 1.1875rem; line-height: 1.55; max-width: 60ch; }
.doc h2 { margin-top: 2.4em; font-size: 1.25rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
.doc h2 + p, .doc h2 + ol, .doc h2 + ul { margin-top: 10px; }
.doc p + p { margin-top: 1em; }
.doc p, .doc li, .doc h2 { max-width: 68ch; }
.doc ol, .doc ul { padding-left: 1.4em; margin: 0; }
.doc li + li { margin-top: 8px; }
.doc ol li::marker { font-weight: 650; color: var(--a); }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 28px; padding-bottom: 40px; font-size: 0.9375rem; color: var(--muted); }
.foot p { text-align: right; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; padding-bottom: 72px; }
  .demo { justify-self: start; }
  .features dl { grid-template-columns: 1fr; gap: 24px; }
  .private { grid-template-columns: 1fr; padding: 32px 24px; }
  .premium { padding: 32px 24px; }
  .foot p { text-align: left; }
}
@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .lead { font-size: 1.125rem; }
  .private, .premium { border-radius: 22px; margin-left: -4px; margin-right: -4px; }
}
