/* Design demos for the ClientDriven home page: three first screens to try out on this PC.
   They are experiments, not the site. Fonts, films and the motion library come from the preview site itself. */
@font-face { font-family: "Inter Tight"; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2191, U+2193; }
@font-face { font-family: "Inter Tight"; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/inter-tight-greek.woff2") format("woff2"); unicode-range: U+0370-03FF; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("/assets/fonts/unbounded-700-latin.woff2") format("woff2"); }
/* until Inter Tight arrives: Arial squeezed to the same width (copied from assets/styles.css), so the headline does not re-wrap and push the page down */
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial"); font-weight: 400 500; size-adjust: 96.3%; unicode-range: U+0000-036F, U+2000-20CF; }
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 700; size-adjust: 95.4%; unicode-range: U+0000-036F, U+2000-20CF; }
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 800; size-adjust: 97.4%; unicode-range: U+0000-036F, U+2000-20CF; }
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial"); font-weight: 400 500; size-adjust: 98.4%; unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 700; size-adjust: 97.8%; unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 800; size-adjust: 100%; unicode-range: U+0370-03FF, U+1F00-1FFF; }
:root { --bg: #08080a; --card: #131316; --line: rgb(255 255 255 / 0.12); --line-2: rgb(255 255 255 / 0.22); --text: #f4f3f1; --mute: #b0aeb3; --fill: #ff6b1a; --fill-2: #ff8a45; --acc: #ff7a2e; --ink: #160700;
  --sans: "Inter Tight", "Inter Tight Fallback", ui-sans-serif, system-ui, sans-serif; --ease: cubic-bezier(0.22, 1, 0.36, 1); }
.light { --bg: #f4f1ea; --card: #ffffff; --line: rgb(20 17 13 / 0.14); --line-2: rgb(20 17 13 / 0.26); --text: #14110d; --mute: #55504a; --acc: #c2410c; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
html, body { overflow-x: clip; }
body { font-size: 16px; line-height: 1.5; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:where(a, button, select, input, summary):focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

.nav { position: fixed; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 24px), 1160px); display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 20px; border-radius: 99px; background: rgb(14 14 17 / 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgb(255 255 255 / 0.12); color: #f4f3f1; }
.wm { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; margin-right: auto; }
.wm b { color: #ff6b1a; }
.nav a.l { padding: 8px 12px; border-radius: 99px; font-size: 14.5px; color: #b0aeb3; }
.nav a.l:hover { color: #f4f3f1; background: rgb(255 255 255 / 0.07); }
.nav .cta { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: 99px; background: var(--fill); color: var(--ink); font-weight: 700; font-size: 14px; }
@media (max-width: 760px) { .nav a.l { display: none; } }

.kicker { font-size: clamp(14px, 1.4vw, 17px); font-weight: 700; color: var(--acc); }
.lead { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--mute); max-width: 52ch; }
.price { font-size: 16px; color: var(--mute); }
.price b { color: var(--text); }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 28px; border-radius: 99px; border: 0; background: var(--fill); color: var(--ink); font-weight: 700; font-size: 16px; cursor: pointer; transition: background 200ms, transform 200ms var(--ease); }
.btn:hover { background: var(--fill-2); }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: none; border: 1px solid var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: var(--acc); color: var(--acc); }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 15px; }
.link i { font-style: normal; color: var(--acc); transition: transform 300ms var(--ease); }
.link:hover i { transform: translateX(4px); }

/* words that are animated: each word sits in a small window so it can rise from behind its own edge */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span { display: inline-block; will-change: transform; }

/* jump between the demos */
.switch { position: fixed; z-index: 60; left: 12px; bottom: 12px; display: flex; gap: 4px; padding: 6px; border-radius: 99px; background: rgb(14 14 17 / 0.92); border: 1px solid rgb(255 255 255 / 0.16); font-size: 13.5px; }
.switch a { padding: 8px 14px; border-radius: 99px; color: #b0aeb3; font-weight: 600; white-space: nowrap; }
.switch a:hover { color: #f4f3f1; }
.switch a[aria-current] { background: #ff6b1a; color: #160700; }

/* the "play with it" panel */
.panel { position: fixed; z-index: 60; right: 12px; bottom: 12px; width: 268px; border-radius: 18px; background: rgb(14 14 17 / 0.94); border: 1px solid rgb(255 255 255 / 0.16); color: #f4f3f1; font-size: 14px; }
.panel summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; cursor: pointer; font-weight: 700; }
.panel summary::-webkit-details-marker { display: none; }
.panel summary::after { content: "+"; font-size: 20px; line-height: 1; color: #ff7a2e; }
.panel[open] summary::after { content: "–"; }
.panel-body { display: grid; gap: 12px; padding: 4px 16px 16px; }
.panel label { display: grid; gap: 6px; color: #b0aeb3; }
.panel label.row { grid-template-columns: 1fr auto; align-items: center; color: #f4f3f1; }
.panel select { width: 100%; min-height: 40px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgb(255 255 255 / 0.25); background: #17171b; color: #f4f3f1; }
.panel input[type="range"] { width: 100%; accent-color: #ff6b1a; }
.panel input[type="checkbox"] { width: 20px; height: 20px; accent-color: #ff6b1a; }
.panel button { min-height: 42px; border-radius: 99px; border: 1px solid rgb(255 255 255 / 0.25); background: #17171b; color: #f4f3f1; font-weight: 700; cursor: pointer; }
.panel button:hover { border-color: #ff7a2e; color: #ff7a2e; }
/* phones: the closed panel is only as wide as its title, so it never covers the switch bar; open, it takes the width */
@media (max-width: 760px) { .panel { width: auto; } .panel[open] { width: calc(100vw - 24px); } .switch { font-size: 12.5px; } .switch a { padding: 8px 10px; } .switch a span { display: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
