/* Offy landing. Tokens are the dark values of the product (web/src/styles.css, DESIGN.md): navy backdrop, one blue accent. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/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-weight: 400 700; font-display: swap; src: url("/fonts/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; }

:root {
  --bg: #10152C; --surface: #262C4A; --surface-2: #30375A; --frame: #0B1026;
  --text: #f4f5f7; --text-2: #c9cdd6; --muted: #aeb1b7;
  --accent: #3d5cf5; --on-accent: #ffffff; --link: #8fa4ff; --link-hover: #b6c3ff; --focus: #8fa4ff; --quote: #9db1ff;
  --glass-bg: rgba(255, 255, 255, 0.10); --glass-border: rgba(255, 255, 255, 0.08); --hairline: rgba(255, 255, 255, 0.10);
  --primary-bg: #F4F4F4; --primary-fg: #1C1E21; --primary-pressed: #C9CDD6;
  --radius-pill: 999px; --radius-shot: 1.25rem;
  --gutter: 1.25rem; --max: 72rem; --gap-section: clamp(5rem, 11vw, 9rem);
  color-scheme: dark;
}
@media (min-width: 600px) { :root { --gutter: 2rem; } }
@media (min-width: 1024px) { :root { --gutter: 3rem; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--text); font: 400 1.0625rem/1.55 "Onest", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background: radial-gradient(60rem 36rem at 0% 0%, rgba(61, 92, 245, 0.30), transparent 70%) no-repeat, var(--bg);
  overflow-wrap: anywhere; /* long words and the email never widen the page at 200 % zoom */
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 2; padding: 0.5rem 1rem; background: var(--primary-bg); color: var(--primary-fg); border-radius: var(--radius-pill); }

/* top bar */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; margin-right: auto; color: var(--text); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 2.25rem; height: 2.25rem; }
.langs { display: flex; gap: 0.125rem; }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.5rem; color: var(--muted); font-size: 0.875rem; font-weight: 500; text-decoration: none; border-radius: var(--radius-pill); }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { color: var(--text); font-weight: 600; background: var(--glass-bg); }

/* buttons: the product's white pill on dark, glass for the second action */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0.5rem 1.75rem; border-radius: var(--radius-pill); background: var(--primary-bg); color: var(--primary-fg); font-weight: 600; font-size: 1.0625rem; text-decoration: none; text-align: center; }
.btn:hover { background: #fff; color: var(--primary-fg); }
.btn:active { background: var(--primary-pressed); }
.btn.glass { background: var(--glass-bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-border); }
.btn.glass:hover { background: rgba(255, 255, 255, 0.16); color: var(--text); }
.btn.small { min-height: 2.75rem; padding: 0.25rem 1.25rem; font-size: 0.9375rem; }
@media (max-width: 479px) { .top .btn { display: none; } }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* type: everything is set from the left edge; one small label, one heading, one paragraph */
.kicker { margin-bottom: 0.875rem; color: var(--link); font-size: 0.9375rem; font-weight: 500; }
h1 { max-width: 20ch; font-size: clamp(2.375rem, 6.2vw, 4.5rem); line-height: 1.04; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
h1 span { color: var(--quote); }
h2 { max-width: 20ch; font-size: clamp(1.875rem, 4.2vw, 2.875rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
section p { color: var(--text-2); text-wrap: pretty; }
section.wrap { padding-top: var(--gap-section); }

/* hero */
.hero { padding-top: clamp(1.25rem, 3.5vw, 3rem); }
.hero .lead { max-width: 38rem; margin: 0 0 2rem; color: var(--text-2); font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.5; text-wrap: pretty; }
.hero .note { max-width: 34rem; margin-top: 1.25rem; color: var(--muted); font-size: 0.9375rem; }
/* the words fill the first screen, whatever its height, and the top of the screenshots shows at its bottom edge, dim and
   out of focus: it sharpens as you scroll (below), which is the cue that there is more.
   The demo sits at a fixed place under the headline (its height changes with the example); spare room goes below. */
.intro { display: flex; flex-direction: column; min-height: calc(100svh - 7rem - 15vh); padding-bottom: 3rem; }
.intro::before { content: ""; flex: 0 1 8vh; }
.hero .duo { margin-top: 0; }
/* the hero shows the promise happening (after Aqua's „Speak, and it's done”): a message is typed, Offy's card answers, it is
   saved. Three real examples to pick; without the script the first one is simply shown. */
.hero { text-align: center; }
.hero h1, .hero .lead, .hero .note { margin-left: auto; margin-right: auto; }
.hero .cta { justify-content: center; }
.demo { width: min(30rem, 100%); margin: clamp(1.75rem, 4vw, 2.5rem) auto clamp(2rem, 5vw, 3rem); text-align: left; }
.demo-try { margin: 0.5rem 0 0.625rem; color: var(--muted); font-size: 0.875rem; text-align: center; }
.demo-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.demo-chips button { min-height: 2.75rem; padding: 0 1.125rem; border: 0; border-radius: var(--radius-pill); background: var(--surface); color: var(--text-2); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer; }
.demo-chips button[aria-pressed="true"] { background: var(--primary-bg); color: var(--primary-fg); }
.demo-chips button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.demo-stage { min-height: 15rem; margin-top: 0.875rem; }
.demo-stage .chat { width: 100%; }
.demo-stage .chat[hidden] { display: none; }
.demo-stage .chat .done { align-self: flex-start; padding: 0.4375rem 0.875rem; background: none; box-shadow: inset 0 0 0 1px var(--surface-2); color: var(--text-2); font-size: 0.875rem; border-radius: var(--radius-pill); }
.demo-stage .chat .done::before { content: "✓ "; color: var(--link); }
.demo-bar { display: none; }
.demo.live .demo-bar { display: flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0.375rem 0.375rem 0.375rem 1.125rem; border-radius: var(--radius-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--surface-2); font-size: 1.0625rem; }
.demo-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; color: var(--text); }
.demo-text::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--link); animation: caret 1s steps(2) infinite; }
.demo-send { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.demo.live .chat > * { opacity: 0; transform: translateY(0.75rem) scale(0.96); transition: opacity 0.3s ease-out, transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1); }
.demo.live .chat > .on { opacity: 1; transform: none; }
@keyframes caret { 50% { opacity: 0; } }

/* a real screen of the app, in a phone */
.phone { position: relative; width: min(19rem, 100%); margin: 0 auto; padding: 0.5rem; border-radius: 2.75rem; background: var(--frame); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2.5rem 5rem -1rem rgba(0, 0, 0, 0.55); }
.phone img { width: 100%; border-radius: 2.25rem; }
.phone::before { content: ""; position: absolute; top: calc(0.5rem + 1.6%); left: 50%; width: 27%; aspect-ratio: 3.5; transform: translateX(-50%); border-radius: var(--radius-pill); background: #05070F; }

/* one screen per feature: on a narrow screen the phone's, in a phone; from 760 the computer's, as a plain window */
.frame { position: relative; width: min(19rem, 100%); margin: 0 auto; padding: 0.5rem; border-radius: 2.75rem; background: var(--frame); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2.5rem 5rem -1rem rgba(0, 0, 0, 0.55); }
.frame img { width: 100%; border-radius: 2.25rem; }
.frame::before { content: ""; position: absolute; top: calc(0.5rem + 1.6%); left: 50%; width: 27%; aspect-ratio: 3.5; transform: translateX(-50%); border-radius: var(--radius-pill); background: #05070F; }
.window { border-radius: var(--radius-shot); box-shadow: 0 0 0 1px var(--hairline), 0 3rem 6rem -2rem rgba(0, 0, 0, 0.7); }
.window img { width: 100%; border-radius: var(--radius-shot); }
@media (min-width: 760px) {
  .frame { width: 100%; padding: 0; border-radius: var(--radius-shot); background: none; box-shadow: 0 0 0 1px var(--hairline), 0 3rem 6rem -2rem rgba(0, 0, 0, 0.7); }
  .frame img { border-radius: var(--radius-shot); }
  .frame::before { content: none; }
}

/* the one place that shows both devices (the hero): the window and the phone side by side, apart, each with its label.
   On a narrow screen only the phone is shown. */
.duo figure.web, .duo figcaption { display: none; }
@media (min-width: 760px) {
  .duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22%); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .duo figure.web, .duo figcaption { display: block; }
  .duo figcaption { margin-top: 1rem; color: var(--muted); font-size: 0.875rem; font-weight: 500; text-align: center; }
  .duo .phone { width: 100%; }
}

/* words beside a picture */
.row { display: grid; gap: 2.5rem; align-items: center; }
.row .words p:last-child { max-width: 30rem; margin-top: 1.25rem; }
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .row.flip .words { order: 2; }
}

/* words above a wide picture */
.feature .head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .feature .head { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; } .feature .head > p { max-width: 30rem; } }

/* the bot conversation, drawn (not a screenshot) */
.chat { display: flex; flex-direction: column; gap: 0.625rem; width: min(26rem, 100%); margin: 0 auto; font-size: 1.0625rem; line-height: 1.35; }
.chat > * { max-width: 86%; padding: 0.75rem 1rem; border-radius: 1.25rem; }
.chat .me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 0.375rem; }
.chat .bot { align-self: flex-start; min-width: 60%; background: var(--surface); border-bottom-left-radius: 0.375rem; }
.chat .voice { display: flex; align-items: center; gap: 0.5rem; }
.chat .voice svg { width: 6.5rem; height: 1.5rem; }
.chat small { display: block; color: var(--muted); font-size: 0.875rem; }
.chat b { font-weight: 600; font-size: 1.1875rem; }
.chat .keys { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.75rem; }
.chat .keys span { padding: 0.3125rem 0.875rem; border-radius: var(--radius-pill); background: var(--surface-2); font-size: 0.875rem; font-weight: 500; }
.chat .keys span:first-child { background: var(--primary-bg); color: var(--primary-fg); }

/* how the AI assistant behaves: the promise on the left, the four rules as rows on the right (name, then what it means) */
.ai { display: grid; gap: 2rem; margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.ai h3 { max-width: 14ch; font-size: clamp(1.625rem, 3.2vw, 2.25rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.ai h3 + p { max-width: 24rem; margin-top: 1rem; }
.rules li { display: grid; gap: 0.375rem 2rem; padding: 1.375rem 0; border-top: 1px solid var(--hairline); }
.rules li:last-child { border-bottom: 1px solid var(--hairline); }
.rules h4 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
.rules p { font-size: 1.0625rem; }
@media (min-width: 640px) { .rules li { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
@media (min-width: 1024px) { .ai { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 4rem; } }

/* your data: a statement, set as text */
.data { display: grid; gap: 2rem; }
.data ul { margin: 1.25rem 0; }
.data li { padding: 0.875rem 0; border-top: 1px solid var(--hairline); color: var(--text); }
.data li:last-child { border-bottom: 1px solid var(--hairline); }
.data strong { color: var(--text); font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 1rem; }
.links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 500; }
@media (min-width: 900px) { .data { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.closing .cta { margin-top: 2rem; }
.row > *, .feature .head > *, .data > *, .cols > * { min-width: 0; }

/* footer: small print. The identity block and the three links are required (Meta verification); they stay readable (AA) but quiet */
footer { margin-top: var(--gap-section); padding: 2rem 0 2.5rem; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 0.8125rem; line-height: 1.6; }
footer h2 { display: inline; max-width: none; font-size: inherit; line-height: inherit; font-weight: 400; letter-spacing: 0; color: inherit; }
footer h2::after { content: " "; }
footer address { display: inline; font-style: normal; }
footer a { color: var(--text-2); }
footer nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: 0.75rem; }
footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Entrances (reveal.js adds .anim to <html>, then .in to each block when it comes into the window). Played once, in time, so
   they are seen: text rises, the big screens stand up from a tilt, the conversation and the AI rules arrive one by one.
   Without the script, or with „reduce motion”, nothing here applies and the page is simply there. */
.anim :is(.intro > *, .row .words, .row > .phone, .feature .head, .ai > div, .data > *, .closing > *) { opacity: 0; transform: translateY(3.5rem); transition: opacity 0.8s ease-out, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.anim :is(.intro > *, .row .words, .row > .phone, .feature .head, .ai > div, .data > *, .closing > *).in { opacity: 1; transform: none; }
.anim .intro > :nth-child(2) { transition-delay: 0.1s; } .anim .intro > :nth-child(3) { transition-delay: 0.22s; }
.anim .intro > :nth-child(4) { transition-delay: 0.34s; } .anim .intro > :nth-child(5) { transition-delay: 0.42s; }
.anim .data > :nth-child(2), .anim .row > .phone { transition-delay: 0.15s; }

.anim .feature > .frame { opacity: 0; transform: perspective(70rem) rotateX(24deg) translateY(5rem) scale(0.86); transform-origin: 50% 100%; transition: opacity 0.7s ease-out, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.anim .feature > .frame.in { opacity: 1; transform: none; }

.anim .row > .chat > * { opacity: 0; transform: translateX(-2.5rem) scale(0.8); transform-origin: 0 100%; transition: opacity 0.35s ease-out, transform 0.55s cubic-bezier(0.3, 1.4, 0.5, 1); }
.anim .row > .chat > .me { transform: translateX(2.5rem) scale(0.8); transform-origin: 100% 100%; }
.anim .row > .chat.in > * { opacity: 1; transform: none; }
.anim .row > .chat > :nth-child(1) { transition-delay: 0.2s; } .anim .row > .chat > :nth-child(2) { transition-delay: 0.9s; }
.anim .row > .chat > :nth-child(3) { transition-delay: 1.9s; } .anim .row > .chat > :nth-child(4) { transition-delay: 2.6s; }
.anim section.row { overflow-x: clip; } /* a bubble on its way in never widens the page */

.anim .rules li { opacity: 0; transform: translateX(3rem); transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.anim .rules.in li { opacity: 1; transform: none; }
.anim .rules { overflow-x: clip; }
.anim .rules li:nth-child(2) { transition-delay: 0.15s; } .anim .rules li:nth-child(3) { transition-delay: 0.3s; } .anim .rules li:nth-child(4) { transition-delay: 0.45s; }

/* Slow connections. The text is in the HTML and shows at once; what arrives late is the pictures. Each keeps its place
   (width and height are set) and shimmers until its image covers it; a thin bar at the top runs while the page is loading. */
.phone img, .window img, .frame img { background: linear-gradient(100deg, var(--surface) 40%, var(--surface-2) 50%, var(--surface) 60%) 0 0 / 300% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .phone img, .window img, .frame img { animation: shimmer 1.6s linear infinite; }
  @keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
}
html.loading::before, html.loaded::before { content: ""; position: fixed; z-index: 10; top: 0; left: 0; height: 3px; width: 100%; background: var(--link); transform-origin: 0 50%; }
html.loading::before { transform: scaleX(0); animation: loadbar 12s cubic-bezier(0.1, 0.6, 0.2, 1) 0.4s forwards; }
html.loaded::before { transform: scaleX(1); opacity: 0; transition: opacity 0.4s 0.15s; }
@keyframes loadbar { to { transform: scaleX(0.92); } }

/* the line that offers the visitor's own language on the English page (reveal.js) */
.langbar { margin: 0; padding: 0.625rem var(--gutter); background: var(--surface); color: var(--text-2); font-size: 0.9375rem; text-align: center; }
.langbar a { display: inline-block; padding: 0.375rem 0; color: var(--text); font-weight: 600; }

/* Every block comes into focus with the scroll, as if from far away: dim, blurred and smaller at the bottom edge of the
   window, sharp and full size by the time it is a third of the way up (CSS only, tied to the scroll position; it runs
   backwards when scrolling up). Pictures travel further than text. These override the timed entrances above; without
   scroll timelines (older browsers) those stay, and with „reduce motion” everything is simply there. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes focus { from { opacity: 0.3; filter: blur(16px); transform: scale(0.93); } }
    /* the pictures also stand up from lying back, as in the timed entrance */
    @keyframes focus-far { from { opacity: 0.2; filter: blur(18px); transform: perspective(70rem) rotateX(24deg) translateY(5rem) scale(0.86); } }
    @keyframes focus-text { from { opacity: 0; filter: blur(10px); transform: scale(0.96) translateY(2rem); } }
    .hero .duo { transform-origin: 50% 0; animation: focus linear both; animation-timeline: view(); animation-range: entry 0% cover 38%; }
    /* ends when the picture is fully inside the window, a point every picture reaches however tall the window is */
    .feature > .frame, .row > .phone, .row > .chat { transform-origin: 50% 100%; animation: focus-far linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    /* not the last two sections: at the end of the page they cannot travel far enough to finish, and would stay blurred.
       They keep the timed entrance. */
    .row .words, .feature .head, .ai > div, .rules { animation: focus-text linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
  }
}
