/* Tern Files website – design after ut-systems.com in the Tern Files colours (design/, Themes/Dark.xaml). */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #0b0b0d;
  --bg-2: #0f0f12;
  --panel: #141417;
  --panel-2: #19191c;
  --line: #232327;
  --line-2: #2e2e33;
  --text: #ededef;
  --text-2: #b8b8bf;
  --text-3: #85858e;
  --accent: #c8f169;
  --accent-soft: rgba(200, 241, 105, 0.12);
  --accent-line: rgba(200, 241, 105, 0.35);
  --on-accent: #0b0b0d;
  --danger: #ff8a8a;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --page: min(1240px, calc(100vw - 48px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, li a, td a, .prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 16px; }

/* One slowly drifting glow behind the whole page (lime and teal, like the app) */
body::before, body::after { content: ""; position: fixed; z-index: -2; pointer-events: none; border-radius: 50%; filter: blur(100px); will-change: transform; }
body::before { width: 78vw; height: 78vw; left: -22vw; top: -36vw; background: radial-gradient(circle, rgba(200, 241, 105, 0.15), transparent 62%); animation: glow-lime 38s ease-in-out infinite alternate; }
body::after { width: 62vw; height: 62vw; right: -20vw; bottom: -26vw; background: radial-gradient(circle, rgba(95, 212, 196, 0.09), transparent 60%); animation: glow-teal 46s ease-in-out infinite alternate; }
@keyframes glow-lime { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(20vw, 24vh) scale(1.12); } 100% { transform: translate(6vw, 58vh) scale(0.94); } }
@keyframes glow-teal { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-24vw, -32vh) scale(1.1); } 100% { transform: translate(-8vw, -62vh) scale(1); } }
.hero .glow, .page-head .glow { display: none; }

/* Glow inside the call-to-action card */
.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.glow::before, .glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); }
.glow::before { width: 70vw; height: 70vw; left: -18vw; top: -32vw; background: radial-gradient(circle, rgba(200, 241, 105, 0.16), transparent 62%); }
.glow::after { width: 55vw; height: 55vw; right: -14vw; top: 4vw; background: radial-gradient(circle, rgba(95, 212, 196, 0.08), transparent 60%); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(11, 11, 13, 0.72); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { width: var(--page); margin: 0 auto; height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; transition: transform 0.4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--text-2); }
.nav a { padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.15s, border-color 0.15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent-line); }
.lang { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-3); display: flex; gap: 6px; }
.lang a[aria-current="true"] { color: var(--text); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 15px; border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.02); transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.2s; overflow: hidden; }
.btn:hover { border-color: var(--text-3); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { background: #d4f585; box-shadow: 0 10px 34px -10px rgba(200, 241, 105, 0.55); }
.btn.primary:hover svg { transform: none; }
/* A soft light passes over the main button on hover */
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-18deg); opacity: 0; }
.btn.primary:hover::after { animation: shine 0.9s var(--ease); }
@keyframes shine { from { left: -60%; opacity: 1; } to { left: 130%; opacity: 1; } }
.btn.small { padding: 8px 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Layout */
main { position: relative; }
.section { width: var(--page); margin: 0 auto; padding: 110px 0; }
.section.tight { padding: 64px 0; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; }
.label .n { color: var(--text-3); margin-right: 10px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(38px, 5.2vw, 72px); }
h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; line-height: 1.15; }
em.accent, h1 em, h2 em, h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; background: linear-gradient(100deg, #e4ffa6, var(--accent) 45%, #8fd16a); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--text); font-weight: 500; max-width: 760px; margin: 28px 0 0; }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }

/* Hero: headline, offer and the app window that straightens up while scrolling (site.js sets --tilt) */
.hero { position: relative; isolation: isolate; padding-bottom: 40px; }
.hero .inner { width: var(--page); margin: 0 auto; padding: 100px 0 64px; }
.hero h1 { font-size: clamp(64px, 11.6vw, 184px); letter-spacing: -0.062em; line-height: 0.9; font-weight: 500; }
.hero h1 .line1, .hero h1 .line2 { display: block; }
.hero h1 .line2 { padding-left: clamp(0px, 9vw, 150px); }
.hero .eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin: 0 0 30px; display: flex; align-items: center; gap: 10px; }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 4px var(--accent), 0 0 0 6px rgba(200, 241, 105, 0.08); } }
.hero .lead { margin-top: 40px; }
.hero .actions { margin-top: 36px; }
.offer { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--text-2); }
.offer li { display: flex; align-items: center; gap: 8px; }
.offer li::before { content: "✓"; color: var(--accent); font-weight: 600; }
.hero-shot { position: relative; width: var(--page); margin: 0 auto; perspective: 2200px; }
.hero-shot::before { content: ""; position: absolute; left: 6%; right: 6%; top: 8%; bottom: -4%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(200, 241, 105, 0.2), transparent 66%); filter: blur(50px); }
.hero-shot .shot { transform: rotateX(calc(var(--tilt, 0) * 18deg)) scale(calc(1 - var(--tilt, 0) * 0.06)); transform-origin: 50% 0; border-radius: 18px; box-shadow: 0 50px 140px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.02); }
.enter { animation: enter 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } }

.page-head { position: relative; isolation: isolate; }
.page-head .inner { width: var(--page); margin: 0 auto; padding: 96px 0 40px; }
.page-head h1 { font-size: clamp(52px, 8vw, 120px); letter-spacing: -0.055em; line-height: 0.95; }
.page-head .inner > * { animation: enter 0.8s var(--ease) both; }
.page-head .inner > :nth-child(2) { animation-delay: 0.08s; }
.page-head .inner > :nth-child(3) { animation-delay: 0.16s; }
.page-head .inner > :nth-child(4) { animation-delay: 0.24s; }

/* Figures that count up */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 26px; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.facts dd { margin: 8px 0 0; }
.facts dd strong { display: block; font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
.facts dd span { display: block; margin-top: 4px; font-size: 14px; color: var(--text-3); }
b[data-count] { font-weight: inherit; font-variant-numeric: tabular-nums; }

/* Screenshots: a button that opens the large picture */
.shot { display: block; width: 100%; padding: 0; margin: 0; font: inherit; color: inherit; cursor: zoom-in; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 90px -40px rgba(0, 0, 0, 0.9); background: var(--panel); transition: border-color 0.25s, box-shadow 0.25s; }
.shot:hover { border-color: #3a3a40; box-shadow: 0 30px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 4px rgba(200, 241, 105, 0.06); }
.shot picture, .shot img { display: block; width: 100%; height: auto; }
.single { margin: 0; }
.single figcaption, .caption > p { margin: 14px 0 0; font-size: 14.5px; color: var(--text-3); }

/* Video */
.film { position: relative; margin-top: 44px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: 0 40px 120px -40px rgba(200, 241, 105, 0.18), 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.film video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.film-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; border: 0; cursor: pointer; color: var(--text); background: radial-gradient(ellipse at center, rgba(11, 11, 13, 0.15), rgba(11, 11, 13, 0.55)); font: inherit; transition: background 0.2s; }
.film-play:hover { background: radial-gradient(ellipse at center, rgba(11, 11, 13, 0.05), rgba(11, 11, 13, 0.45)); }
.film-play .disc { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7); transition: transform 0.2s; }
.film-play .disc::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.7); opacity: 0; } }
.film-play:hover .disc { transform: scale(1.06); }
.film-play .disc svg { width: 34px; height: 34px; margin-left: 4px; }
.film-play .text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 12px 18px; border-radius: 14px; background: rgba(11, 11, 13, 0.72); backdrop-filter: blur(6px); }
.film-play .text strong { font-size: 20px; font-weight: 600; }
.film-play .text span { font-size: 14px; color: var(--text-2); }
.film.playing .film-play { display: none; }
.fig { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-top: 14px; }

/* Carousel: tabs and arrows on top, one big screenshot, swipe on touch screens (site.js) */
.carousel { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tabs bar" "track track"; gap: 18px 16px; align-items: center; margin-top: 44px; }
.c-tabs { grid-area: tabs; position: relative; justify-self: start; display: flex; gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(20, 20, 23, 0.6); backdrop-filter: blur(8px); }
.c-tabs::-webkit-scrollbar { display: none; }
.c-tabs [role="tab"] { position: relative; flex: none; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 14.5px; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: color 0.2s, background 0.25s; }
.c-tabs [role="tab"]:hover { color: var(--text); }
.c-tabs [aria-selected="true"] { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.c-tabs .progress { position: absolute; left: 16px; right: 16px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; }
.carousel.auto [aria-selected="true"] .progress { opacity: 1; animation: c-progress var(--dur, 6500ms) linear forwards; }
.carousel.auto.paused [aria-selected="true"] .progress { animation-play-state: paused; }
@keyframes c-progress { to { transform: scaleX(1); } }
.c-bar { grid-area: bar; display: flex; align-items: center; gap: 8px; }
.c-count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--text-3); margin-right: 6px; }
.c-count b { color: var(--text); font-weight: 400; }
.c-bar button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20, 20, 23, 0.6); color: var(--text); cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.c-bar button:hover { border-color: var(--text-3); background: var(--panel-2); }
.c-bar button:active { transform: scale(0.94); }
.c-bar svg { width: 18px; height: 18px; }
.c-pause .i-play, .carousel:not(.auto) .c-pause .i-pause { display: none; }
.carousel:not(.auto) .c-pause .i-play { display: block; }
.c-track { grid-area: track; position: relative; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.c-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; transition: opacity 0.5s var(--ease); }
.js .slide[inert] { opacity: 0.35; }
.caption { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px 56px; margin-top: 26px; }
.cap-text h3 { font-size: clamp(24px, 2.4vw, 32px); }
.cap-text p { margin: 10px 0 0; color: var(--text-2); max-width: 560px; }
.cap-text .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.cap-text .more svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.cap-text .more:hover svg { transform: translateX(3px); }
.cap-points { list-style: none; margin: 0; padding: 0; align-self: start; border-top: 1px solid var(--line); }
.cap-points li { display: grid; grid-template-columns: 24px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15.5px; }
.cap-points li::before { content: "✓"; color: var(--accent); }
/* The caption of the new slide slides in a little */
.js .slide:not([inert]) .caption > * { animation: enter 0.6s var(--ease) both; }
.js .slide:not([inert]) .caption > :nth-child(2) { animation-delay: 0.08s; }

/* Everything else, as a slowly moving band */
.also { margin: 72px 0 16px; color: var(--text-3); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 10px; margin: 0; padding: 0 10px 0 0; list-style: none; }
.marquee li { white-space: nowrap; font-size: 15px; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; background: rgba(20, 20, 23, 0.5); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.promise { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; transition: border-color 0.25s, transform 0.25s, opacity 0.7s ease; }
.promise:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.promise .icon { width: 46px; height: 46px; padding: 10px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.js .promise .icon * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 0.35s); }
.js .promise.in .icon * { stroke-dashoffset: 0; }
.promise h3 { margin: 22px 0 10px; }
.promise p { margin: 0; color: var(--text-2); font-size: 16px; }

/* Comparison */
.bars { margin-top: 50px; display: grid; gap: 26px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) 140px; gap: 28px; align-items: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.bar-row h3 { font-size: 21px; }
.bar-row .what { color: var(--text-3); font-size: 14px; margin-top: 4px; }
.meter { display: grid; gap: 8px; }
.meter .m { display: grid; grid-template-columns: 110px minmax(0, 1fr) 150px; gap: 12px; align-items: center; font-size: 14px; }
.meter .track { height: 12px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.meter .fill { height: 100%; border-radius: 999px; background: var(--text-3); transition: width 2.6s cubic-bezier(0.35, 0.5, 0.3, 1) 0.25s; }
.meter .tern .fill { background: var(--accent); transition-duration: 0.6s; box-shadow: 0 0 16px rgba(200, 241, 105, 0.45); }
/* The race: Tern Files' bar is there at once, Explorer's takes its time */
.js .reveal:not(.in) .meter .fill { width: 0 !important; }
.meter .val { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.meter .tern .val { color: var(--text); }
.factor { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; text-align: right; }
.factor span { display: block; font-size: 13px; color: var(--text-3); font-weight: 400; letter-spacing: 0; }
.table-wrap { margin-top: 44px; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 680px; }
table.compare th, table.compare td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3); font-weight: 400; background: var(--bg-2); }
table.compare tbody tr { transition: background 0.15s; }
table.compare tbody tr:hover { background: rgba(255, 255, 255, 0.015); }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td:first-child { color: var(--text); width: 38%; }
table.compare td { color: var(--text-2); }
.yes, .no, .part { display: inline-flex; align-items: center; gap: 8px; }
.yes::before { content: "✓"; color: var(--accent); font-weight: 600; }
.no::before { content: "–"; color: var(--text-3); }
.part::before { content: "◐"; color: var(--text-3); font-size: 13px; }
.note { margin-top: 20px; font-size: 14px; color: var(--text-3); max-width: 900px; }

/* Trial as three steps on a line that draws itself */
.steps { position: relative; list-style: none; margin: 50px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-line) 55%, var(--line-2)); transform-origin: left; transition: transform 1.4s var(--ease) 0.2s; }
.js .steps:not(.in)::before { transform: scaleX(0); }
.steps li { position: relative; padding-top: 42px; }
.steps li::before { content: ""; position: absolute; top: 3px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.js .steps li { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 220ms + 0.3s); }
.js .steps.in li { opacity: 1; transform: none; }
.steps .when { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.steps h3 { font-size: 24px; margin: 8px 0 6px; }
.steps p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 50px; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 34px; display: flex; flex-direction: column; transition: border-color 0.25s, transform 0.25s, opacity 0.7s ease; }
.plan:hover { transform: translateY(-3px); }
.plan h2, .plan h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; line-height: 1.15; }
.plan.pro { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(200, 241, 105, 0.07), var(--panel) 40%); box-shadow: 0 40px 100px -50px rgba(200, 241, 105, 0.35); }
.plan .badge { position: absolute; top: 28px; right: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 4px 11px; }
.plan .price { font-size: 64px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; margin: 18px 0 6px; }
.plan .price small { font-size: 16px; color: var(--text-3); letter-spacing: 0; font-weight: 400; margin-left: 8px; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; color: var(--text-2); font-size: 15.5px; }
.plan li::before { content: "✓"; color: var(--accent); }
.plan .actions { margin-top: auto; }

/* FAQ */
.faq { margin-top: 44px; border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; transition: color 0.15s; }
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 20px; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { color: var(--text-2); padding: 0 0 22px; max-width: 760px; }
.faq details[open] .answer { animation: enter 0.45s var(--ease); }
.faq .answer p { margin: 0 0 10px; }

/* Prose (privacy, terms) */
.prose { max-width: 780px; color: var(--text-2); }
.prose h2 { font-size: 30px; color: var(--text); margin: 48px 0 14px; letter-spacing: -0.02em; }
.prose h3 { font-size: 20px; color: var(--text); margin: 28px 0 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text-3); font-weight: 400; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; }

/* Download */
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 50px; }
.option { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.option .badge { align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 3px 10px; }
.option p { margin: 0; color: var(--text-2); }
.option .actions { margin-top: auto; }
.specs { margin: 34px 0 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.specs dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.specs dd { margin: 0; }

/* Features page: text and facts side by side, the screenshots full width below */
.subnav { position: sticky; top: 68px; z-index: 40; background: rgba(11, 11, 13, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .inner { width: var(--page); margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.chip { font-size: 14px; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; white-space: nowrap; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip.active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.feature { width: var(--page); margin: 0 auto; padding: 100px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.feature-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 44px; }
.feature h2 { font-size: clamp(36px, 4.2vw, 58px); }
.feature .lead { font-size: 19px; }
.feature-head .specs { margin: 0; }
.feature .carousel { margin-top: 0; }

/* CTA */
.cta { width: var(--page); margin: 0 auto 110px; border: 1px solid var(--line); border-radius: 28px; padding: 72px 56px; position: relative; overflow: hidden; isolation: isolate; background: var(--bg-2); }
.cta h2 { font-size: clamp(40px, 5.6vw, 80px); max-width: 900px; }
.cta p { color: var(--text-2); max-width: 620px; margin: 22px 0 32px; }
.cta .offer-note { margin: 20px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .inner { width: var(--page); margin: 0 auto; padding: 56px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; font-size: 14.5px; }
.site-footer h4 { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--text-2); }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { width: var(--page); margin: 0 auto; padding: 18px 0 34px; display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); border-top: 1px solid var(--line); }

/* Large picture (site.js) */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; animation: box-in 0.3s var(--ease); }
.lightbox::backdrop { background: rgba(5, 5, 7, 0.9); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 90px); width: auto; height: auto; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9); }
.lightbox figcaption { color: var(--text-2); font-size: 14.5px; text-align: center; }
.lightbox-close { position: fixed; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20, 20, 23, 0.85); color: var(--text); cursor: pointer; }
.lightbox-close svg { width: 20px; height: 20px; }
html:has(.lightbox[open]) { overflow: hidden; }
@keyframes box-in { from { opacity: 0; transform: scale(0.97); } }

/* Reveal on scroll (content stays visible without JavaScript); items of a row follow each other */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s var(--ease), border-color 0.25s; transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in:hover { transition-delay: 0s; }

/* Guide: chapters on the left (sticky), text on the right; keys, notes, Pro badge, pager. */
.label a { color: inherit; text-decoration: none; }
.label a:hover { color: var(--text); }
.guide-head .inner { padding-bottom: 28px; }
.guide { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; padding: 28px 0 110px; }
.guide-nav { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 112px); overflow: auto; font-size: 15px; scrollbar-width: thin; }
.guide-nav summary { display: none; }
.guide-nav .guide-home { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px 12px; text-decoration: none; }
.guide-nav .guide-home:hover { color: var(--accent); }
.guide-nav ol { list-style: none; margin: 0; padding: 0; }
.guide-nav ol > li { margin: 2px 0; }
.guide-nav ol > li > a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; transition: background 0.15s, color 0.15s; }
.guide-nav ol > li > a:hover { background: var(--panel); color: var(--text); }
.guide-nav li.active > a { background: var(--panel-2); color: var(--text); }
.guide-nav li ul { list-style: none; margin: 4px 0 10px 12px; padding: 0 0 0 10px; border-left: 1px solid var(--line); }
.guide-nav li ul a { display: block; padding: 4px 10px; font-size: 14px; color: var(--text-3); text-decoration: none; }
.guide-nav li ul a:hover { color: var(--accent); }
.guide-body { max-width: 780px; min-width: 0; }
.guide-intro { margin: 8px 0 8px; }
.guide-section { scroll-margin-top: 96px; }
.guide-section h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 28px; margin: 60px 0 14px; }
.guide-body > .guide-section:first-child h2, .guide-intro + .guide-section h2 { margin-top: 12px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 500; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--text-3); }
.prose p.note { margin: 18px 0; padding: 12px 16px; max-width: none; font-size: 15px; color: var(--text-2); background: var(--accent-soft); border-left: 2px solid var(--accent-line); border-radius: 0 10px 10px 0; }
.prose code { font-family: var(--mono); font-size: 0.86em; padding: 1px 6px; border-radius: 6px; background: var(--panel-2); color: var(--text); overflow-wrap: anywhere; }
kbd { font-family: var(--mono); font-size: 0.8em; padding: 2px 7px; margin: 0 1px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--panel-2); color: var(--text); white-space: nowrap; }
.pro-badge { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.guide-shot { margin: 26px 0 6px; }
.guide-shot .shot { border-radius: 14px; border-color: var(--line); }
.prose table.keys { margin: 8px 0 0; font-size: 15.5px; }
.prose table.keys td { padding: 11px 4px; color: var(--text-2); }
.prose table.keys td:last-child { text-align: right; white-space: nowrap; }
.guide-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 80px; }
.guide-pager a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.guide-pager a:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.guide-pager a span { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.guide-pager .next { grid-column: 2; text-align: right; }
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: block; padding: 24px 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.guide-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.guide-card .n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.guide-card h3 { font-size: 21px; margin: 10px 0 6px; }
.guide-card p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Narrow screens */
@media (max-width: 980px) {
  .guide { grid-template-columns: 1fr; gap: 8px; padding-top: 8px; }
  .guide-nav { position: static; max-height: none; border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; }
  .guide-nav summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; cursor: pointer; font-weight: 500; list-style: none; }
  .guide-nav summary::-webkit-details-marker { display: none; }
  .guide-nav summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
  .guide-nav details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  .guide-nav nav { padding-bottom: 12px; }
  .guide-cards { grid-template-columns: 1fr 1fr; }
  .feature { padding: 70px 0; }
  .feature-head { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .promises { grid-template-columns: 1fr; }
  .caption { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 14px; }
  .factor { text-align: left; }
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .bar .btn.small { display: none; }
  .lang { margin-left: 8px; }
  .carousel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "track" "bar"; }
  .c-tabs { justify-self: stretch; }
  .c-bar { justify-content: flex-end; }
}
@media (max-width: 640px) {
  :root { --page: calc(100vw - 32px); }
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero .inner { padding: 64px 0 44px; }
  .hero h1 .line2 { padding-left: 0; }
  .plans, .options, .steps { grid-template-columns: 1fr; }
  .steps::before { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: top; background: linear-gradient(180deg, var(--accent), var(--accent-line) 55%, var(--line-2)); }
  .js .steps:not(.in)::before { transform: scaleY(0); }
  .steps li { padding: 0 0 0 40px; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .meter .m { grid-template-columns: 76px minmax(0, 1fr); }
  .meter .val { grid-column: 2; }
  .cta { padding: 48px 24px; }
  .plan { padding: 28px 24px; }
  .plan .badge { position: static; align-self: flex-start; margin-bottom: 16px; }
  .site-footer .inner { grid-template-columns: 1fr; }
  .site-footer .legal { flex-direction: column; }
  .guide-cards { grid-template-columns: 1fr; }
  .guide-section h2 { font-size: 24px; }
  .film-play { flex-direction: column; gap: 12px; }
  .film-play .disc { width: 64px; height: 64px; }
  .film-play .text { align-items: center; text-align: center; }
  .slide { flex-basis: 88%; }
  .c-track { gap: 12px; }
  .shot { border-radius: 12px; }
  .hero-shot .shot { border-radius: 12px; }
  /* The comparison becomes one card per feature: name on top, both answers side by side with a small label. */
  table.compare { min-width: 0; }
  table.compare thead { display: none; }
  table.compare tbody { display: block; }
  table.compare tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; padding: 16px; border-bottom: 1px solid var(--line); }
  table.compare tbody tr:last-child { border-bottom: 0; }
  table.compare td { display: block; padding: 0; border: 0; font-size: 14.5px; }
  table.compare td:first-child { grid-column: 1 / -1; width: auto; font-weight: 500; }
  table.compare td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
}

/* Less motion when the system asks for it: everything is simply there */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  body::before, body::after { animation: none; }
  .js .reveal, .js .steps li { opacity: 1; transform: none; }
  .hero-shot .shot { transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; animation: none; }
  .marquee ul { flex-wrap: wrap; padding: 0; }
  .marquee ul[aria-hidden] { display: none; }
  .film-play .disc::before { display: none; }
}
