/* Ema Softlabs Ltd. Warm off-white always. One soft sunrise on a quiet page. */
@font-face {
  font-family: Inter;
  src: url('/fonts/inter-latin-v5-3-0.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: only light;
  --bg: #fbf9f4; --text: #141414; --soft: #45443f; --rule: #e6e3db; --panel: #f2efe8; --arc: #d3cfc5;
  --r: 36vw; --s: 0.62;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem; line-height: 1.6; overflow-wrap: break-word;
}
main { flex: 1 0 auto; width: 100%; }
p { margin: 0 0 1rem; text-wrap: pretty; }
h1, h2 { margin: 0; font-weight: 400; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
.nb { white-space: nowrap; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -100vw; }
.skip:focus { left: 1rem; top: 0.75rem; z-index: 20; padding: 0.25rem 0.5rem; background: var(--bg); }
.wrap { width: 100%; max-width: 78rem; margin: 0 auto; padding: 0 1.25rem; }

/* Menu */
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.875rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 550; letter-spacing: -0.015em; text-decoration: none; white-space: nowrap; }
.mark { width: 1.5rem; height: 1.5rem; }
.mark-sun { fill: #ff8f5e; }
.mark-line { fill: var(--text); }
.cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.cta:hover { background: #3a3a3a; }
.cta:active { background: #5a5a5a; }
.cta--big { font-size: 1rem; padding: 0 1.5rem; }

/* Mission */
.words { padding-top: 2.75rem; padding-bottom: 2.25rem; }
h1 { font-size: clamp(2.25rem, 11vw, 3.5rem); line-height: 1.05; letter-spacing: -0.035em; }
.lede { margin: 1.25rem 0 0; font-size: 1.0625rem; line-height: 1.6; }
.nf-side .cta { margin-top: 1.25rem; }

/* The visual: a day's arc over a soft sun, with what we make along it */
.sky { position: relative; height: calc(var(--r) + 4rem); overflow: hidden; background: var(--panel); border-radius: 1.75rem; }
.sun { position: absolute; left: calc(50% - var(--r) * var(--s)); bottom: calc(var(--r) * var(--s) * -1); width: calc(var(--r) * var(--s) * 2); height: calc(var(--r) * var(--s) * 2); border-radius: 50%;
  background: radial-gradient(closest-side, #fff5dc 0%, #ffe0a3 30%, #ffbd84 56%, #fb9a8c 76%, rgba(251,154,140,.45) 90%, rgba(251,154,140,0) 100%);
  isolation: isolate; }
.sun::before { content: ''; position: absolute; z-index: -1; inset: -8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,189,132,.3), rgba(255,189,132,0)); }
.arc-cover { position: absolute; left: calc(50% - var(--r) - 0.25rem); bottom: 0; width: calc(var(--r) * 2 + 0.5rem); height: calc(var(--r) + 0.25rem); background: var(--panel); transform-origin: 50% 100%; transform: rotate(180deg); }
.traveller { position: absolute; left: calc(50% - var(--r)); bottom: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); opacity: 0; }
.traveller::before { content: ''; position: absolute; left: calc(50% - 0.25rem); top: -0.25rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #ff8f5e; }
.arc { position: absolute; left: calc(50% - var(--r)); bottom: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border: 1px solid var(--arc); border-radius: 50%; }
.stop { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; width: 5rem; margin-left: -2.5rem; transform: translateY(3.2rem); }
.stop-apps { left: calc(50% - var(--r) * 0.82); bottom: calc(var(--r) * 0.574); }
.stop-games { left: 50%; bottom: var(--r); }
.stop-tools { left: calc(50% + var(--r) * 0.82); bottom: calc(var(--r) * 0.574); }
.dot { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--bg); border: 1px solid var(--rule); }
.dot svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.label { padding: 0 0.3rem; border-radius: 0.375rem; background: var(--panel); font-size: 0.9375rem; font-weight: 500; line-height: 1.3; }

/* First app */
.stop-games .label { background: none; }
.news { padding: 0.75rem 0 2.75rem; }
.news-card { position: relative; display: flex; justify-content: space-between; gap: 0.75rem; overflow: hidden; min-height: 13.5rem; padding: 1.75rem 0 1.75rem 1.5rem; background: var(--panel); border-radius: 1.75rem; }
.news-card h2 { flex: 1 1 60%; min-width: 0; font-size: clamp(1.5rem, 6.4vw, 2.25rem); line-height: 1.16; letter-spacing: -0.028em; }
.phone-wrap { flex: 0 0 auto; align-self: flex-start; width: 6.5rem; margin: 0.5rem 1.25rem -9rem 0; }
.phone { width: 100%; height: auto; }
.phone-body { fill: var(--bg); stroke: var(--arc); stroke-width: 1.5; }
.phone-notch { fill: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 1.75rem 0 0.25rem; font-size: 1rem; line-height: 1.6; }
.foot-mail { margin: 0 0 0.75rem; font-size: clamp(1.375rem, 6.6vw, 2rem); letter-spacing: -0.025em; line-height: 1.2; white-space: nowrap; }
.foot-mail a { display: inline-flex; align-items: center; min-height: 44px; border-radius: 0.5rem; }
#contact:target a { background: #ffe9d8; box-shadow: 0 0 0 0.375rem #ffe9d8; }
.legal { margin: 0 0 1rem; color: var(--soft); }
.foot-policy { margin: 0 0 1.25rem; }
.policy-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem; border: 1px solid var(--arc); border-radius: 999px; font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.policy-link:hover { background: var(--panel); }
.policy-link:active { background: var(--rule); }

/* Privacy policy page */
.policy { padding-top: 2.75rem; padding-bottom: 3rem; }
.policy-body { margin-top: 2rem; max-width: 40rem; }
.updated { margin: 0 0 1.5rem; font-size: 0.9375rem; }
.policy-body section + section { margin-top: 2rem; }
.policy-body h2 { margin-bottom: 0.5rem; color: var(--text); font-size: 1.125rem; font-weight: 550; line-height: 1.35; letter-spacing: -0.01em; }
.policy-body p:last-child { margin-bottom: 0; }

@media (min-width: 860px) {
  :root { --r: min(23vw, 19rem); --s: 0.72; }
  .wrap { padding: 0 2.5rem; }
  .top-in { padding-block: 1.25rem; }
  .words { padding-top: 5.5rem; padding-bottom: 3.5rem; }
  .lede { max-width: 30rem; font-size: 1.125rem; }
  .nf-side .cta { margin-top: 1rem; }
  .sky { border-radius: 2rem; height: calc(var(--r) + 5rem); }
  .dot { width: 3.5rem; height: 3.5rem; }
  .dot svg { width: 1.5rem; height: 1.5rem; }
  .stop { transform: translateY(3.45rem); }
  .news { padding: 1rem 0 5rem; }
  .news-card { align-items: center; min-height: 15rem; padding: 2.5rem 0 2.5rem 3rem; border-radius: 2rem; }
  .news-card h2 { max-width: 40rem; }
  .phone-wrap { width: 8rem; margin: -1.25rem 5rem -11rem 0; }
  .site-footer { padding: 2.5rem 0 2.5rem; }
  .foot-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 1rem 4rem; align-items: start; }
  .foot-mail, .legal, .foot-policy { margin: 0; }
  .legal { grid-column: 2; grid-row: 1 / span 2; max-width: 30rem; }
  .foot-policy { grid-column: 1; grid-row: 2; }
  .policy { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding-top: 5.5rem; padding-bottom: 6rem; align-items: start; }
  .policy-body { margin-top: 0; }
}

/* Side by side only where the text fits four lines: then its first capitals and last baseline meet the headline's. */
@media (min-width: 1100px) {
  .words { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .lede { margin: 0.08rem 0 0; }
}

/* Motion, home page only. Every animation runs from a hidden start back to the normal styles above,
   so if it does not run the page simply shows its final state. Only transform and opacity move. */
@media (prefers-reduced-motion: no-preference) {
  .home .top-in { animation: arrive .6s var(--ease) both; }
  .home h1 { animation: arrive .8s var(--ease) .08s both; }
  .home .lede { animation: arrive .8s var(--ease) .22s both; }
  .home .sky { animation: arrive .9s var(--ease) .34s both; }
  .home .sun { animation: sun-rise 2s var(--ease) .5s both; }
  .home .sun::before { animation: breathe 9s ease-in-out 2.5s infinite alternate; }
  .home .arc-cover { animation: arc-draw 1.6s cubic-bezier(.45,0,.55,1) .6s both; }
  .home .stop .dot { animation: pop .5s var(--ease) both; }
  .home .stop .label { animation: arrive-small .45s var(--ease) both; }
  .home .stop-apps .dot { animation-delay: 1.1s; }
  .home .stop-apps .label { animation-delay: 1.2s; }
  .home .stop-games .dot { animation-delay: 1.4s; }
  .home .stop-games .label { animation-delay: 1.5s; }
  .home .stop-tools .dot { animation-delay: 1.68s; }
  .home .stop-tools .label { animation-delay: 1.78s; }
  .home .traveller { animation: travel 28s linear 2.6s infinite; }
  .home .news-card { animation: arrive .9s var(--ease) .55s both; }
  .home .phone-wrap { animation: phone-arrive 1.1s var(--ease) .95s both; }
  .home .phone-sun { animation: phone-sun 1.8s var(--ease) 1.25s both; }
  @supports (animation-timeline: view()) {
    .home .phone { animation: phone-scroll linear both; animation-timeline: view(); animation-range: entry 5% entry 80%; }
  }
}
:root { --ease: cubic-bezier(.2,.7,.2,1); }
@keyframes arrive { from { opacity: 0; transform: translateY(16px); } }
@keyframes arrive-small { from { opacity: 0; transform: translateY(5px); } }
@keyframes pop { from { opacity: 0; transform: scale(.72); } }
@keyframes sun-rise { from { opacity: 0; transform: translateY(26%); } }
@keyframes breathe { from { opacity: .55; transform: scale(.97); } to { opacity: 1; transform: scale(1.06); } }
@keyframes arc-draw { from { transform: rotate(0deg); } to { transform: rotate(180deg); } }
@keyframes travel {
  0% { opacity: 0; transform: rotate(-88deg); }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { opacity: 0; transform: rotate(88deg); }
}
@keyframes phone-arrive { from { opacity: 0; transform: translateY(28px); } }
@keyframes phone-sun { from { transform: translateY(70px); } }
@keyframes phone-scroll { from { transform: translateY(2.5rem); } to { transform: none; } }
