@font-face {
  font-family: 'Comfortaa';
  src: url('/fonts/comfortaa-bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  src: url('/fonts/fira-sans-medium.woff') format('woff');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  src: url('/fonts/fira-sans-bold.woff') format('woff');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family: 'Fira Sans', system-ui, sans-serif;
  font-weight: 500;
  color: #eef1f0;
  background: #171e22;
  --blue: #f47732;
  --line: #525d61;
  --muted: #aeb9ba;
  --paper: #283237;
  --radius: 30px;
  --gap: 12px;
  --action-gradient: linear-gradient(112deg, #f28542, #e95d22);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.site-header, main { width: min(100% - 40px, 940px); margin-inline: auto; }
.site-header { padding: 26px 0; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 700 18px 'Comfortaa', sans-serif; letter-spacing: -.04em; }
.wordmark svg { width: 32px; height: 32px; }
main { margin-top: clamp(12px, 4vh, 46px); margin-bottom: 52px; }
.bento { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); }
.intro-card, .motion-card, .panel { min-width: 0; border-radius: var(--radius); }
.intro-card { padding: clamp(24px, 4.5vw, 45px); background: linear-gradient(135deg, #303c41, #242e32); color: #f3f5f3; }
.motion-card { display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #d3d9d7, #aeb9b8); }
.motion-card svg { display: block; width: min(88%, 290px); height: auto; }
h1, h2 { margin: 0; font-family: 'Comfortaa', 'Fira Sans', sans-serif; font-weight: 700; }
h1 { max-width: 13ch; font-size: clamp(39px, 6.4vw, 70px); line-height: 1.05; letter-spacing: -.055em; }
h2 { font-size: clamp(26px, 4.3vw, 42px); line-height: 1.13; letter-spacing: -.04em; }
.intro { max-width: 43ch; margin: 17px 0 0; color: #c3ccca; font-size: clamp(16px, 2vw, 20px); line-height: 1.4; }
.panel { padding: clamp(18px, 3.8vw, 30px); border: 1px solid #465156; background: var(--paper); }
#create-form { grid-column: 1 / -1; }
.modes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0 0 23px; padding: 0; border: 0; }
.modes label { display: block; cursor: pointer; }
.modes input, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.modes span { display: flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 16px; padding: 12px 14px; background: #354146; color: #dbe1df; font-weight: 700; }
.modes svg { width: 22px; height: 22px; flex: none; }
.modes input:checked + span { border-color: #f47732; color: #242a2c; background: #f47732; }
.modes input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.field label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.field input, .field textarea { display: block; width: 100%; border: 1px solid var(--line); border-radius: 15px; padding: 13px 15px; background: #202a2e; color: inherit; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field textarea { resize: vertical; min-height: 116px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 10px 19px; border: 1px solid transparent; border-radius: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary { color: #202629; background: var(--action-gradient); }
.primary:hover { filter: brightness(.93); }
.secondary { border-color: var(--line); color: #e1e6e4; background: #354146; }
.secondary:hover { background: #465357; }
button:disabled { opacity: .65; cursor: default; }
.notice { margin: 15px 0 0; color: #ffb18a; line-height: 1.4; overflow-wrap: anywhere; }
.state-intro { align-content: center; }
.state-intro h2 { font-size: clamp(32px, 5.4vw, 57px); overflow-wrap: anywhere; }
.state-intro h2:focus { outline: none; }
.state-intro p { margin-top: 12px; }
.waiting-card svg { width: min(80%, 247px); }
.waiting-dots circle { animation: waiting-dot 1.6s ease-in-out infinite; }
.waiting-dots circle:nth-child(2) { animation-delay: .14s; }
.waiting-dots circle:nth-child(3) { animation-delay: .28s; }
@keyframes waiting-dot {
  0%, 55%, 100% { transform: translateY(0); }
  25% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .waiting-dots circle { animation: none; }
}
.progress-card { grid-column: 1 / -1; display: flex; align-items: center; gap: clamp(15px, 4vw, 34px); }
.progress-card progress { display: block; flex: 1 1 120px; min-width: 0; height: 15px; overflow: hidden; appearance: none; border: 0; border-radius: 999px; background: #465156; accent-color: var(--blue); }
.progress-card progress::-webkit-progress-bar { background: #465156; }
.progress-card progress::-webkit-progress-value { border-radius: 999px; background: var(--blue); }
.progress-card progress::-moz-progress-bar { border-radius: 999px; background: var(--blue); }
.result-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.result-heading > div { min-width: 0; }
.result-mark { width: clamp(56px, 13vw, 122px); flex: none; }
.player-card { min-width: 0; display: grid; align-items: center; overflow: hidden; border-radius: var(--radius); background: #111719; }
.result video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 68vh; object-fit: contain; background: #111719; }
.result-actions { display: grid; align-content: center; gap: 10px; background: linear-gradient(145deg, #d3d9d7, #aeb9b8); border-color: transparent; }
.result-actions .primary { justify-content: space-between; }
@media (max-width: 620px) {
  :root { --radius: 23px; --gap: 8px; }
  .site-header { padding: 19px 0 15px; }
  main { margin-top: 8px; }
  .bento { grid-template-columns: minmax(0,1fr) minmax(82px,.25fr); }
  .intro-card { padding: 20px 17px; }
  h1 { font-size: clamp(29px, 8vw, 44px); }
  .intro { margin-top: 11px; font-size: 15px; }
  .motion-card svg { width: 118%; max-width: none; }
  .modes { margin-bottom: 17px; }
  .modes span { padding: 10px; gap: 6px; font-size: 14px; }
  .modes svg { width: 19px; height: 19px; }
  .form-actions button { width: 100%; }
  .state-intro h2 { font-size: clamp(26px, 7vw, 38px); }
  .result .player-card, .result-actions { grid-column: 1 / -1; }
  .result-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .result-actions .primary, .result-actions .secondary { padding-inline: 10px; gap: 7px; }
}
@media (max-width: 350px) {
  .site-header, main { width: calc(100% - 24px); }
  .modes span { padding-inline: 8px; }
}

.overview { margin-top: clamp(54px, 8vw, 96px); }
.overview-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.overview-heading h2 { margin-top: 10px; font-size: clamp(30px, 4vw, 45px); }
.overview-heading > p { max-width: 31ch; margin: 0; color: #aeb9ba; line-height: 1.45; }
.eyebrow, .card-number { margin: 0; color: #aeb9ba; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.overview-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: var(--gap); }
.overview-card { min-width: 0; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 24px; border: 1px solid #465156; border-radius: var(--radius); background: #283237; }
.overview-card-main { position: relative; overflow: hidden; background: linear-gradient(145deg, #354247, #283237); }
.overview-card h3 { margin: 0 0 9px; font: 700 21px/1.15 'Comfortaa', sans-serif; letter-spacing: -.035em; }
.overview-card p { max-width: 28ch; margin: 0; color: #b8c3c1; font-size: 14px; line-height: 1.5; }
.overview-card-silver { color: #293438; background: linear-gradient(145deg, #d2dad7, #b4c0bd); border-color: transparent; }
.overview-card-silver p, .overview-card-silver .card-number { color: #485957; }
.card-icon { position: absolute; top: 20px; right: 22px; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; color: #252e32; background: linear-gradient(135deg, #ff9a56, #e8662c); font-size: 25px; }
@media (max-width: 620px) {
  .overview { margin-top: 54px; }
  .overview-heading { align-items: start; flex-direction: column; gap: 12px; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-card { min-height: 190px; padding: 18px; }
  .overview-card-main { grid-column: 1 / -1; min-height: 160px; }
  .overview-card h3 { font-size: 18px; }
}

/* Brand direction: gunmetal, silver and a single molten accent. */
:root { --blue: #ff5a1f; --paper: #181b1e; --line: #3a3d40; --radius: 18px; --gap: 10px; --action-gradient: linear-gradient(120deg, #ff773a, #ff5a1f); font-family: 'Fira Sans', system-ui, sans-serif; color: #f2f2f0; background: #0e1012; }
body { background: #0e1012; }
.site-header, main { width: min(100% - 56px, 1240px); }
.site-header { min-height: 86px; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffffff1c; }
.wordmark { font: 700 20px 'Fira Sans', sans-serif; letter-spacing: -.055em; }
.wordmark svg { width: 32px; height: 32px; }
.header-nav { display: flex; align-items: center; gap: 30px; }
.header-nav a { color: #b9babb; font-size: 13px; text-decoration: none; }
.header-nav .header-cta { padding: 11px 16px; border: 1px solid #55585a; border-radius: 10px; color: #f5f5f3; }
.header-cta span { color: #ff5a1f; margin-left: 10px; }
main { margin-top: 30px; margin-bottom: 80px; }
#create.bento { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
#create .intro-card { display: flex; flex-direction: column; align-items: start; justify-content: center; min-height: 420px; padding: clamp(28px, 4vw, 58px); background: linear-gradient(135deg, #212428, #151719); }
.hero-kicker, .form-kicker { margin: 0; color: #aaaeb0; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
h1, h2 { font-family: 'Fira Sans', system-ui, sans-serif; }
#create h1 { max-width: 10ch; margin: 29px 0 0; font-size: clamp(48px, 5.8vw, 82px); line-height: .96; letter-spacing: -.065em; }
#create h1 em { color: #ff5a1f; font-style: normal; }
#create .intro { max-width: 34ch; margin: 22px 0 0; color: #b6b9b9; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.45; }
.hero-link { display: inline-flex; align-items: center; gap: 20px; margin-top: 30px; color: #f4f4f2; font-size: 14px; font-weight: 700; text-decoration: none; }
.hero-link span { color: #ff5a1f; font-size: 20px; }
.hero-preview { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; padding: 20px; color: #272b2d; background: linear-gradient(145deg, #e2e4e3, #aeb5b5); }
.preview-top, .preview-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.preview-top { font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.preview-video { display: block; width: 100%; aspect-ratio: 16/9; margin: 20px 0; border-radius: 8px; background: #242628; object-fit: contain; }
.preview-bottom strong, .preview-bottom span { display: block; }
.preview-bottom strong { font-size: 20px; line-height: 1.1; }
.preview-bottom div span { margin-top: 5px; color: #4f5a5b; font-size: 12px; }
.preview-tag { flex: none; padding: 8px 10px; border: 1px solid #707b7b; border-radius: 100px; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
#create-form { padding: clamp(24px, 3vw, 36px); border-color: #34383a; background: #191c1f; }
.form-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 25px; }
.form-heading h2 { margin: 9px 0 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.045em; }
.form-mark { color: #ff5a1f; font-size: 27px; }
.modes { max-width: 580px; margin-bottom: 22px; }
.modes span { border-radius: 9px; background: #272b2e; color: #c5c9c8; }
.modes input:checked + span { border-color: #6e7777; color: #f7f7f5; background: #3c4244; }
.field label { color: #e5e7e5; }
.field input, .field textarea { background: #101315; border-color: #454a4b; border-radius: 10px; }
.field-hint { display: block; margin-top: 8px; color: #9b9fa0; font-size: 12px; }
.primary, .secondary { border-radius: 10px; }
.primary { color: #18191a; background: var(--action-gradient); }
.primary:hover { filter: brightness(1.1); }
.form-actions { margin-top: 22px; }
.overview { margin-top: clamp(70px, 8vw, 110px); }
.overview-heading { align-items: end; margin-bottom: 24px; }
.overview-heading h2 { max-width: 13ch; margin-top: 12px; font-size: clamp(38px, 5vw, 64px); line-height: .98; letter-spacing: -.06em; }
.overview-grid { grid-template-columns: 1.25fr 1fr 1fr; }
.overview-card { position: relative; min-height: 310px; overflow: hidden; padding: 25px; border-color: #383c3e; border-radius: var(--radius); background: #191c1f; }
.overview-card-main { background: linear-gradient(150deg, #25292b, #17191b); }
.overview-card h3 { font: 700 clamp(23px, 2.2vw, 31px)/1 'Fira Sans', sans-serif; letter-spacing: -.045em; }
.overview-card p { color: #acb1b1; }
.overview-card-silver { color: #171b1d; border: 0; background: linear-gradient(145deg, #e1e4e3, #acb4b4); }
.overview-card-silver p, .overview-card-silver .card-number { color: #485252; }
.overview-card-result { background: #1b1b1c; }
.card-number { position: relative; z-index: 1; font-size: 10px; }
.abstract-link { position: absolute; left: 35%; top: 23%; width: 130px; height: 100px; transform: rotate(-34deg); }
.abstract-link i { position: absolute; display: block; width: 76px; height: 45px; border: 10px solid #ff5a1f; border-radius: 40px; box-shadow: 0 8px 22px #0005; }
.abstract-link i:nth-child(2) { left: 52px; top: 25px; border-color: #aab4b2; }
.abstract-frames { position: absolute; inset: 22% 12% auto; height: 100px; }
.abstract-frames i { position: absolute; width: 100px; height: 68px; border: 1px solid #808b8b; border-radius: 5px; background: #f1f3f2aa; transform: rotate(-12deg); }
.abstract-frames i:nth-child(2) { left: 25%; top: 12px; transform: rotate(3deg); background: #c3cccc; }
.abstract-frames i:nth-child(3) { left: 50%; top: 24px; transform: rotate(16deg); background: #ff5a1f; border-color: #e55420; }
.abstract-play { position: absolute; top: 22%; right: 16%; display: grid; place-items: center; width: 90px; height: 90px; border: 1px solid #ff9269; border-radius: 50%; background: linear-gradient(145deg, #ff8650, #ed4e18); color: #1b1b1c; font-size: 42px; }
@media (max-width: 760px) {
  .site-header, main { width: calc(100% - 32px); }
  .site-header { min-height: 70px; padding: 16px 0; }
  .header-nav > a:first-child { display: none; }
  .header-nav .header-cta { font-size: 12px; }
  main { margin-top: 16px; }
  #create.bento { grid-template-columns: 1fr; }
  #create .intro-card { min-height: 340px; padding: 28px; }
  #create h1 { font-size: clamp(48px, 11vw, 70px); }
  #create .intro { font-size: 16px; }
  .hero-preview { min-height: 0; padding: 16px; }
  .preview-video { margin: 20px 0; }
  #create-form { grid-column: auto; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .overview-card { min-height: 260px; }
  .overview-card-main { grid-column: 1 / -1; min-height: 230px; }
}
@media (max-width: 400px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-card-main { grid-column: auto; }
  .overview-card { min-height: 235px; }
  .modes span { font-size: 13px; }
}
.use-cases { margin-top: 80px; padding-top: 24px; border-top: 1px solid #ffffff25; }
.use-cases > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.use-cases span { display: flex; justify-content: space-between; gap: 10px; padding: 20px 0; border-bottom: 1px solid #ffffff25; font-size: clamp(15px, 1.4vw, 19px); font-weight: 700; }
.use-cases i { color: #ff5a1f; font-style: normal; }
@media (max-width: 620px) { .use-cases { margin-top: 55px; } .use-cases > div { grid-template-columns: 1fr; gap: 0; } }

/* Give the opening bento a little breathing room. */
main { margin-top: 24px; }
@media (max-width: 760px) { main { margin-top: 16px; } }

/* The example video is a bento tile in its own right. */
.hero-preview { display: block; padding: 0; background: #d4d8d7; }
.hero-preview .preview-video { display: block; width: 100%; height: 100%; margin: 0; border-radius: inherit; object-fit: contain; background: #d4d8d7; }
@media (max-width: 760px) { .hero-preview { padding: 0; aspect-ratio: 16 / 9; } }
@media (min-width: 761px) {
  #create.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #create .intro-card { min-height: 0; aspect-ratio: 16 / 9; padding: clamp(24px, 3vw, 42px); }
  #create h1 { margin-top: 18px; font-size: clamp(43px, 4.8vw, 68px); }
  #create .intro { margin-top: 15px; }
  .hero-link { margin-top: 18px; }
  .hero-preview { aspect-ratio: 16 / 9; }
}

.hero-meta { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.account-link { flex: none; color: #d8dcda; text-decoration: none; font-size: 12px; font-weight: 700; }
.account-link:hover { color: #ff5a1f; }
@font-face { font-family: 'Comfortaa'; src: url('/fonts/comfortaa-bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
#create h1, .overview-heading h2, .overview-card h3, .form-heading h2, .state-intro h2 { font-family: 'Comfortaa', sans-serif; letter-spacing: -.055em; }
.hero-meta .account-link { margin-left: auto; }
.language-select { flex: none; padding: 7px 20px 7px 8px; border: 1px solid #545b5b; border-radius: 8px; background: #242829; color: #edf0ee; font: 700 11px 'Fira Sans', sans-serif; cursor: pointer; }
.edit-card { grid-column:1/-1; display:grid; gap:16px; }
.edit-card label { font-weight:700; }
.edit-card textarea { width:100%; resize:vertical; min-height:100px; padding:16px; border:1px solid #8e9490; border-radius:16px; font:inherit; background:#f4f3ee; color:#1c1b1a; }
@media (max-width: 400px) { .hero-kicker { font-size: 8px; } .hero-meta { gap: 8px; } }
@media (min-width: 1001px) {
  #create h1 { max-width: none; font-size: clamp(38px, 4vw, 56px); }
}
@media (min-width: 761px) and (max-width: 1000px) {
  #create.bento { grid-template-columns: 1fr; }
  #create .intro-card { aspect-ratio: auto; min-height: 320px; }
  .hero-preview { aspect-ratio: 16 / 9; }
}

.account-prompt { display: inline-block; margin-top: 10px; color: #ff9b72; font-size: 14px; }
