/* olict.com home — six full-screen pages, one gesture = one page.
   Each page carries its own skin (data-world on the <section>); <html data-world> follows
   the active page so the top bar, pager and background morph with it. */

/* ── skins ───────────────────────────────────────────── */
:root, [data-world="base"] {           /* OLICT — neutral ink */
  --bg: #121212; --tile: #1B1B1B; --line: #2A2A2A; --line2: #343434;
  --text: #ECEBE8; --muted: #9B9A97; --faint: #6F6E6B;
  --accent: #ECEBE8; --on-accent: #121212; --accent-fill: rgba(236, 235, 232, .08);
  --r: 16px; --rb: 10px;
  --font: 'Geist', -apple-system, sans-serif; --hfont: 'Geist', -apple-system, sans-serif; --hw: 600; --ht: -.045em;
  color-scheme: dark;
}
[data-world="gold"] {                  /* AltınDesk — Graphite Gold */
  --bg: #141414; --tile: #1C1C1C; --line: #2A2A2A; --line2: #343434;
  --text: #ECEBE8; --muted: #9B9A97; --faint: #6F6E6B;
  --accent: #D8B25C; --on-accent: #141414; --accent-fill: rgba(216, 178, 92, .1);
  --r: 18px; --rb: 10px;
  --font: 'Inter', -apple-system, sans-serif; --hfont: 'Inter', -apple-system, sans-serif; --hw: 700; --ht: -.04em;
  color-scheme: dark;
}
[data-world="site"] {                  /* Ponte — Lime Workshop */
  --bg: #0E120F; --tile: #151B16; --line: #222B23; --line2: #2E3A2F;
  --text: #E9EFE6; --muted: #8F9C8C; --faint: #5F6B5D;
  --accent: #C6F36B; --on-accent: #0E120F; --accent-fill: rgba(198, 243, 107, .08);
  --r: 12px; --rb: 6px;
  --font: 'Space Grotesk', -apple-system, sans-serif; --hfont: 'Space Grotesk', -apple-system, sans-serif; --hw: 700; --ht: -.04em;
  color-scheme: dark;
}
[data-world="office"] {                /* Presenza — Notion Light */
  --bg: #FFFFFF; --tile: #F7F6F3; --line: #EDECE9; --line2: #E3E2DE;
  --text: #37352F; --muted: #787774; --faint: #9B9A97;
  --accent: #2383E2; --on-accent: #FFFFFF; --accent-fill: rgba(35, 131, 226, .08);
  --r: 12px; --rb: 6px;
  --font: 'Inter', -apple-system, sans-serif; --hfont: 'Inter', -apple-system, sans-serif; --hw: 700; --ht: -.04em;
  color-scheme: light;
}
[data-world="industry"] {              /* Linea — Mono Signal */
  --bg: #0A0A0A; --tile: #0A0A0A; --line: #3A3A3A; --line2: #3A3A3A;
  --text: #F2F2F2; --muted: #9A9A9A; --faint: #6A6A6A;
  --accent: #FF5A1F; --on-accent: #0A0A0A; --accent-fill: rgba(255, 90, 31, .1);
  --r: 0px; --rb: 0px;
  --font: 'JetBrains Mono', ui-monospace, monospace; --hfont: 'Space Grotesk', -apple-system, sans-serif; --hw: 700; --ht: -.055em;
  color-scheme: dark;
}
:root {
  --ez: cubic-bezier(.76, 0, .24, 1);    /* page moves */
  --eo: cubic-bezier(.2, .7, .1, 1);     /* things arriving */
  --dur: 1.05s;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ── base ────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow: hidden; overscroll-behavior: none; color: var(--text); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── the bar and counter live inside each page, so they move with it (no lag) ── */
.pg-head { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 28px 14px; font-family: var(--font); color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px var(--font); letter-spacing: -.01em; text-decoration: none; }
.mark { width: 24px; height: 24px; border-radius: var(--rb); background: var(--accent); position: relative; }
.mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2.5px solid var(--on-accent); }
.pg[data-world="industry"] .mark::after { border-radius: 0; }
.top-r { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line2); border-radius: var(--rb); padding: 2px; }
.lang button { background: none; border: 0; border-radius: calc(var(--rb) - 2px); min-width: 32px; min-height: 30px; font-size: 12px; font-weight: 500; color: var(--faint); cursor: pointer; transition: color .2s, background-color .2s; }
.lang button[aria-pressed="true"] { color: var(--text); background: var(--accent-fill); }
.pg-count { position: absolute; left: 28px; bottom: calc(env(safe-area-inset-bottom) + 24px); z-index: 3; font: 400 12px var(--mono); color: var(--muted); }
.pg-count b { display: inline-block; font-weight: 500; color: var(--text); }

/* Safari 26 ignores theme-color and tints its own bars from fixed strips touching the
   edges; main.js recolours each strip as the sweep passes it */
.tint { position: fixed; left: 0; right: 0; z-index: 19; pointer-events: none; background: var(--bg); transition: background-color .28s ease; }
.tint-top { top: 0; height: 14px; }
.tint-bottom { bottom: 0; height: calc(env(safe-area-inset-bottom) + 18px); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: var(--rb); border: 0; font: 500 15px var(--font); cursor: pointer; white-space: nowrap; transition: transform .2s var(--eo); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-accent { background: var(--accent); color: var(--on-accent); }

/* the pager sits mid-screen, so it recolours when the sweep's edge passes the middle */
.pager { position: fixed; right: max(18px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); z-index: 20; display: flex; flex-direction: column; gap: 2px; color: var(--text); transition: color .3s ease .42s; }
.pager button { position: relative; display: grid; place-items: center; width: 30px; height: 26px; background: none; border: 0; cursor: pointer; padding: 0; }
.pager i { width: 6px; height: 6px; border-radius: 3px; background: currentColor; opacity: .3; transition: height .6s var(--eo), opacity .3s, background-color .3s ease .42s, border-radius .3s ease .42s; }
[data-world="industry"] .pager i { border-radius: 0; }
.pager button[aria-current="true"] i { height: 22px; opacity: 1; background: var(--accent); }
.pager button:hover i { opacity: .8; }
.pager span { position: absolute; right: 34px; white-space: nowrap; font: 500 12px var(--font); opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s var(--eo); pointer-events: none; }
.pager button:hover span, .pager button:focus-visible span { opacity: .8; transform: none; }
.hint { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; color: var(--text); font: 500 11px var(--font); letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.hint i { width: 22px; height: 34px; border: 1.5px solid currentColor; border-radius: 12px; position: relative; opacity: .7; }
.hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: cue 1.8s var(--eo) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ── pages ───────────────────────────────────────────── */
.stage { position: fixed; inset: 0; overflow: hidden; touch-action: pinch-zoom; background: #000; }
/* inactive pages are display:none, not just hidden — Safari 26 tints its bars from fixed
   full-bleed elements and would otherwise pick up the (dark) first page on every page */
.pg { position: absolute; inset: 0; display: none; align-items: center; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); }
.pg.on { display: flex; }
.pg-in { position: relative; z-index: 1; width: 100%; max-width: 1220px; margin: 0 auto; padding: 96px 76px 72px 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }

/* a faint pool of the page's accent light; it drifts on its own and follows the pointer on desktop */
/* a soft disc of light: moved with transform/translate only, so it never repaints the page */
.pg-body::before { content: ""; position: absolute; left: 0; top: 0; width: 72vmax; height: 72vmax; margin: -36vmax 0 0 -36vmax; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, var(--glow), transparent); translate: var(--gx, 72vw) var(--gy, 30vh); transition: translate 1.2s cubic-bezier(.2, .7, .1, 1); animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { 0% { transform: translate(0, 0); } 50% { transform: translate(-4%, 3%); } 100% { transform: translate(3%, -3%); } }
.pg-body { position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden; }
:root, [data-world="base"] { --glow: rgba(255, 255, 255, .045); }
[data-world="gold"] { --glow: rgba(216, 178, 92, .11); }
[data-world="site"] { --glow: rgba(198, 243, 107, .075); }
[data-world="office"] { --glow: rgba(35, 131, 226, .07); }
[data-world="industry"] { --glow: rgba(255, 90, 31, .09); }
/* the darkening of a page that is leaving — an overlay is far cheaper than filter: brightness() */
.pg::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: #000; opacity: 0; }
.pg.out-next::after, .pg.out-prev::after { animation: dim var(--dur) var(--ez) both; }
.pg.drag-out::after { opacity: var(--dim, 0); transition: opacity var(--dim-t, 0s) cubic-bezier(.2, .7, .1, 1); }
@keyframes dim { to { opacity: .7; } }

/* the move: the next page is uncovered by a rounded edge sweeping over the old one,
   which sinks, shrinks and darkens; going back mirrors it */
/* GPU only (transform + opacity): the page slides in while its body slides back the other
   way, so the content looks pinned while the edge sweeps — a reveal without clip-path, which
   would repaint the whole screen every frame. Body counter-slides 82%, leaving 18% parallax. */
.pg.in-next, .pg.in-prev, .pg.drag-in { z-index: 3; will-change: transform; }
.pg.out-next, .pg.out-prev, .pg.drag-out { z-index: 2; will-change: transform; }
.pg.in-next, .pg.in-prev, .pg.drag-in, .pg.in-next > .pg-body, .pg.in-prev > .pg-body, .pg.drag-in > .pg-body { backface-visibility: hidden; }
.pg.in-next > .pg-body, .pg.in-prev > .pg-body, .pg.drag-in > .pg-body { will-change: transform; }
.pg.in-next { animation: slideUp var(--dur) var(--ez) both; }
.pg.in-prev { animation: slideDown var(--dur) var(--ez) both; }
.pg.in-next > .pg-body { animation: counterUp var(--dur) var(--ez) both; }
.pg.in-prev > .pg-body { animation: counterDown var(--dur) var(--ez) both; }
.pg.out-next { animation: sinkUp var(--dur) var(--ez) both; }
.pg.out-prev { animation: sinkDown var(--dur) var(--ez) both; }
/* the leading edge is rounded; the corners square off only in the last moments, when the edge has all but stopped */
@keyframes slideUp { 0% { transform: translate3d(0, 100%, 0); border-radius: 30px 30px 0 0; } 86% { border-radius: 30px 30px 0 0; } 100% { transform: translate3d(0, 0, 0); border-radius: 0; } }
@keyframes slideDown { 0% { transform: translate3d(0, -100%, 0); border-radius: 0 0 30px 30px; } 86% { border-radius: 0 0 30px 30px; } 100% { transform: translate3d(0, 0, 0); border-radius: 0; } }
@keyframes counterUp { from { transform: translate3d(0, -82%, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes counterDown { from { transform: translate3d(0, 82%, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes sinkUp { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(0, -8%, 0) scale(.92); } }
@keyframes sinkDown { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(0, 8%, 0) scale(.92); } }

/* a hairline of the new page's accent riding the wipe's edge */
.sweep { position: fixed; left: 0; right: 0; top: 0; height: 1.5px; z-index: 18; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent); box-shadow: 0 0 18px 1px var(--accent); }
.sweep.run-next { animation: lineUp var(--dur) var(--ez) both; }
.sweep.run-prev { animation: lineDown var(--dur) var(--ez) both; }
@keyframes lineUp { 0% { transform: translateY(100vh); opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes lineDown { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } 100% { transform: translateY(100vh); opacity: 0; } }

/* everything on a page arrives in a stagger, a beat after the wipe */
.pg .rise { opacity: 0; }
.pg.on .rise { animation: rise .8s var(--eo) both; animation-delay: calc(var(--i, 0) * 60ms + var(--rd, 300ms)); }
.pg.in-prev .rise { animation-name: riseDown; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes riseDown { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }
html.boot .pg.on .rise { --rd: 120ms; }
/* a page dragged in by a finger is already in place: no entrance replay */
.pg.nofx .rise, .pg.nofx .ch, .pg.nofx .prod .logo, .pg.nofx .chips li { animation: none !important; opacity: 1; transform: none; }

/* ── page copy ───────────────────────────────────────── */
.kick { margin: 0 0 22px; display: flex; gap: 12px; align-items: baseline; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.kick .mono { color: var(--accent); }
.prod { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.logo { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.pg[data-world="office"] .logo { filter: drop-shadow(0 6px 16px rgba(55, 53, 47, .12)); }
.prod h2 { margin: 0; font-family: var(--hfont); font-weight: var(--hw); letter-spacing: var(--ht); font-size: clamp(44px, 5.4vw, 76px); line-height: 1; }
.pg[data-world="site"] .prod h2 { letter-spacing: -.05em; }
.pg[data-world="industry"] .prod h2 { font-family: var(--mono); letter-spacing: .02em; font-weight: 700; }
.line { margin: 0 0 22px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; max-width: 460px; }
.chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; padding: 6px 11px; border: 1px solid var(--line2); border-radius: 999px; color: var(--text); }
.pg[data-world="site"] .chips li, .pg[data-world="office"] .chips li { border-radius: 6px; }
.pg[data-world="industry"] .chips li { border-radius: 0; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.chips li:last-child { border-color: var(--accent); color: var(--accent); }
.proof { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 440px; }
.proof a { color: var(--accent); text-decoration: none; white-space: nowrap; }

/* intro + end */
.intro, .end { grid-template-columns: minmax(0, 1fr); gap: 0; }
h1, .end h2 { margin: 0; font-family: var(--hfont); font-weight: var(--hw); letter-spacing: var(--ht); font-size: clamp(48px, 8.4vw, 124px); line-height: .95; }
.cycle { display: inline-grid; }
.cycle > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.5em) rotateX(-40deg); transform-origin: 50% 0; filter: blur(10px); transition: opacity .6s var(--eo), transform .8s var(--eo), filter .6s; }
.cycle > span.on { opacity: 1; transform: none; filter: none; }
.cycle [data-c="gold"] { color: #D8B25C; } .cycle [data-c="site"] { color: #C6F36B; }
.cycle [data-c="office"] { color: #6BAEF5; } .cycle [data-c="industry"] { color: #FF5A1F; }
.sub { margin: 28px 0 0; font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 520px; }
.fleet { display: flex; gap: 10px; margin-top: 44px; flex-wrap: wrap; }
.fleet button { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--line2); border-radius: 14px; background: none; cursor: pointer; font-size: 15px; font-weight: 500; transition: border-color .25s, transform .3s var(--eo), background-color .25s; }
.fleet button:hover { border-color: var(--text); transform: translateY(-3px); background: var(--accent-fill); }
.fleet .logo { width: 36px; height: 36px; filter: none; }
.end h2 em { font-style: normal; color: var(--muted); }
.end .btn-lg { margin-top: 36px; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 920px; }
.steps li { display: flex; flex-direction: column; gap: 18px; padding-top: 14px; border-top: 1px solid var(--line2); font-size: 16px; }
.steps .mono { font-size: 12px; color: var(--muted); }
.foot { margin: 48px 0 0; font-size: 12px; color: var(--faint); }
.foot a { color: var(--faint); }

/* ── mockups: sized in container units so they scale as one picture ── */
.visual { position: relative; container-type: inline-size; }
.mock { font-size: clamp(8px, 1.95cqw, 14px); line-height: 1.35; }
.win { border-radius: 1.1em; overflow: hidden; box-shadow: 0 3em 6em -2em rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); }
.wbar { display: flex; align-items: center; gap: .5em; padding: .85em 1.1em; font-size: .9em; }
.wbar i { width: .75em; height: .75em; border-radius: 50%; background: currentColor; opacity: .22; }
.wbar span { flex: 1; text-align: center; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { display: inline-flex; align-items: center; gap: .45em; font-weight: 500; font-size: .85em; }
.live::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: #5DBB7A; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* AltınDesk */
.ad-win { background: #161616; color: #ECEBE8; font-family: 'Inter', sans-serif; width: 92%; margin-left: auto; }
.ad-win .wbar { background: #1E1E1E; border-bottom: 1px solid #2A2A2A; }
.ad-body { display: grid; grid-template-columns: 1.6fr 1fr; }
.ad-board { padding: 1em 1.3em; }
.ad-row { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: .62em 0; border-bottom: 1px solid #262626; font-size: 1.05em; }
.ad-row span { font-weight: 600; font-size: .85em; letter-spacing: .03em; }
.ad-row b { text-align: right; font: 500 1em var(--mono); padding: .1em .3em; border-radius: .3em; }
.ad-h { font-size: .75em; color: #8E8D8A; border-bottom-color: #2A2A2A; }
.ad-h span { text-align: right; font-weight: 500; }
.ad-h span:first-child { text-align: left; }
.ad-fis { background: #1C1C1C; border-left: 1px solid #2A2A2A; padding: 1.1em 1.2em; display: flex; flex-direction: column; gap: .7em; }
.ad-fh { margin: 0; font-weight: 700; letter-spacing: .12em; font-size: .8em; color: #D8B25C; }
.ad-fl { display: flex; justify-content: space-between; gap: .6em; font-size: .9em; color: #C9C8C4; }
.ad-fl b { font: 500 1em var(--mono); color: #ECEBE8; }
.ad-fl.tot { border-top: 1px solid #2E2E2E; padding-top: .7em; font-weight: 600; color: #ECEBE8; }
.ad-btn { margin-top: auto; text-align: center; padding: .8em; border-radius: .6em; background: #D8B25C; color: #1A1406; font-weight: 600; font-size: .9em; }
.up-f { animation: fUp 1.1s ease-out; } .down-f { animation: fDown 1.1s ease-out; }
@keyframes fUp { 0% { background: rgba(93, 187, 122, .32); color: #A6E8BA; } 100% { background: transparent; } }
@keyframes fDown { 0% { background: rgba(229, 103, 90, .32); color: #F6AAA1; } 100% { background: transparent; } }
.tv { position: absolute; left: -7%; bottom: -30%; width: 34%; aspect-ratio: 16 / 9.5; background: #0B0B0B; border: .55em solid #1F1F1F; border-radius: .7em; box-shadow: 0 2em 4em -1em rgba(0, 0, 0, .7); display: flex; flex-direction: column; justify-content: center; padding: 0 1.2em; transform: rotate(-3deg); color: #ECEBE8; font-family: 'Inter', sans-serif; }
.tv p { margin: 0; font-size: .8em; letter-spacing: .14em; color: #8E8D8A; font-weight: 600; }
.tv b { font: 600 2.6em/1.1 var(--mono); color: #D8B25C; letter-spacing: -.03em; }
.tv small { font-size: .6em; letter-spacing: .14em; color: #5A5955; margin-top: .4em; }
.pg.on .tv { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-3deg) translateY(-.6em); } }

/* Ponte */
.po-win { background: #121813; color: #E9EFE6; font-family: 'Space Grotesk', sans-serif; width: 74%; margin-left: auto; border-radius: .8em; }
.po-win .wbar { background: #182019; border-bottom: 1px solid #243025; }
.po-body { padding: 1.3em 1.5em 1.6em 3.4em; display: flex; flex-direction: column; gap: .5em; }
.po-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7em; margin-bottom: .9em; }
.po-kpis div { background: #19211A; border: 1px solid #243025; border-radius: .5em; padding: .8em .9em; display: flex; flex-direction: column; gap: .2em; }
.po-kpis small { font-size: .78em; color: #8F9C8C; }
.po-kpis b { font-size: 1.6em; font-weight: 600; letter-spacing: -.02em; }
.po-bar { display: grid; grid-template-columns: 1fr auto; gap: .4em 1em; padding: .45em 0; font-size: .98em; }
.po-bar i { grid-column: 1 / -1; grid-row: 2; height: .6em; border-radius: .3em; background: #222B23; position: relative; overflow: hidden; }
.po-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: #C6F36B; border-radius: inherit; transform-origin: left; }
.pg.on .po-bar i::after { animation: grow 1.2s var(--eo) .7s backwards; }
@keyframes grow { from { transform: scaleX(0); } }
.po-bar b { font: 500 .85em var(--mono); color: #8F9C8C; }
.phone { position: absolute; background: #0B0F0C; border: .45em solid #222B23; border-radius: 2.4em; box-shadow: 0 3em 5em -1.5em rgba(0, 0, 0, .75); }
.po-phone { left: 0; top: 50%; transform: translateY(-50%); width: 30%; aspect-ratio: 9 / 18.5; padding: 2.4em 1.1em 1.2em; display: flex; flex-direction: column; gap: .75em; color: #E9EFE6; font-family: 'Space Grotesk', sans-serif; }
.notch { position: absolute; top: .7em; left: 50%; width: 32%; height: 1.1em; margin-left: -16%; border-radius: 1em; background: #000; }
.ph-t { margin: 0; font-weight: 700; font-size: 1.35em; letter-spacing: -.02em; }
.ph-f { display: flex; flex-direction: column; gap: .1em; padding-bottom: .5em; border-bottom: 1px solid #222B23; }
.ph-f small { font-size: .72em; color: #8F9C8C; }
.ph-f span { font-size: .88em; }
.ph-sig { position: relative; flex: 1; min-height: 4em; border: 1px dashed #2E3A2F; border-radius: .6em; display: flex; align-items: center; justify-content: center; }
.ph-sig svg { width: 80%; height: 70%; }
.ph-sig path { fill: none; stroke: #E9EFE6; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.pg.on .ph-sig path { animation: draw 1.6s ease-in-out 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ph-sig em { position: absolute; right: .5em; top: .5em; font: 700 .62em var(--mono); font-style: normal; letter-spacing: .1em; color: #C6F36B; border: 1.5px solid #C6F36B; padding: .2em .4em; border-radius: .3em; transform: rotate(-8deg) scale(1.6); opacity: 0; }
.pg.on .ph-sig em { animation: stamp .4s cubic-bezier(.3, 1.6, .5, 1) 2.5s forwards; }
@keyframes stamp { to { opacity: 1; transform: rotate(-8deg) scale(1); } }
.ph-btn { text-align: center; padding: .8em; border-radius: .6em; background: #C6F36B; color: #0E120F; font-weight: 700; font-size: .85em; }

/* Presenza */
.pr-win { background: #FFFFFF; color: #37352F; font-family: 'Inter', sans-serif; box-shadow: 0 2.5em 5em -2em rgba(55, 53, 47, .25), 0 0 0 1px #E9E8E4; }
.pr-win .wbar { background: #F7F6F3; border-bottom: 1px solid #EDECE9; }
.pr-body { display: grid; grid-template-columns: 1fr 1.25fr; }
.pr-clock { padding: 1.8em 1.6em; display: flex; flex-direction: column; gap: .7em; border-right: 1px solid #EDECE9; }
.pr-date { color: #787774; font-size: .9em; }
.pr-time { font: 300 3.3em/1 var(--mono); letter-spacing: -.05em; }
.pr-time em { font-style: normal; color: #B4B3AF; }
.pr-btn { align-self: flex-start; margin-top: .4em; padding: .75em 1.3em; border-radius: .45em; background: #2383E2; color: #fff; font-weight: 600; font-size: .95em; }
.pr-last { color: #9B9A97; font-size: .78em; }
.pr-list { padding: 1.2em 1.4em; display: flex; flex-direction: column; }
.pr-h { margin: 0 0 .5em; display: flex; justify-content: space-between; font-size: .85em; color: #787774; }
.pr-h b { color: #37352F; font-weight: 600; }
.pr-p { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8em; padding: .6em 0; border-bottom: 1px solid #EDECE9; font-size: .95em; }
.av { width: 2.1em; height: 2.1em; border-radius: 50%; background: #F1F0ED; display: grid; place-items: center; font-size: .72em; font-weight: 600; color: #787774; }
.tg { font-style: normal; font-size: .8em; padding: .15em .55em; border-radius: .3em; white-space: nowrap; }
.tg-g { background: #DBEDDB; color: #1C3829; } .tg-b { background: #D3E5EF; color: #183347; } .tg-o { background: #FADEC9; color: #49290E; } .tg-y { background: #FBF3DB; color: #402C1B; }
.pg.on .pr-p { animation: rise .7s var(--eo) both; }
.pg.on .pr-p:nth-child(2) { animation-delay: .7s; } .pg.on .pr-p:nth-child(3) { animation-delay: .8s; } .pg.on .pr-p:nth-child(4) { animation-delay: .9s; } .pg.on .pr-p:nth-child(5) { animation-delay: 1s; }

/* Linea */
.li-win { background: #0A0A0A; color: #F2F2F2; font-family: var(--mono); border-radius: 0; box-shadow: 0 3em 6em -2em rgba(0, 0, 0, .8), 0 0 0 1px #3A3A3A; }
.li-win .wbar { border-bottom: 1px solid #3A3A3A; }
.li-win .wbar i { border-radius: 0; }
.li-win .live::before { border-radius: 0; background: #FF5A1F; }
.li-body { padding: 1.4em 1.5em; display: flex; flex-direction: column; gap: 1.1em; }
.li-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9em; }
.li-kpis div { border-left: 2px solid #FF5A1F; padding-left: .8em; display: flex; flex-direction: column; gap: .15em; }
.li-kpis small { font-size: .7em; letter-spacing: .1em; color: #9A9A9A; }
.li-kpis b { font-size: 1.9em; font-weight: 500; letter-spacing: -.04em; }
.li-kpis em { font-style: normal; font-size: .72em; color: #6A6A6A; }
.li-bars { display: flex; align-items: flex-end; gap: .45em; height: 8.5em; border-bottom: 1px solid #3A3A3A; }
.li-bars i { flex: 1; height: var(--h); background: #2C2C2C; transform-origin: bottom; }
.li-bars i:last-child { background: #FF5A1F; }
.pg.on .li-bars i { animation: barUp .9s var(--eo) .6s backwards; }
.pg.on .li-bars i:nth-child(2n) { animation-delay: .68s; } .pg.on .li-bars i:nth-child(3n) { animation-delay: .76s; }
@keyframes barUp { from { transform: scaleY(.05); } }
.li-alert { display: flex; gap: .8em; align-items: center; font-size: .85em; padding: .7em .8em; border: 1px solid #3A3A3A; }
.li-alert b { color: #FF5A1F; font-weight: 700; }
.li-alert.ai b { background: #FF5A1F; color: #0A0A0A; padding: 0 .35em; font-size: .85em; }

/* ── brief sheet ─────────────────────────────────────── */
.sheet { width: min(460px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--tile); color: var(--text); font-family: var(--font); box-shadow: 0 40px 120px rgba(0, 0, 0, .5); }
.sheet[open] { animation: sheetIn .45s var(--eo); }
.sheet::backdrop { background: rgba(0, 0, 0, .55); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.sheet-in { position: relative; padding: 28px; }
.sheet h3 { margin: 0; font-family: var(--hfont); font-size: 28px; font-weight: var(--hw); letter-spacing: var(--ht); }
.sheet p { margin: 0; color: var(--muted); }
.x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: var(--rb); border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1; color: var(--muted); }
.x:hover { background: var(--accent-fill); color: var(--text); }
.brief-form { display: flex; flex-direction: column; gap: 16px; }
#brief-form { display: flex; flex-direction: column; gap: 12px; }
#brief-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
#brief-form input { font: 400 16px var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--line2); border-radius: var(--rb); padding: 11px 12px; }
#brief-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-fill); }
#brief-form [aria-invalid="true"] { border-color: #E5675A; }
#brief-form .btn { align-self: stretch; margin-top: 4px; }
.brief-note { margin: 2px 0 0; font-size: 12px; color: var(--faint) !important; text-align: center; }
.brief-note a { color: var(--muted); }
.brief-err { font-size: 13px; color: #E5675A !important; }
.brief-err:empty { display: none; }
.brief-err a { color: var(--text); }
.brief-done { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 6px 0; }
.brief-done[hidden], .brief-form[hidden] { display: none; }
.done-mark svg { width: 52px; height: 52px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.done-mark circle { stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw .7s var(--eo) forwards; }
.done-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s var(--eo) .55s forwards; }

/* ── small things that move ──────────────────────────── */
html { -webkit-tap-highlight-color: transparent; }
.stage { -webkit-user-select: none; user-select: none; }

/* product names arrive letter by letter; the logo pops in just before */
.prod h2 .ch { display: inline-block; white-space: pre; }
.pg.on .prod h2 .ch { animation: chIn .7s var(--eo) both; animation-delay: calc(var(--rd, 300ms) + 140ms + var(--c) * 28ms); }
@keyframes chIn { from { opacity: 0; transform: translateY(.38em) rotate(5deg); } }
.pg.on .prod .logo { animation: logoIn .9s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--rd, 300ms) + 60ms); }
@keyframes logoIn { from { opacity: 0; transform: scale(.45) rotate(-16deg); } }
.prod .logo { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.prod .logo:hover { transform: rotate(-7deg) scale(1.07); }

/* chips land one by one, and lift a hair under the pointer */
.pg.on .chips li { animation: chipIn .5s var(--eo) both; }
.pg.on .chips li:nth-child(1) { animation-delay: calc(var(--rd, 300ms) + 300ms); }
.pg.on .chips li:nth-child(2) { animation-delay: calc(var(--rd, 300ms) + 345ms); }
.pg.on .chips li:nth-child(3) { animation-delay: calc(var(--rd, 300ms) + 390ms); }
.pg.on .chips li:nth-child(4) { animation-delay: calc(var(--rd, 300ms) + 435ms); }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.chips li { transition: transform .25s var(--eo), border-color .25s; }
.chips li:hover { transform: translateY(-2px); border-color: var(--text); }

/* the intro's product launcher idles: each logo bobs on its own beat */
.fleet .logo { animation: bob 5s ease-in-out infinite; }
.fleet button:nth-child(2) .logo { animation-delay: -1.2s; } .fleet button:nth-child(3) .logo { animation-delay: -2.4s; } .fleet button:nth-child(4) .logo { animation-delay: -3.6s; }
@keyframes bob { 50% { transform: translateY(-2.5px) rotate(-3deg); } }
.btn-accent, .fleet button, .pager button { transition: translate .3s var(--eo), transform .2s var(--eo), background-color .9s var(--ez), color .9s var(--ez), border-color .25s; }

/* the counter rolls, the mark turns, numbers that change tick */
.pg-count b.tick { display: inline-block; }
.tick { display: inline-block; animation: tick .5s var(--eo); }
@keyframes tick { from { transform: translateY(65%); opacity: 0; } }
.mark.spin { animation: spin .9s var(--ez); }
@keyframes spin { to { transform: rotate(180deg); } }

/* mockups lean toward the pointer (desktop only — set from JS) */
.visual .win { transform: perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .9s var(--eo); }

/* AltınDesk: the receipt prints line by line, the print button catches the light, the TV glows */
.pg.on .ad-fl { animation: rise .5s var(--eo) both; }
.pg.on .ad-fl:nth-of-type(1) { animation-delay: .9s; } .pg.on .ad-fl:nth-of-type(2) { animation-delay: 1.05s; } .pg.on .ad-fl:nth-of-type(3) { animation-delay: 1.2s; }
.ad-btn, .ph-btn { background-image: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%); background-size: 260% 100%; background-position: 150% 0; background-repeat: no-repeat; }
.pg.on .ad-btn { animation: shine 1.3s ease-out 1.6s both; }
.pg.on .ph-btn { animation: shine 1.3s ease-out 3s both; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -60% 0; } }
.tv b { text-shadow: 0 0 22px rgba(216, 178, 92, .35); }

/* Presenza: the clock-in button gets pressed */
.pr-btn { transition: transform .15s ease, background-color .35s; }
.pr-btn.press { transform: scale(.93); }
.pr-btn.done { background: #2E8B57; }

/* Linea: the AI line types itself, the newest bar breathes */
.pg.on .li-alert.ai span { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; width: 0; animation: type 1.4s steps(38) 1.3s forwards; }
@keyframes type { to { width: 38ch; } }
.pg.nofx .li-alert.ai span { animation: none; width: auto; }
.pg.on .li-bars i:last-child { animation: barUp .9s var(--eo) .6s backwards, breathe 2.6s ease-in-out 1.8s infinite; }
@keyframes breathe { 50% { opacity: .72; } }
.li-alert:not(.ai) b { animation: blink 1.4s steps(2) infinite; }

/* Start: "next." underlines itself, the steps' rules draw across */
.end h2 em { background: linear-gradient(currentColor, currentColor) no-repeat 0 94% / 0% 3px; }
.pg.on .end h2 em { animation: under .9s var(--eo) 1s forwards; }
@keyframes under { to { background-size: 100% 3px; } }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--text); }
.pg.on .steps li::before { animation: drawRule 1s var(--eo) both; }
.pg.on .steps li:nth-child(1)::before { animation-delay: .8s; } .pg.on .steps li:nth-child(2)::before { animation-delay: .9s; } .pg.on .steps li:nth-child(3)::before { animation-delay: 1s; } .pg.on .steps li:nth-child(4)::before { animation-delay: 1.1s; }
@keyframes drawRule { to { width: 100%; } }

/* the form: a nudge for a missing field, a spinner while sending */
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.btn.loading { opacity: .85; }
.btn.loading::after { content: ""; width: 14px; height: 14px; margin-left: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: turn .7s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

/* ── phones and short screens ────────────────────────── */
@media (max-width: 860px) {
  .pg, .pg-body { align-items: flex-start; }
  .pg-in { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: calc(max(18px, env(safe-area-inset-top)) + 64px) 22px 70px 22px; }
  .intro { padding-top: calc(max(18px, env(safe-area-inset-top)) + 96px); }
  .end { padding-top: calc(max(18px, env(safe-area-inset-top)) + 68px); }
  .pg-head { padding-left: 20px; padding-right: 20px; }
  .pg-head .btn-sm { display: none; }
  .pager { display: none; }
  .pg-count { left: 22px; }
  .kick { margin-bottom: 14px; }
  .prod { gap: 14px; margin-bottom: 12px; }
  .logo { width: 52px; height: 52px; }
  .line { margin-bottom: 14px; font-size: 18px; }
  .chips { margin-bottom: 0; }
  .chips li { font-size: 12px; padding: 5px 9px; }
  .proof { display: none; }
  .visual { margin-top: 8px; }
  .ad-win, .po-win { width: 100%; }
  .po-body { padding-left: 1.5em; }
  .tv { display: none; }
  .po-win { display: none; }
  .po-phone { position: relative; left: auto; top: auto; transform: none; height: min(44svh, 420px); width: auto; aspect-ratio: 9 / 16.5; margin: 0 auto; font-size: clamp(8px, 1.6svh, 12px); }
  .pr-body { grid-template-columns: minmax(0, 1fr); }
  .pr-clock { border-right: 0; border-bottom: 1px solid #EDECE9; padding: 1.3em 1.4em; }
  .pr-list .pr-p:nth-child(n+4) { display: none; }
  .mock { font-size: clamp(9px, 2.8cqw, 13px); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin-top: 28px; }
  .steps li { gap: 8px; font-size: 14px; padding-top: 10px; }
  .end h2 { font-size: clamp(40px, 12vw, 56px); }
  .end .sub { margin-top: 16px; font-size: 16px; }
  .end .btn-lg { margin-top: 22px; min-height: 52px; }
  .foot { margin-top: 24px; line-height: 1.7; }
  .fleet { margin-top: 32px; }
  .fleet button { padding-right: 12px; font-size: 14px; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .steps { display: none; }
  .chips { display: none; }
  .ad-fis { display: none; }
  .ad-body { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
